Skip to content

syscalls: Add tests to verify the _time_high fields

Cyril Hrubis ltp 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/20 of 6 patches 0 repliesNew
  2. v2 posting 1/20 of 6 patches 0 repliesSuperseded
  3. v15 patches 0 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v2 thread

Cover letter [LTP] [PATCH V2 0/6] syscalls: Add tests to verify the _time_high fields

Hi!
Looking at the travis it looks like we do have a problem with missing __kernel_ulong_t on older kernel headers:

https://api.travis-ci.org/v3/job/698929344/log.txt

Also looking into kernel headers it looks like it's defined to unsigned long unless on x32 which has unsigned long long. It seems that the types __kernel_long_t and __kernel_ulong_t firstly appeared in 3.4 along with the x32 so I guess that we will need a fallback definition in UAPI as well. And given that __kernel_long_t is defined we may need something as lapi/posix_types.h with:

#include "linux/posix_types.h"

#ifndef __kernel_long_t

# if (defined(__x86_64__) && defined(__ILP32__))
typedef long          __kernel_long_t
typedef unsigned long __kernel_ulong_t
# else
typedef long long          __kernel_long_t
typedef unsigned long long __kernel_ulong_t
# endif
#endif

Is that all or do I miss some 32bit ABI with 64bit syscalls?

Signature · 2 lines
Cyril Hrubis
[email protected]