Skip to contentSkip to conversation

y2038:clock_nanosleep for timespec64

PATCH Applied Song Chen 2 participants 2 messages Apr 27, 2021 – Jun 1, 2021

lore
Share & tools
lore

Song Chen

author
#0 lore raw

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
#1 lore raw
Quoted 20 lines · Song Chen

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

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