Skip to content

y2038 groundwork and first steps

Jan Kiszka xenomai 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest9 patches 12 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9cobalt/kernel: y2038: convert struct timespec to timespec64include/cobalt/kernel/clock.h include/cobalt/kernel/compat.h include/cobalt/kernel/dovetail/pipeline/clock.h +31 more+262 -1642 replies
2/9lib: y2038: convert to internal timespec typelib/alchemy/task.c lib/copperplate/threadobj.c lib/psos/task.c +2 more+26 -130 replies
3/9cobalt/kernel: y2038: convert struct itimerspec to itimerspec64include/cobalt/kernel/compat.h include/cobalt/uapi/kernel/types.h kernel/cobalt/include/asm-generic/xenomai/syscall.h +7 more+101 -510 replies
4/9cobalt/kernel: y2038: convert struct timex to __kernel_timexinclude/cobalt/kernel/clock.h include/cobalt/kernel/compat.h include/cobalt/uapi/kernel/types.h +6 more+81 -220 replies
5/9cobalt/kernel: y2038: switch to new legacy type namesinclude/cobalt/kernel/compat.h kernel/cobalt/include/asm-generic/xenomai/wrappers.h kernel/cobalt/posix/compat.c +3 more+66 -630 replies
6/9cobalt/sem: y2038: Fixing the sem_timedwait syscall for 32 bit systemskernel/cobalt/posix/sem.c kernel/cobalt/posix/sem.h kernel/cobalt/posix/syscall32.c +1 more+29 -290 replies
7/9y2038: Adding sem_timedwait64include/cobalt/kernel/time.h include/cobalt/uapi/syscall.h kernel/cobalt/Makefile +5 more+91 -00 replies
8/9y2038: Add tests for the sc_cobalt_sem_timedwait64 syscallconfigure.ac testsuite/smokey/Makefile.am testsuite/smokey/y2038/Makefile.am +1 more+190 -20 replies
9/9y2038: lib/cobalt: Add support of sc_cobalt_sem_timedwait64lib/cobalt/semaphore.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/9] y2038 groundwork and first steps

Picking up from Philippe's queue:

This patch series prepares the tree for the upcoming y2038 work, converting obsolete/ambiguous time specification types to the proper ones introduced upstream by the v5.x kernel series.

In v2, feedback on the first round has been addressed, primarily regarding folding fixing into the patches that need them.

In addition, this includes 3 patches from Florian that add sem_timedwait64 system call and a test suite for it.

Jan

CC Florian Bezdeka <[email protected]>
CC Philippe Gerum <[email protected]>

Florian Bezdeka (4):
cobalt/sem: y2038: Fixing the sem_timedwait syscall for 32 bit systems
y2038: Adding sem_timedwait64
y2038: Add tests for the sc_cobalt_sem_timedwait64 syscall
y2038: lib/cobalt: Add support of sc_cobalt_sem_timedwait64

Philippe Gerum (5):
cobalt/kernel: y2038: convert struct timespec to timespec64
lib: y2038: convert to internal timespec type cobalt/kernel: y2038: convert struct itimerspec to itimerspec64 cobalt/kernel: y2038: convert struct timex to __kernel_timex cobalt/kernel: y2038: switch to new legacy type names

 configure.ac                                  |   1 +
 include/cobalt/kernel/clock.h                 |  13 +-
 include/cobalt/kernel/compat.h                |  34 ++--
 .../cobalt/kernel/dovetail/pipeline/clock.h   |   4 +-
 include/cobalt/kernel/ipipe/pipeline/clock.h  |   4 +-
 include/cobalt/kernel/rtdm/fd.h               |   2 +-
 include/cobalt/kernel/time.h                  |  22 +++
 include/cobalt/uapi/kernel/types.h            |  53 ++++++
 include/cobalt/uapi/sched.h                   |  12 +-
 include/cobalt/uapi/syscall.h                 |   1 +
 kernel/cobalt/Makefile                        |   1 +
 .../include/asm-generic/xenomai/syscall.h     | 103 ++++++++++
 .../include/asm-generic/xenomai/wrappers.h    |   7 +
 kernel/cobalt/ipipe/clock.c                   |   2 +-
 kernel/cobalt/posix/clock.c                   |  44 ++---
 kernel/cobalt/posix/clock.h                   |  43 +++--
 kernel/cobalt/posix/compat.c                  |  86 ++++++---
 kernel/cobalt/posix/cond.c                    |  11 +-
 kernel/cobalt/posix/cond.h                    |   4 +-
 kernel/cobalt/posix/event.c                   |   8 +-
 kernel/cobalt/posix/event.h                   |   4 +-
 kernel/cobalt/posix/extension.h               |   4 +-
 kernel/cobalt/posix/io.c                      |   6 +-
 kernel/cobalt/posix/io.h                      |   2 +-
 kernel/cobalt/posix/monitor.c                 |   8 +-
 kernel/cobalt/posix/monitor.h                 |   4 +-
 kernel/cobalt/posix/mqueue.c                  |  21 +--
 kernel/cobalt/posix/mqueue.h                  |   8 +-
 kernel/cobalt/posix/mutex.c                   |  13 +-
 kernel/cobalt/posix/mutex.h                   |   6 +-
 kernel/cobalt/posix/sched.c                   |  16 +-
 kernel/cobalt/posix/sem.c                     |  60 +++---
 kernel/cobalt/posix/sem.h                     |  13 +-
 kernel/cobalt/posix/signal.c                  |   6 +-
 kernel/cobalt/posix/signal.h                  |   4 +-
 kernel/cobalt/posix/syscall32.c               |  93 +++++----
 kernel/cobalt/posix/syscall32.h               |  48 ++---
 kernel/cobalt/posix/thread.c                  |   6 +-
 kernel/cobalt/posix/timer.c                   |  30 +--
 kernel/cobalt/posix/timer.h                   |  16 +-
 kernel/cobalt/posix/timerfd.c                 |  22 +--
 kernel/cobalt/posix/timerfd.h                 |  12 +-
 kernel/cobalt/rtdm/fd.c                       |   4 +-
 kernel/cobalt/time.c                          |  29 +++
 kernel/cobalt/trace/cobalt-posix.h            |  34 ++--
 kernel/drivers/ipc/rtipc.c                    |   4 +-
 lib/alchemy/task.c                            |   9 +-
 lib/cobalt/semaphore.c                        |   5 +
 lib/copperplate/threadobj.c                   |   9 +-
 lib/psos/task.c                               |   9 +-
 lib/vxworks/kernLib.c                         |   6 +-
 lib/vxworks/taskLib.c                         |   6 +-
 testsuite/smokey/Makefile.am                  |   6 +-
 testsuite/smokey/y2038/Makefile.am            |   9 +
 testsuite/smokey/y2038/syscall-tests.c        | 176 ++++++++++++++++++
 55 files changed, 835 insertions(+), 328 deletions(-)
 create mode 100644 include/cobalt/kernel/time.h
 create mode 100644 kernel/cobalt/time.c
 create mode 100644 testsuite/smokey/y2038/Makefile.am
 create mode 100644 testsuite/smokey/y2038/syscall-tests.c
Signature · 1 line
2.26.2