Skip to content

Commit f12bd8e

Browse files
committed
signal to kernel headers that time_t is 64-bit
linux/input.h and perhaps others use this macro to determine whether the userspace time_t is 64-bit when potentially defining types in terms of time_t and derived structures. the name __USE_TIME_BITS64 is unfortunate; it really should have been in the __UAPI namespace. but this is what was chosen back in v4.16 when first preparing input.h for time64 userspace, presumably based on expectations about what the glibc-internal features.h macro for time64 would be, and changing it now would just put a new minimum version requirement on kernel headers. the __USE_TIME_BITS64 macro is not intended as a public interface. it is purely an internal contract between libc and Linux uapi headers.
1 parent 9432bbd commit f12bd8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/alltypes.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#define __LITTLE_ENDIAN 1234
22
#define __BIG_ENDIAN 4321
3+
#define __USE_TIME_BITS64 1
34

45
TYPEDEF unsigned _Addr size_t;
56
TYPEDEF unsigned _Addr uintptr_t;

0 commit comments

Comments
 (0)