* futex.c (SYS_FUNC(futex)): Remove.
[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(futex_time32)): New function.
* linux/64/syscallent.h: Replace SEN(futex) with SEN(futex_time64).
* linux/alpha/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/powerpc64/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/32/syscallent.h: Replace SEN(futex) with SEN(futex_time32).
* 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/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
return RVAL_DECODED;
}
-SYS_FUNC(futex)
+#if HAVE_ARCH_TIME32_SYSCALLS
+SYS_FUNC(futex_time32)
{
- return do_futex(tcp, print_timespec);
+ return do_futex(tcp, print_timespec32);
}
+#endif
SYS_FUNC(futex_time64)
{
[ 95] = { 5, TP, SEN(waitid), "waitid" },
[ 96] = { 1, 0, SEN(set_tid_address), "set_tid_address" },
[ 97] = { 1, TP, SEN(unshare), "unshare" },
-[ 98] = { 6, 0, SEN(futex), "futex" },
+[ 98] = { 6, 0, SEN(futex_time32), "futex" },
[ 99] = { 2, 0, SEN(set_robust_list), "set_robust_list" },
[100] = { 3, 0, SEN(get_robust_list), "get_robust_list" },
[101] = { 2, 0, SEN(nanosleep), "nanosleep" },
[ 95] = { 5, TP, SEN(waitid), "waitid" },
[ 96] = { 1, 0, SEN(set_tid_address), "set_tid_address" },
[ 97] = { 1, TP, SEN(unshare), "unshare" },
-[ 98] = { 6, 0, SEN(futex), "futex" },
+[ 98] = { 6, 0, SEN(futex_time64), "futex" },
[ 99] = { 2, 0, SEN(set_robust_list), "set_robust_list" },
[100] = { 3, 0, SEN(get_robust_list), "get_robust_list" },
[101] = { 2, 0, SEN(nanosleep), "nanosleep" },
[391] = { 2, TF, SEN(removexattr), "removexattr" },
[392] = { 2, TF, SEN(removexattr), "lremovexattr" },
[393] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
-[394] = { 6, 0, SEN(futex), "futex" },
+[394] = { 6, 0, SEN(futex_time64), "futex" },
[395] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[396] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[397] = { 5, 0, SEN(tuxcall), "tuxcall" }, /* not implemented */
[237] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[238] = { 2, TS, SEN(kill), "tkill" },
[239] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
-[240] = { 6, 0, SEN(futex), "futex" },
+[240] = { 6, 0, SEN(futex_time32), "futex" },
[241] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[242] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[243] = { 2, TM, SEN(io_setup), "io_setup" },
[189] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[190] = { 2, TS, SEN(kill), "tkill" },
[191] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
-[192] = { 6, 0, SEN(futex), "futex" },
+[192] = { 6, 0, SEN(futex_time32), "futex" },
[193] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[194] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[195] = { 2, 0, SEN(capget), "capget" },
[237] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[238] = { 2, TS, SEN(kill), "tkill" },
[239] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
-[240] = { 6, 0, SEN(futex), "futex" },
+[240] = { 6, 0, SEN(futex_time32), "futex" },
[241] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[242] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[243] = { 1, 0, SEN(set_thread_area), "set_thread_area" },
[207] = { 4, TD, SEN(readahead), "readahead" },
[208] = { 2, TS, SEN(kill), "tkill" },
[209] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
-[210] = { 6, 0, SEN(futex), "futex" },
+[210] = { 6, 0, SEN(futex_time32), "futex" },
[211] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[212] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[213] = { 5, 0, SEN(printargs), "set_thread_area" },
[237] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[238] = { 2, TS, SEN(kill), "tkill" },
[239] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
-[240] = { 6, 0, SEN(futex), "futex" },
+[240] = { 6, 0, SEN(futex_time32), "futex" },
[241] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[242] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[243] = { 1, 0, SEN(set_thread_area), "set_thread_area" },
[1024 + 203] = { 2, TF, SEN(removexattr), "lremovexattr" },
[1024 + 204] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[1024 + 205] = { 2, TS, SEN(kill), "tkill" },
-[1024 + 206] = { 6, 0, SEN(futex), "futex" },
+[1024 + 206] = { 6, 0, SEN(futex_time64), "futex" },
[1024 + 207] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[1024 + 208] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[1024 + 209] = { 1, 0, SEN(set_tid_address), "set_tid_address" },
[232] = { 2, TF, SEN(removexattr), "removexattr" },
[233] = { 2, TF, SEN(removexattr), "lremovexattr" },
[234] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
-[235] = { 6, 0, SEN(futex), "futex" },
+[235] = { 6, 0, SEN(futex_time32), "futex" },
[236] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
[237] = { 3, TM, SEN(mincore), "mincore" },
[238] = { 3, TM, SEN(madvise), "madvise" },
[237] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[238] = { 2, TS, SEN(kill), "tkill" },
[239] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
-[240] = { 6, 0, SEN(futex), "futex" },
+[240] = { 6, 0, SEN(futex_time32), "futex" },
[241] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[242] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[243] = { 1, 0, SEN(set_thread_area), "set_thread_area" },
[6191] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[6192] = { 2, TS, SEN(kill), "tkill" },
[6193] = { 1, 0, SEN(time), "time" },
-[6194] = { 6, 0, SEN(futex), "futex" },
+[6194] = { 6, 0, SEN(futex_time32), "futex" },
[6195] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[6196] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[6197] = { 3, 0, SEN(printargs), "cacheflush" },
[5191] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[5192] = { 2, TS, SEN(kill), "tkill" },
[5193] = { 1, 0, SEN(time), "time" },
-[5194] = { 6, 0, SEN(futex), "futex" },
+[5194] = { 6, 0, SEN(futex_time64), "futex" },
[5195] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[5196] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[5197] = { 3, 0, SEN(printargs), "cacheflush" },
[4235] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[4236] = { 2, TS, SEN(kill), "tkill" },
[4237] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
-[4238] = { 6, 0, SEN(futex), "futex" },
+[4238] = { 6, 0, SEN(futex_time32), "futex" },
[4239] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[4240] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[4241] = { 2, TM, SEN(io_setup), "io_setup" },
[218] = { 2, TF, SEN(removexattr), "removexattr" },
[219] = { 2, TF, SEN(removexattr), "lremovexattr" },
[220] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
-[221] = { 6, 0, SEN(futex), "futex" },
+[221] = { 6, 0, SEN(futex_time32), "futex" },
[222] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[223] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[224] = { },
[218] = { 2, TF, SEN(removexattr), "removexattr" },
[219] = { 2, TF, SEN(removexattr), "lremovexattr" },
[220] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
-[221] = { 6, 0, SEN(futex), "futex" },
+[221] = { 6, 0, SEN(futex_time64), "futex" },
[222] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[223] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[224] = { },
[235] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[236] = { 0, PU|NF, SEN(gettid), "gettid" },
[237] = { 2, TS, SEN(kill), "tkill" },
-[238] = { 6, 0, SEN(futex), "futex" },
+[238] = { 6, 0, SEN(futex_time32), "futex" },
[239] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[240] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[241] = { 3, TS, SEN(tgkill), "tgkill" },
[235] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[236] = { 0, PU|NF, SEN(gettid), "gettid" },
[237] = { 2, TS, SEN(kill), "tkill" },
-[238] = { 6, 0, SEN(futex), "futex" },
+[238] = { 6, 0, SEN(futex_time64), "futex" },
[239] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[240] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[241] = { 3, TS, SEN(tgkill), "tgkill" },
[237] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[238] = { 2, TS, SEN(kill), "tkill" },
[239] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
-[240] = { 6, 0, SEN(futex), "futex" },
+[240] = { 6, 0, SEN(futex_time32), "futex" },
[241] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[242] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[243 ... 244] = { },
[265] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[266] = { 2, TS, SEN(kill), "tkill" },
[267] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
-[268] = { 6, 0, SEN(futex), "futex" },
+[268] = { 6, 0, SEN(futex_time64), "futex" },
[269] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[270] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[271 ... 272] = { },
[139] = { 2, TF|TST|TSTA, SEN(stat64), "stat64" },
[140] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
[141] = { 3, TN, SEN(getpeername), "getpeername" },
-[142] = { 6, 0, SEN(futex), "futex" },
+[142] = { 6, 0, SEN(futex_time32), "futex" },
[143] = { 0, PU|NF, SEN(gettid), "gettid" },
[144] = { 2, 0, SEN(getrlimit), "getrlimit" },
[145] = { 2, 0, SEN(setrlimit), "setrlimit" },
[139] = { 2, TF|TST|TSTA, SEN(stat64), "stat64" },
[140] = { 4, TD|TN, SEN(sendfile64), "sendfile64" },
[141] = { 3, TN, SEN(getpeername), "getpeername" },
-[142] = { 6, 0, SEN(futex), "futex" },
+[142] = { 6, 0, SEN(futex_time64), "futex" },
[143] = { 0, PU|NF, SEN(gettid), "gettid" },
[144] = { 2, 0, SEN(getrlimit), "getrlimit" },
[145] = { 2, 0, SEN(setrlimit), "setrlimit" },
[199] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[200] = { 2, TS, SEN(kill), "tkill" },
[201] = { 1, 0, SEN(time), "time" },
-[202] = { 6, 0, SEN(futex), "futex" },
+[202] = { 6, 0, SEN(futex_time64), "futex" },
[203] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[204] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[205] = { 1, 0, SEN(printargs), "set_thread_area#64" },
[199] = { 2, TD, SEN(fremovexattr), "fremovexattr" },
[200] = { 2, TS, SEN(kill), "tkill" },
[201] = { 1, 0, SEN(time), "time" },
-[202] = { 6, 0, SEN(futex), "futex" },
+[202] = { 6, 0, SEN(futex_time64), "futex" },
[203] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[204] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[205] = { 1, 0, SEN(set_thread_area), "set_thread_area" },
[188] = { 2, 0, SEN(setrlimit), "setrlimit" },
[189] = { 2, 0, SEN(getrlimit), "getrlimit" },
[190] = { 2, 0, SEN(getrusage), "getrusage" },
-[191] = { 6, 0, SEN(futex), "futex" },
+[191] = { 6, 0, SEN(futex_time32), "futex" },
[192] = { 2, 0, SEN(gettimeofday), "gettimeofday" },
[193] = { 2, 0, SEN(settimeofday), "settimeofday" },
[194] = { 1, 0, SEN(adjtimex32), "adjtimex" },