From: Roland McGrath Date: Mon, 9 May 2005 07:40:33 +0000 (+0000) Subject: 2005-04-05 Anton Blanchard X-Git-Tag: v4.5.18~393 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=802b8f41dcf393f3237bd8f7651153c3836fea8b;p=strace 2005-04-05 Anton Blanchard * ipc.c (shm_resource_flags): New variable, table has SHM_HUGETLB but not IPC_NOWAIT, which have the same value. (sys_shmget): Use that instead of resource_flags. --- diff --git a/ipc.c b/ipc.c index 1a264723..60fece0d 100644 --- a/ipc.c +++ b/ipc.c @@ -123,6 +123,12 @@ static const struct xlat resource_flags[] = { { IPC_CREAT, "IPC_CREAT" }, { IPC_EXCL, "IPC_EXCL" }, { IPC_NOWAIT, "IPC_NOWAIT" }, + { 0, NULL }, +}; + +static const struct xlat shm_resource_flags[] = { + { IPC_CREAT, "IPC_CREAT" }, + { IPC_EXCL, "IPC_EXCL" }, #ifdef SHM_HUGETLB { SHM_HUGETLB, "SHM_HUGETLB" }, #endif @@ -325,7 +331,7 @@ struct tcb *tcp; tprintf("IPC_PRIVATE"); tprintf(", %lu", tcp->u_arg[1]); tprintf(", "); - if (printflags(resource_flags, tcp->u_arg[2] & ~0777) != 0) + if (printflags(shm_resource_flags, tcp->u_arg[2] & ~0777) != 0) tprintf("|"); tprintf("%#lo", tcp->u_arg[2] & 0777); }