glibc/bits
Albert ARIBAUD (3ADEV) d51f99ce80 Y2038: Add 64-bit time for all architectures
glibc support for 64-bit time_t on 32-bit architectures
will involve:

- Using 64-bit times inside glibc, with conversions
  to and from 32-bit times taking place as necessary
  for interfaces using such times.

- Adding 64-bit-time support in the glibc public API.
  This support should be dynamic, i.e. glibc should
  provide both 32-bit and 64-bit implementations and
   let user code choose at compile time whether to use
   the 32-bit or 64-bit interfaces.

This requires a glibc-internal name for a type for times
that are always 64-bit.

Based on __TIMESIZE, a new macro is defined, __TIME64_T_TYPE,
 which is always the right __*_T_TYPE to hold a 64-bit-time.
__TIME64_T_TYPE equals __TIME_T_TYPE if __TIMESIZE equals 64
and equals __SQUAD_T_TYPE otherwise.

__time64_t can then replace uses of internal_time_t.

This patch was tested by running 'make check' on branch
master then applying this patch and its predecessor and
running 'make check' again, and checking that both 'make
check' yield identical results. This was done on
x86_64-linux-gnu and i686-linux-gnu.

	* bits/time64.h: New file.
	* include/time.h: Replace internal_time_t with __time64_t.
	* posix/bits/types (__time64_t): Add.
	* stdlib/Makefile: Add bits/time64.h to includes.
	* time/tzfile.c: Replace internal_time_t with __time64_t.
2018-10-24 22:09:34 +02:00
..
types hurd: remove non-standard siginfo symbol 2018-04-19 21:43:44 +02:00
byteswap.h
confname.h
dirent.h Define _DIRENT_MATCHES_DIRENT64 regardless 2018-03-05 18:10:04 -03:00
dlfcn.h
elfclass.h
endian.h
environments.h
errno.h
fcntl.h
fenv.h
fenvinline.h
floatn-common.h powerpc: Fix the compiler type used with C++ when -mabi=ieeelongdouble 2018-05-11 18:05:03 -03:00
floatn.h
flt-eval-method.h
fp-fast.h
fp-logb.h
hwcap.h
in.h hurd: Fix symbols exposition 2018-04-19 20:14:45 +02:00
indirect-return.h Add <bits/indirect-return.h> 2018-07-24 07:55:47 -07:00
ioctl-types.h
ioctls.h
ipc.h
ipctypes.h
iscanonical.h
libc-header-start.h
libm-simd-decl-stubs.h
link.h
local_lim.h
long-double.h
math-vector.h
mathdef.h
mathinline.h
mman.h
mqueue.h
msq.h
netdb.h
param.h
poll.h
posix_opt.h
pthreadtypes.h
resource.h hurd: Add missing RLIM_SAVED_MAX/CUR 2018-04-19 23:55:13 +02:00
sched.h hurd: Avoid exposing all <sched.h> symbols from sys/types.h 2018-04-19 20:24:36 +02:00
select.h
sem.h
setjmp.h
shm.h hurd: Fix shmid_ds's shm_segsz field type 2018-06-02 21:52:43 +02:00
sigaction.h hurd: Fix includability of <hurd/signal.h> in all standards 2018-03-05 22:50:29 +01:00
sigcontext.h
sigevent-consts.h
siginfo-consts.h
signum-generic.h
signum.h
sigstack.h
sigthread.h
sockaddr.h
socket.h
ss_flags.h
stat.h
statfs.h
statvfs.h
stdint-intn.h
stdint-uintn.h
stdlib-bsearch.h
stropts.h
sys_errlist.h
syslog-path.h
sysmacros.h
termios.h hurd: Fix termios.h symbols 2018-04-19 23:50:12 +02:00
time64.h Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
time.h
timesize.h Y2038: provide size of default time_t for target architecture 2018-10-24 11:37:09 +02:00
typesizes.h
uintn-identity.h
uio_lim.h
uio-ext.h Update RWF_SUPPORTED for Linux kernel 4.16 [BZ #22947] 2018-04-03 12:19:29 -07:00
utmp.h
utsname.h
waitflags.h
waitstatus.h
wchar.h
wordsize.h
xtitypes.h