* fcntl.c(print_fcntl): New function, made from SYS_FUNC(fcntl).
(SYS_FUNC(fcntl), SYS_FUNC(fcntl64)): Use it.
* linux/32/syscallent.h: Change parser of fcntl64 to SEN(fcntl64).
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
tprintf(", pid=%d}", owner.pid);
}
-SYS_FUNC(fcntl)
+static int
+print_fcntl(struct tcb *tcp)
{
if (entering(tcp)) {
printfd(tcp, tcp->u_arg[0]);
}
return 0;
}
+
+SYS_FUNC(fcntl)
+{
+ return print_fcntl(tcp);
+}
+
+SYS_FUNC(fcntl64)
+{
+ return print_fcntl(tcp);
+}
[ 22] = { 6, TD, SEN(epoll_pwait), "epoll_pwait" },
[ 23] = { 1, TD, SEN(dup), "dup" },
[ 24] = { 3, TD, SEN(dup3), "dup3" },
-[ 25] = { 3, TD, SEN(fcntl), "fcntl64" },
+[ 25] = { 3, TD, SEN(fcntl64), "fcntl64" },
[ 26] = { 1, TD, SEN(inotify_init1), "inotify_init1" },
[ 27] = { 3, TD, SEN(inotify_add_watch), "inotify_add_watch" },
[ 28] = { 2, TD, SEN(inotify_rm_watch), "inotify_rm_watch" },
[218] = { 2, TF, SEN(pivotroot), "pivot_root" },
[219] = { 3, TM, SEN(mincore), "mincore" },
[220] = { 3, TM, SEN(madvise), "madvise" },
-[221] = { 3, TD, SEN(fcntl), "fcntl64" },
+[221] = { 3, TD, SEN(fcntl64), "fcntl64" },
[222 ... 223] = { },
[224] = { 0, 0, SEN(gettid), "gettid" },
[225] = { 5, TD, SEN(readahead), "readahead" },
[172] = { 3, TM, SEN(mincore), "mincore" },
[173] = { 3, TM, SEN(madvise), "madvise" },
[174] = { 3, TD, SEN(getdents64), "getdents64" },
-[175] = { 3, TD, SEN(fcntl), "fcntl64" },
+[175] = { 3, TD, SEN(fcntl64), "fcntl64" },
[176] = { 0, 0, SEN(gettid), "gettid" },
[177] = { 4, TD, SEN(readahead), "readahead" },
[178] = { 5, TF, SEN(setxattr), "setxattr" },
[218] = { 3, TM, SEN(mincore), "mincore" },
[219] = { 3, TM, SEN(madvise), "madvise" },
[220] = { 3, TD, SEN(getdents64), "getdents64" },
-[221] = { 3, TD, SEN(fcntl), "fcntl64" },
+[221] = { 3, TD, SEN(fcntl64), "fcntl64" },
[222] = { },
[223] = { 5, 0, SEN(security), "security" },
[224] = { 0, 0, SEN(gettid), "gettid" },
[199] = { 3, TF, SEN(truncate64), "truncate64" },
[200] = { 3, TD, SEN(ftruncate64), "ftruncate64" },
[201] = { 3, TD, SEN(getdents64), "getdents64" },
-[202] = { 3, TD, SEN(fcntl), "fcntl64" },
+[202] = { 3, TD, SEN(fcntl64), "fcntl64" },
[203] = { 5, 0, SEN(printargs), "attrctl" },
[204] = { 5, 0, SEN(printargs), "acl_get" },
[205] = { 5, 0, SEN(printargs), "acl_set" },
[218] = { 3, TM, SEN(mincore), "mincore" },
[219] = { 3, TM, SEN(madvise), "madvise" },
[220] = { 3, TD, SEN(getdents64), "getdents64" },
-[221] = { 3, TD, SEN(fcntl), "fcntl64" },
+[221] = { 3, TD, SEN(fcntl64), "fcntl64" },
[222] = { },
[223] = { 5, 0, SEN(security), "security" },
[224] = { 0, 0, SEN(gettid), "gettid" },
[236] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
[237] = { 3, TM, SEN(mincore), "mincore" },
[238] = { 3, TM, SEN(madvise), "madvise" },
-[239] = { 3, TD, SEN(fcntl), "fcntl64" },
+[239] = { 3, TD, SEN(fcntl64), "fcntl64" },
[240] = { 4, TD, SEN(readahead), "readahead" },
[241] = { 2, 0, SEN(io_setup), "io_setup" },
[242] = { 1, 0, SEN(io_destroy), "io_destroy" },
[218] = { 3, TM, SEN(mincore), "mincore" },
[219] = { 3, TM, SEN(madvise), "madvise" },
[220] = { 3, TD, SEN(getdents64), "getdents64" },
-[221] = { 3, TD, SEN(fcntl), "fcntl64" },
+[221] = { 3, TD, SEN(fcntl64), "fcntl64" },
[222 ... 223] = { },
[224] = { 0, 0, SEN(gettid), "gettid" },
[225] = { 4, TD, SEN(readahead), "readahead" },
[6209] = { 4, TD, SEN(epoll_wait), "epoll_wait" },
[6210] = { 5, TM|SI, SEN(remap_file_pages), "remap_file_pages" },
[6211] = { 0, TS, SEN(rt_sigreturn), "rt_sigreturn" },
-[6212] = { 3, TD, SEN(fcntl), "fcntl64" },
+[6212] = { 3, TD, SEN(fcntl64), "fcntl64" },
[6213] = { 1, 0, SEN(set_tid_address), "set_tid_address" },
[6214] = { 0, 0, SEN(restart_syscall), "restart_syscall" },
[6215] = { 4, TI, SEN(semtimedop), "semtimedop" },
[4217] = { 3, TM, SEN(mincore), "mincore" },
[4218] = { 3, TM, SEN(madvise), "madvise" },
[4219] = { 3, TD, SEN(getdents64), "getdents64" },
-[4220] = { 3, TD, SEN(fcntl), "fcntl64" },
+[4220] = { 3, TD, SEN(fcntl64), "fcntl64" },
[4221] = { },
[4222] = { 0, 0, SEN(gettid), "gettid" },
[4223] = { 5, TD, SEN(readahead), "readahead" },
[201] = { 6, 0, SEN(printargs), "MOL" },
[202] = { 3, TD, SEN(getdents64), "getdents64" },
[203] = { 2, TF, SEN(pivotroot), "pivot_root" },
-[204] = { 3, TD, SEN(fcntl), "fcntl64" },
+[204] = { 3, TD, SEN(fcntl64), "fcntl64" },
[205] = { 3, TM, SEN(madvise), "madvise" },
[206] = { 3, TM, SEN(mincore), "mincore" },
[207] = { 0, 0, SEN(gettid), "gettid" },
[218] = { 3, TM, SEN(mincore), "mincore" },
[219] = { 3, TM, SEN(madvise), "madvise" },
[220] = { 3, TD, SEN(getdents64), "getdents64" },
-[221] = { 3, TD, SEN(fcntl), "fcntl64" },
+[221] = { 3, TD, SEN(fcntl64), "fcntl64" },
[222] = { 4, TD, SEN(readahead), "readahead" },
[223] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
[224] = { 5, TF, SEN(setxattr), "setxattr" },
[218] = { 3, TM, SEN(mincore), "mincore" },
[219] = { 3, TM, SEN(madvise), "madvise" },
[220] = { 3, TD, SEN(getdents64), "getdents64" },
-[221] = { 3, TD, SEN(fcntl), "fcntl64" },
+[221] = { 3, TD, SEN(fcntl64), "fcntl64" },
[222 ... 223] = { },
[224] = { 4, 0, SEN(gettid), "gettid" },
[225] = { 4, TD, SEN(readahead), "readahead" },
[246] = { 3, TI, SEN(shmget), "shmget" },
[247] = { 4, TI, SEN(shmctl), "shmctl" },
[248] = { 3, TD, SEN(getdents64), "getdents64" },
-[249] = { 3, TD, SEN(fcntl), "fcntl64" },
+[249] = { 3, TD, SEN(fcntl64), "fcntl64" },
[250 ... 251] = { },
[252] = { 4, 0, SEN(gettid), "gettid" },
[253] = { 3, TD, SEN(readahead), "readahead" },
[152] = { 3, TD, SEN(inotify_add_watch), "inotify_add_watch" },
[153] = { 3, TD, SEN(poll), "poll" },
[154] = { 3, TD, SEN(getdents64), "getdents64" },
-[155] = { 3, TD, SEN(fcntl), "fcntl64" },
+[155] = { 3, TD, SEN(fcntl64), "fcntl64" },
[156] = { 2, TD, SEN(inotify_rm_watch), "inotify_rm_watch" },
[157] = { 2, TF, SEN(statfs), "statfs" },
[158] = { 2, TD, SEN(fstatfs), "fstatfs" },
[ 58] = { 1, 0, SEN(umask), "umask" },
[ 59] = { 3, TD, SEN(getdents), "getdents" },
[ 60] = { 3, TD, SEN(getdents64), "getdents64" },
-[ 61] = { 3, TD, SEN(fcntl), "fcntl64" },
+[ 61] = { 3, TD, SEN(fcntl64), "fcntl64" },
[ 62] = { 6, TD, SEN(fallocate), "fallocate" },
[ 63] = { 6, TD, SEN(fadvise64_64), "fadvise64_64" },
[ 64] = { 2, TF, SEN(utime), "utime" },