summaryrefslogtreecommitdiff
path: root/ipc.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2009-03-10 20:41:58 +0000
committerDenys Vlasenko <dvlasenk@redhat.com>2009-03-10 20:41:58 +0000
commiteedaac768dcb55346292495440f1201bd7b2b1b4 (patch)
tree356293d09fa8d45c912b6d2084eb9d9f44149896 /ipc.c
parentc71016ea799c6ca5b7bfca60eb845266af9c065f (diff)
downloadstrace-eedaac768dcb55346292495440f1201bd7b2b1b4.tar.gz
strace-eedaac768dcb55346292495440f1201bd7b2b1b4.tar.bz2
strace-eedaac768dcb55346292495440f1201bd7b2b1b4.tar.xz
Decode fcntl's F_{GET,SET}LEASE, F_NOTIFY, and F_DUPFD_CLOEXEC.
By Mike Frysinger (vapier AT gentoo.org) * desc.c: Add F_SETLEASE, F_GETLEASE, F_NOTIFY, F_DUPFD_CLOEXEC to fcntlcmds[]. Create notifyflags[] array. (sys_fcntl): Handle new flags. Optimize printing of open modes. * defs.h: Declare sprint_open_modes(), remove unused parameter in tprint_open_modes(). * desc.c (sprint_open_modes): Move fuction definition from here... * file.c (sprint_open_modes): To here. (tprint_open_modes): Use sprint_open_modes(), it already generates needed string. * ipc.c: Remove unused parameter from calls to tprint_open_modes().
Diffstat (limited to 'ipc.c')
-rw-r--r--ipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc.c b/ipc.c
index 548d2e1..ab29412 100644
--- a/ipc.c
+++ b/ipc.c
@@ -420,7 +420,7 @@ sys_mq_open(struct tcb *tcp)
printpath(tcp, tcp->u_arg[0]);
tprintf(", ");
/* flags */
- tprint_open_modes(tcp, tcp->u_arg[1]);
+ tprint_open_modes(tcp->u_arg[1]);
if (tcp->u_arg[1] & O_CREAT) {
# ifndef HAVE_MQUEUE_H
tprintf(", %lx", tcp->u_arg[2]);
@@ -489,7 +489,7 @@ printmqattr(struct tcb *tcp, long addr)
return;
}
tprintf("{mq_flags=");
- tprint_open_modes(tcp, attr.mq_flags);
+ tprint_open_modes(attr.mq_flags);
tprintf(", mq_maxmsg=%ld, mq_msgsize=%ld, mq_curmsg=%ld}",
attr.mq_maxmsg, attr.mq_msgsize, attr.mq_curmsgs);
# endif