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 Unify and simplify bits/byteswap.h, bits/byteswap-16.h headers (bug 14508, bug 15512, bug 17082, bug 20530). 2018-02-06 21:55:08 +00:00
confname.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
dirent.h Define _DIRENT_MATCHES_DIRENT64 regardless 2018-03-05 18:10:04 -03:00
dlfcn.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
elfclass.h Update. 1999-07-27 05:53:25 +00:00
endian.h Update. 1997-11-26 04:23:08 +00:00
environments.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
errno.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fcntl.h hurd: Fix comments for FREAD and FWRITE 2018-01-29 23:00:17 +01:00
fenv.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fenvinline.h Update. 1999-11-11 01:05:26 +00:00
floatn-common.h powerpc: Fix the compiler type used with C++ when -mabi=ieeelongdouble 2018-05-11 18:05:03 -03:00
floatn.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
flt-eval-method.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fp-fast.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fp-logb.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hwcap.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
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 Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ioctls.h Update. 1997-11-26 04:23:08 +00:00
ipc.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ipctypes.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
iscanonical.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libc-header-start.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libm-simd-decl-stubs.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
link.h * csu/elf-init.c (__libc_csu_fini): Don't do anything here. 2005-01-06 22:40:27 +00:00
local_lim.h Update. 1997-10-15 05:34:02 +00:00
long-double.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
math-vector.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mathdef.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mathinline.h * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline. 2007-03-17 17:04:28 +00:00
mman.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mqueue.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
msq.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
netdb.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
poll.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
posix_opt.h Update. 1997-10-15 05:34:02 +00:00
pthreadtypes.h 2002-11-10 Roland McGrath <roland@redhat.com> 2002-11-10 23:22:35 +00:00
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 Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sem.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
setjmp.h Update. 1997-11-26 04:23:08 +00:00
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 Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sigevent-consts.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
siginfo-consts.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
signum-generic.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
signum.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sigstack.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sigthread.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sockaddr.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
socket.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ss_flags.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stat.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
statfs.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
statvfs.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stdint-intn.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stdint-uintn.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stdlib-bsearch.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stropts.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sys_errlist.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
syslog-path.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sysmacros.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
termios.h hurd: Fix termios.h symbols 2018-04-19 23:50:12 +02:00
time.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
time64.h Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
timesize.h Y2038: provide size of default time_t for target architecture 2018-10-24 11:37:09 +02:00
typesizes.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
uintn-identity.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
uio-ext.h Update RWF_SUPPORTED for Linux kernel 4.16 [BZ #22947] 2018-04-03 12:19:29 -07:00
uio_lim.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
utmp.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
utsname.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
waitflags.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
waitstatus.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
wchar.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
wordsize.h Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00
xtitypes.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00