]> granicus.if.org Git - strace/commitdiff
Implement and use new parsers of clock_nanosleep syscall
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 12 May 2019 22:45:45 +0000 (22:45 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 12 May 2019 22:45:45 +0000 (22:45 +0000)
* 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.

26 files changed:
linux/32/syscallent.h
linux/64/syscallent.h
linux/alpha/syscallent.h
linux/arm/syscallent.h
linux/avr32/syscallent.h
linux/bfin/syscallent.h
linux/hppa/syscallent.h
linux/i386/syscallent.h
linux/ia64/syscallent.h
linux/m68k/syscallent.h
linux/microblaze/syscallent.h
linux/mips/syscallent-n32.h
linux/mips/syscallent-n64.h
linux/mips/syscallent-o32.h
linux/powerpc/syscallent.h
linux/powerpc64/syscallent.h
linux/s390/syscallent.h
linux/s390x/syscallent.h
linux/sh/syscallent.h
linux/sh64/syscallent.h
linux/sparc/syscallent.h
linux/sparc64/syscallent.h
linux/x32/syscallent.h
linux/x86_64/syscallent.h
linux/xtensa/syscallent.h
time.c

index 95e28a36bf696202411673b36d7831183cc5b666..7f0e9c9be7931927f018e39e7759d52878eedc78 100644 (file)
 [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"        },
index 850a1dd1567d32aeca7adfb7ef02ef19df82129a..bc8b29fce9fef65853f88adaa06f3c3785cbe5f7 100644 (file)
 [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"        },
index ae3d23a65510adcb425c2ab7b8f348c65a34b3a4..6af9240cdd0759934966fd382a2563ea203eaffa 100644 (file)
 [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"                },
index 644369f2993d53f9df6c440948d228d8cd30f50a..50b19c612502501698b3c4b59d8aaa8e3aa8c26f 100644 (file)
 [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"                },
index 658c8a2fddb211d4a930740eff93bc28d05efef7..1c38aa8966fa346d50a2dab17b9a5d11768f365c 100644 (file)
 [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"                },
index 6f0b954b0e1074db3544fedac4c26ff56b65722c..feea293df989fffabdd1f15dacd9ac1539bdad62 100644 (file)
 [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"                },
index 9c245511c8ccf72a3e4cc80158d74b6025712e2a..78efa407829fe090723a70faee1d540e969c14df 100644 (file)
 [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"         },
index 9bcb55b3fc4a632b456137a0bc6362ca16c1d7a2..ccea1c1a96bf3a7c2e192779836efeea5603e897 100644 (file)
 [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"                },
index cdc72850173527f4c14f93dcde72c13dd2645de5..5bae4981c1f25b837e9dbeeccb6e2c65d26f6d1b 100644 (file)
 [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"                 },
index 428ed6ef920595ace795cfeed951bd464160dbe7..41339f246de9d774f572a6413e9831752d8f17c5 100644 (file)
 [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"                },
index b616845a69577362f7779ff948dfdb2c0bdabda0..b2f6d5338c6f92b3b75ecf79f199b9855e912139 100644 (file)
 [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"                },
index 06001adfc3b37b1ff38d53a5c50fd0b23a3147c4..2516b655e8f6fe1ff9271f8d9bd017037b6e582d 100644 (file)
 [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"                 },
index 4c2ff19a474f2c2c7f7a5c60186bdc7a0f98d4cb..6bdfbf8971cb012723fb750e5145109bd7f7b1c9 100644 (file)
 [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"                 },
index 92023dd8b1f644c778aa26f2023ae9a9202f9f9c..a29649aee1bc1fe52db411bc66f93ba49290b4bb 100644 (file)
 [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"                 },
index 8d001062f0bd3c6996a7446e2c5e38ee89011a3c..627117c6247f9c9906c5b5bd093871eac36445ec 100644 (file)
 [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"                },
index cc5b15a37d96b78121f076ae146936d9dc33a6da..12e2368aa46608f612c101b142f4bef66cbd2758 100644 (file)
 [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"                },
index 2b171e63e735981817e9b520914c9408969c9a62..2168bcdcadbddf3784861833a184c9e667276383 100644 (file)
 [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"              },
index 3848e5c300b4b1e24de6d12152de125457d99ba5..37f4e23d165af4f11428e358d3cd9e4a05aa7e79 100644 (file)
 [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"              },
index 8e8ea67168af4850e7bfcde7182768126a2a429e..b039fb7a62e3afcabcf0eb9a3b6e464d171f5a69 100644 (file)
 [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"                },
index 3c88eee59ead9091ae7f9173d713b3355c8f514c..ab9e61e9321fded9c60e7557f2a3d96b242a949c 100644 (file)
 [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"                },
index e61d4aef422a99d177c457eb79bd17d20abfb316..7baf6ff8e527e3ebea5afcfcb07463e892131545 100644 (file)
 [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"         },
index c723c550fe14119f4cf0d7e38ce8e3c8b244655d..917b0ceb6b0543840e109df66420894606d9f95c 100644 (file)
 [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"         },
index 7f9172d66b899ca8767b2a14910a8cb767f04d6f..63f1067112c4f33a424cef0615fb262179f5f0e3 100644 (file)
 [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"             },
index fc759fb7c85015ee27859c5466ab4a55ee30ebec..3d33bb579f562f25a533e7b207496cba7d7e7bfc 100644 (file)
 [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"             },
index 6cf512374811228cc2c430c96d83b34ff518430f..8af8193415e7c48b93d0adb5eba67947effc61fc 100644 (file)
 [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"         },
diff --git a/time.c b/time.c
index 364fca4de5954f04a732effd32b8a48000cb1e0d..fba56e365b57b03f45b84469537a97aac14e32d6 100644 (file)
--- a/time.c
+++ b/time.c
@@ -296,10 +296,12 @@ do_clock_nanosleep(struct tcb *const tcp, const print_obj_by_addr_fn print_ts)
        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)
 {