[PATCH v7 00/14] Misc patches for improving y2038 calls

Alistair Francis alistair.francis at wdc.com
Fri Apr 17 16:47:10 UTC 2020


These are some misc patches for improving y2038 safe syscalls and
preparing for RV32 support.

Alistair Francis (14):
  time: Protect the print_timezone() function
  kernel_rusage.h: Add a internal rusage struct
  tests/getrusage: Correctly use the long types from the rusage struct
  tests/waitid: Correctly use the long types from the rusage struct
  kernel_timespec.h: Add a kernel_old_timespec_t struct
  linux/arch_defs_.h: Add a HAVE_ARCH_TIMESPEC32 define
  print_timespec: Print the 32-bit timespec for HAVE_ARCH_TIMESPEC32
  tests/sockopt-timestamp: Use the old time_t struct for old timestamps
  tests/msg_control: Use the old time_t struct for old timestamps
  v4l2: Print out the 64-bit timestamp if we have a 64-bit timesize
  tests/wait4: Skip tests if __NR_wait4 syscall isn't defined
  tests/xettimeofday: Skip tests if __NR_gettimeofday syscall isn't
    defined
  tests/semtimedop: Skip tests if __NR_semtimedop isn't defined
  tests/xetitimer: Use syscalls instead of libc functions

 Makefile.am               |   1 +
 configure.ac              |  17 ------
 defs.h                    |   4 +-
 kernel_rusage.h           |  32 +++++++++++
 kernel_timespec.h         |   7 ++-
 linux/arch_defs_.h        |  12 +++++
 print_timespec.c          |   8 +++
 print_timespec32.c        |   4 +-
 printrusage.c             |  24 ++-------
 tests/getrusage.c         |   5 +-
 tests/msg_control.c       |   9 ++--
 tests/semtimedop.c        |  10 ++++
 tests/sockopt-timestamp.c |   7 ++-
 tests/wait4.c             |  35 +++++++-----
 tests/waitid.c            | 108 +++++++-------------------------------
 tests/xetitimer.c         |  30 ++++++-----
 tests/xettimeofday.c      |   9 ++++
 time.c                    |   2 +
 v4l2.c                    |   4 ++
 19 files changed, 163 insertions(+), 165 deletions(-)
 create mode 100644 kernel_rusage.h

-- 
2.26.0



More information about the Strace-devel mailing list