Go to file
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
argp
assert
benchtests x86: Support RDTSCP for benchtests 2018-10-24 02:19:34 -07:00
bits Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
catgets
ChangeLog.old
conform Replace conform/list-header-symbols.pl with a Python script. 2018-08-31 21:19:51 +00:00
crypt Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
csu
ctype
debug __readlink_chk: Remove micro-optimization 2018-08-21 11:24:12 +02:00
dirent Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
dlfcn
elf Add more checks for valid ld.so.cache file (bug 18093) 2018-10-24 16:34:02 +02:00
gmon
gnulib
grp [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
gshadow
hesiod
htl hurd: Add missing symbols for proper libc_get/setspecific 2018-08-08 01:55:04 +02:00
hurd hurd: Fix exec usage of mach_setup_thread 2018-08-01 00:10:03 +02:00
iconv Remove unnecessary locking when reading iconv configuration [BZ #22062] 2018-10-17 17:47:29 +02:00
iconvdata
include Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
inet
intl
io Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
libio Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
locale
localedata Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
login
mach hurd: Fix exec usage of mach_setup_thread 2018-08-01 00:10:03 +02:00
malloc malloc: Add ChangeLog for accidentally committed change 2018-08-20 14:57:13 +02:00
manual [manual] Job control is no longer optional. 2018-10-17 14:10:51 -04:00
math Do not allow divide-by-zero exception for pow(+/- 0, -Inf). 2018-10-17 21:23:40 +00:00
mathvec
misc Fix tst-preadvwritev2 build failure on HURD 2018-10-23 14:57:02 -03:00
nis Don't build libnsl for new ABIs 2018-09-24 10:23:10 +02:00
nptl Fix race in pthread_mutex_lock while promoting to PTHREAD_MUTEX_ELISION_NP [BZ #23275] 2018-10-17 12:23:04 +02:00
nptl_db
nscd [BZ #20271] Add newlines in __libc_fatal calls. 2018-08-31 18:04:32 -07:00
nss Increase timeout of nss/tst-nss-files-hosts-multi 2018-10-09 15:57:01 +01:00
po Update translations for be. 2018-08-24 22:26:41 -04:00
posix Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
pwd
resolv
resource resource: Update struct rusage comments [BZ #23689] 2018-10-19 18:03:21 +02:00
rt Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
scripts Use Linux 4.19 in build-many-glibcs.py. 2018-10-22 16:49:37 +00:00
setjmp
shadow
signal
socket
soft-fp
stdio-common Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
stdlib Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
streams
string Fix strstr bug with huge needles (bug 23637) 2018-09-19 16:50:18 +01:00
sunrpc
support Adjust name of ld.so in test-container.c. 2018-10-04 13:07:29 +02:00
sysdeps Y2038: provide size of default time_t for target architecture 2018-10-24 11:37:09 +02:00
sysvipc
termios
time Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
timezone Don't reduce test timeout to less than default 2018-10-17 09:34:13 +02:00
wcsmbs Stop c32rtomb and mbrtoc32 aliasing wcrtomb and mbrtowc (bug 23793). 2018-10-22 14:52:14 +00:00
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
ChangeLog Y2038: Add 64-bit time for all architectures 2018-10-24 22:09:34 +02:00
config.h.in
config.make.in Fix ifunc support with DT_TEXTREL segments (BZ#20480) 2018-09-25 16:27:50 -03:00
configure Fix ifunc support with DT_TEXTREL segments (BZ#20480) 2018-09-25 16:27:50 -03:00
configure.ac Fix ifunc support with DT_TEXTREL segments (BZ#20480) 2018-09-25 16:27:50 -03:00
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Don't build libnsl for new ABIs 2018-09-24 10:23:10 +02:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Don't build libnsl for new ABIs 2018-09-24 10:23:10 +02:00
Makefile Remove leading space from testrun.sh 2018-09-26 10:13:13 +02:00
Makefile.in
Makerules Don't build libnsl for new ABIs 2018-09-24 10:23:10 +02:00
NEWS powerpc: Only enable TLE with PPC_FEATURE2_HTM_NOSC 2018-09-21 10:18:03 -07:00
o-iterator.mk
README
Rules Add test-in-container infrastructure. 2018-08-22 21:20:37 -04:00
shlib-versions
test-skeleton.c
version.h Open master branch for glibc 2.29 development 2018-08-01 01:35:02 -04:00

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.