Go to file
Lukasz Majewski 3102e28bd1 y2038: nptl: Convert pthread_rwlock_{clock|timed}{rd|wr}lock to support 64 bit time
The pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock,
pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock have been converted
to support 64 bit time.

This change uses new futex_abstimed_wait64 function in
./sysdeps/nptl/futex-helpers.c, which uses futex_time64 where possible.

The pthread_rwlock_{clock|timed}{rd|wr}lock only accepts absolute time.
Moreover, there is no need to check for NULL passed as *abstime pointer to the
syscalls as those calls have exported symbols marked with __nonull attribute
for abstime.

For systems with __TIMESIZE != 64 && __WORDSIZE == 32:
- Conversions between 64 bit time to 32 bit are necessary
- Redirection to pthread_rwlock_{clock|timed}{rd|wr}lock will provide support
  for 64 bit time

Build tests:
./src/scripts/build-many-glibcs.py glibcs

Run-time tests:
- Run specific tests on ARM/x86 32bit systems (qemu):
  https://github.com/lmajewski/meta-y2038 and run tests:
  https://github.com/lmajewski/y2038-tests/commits/master

Above tests were performed with Y2038 redirection applied as well as without
to test the proper usage of both __pthread_rwlock_{clock|timed}{rd|wr}lock64
and __pthread_rwlock_{clock|timed}{rd|wr}lock.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
2020-10-04 17:13:46 +02:00
argp
assert
benchtests bench-strcmp.c: Add workloads on page boundary 2020-09-24 10:46:38 -07:00
bits
catgets Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
ChangeLog.old Prepare for glibc 2.32 release. 2020-08-04 22:17:00 -04:00
conform
crypt
csu Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
ctype
debug
dirent
dlfcn
elf Set tunable value as well as min/max values 2020-09-29 09:03:47 -07:00
gmon
gnulib
grp grp: Implement fgetgrent_r using __nss_fgetent_r 2020-07-21 07:34:15 +02:00
gshadow shadow: Implement fgetspent_r using __nss_fgetent_r 2020-07-21 07:34:43 +02:00
hesiod
htl
hurd hurd: Rework sbrk 2020-08-05 23:52:04 +02:00
iconv intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00
iconvdata
include linux: Add time64 recvmmsg support 2020-09-28 17:28:39 -03:00
inet Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
intl intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00
io Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
libio Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
locale Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
localedata
login
mach
malloc Update mallinfo2 ABI, and test 2020-09-17 18:49:30 -04:00
manual Set tunable value as well as min/max values 2020-09-29 09:03:47 -07:00
math math: Regenerate auto-libm-test-out-j0 2020-08-08 16:41:40 -03:00
mathvec
misc Define __THROW to noexcept for C++11 and later 2020-09-22 11:54:38 +01:00
nis Remove obsolete default/nss code 2020-08-29 11:42:39 +02:00
nptl y2038: nptl: Convert pthread_rwlock_{clock|timed}{rd|wr}lock to support 64 bit time 2020-10-04 17:13:46 +02:00
nptl_db
nscd nscd: bump GC cycle during cache pruning (bug 26130) 2020-09-17 17:59:11 +02:00
nss Disable warnings due to deprecated libselinux symbols used by nss and nscd 2020-07-23 12:20:38 +02:00
po Update translations. 2020-08-04 20:31:51 -04:00
posix Fix handling of collating symbols in fnmatch (bug 26620) 2020-09-16 14:45:10 +02:00
pwd pwd: Implement fgetpwent_r using __nss_fgetent_r 2020-07-21 07:34:34 +02:00
resolv Move <rpc/netdb.h> from sunrpc to inet 2020-07-17 15:19:35 +02:00
resource
rt
scripts Add RISC-V 32-bit target to build-many-glibcs.py 2020-08-27 08:17:44 -07:00
setjmp
shadow shadow: Implement fgetspent_r using __nss_fgetent_r 2020-07-21 07:34:43 +02:00
signal
socket
soft-fp
stdio-common string: Fix strerrorname_np return value [BZ #26555] 2020-09-29 13:56:06 -03:00
stdlib Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
string strcmp: Add a testcase for page boundary 2020-09-24 07:29:31 -07:00
sunrpc Move <rpc/netdb.h> from sunrpc to inet 2020-07-17 15:19:35 +02:00
support
sysdeps Y2038: nptl: Provide futex_abstimed_wait64 supporting 64 bit time 2020-10-04 17:12:41 +02:00
sysvipc sysvipc: Return EINVAL for invalid msgctl commands 2020-10-02 16:11:59 -03:00
termios
time Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
timezone
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in
config.make.in
configure
configure.ac
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL Regenerate INSTALL for ARC port updates. 2020-07-22 23:32:07 -04:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig
Makefile Set locale related environment variables in debugglibc.sh 2020-09-24 14:58:36 +02:00
Makefile.help
Makefile.in
Makerules Don't mix linker error messages into edited scripts 2020-08-04 19:52:56 -04:00
NEWS ld.so: add an --argv0 option [BZ #16124] 2020-09-29 12:34:40 +02:00
o-iterator.mk
README Documentation for the RISC-V 32-bit port 2020-08-27 08:17:44 -07:00
Rules
shlib-versions
test-skeleton.c
version.h Open master branch for glibc 2.33 development. 2020-08-04 23:41:43 -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
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	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
	riscv32-*-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 https://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 https://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 https://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.