* time.c (SYS_FUNC(clock_nanosleep)): Remove.
[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(clock_nanosleep_time32)): New
function.
* linux/64/syscallent.h: Replace SEN(clock_nanosleep) with
SEN(clock_nanosleep_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(clock_nanosleep) with
SEN(clock_nanosleep_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.
[112] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[113] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[114] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[115] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[115] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[116] = { 3, 0, SEN(syslog), "syslog" },
[117] = { 4, 0, SEN(ptrace), "ptrace" },
[118] = { 2, 0, SEN(sched_setparam), "sched_setparam" },
[112] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[113] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[114] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[115] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[115] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[116] = { 3, 0, SEN(syslog), "syslog" },
[117] = { 4, 0, SEN(ptrace), "ptrace" },
[118] = { 2, 0, SEN(sched_setparam), "sched_setparam" },
[419] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[420] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[421] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[422] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[422] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[423] = { 4, TI, SEN(semtimedop_time64), "semtimedop" },
[424] = { 3, TS, SEN(tgkill), "tgkill" },
[425] = { 2, TF|TST|TSTA, SEN(stat64), "stat64" },
[262] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[263] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[264] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[265] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[265] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[266] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[267] = { 3, TD|TFSF|TSFA, SEN(fstatfs64), "fstatfs64" },
[268] = { 3, TS, SEN(tgkill), "tgkill" },
[215] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[216] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[217] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[218] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[218] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[219] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[220] = { 3, TD|TFSF|TSFA, SEN(fstatfs64), "fstatfs64" },
[221] = { 3, TS, SEN(tgkill), "tgkill" },
[265] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[266] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[267] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[268] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[268] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[269] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[270] = { 3, TD|TFSF|TSFA, SEN(fstatfs64), "fstatfs64" },
[271] = { 3, TS, SEN(tgkill), "tgkill" },
[255] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[256] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[257] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[258] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[258] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[259] = { 3, TS, SEN(tgkill), "tgkill" },
[260] = { 6, TM, SEN(mbind), "mbind" },
[261] = { 5, TM, SEN(get_mempolicy), "get_mempolicy" },
[264] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[265] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[266] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[267] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[267] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[268] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[269] = { 3, TD|TFSF|TSFA, SEN(fstatfs64), "fstatfs64" },
[270] = { 3, TS, SEN(tgkill), "tgkill" },
[1024 + 229] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[1024 + 230] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[1024 + 231] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[1024 + 232] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[1024 + 232] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[1024 + 233] = { 3, TD|TFSF|TSFA, SEN(fstatfs64), "fstatfs64" },
[1024 + 234] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[1024 + 235] = { 6, TM, SEN(mbind), "mbind" },
[259] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[260] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[261] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[262] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[262] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[263] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[264] = { 3, TD|TFSF|TSFA, SEN(fstatfs64), "fstatfs64" },
[265] = { 3, TS, SEN(tgkill), "tgkill" },
[264] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[265] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[266] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[267] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[267] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[268] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[269] = { 3, TD|TFSF|TSFA, SEN(fstatfs64), "fstatfs64" },
[270] = { 3, TS, SEN(tgkill), "tgkill" },
[6225] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[6226] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[6227] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[6228] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[6228] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[6229] = { 3, TS, SEN(tgkill), "tgkill" },
[6230] = { 2, TF, SEN(utimes), "utimes" },
[6231] = { 6, TM, SEN(mbind), "mbind" },
[5221] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[5222] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[5223] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[5224] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[5224] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[5225] = { 3, TS, SEN(tgkill), "tgkill" },
[5226] = { 2, TF, SEN(utimes), "utimes" },
[5227] = { 6, TM, SEN(mbind), "mbind" },
[4262] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[4263] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[4264] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[4265] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[4265] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[4266] = { 3, TS, SEN(tgkill), "tgkill" },
[4267] = { 2, TF, SEN(utimes), "utimes" },
[4268] = { 6, TM, SEN(mbind), "mbind" },
[245] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[246] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[247] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[248] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[248] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[249] = { 2, 0, SEN(printargs), "swapcontext" },
[250] = { 3, TS, SEN(tgkill), "tgkill" },
[251] = { 2, TF, SEN(utimes), "utimes" },
[245] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[246] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[247] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[248] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[248] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[249] = { 2, 0, SEN(printargs), "swapcontext" },
[250] = { 3, TS, SEN(tgkill), "tgkill" },
[251] = { 2, TF, SEN(utimes), "utimes" },
[259] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[260] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[261] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[262] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[262] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[263] = { 5, 0, SEN(vserver), "vserver" },
[264] = { 6, TD, SEN(fadvise64_64), "fadvise64_64" },
[265] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[259] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[260] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[261] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[262] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[262] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[263] = { 5, 0, SEN(vserver), "vserver" },
[264] = { },
[265] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[264] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[265] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[266] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[267] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[267] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[268] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[269] = { 3, TD|TFSF|TSFA, SEN(fstatfs64), "fstatfs64" },
[270] = { 3, TS, SEN(tgkill), "tgkill" },
[292] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[293] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[294] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[295] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[295] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[296] = { 3, TF|TSF|TSFA, SEN(statfs64), "statfs64" },
[297] = { 3, TD|TFSF|TSFA, SEN(fstatfs64), "fstatfs64" },
[298] = { 3, TS, SEN(tgkill), "tgkill" },
[256] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[257] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[258] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[259] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[259] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[260] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[261] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[262] = { 4, 0, SEN(timer_settime), "timer_settime" },
[256] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[257] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[258] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[259] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[259] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[260] = { 3, 0, SEN(sched_getaffinity), "sched_getaffinity" },
[261] = { 3, 0, SEN(sched_setaffinity), "sched_setaffinity" },
[262] = { 4, 0, SEN(timer_settime), "timer_settime" },
[227] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[228] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[229] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[230] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[230] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[231] = { 1, TP|SE, SEN(exit), "exit_group" },
[232] = { 4, TD, SEN(epoll_wait), "epoll_wait" },
[233] = { 4, TD, SEN(epoll_ctl), "epoll_ctl" },
[227] = { 2, 0, SEN(clock_settime64), "clock_settime" },
[228] = { 2, 0, SEN(clock_gettime64), "clock_gettime" },
[229] = { 2, 0, SEN(clock_getres_time64), "clock_getres" },
-[230] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[230] = { 4, 0, SEN(clock_nanosleep_time64), "clock_nanosleep" },
[231] = { 1, TP|SE, SEN(exit), "exit_group" },
[232] = { 4, TD, SEN(epoll_wait), "epoll_wait" },
[233] = { 4, TD, SEN(epoll_ctl), "epoll_ctl" },
[244] = { 2, 0, SEN(clock_settime32), "clock_settime" },
[245] = { 2, 0, SEN(clock_gettime32), "clock_gettime" },
[246] = { 2, 0, SEN(clock_getres_time32), "clock_getres" },
-[247] = { 4, 0, SEN(clock_nanosleep), "clock_nanosleep" },
+[247] = { 4, 0, SEN(clock_nanosleep_time32), "clock_nanosleep" },
[248] = { 3, 0, SEN(timer_create), "timer_create" },
[249] = { 1, 0, SEN(timer_delete), "timer_delete" },
[250] = { 4, 0, SEN(timer_settime), "timer_settime" },
return 0;
}
-SYS_FUNC(clock_nanosleep)
+#if HAVE_ARCH_TIME32_SYSCALLS
+SYS_FUNC(clock_nanosleep_time32)
{
- return do_clock_nanosleep(tcp, print_timespec);
+ return do_clock_nanosleep(tcp, print_timespec32);
}
+#endif
SYS_FUNC(clock_nanosleep_time64)
{