diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2014-02-05 01:33:50 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-02-05 01:33:50 +0000 |
commit | bce0cc6a2d103e1da4c15a4c5396fdc5676294f7 (patch) | |
tree | 25a89204211c047c75d21e19f47a4fa627e99499 /ipc.c | |
parent | a69ddcb672f326418aaa74f399f600f69d074758 (diff) | |
download | strace-bce0cc6a2d103e1da4c15a4c5396fdc5676294f7.tar.gz |
Use XLAT macro
Automatically convert all xlat structures to XLAT form
using the following sed regexp:
s/^[[:space:]]*{[[:space:]]*\([^",}[:space:]]\+\)[[:space:]]*,[[:space:]]*"\1",\?[[:space:]]*}[[:space:]]*/\tXLAT(\1)/
Diffstat (limited to 'ipc.c')
-rw-r--r-- | ipc.c | 82 |
1 files changed, 41 insertions, 41 deletions
@@ -64,81 +64,81 @@ extern void printsigevent(struct tcb *tcp, long arg); static const struct xlat msgctl_flags[] = { - { IPC_RMID, "IPC_RMID" }, - { IPC_SET, "IPC_SET" }, - { IPC_STAT, "IPC_STAT" }, - { IPC_INFO, "IPC_INFO" }, - { MSG_STAT, "MSG_STAT" }, - { MSG_INFO, "MSG_INFO" }, + XLAT(IPC_RMID), + XLAT(IPC_SET), + XLAT(IPC_STAT), + XLAT(IPC_INFO), + XLAT(MSG_STAT), + XLAT(MSG_INFO), { 0, NULL }, }; static const struct xlat semctl_flags[] = { - { IPC_RMID, "IPC_RMID" }, - { IPC_SET, "IPC_SET" }, - { IPC_STAT, "IPC_STAT" }, - { IPC_INFO, "IPC_INFO" }, - { SEM_STAT, "SEM_STAT" }, - { SEM_INFO, "SEM_INFO" }, - { GETPID, "GETPID" }, - { GETVAL, "GETVAL" }, - { GETALL, "GETALL" }, - { GETNCNT, "GETNCNT" }, - { GETZCNT, "GETZCNT" }, - { SETVAL, "SETVAL" }, - { SETALL, "SETALL" }, + XLAT(IPC_RMID), + XLAT(IPC_SET), + XLAT(IPC_STAT), + XLAT(IPC_INFO), + XLAT(SEM_STAT), + XLAT(SEM_INFO), + XLAT(GETPID), + XLAT(GETVAL), + XLAT(GETALL), + XLAT(GETNCNT), + XLAT(GETZCNT), + XLAT(SETVAL), + XLAT(SETALL), { 0, NULL }, }; static const struct xlat shmctl_flags[] = { - { IPC_RMID, "IPC_RMID" }, - { IPC_SET, "IPC_SET" }, - { IPC_STAT, "IPC_STAT" }, - { IPC_INFO, "IPC_INFO" }, - { SHM_STAT, "SHM_STAT" }, - { SHM_INFO, "SHM_INFO" }, + XLAT(IPC_RMID), + XLAT(IPC_SET), + XLAT(IPC_STAT), + XLAT(IPC_INFO), + XLAT(SHM_STAT), + XLAT(SHM_INFO), #ifdef SHM_LOCK - { SHM_LOCK, "SHM_LOCK" }, + XLAT(SHM_LOCK), #endif #ifdef SHM_UNLOCK - { SHM_UNLOCK, "SHM_UNLOCK" }, + XLAT(SHM_UNLOCK), #endif { 0, NULL }, }; static const struct xlat resource_flags[] = { - { IPC_CREAT, "IPC_CREAT" }, - { IPC_EXCL, "IPC_EXCL" }, - { IPC_NOWAIT, "IPC_NOWAIT" }, + XLAT(IPC_CREAT), + XLAT(IPC_EXCL), + XLAT(IPC_NOWAIT), { 0, NULL }, }; static const struct xlat shm_resource_flags[] = { - { IPC_CREAT, "IPC_CREAT" }, - { IPC_EXCL, "IPC_EXCL" }, + XLAT(IPC_CREAT), + XLAT(IPC_EXCL), #ifdef SHM_HUGETLB - { SHM_HUGETLB, "SHM_HUGETLB" }, + XLAT(SHM_HUGETLB), #endif { 0, NULL }, }; static const struct xlat shm_flags[] = { - { SHM_REMAP, "SHM_REMAP" }, - { SHM_RDONLY, "SHM_RDONLY" }, - { SHM_RND, "SHM_RND" }, + XLAT(SHM_REMAP), + XLAT(SHM_RDONLY), + XLAT(SHM_RND), { 0, NULL }, }; static const struct xlat msg_flags[] = { - { MSG_NOERROR, "MSG_NOERROR" }, - { MSG_EXCEPT, "MSG_EXCEPT" }, - { IPC_NOWAIT, "IPC_NOWAIT" }, + XLAT(MSG_NOERROR), + XLAT(MSG_EXCEPT), + XLAT(IPC_NOWAIT), { 0, NULL }, }; static const struct xlat semop_flags[] = { - { SEM_UNDO, "SEM_UNDO" }, - { IPC_NOWAIT, "IPC_NOWAIT" }, + XLAT(SEM_UNDO), + XLAT(IPC_NOWAIT), { 0, NULL }, }; |