y2038:clock_nanosleep for timespec64
v3 cover y2038:clock_nanosleep for timespec64
This patch serial is aimed to introduce a new syscall clock_nanosleep64 which is specific for 64-bit time_t.
---
v2:
1, introduce a new helper __cobalt_clock_nanosleep64 given the behavior in compat syscall is identical.
2, REALTIME --> MONOTONIC in testsuite
3, more combinations of parameters in testsuite
4, smokey warning if clock_gettime goes wrong in testsuite 5, remove magic number in testsuite
v3:
1, check lower boundary if nanosleep sleeps long enough
chensong (3):
y2038: cobalt/posix/clock: Adding clock_nanosleep64
y2038: lib/cobalt/clock: dispatch clock_nanosleep
y2038: testsuite/smokey/y2038: testcase for nanosleep64
include/cobalt/uapi/syscall.h | 1 + kernel/cobalt/posix/clock.c | 30 ++++++++++++++ kernel/cobalt/posix/clock.h | 9 +++++ kernel/cobalt/posix/syscall32.c | 9 +++++ kernel/cobalt/posix/syscall32.h | 6 +++ lib/cobalt/clock.c | 5 +++ testsuite/smokey/y2038/syscall-tests.c | 72 ++++++++++++++++++++++++++++++++++ 7 files changed, 132 insertions(+)
Signature · 1 line
2.7.4
Florian Bezdeka
AppliedQuoted 20 lines · Song Chen
This patch serial is aimed to introduce a new syscall
clock_nanosleep64which is specific for 64-bittime_t.---
v2:
1, introduce a new helper__cobalt_clock_nanosleep64given the behavior in compat syscall is identical.
2, REALTIME --> MONOTONIC in testsuite
3, more combinations of parameters in testsuite
4, smokey warning ifclock_gettimegoes wrong in testsuite 5, remove magic number in testsuitev3:
1, check lower boundary if nanosleep sleeps long enoughchensong (3):
y2038: cobalt/posix/clock: Addingclock_nanosleep64
y2038:lib/cobalt/clock: dispatchclock_nanosleep
y2038: testsuite/smokey/y2038: testcase for nanosleep64
Quoted 9 lines
include/cobalt/uapi/syscall.h | 1 + kernel/cobalt/posix/clock.c | 30 ++++++++++++++ kernel/cobalt/posix/clock.h | 9 +++++ kernel/cobalt/posix/syscall32.c | 9 +++++ kernel/cobalt/posix/syscall32.h | 6 +++ lib/cobalt/clock.c | 5 +++ testsuite/smokey/y2038/syscall-tests.c | 72 ++++++++++++++++++++++++++++++++++ 7 files changed, 132 insertions(+)
I applied this series with some minor modifications to florian/y2038. I will send out a series together with the {s,g}ettime64 stuff later today.
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux