glibc/sysdeps
Joseph Myers e5ac7bd679 Add C2X timespec_getres
ISO C2X adds a timespec_getres function alongside the C11
timespec_get, with functionality similar to that of POSIX clock_getres
(including allowing a NULL pointer to be passed to the function).
Implement this function for glibc, similarly to the implementation of
timespec_get.

This includes a basic test like that of timespec_get, but no
documentation in the manual, given that TIME_UTC and timespec_get
aren't documented in the manual at all.  The handling of 64-bit time
follows that in timespec_get; people maintaining patch series for
64-bit time will need to update them accordingly (to export
__timespec_getres64, redirect calls in time.h and run the test for
_TIME_BITS=64).

Tested for x86_64 and x86, and (previous version; only testcase
differs) with build-many-glibcs.py.
2021-05-17 20:55:21 +00:00
..
aarch64
alpha
arc
arm
csky
generic elf: Move static TLS size and alignment into _rtld_global_ro 2021-05-17 10:17:41 +02:00
gnu Annotate additional APIs with GCC attribute access. 2021-05-06 11:01:05 -06:00
hppa
htl
hurd
i386 Remove architecture specific sched_cpucount optimizations 2021-05-07 13:35:29 -03:00
ia64 Remove architecture specific sched_cpucount optimizations 2021-05-07 13:35:29 -03:00
ieee754 add workload traces for cbrtl 2021-05-10 18:45:34 +02:00
m68k
mach Add C2X timespec_getres 2021-05-17 20:55:21 +00:00
microblaze
mips
nios2
nptl nptl: Move __nptl_initial_report_events into ld.so/startup code 2021-05-17 10:04:06 +02:00
posix Add C2X timespec_getres 2021-05-17 20:55:21 +00:00
powerpc powerpc: Add optimized rawmemchr for POWER10 2021-05-17 10:30:35 -03:00
pthread nptl: Move thread join functions into libc 2021-05-11 11:24:39 +02:00
riscv
s390
sh
sparc
unix Add C2X timespec_getres 2021-05-17 20:55:21 +00:00
wordsize-32
wordsize-64
x86 x86: Set rep_movsb_threshold to 2112 on processors with FSRM 2021-05-03 05:08:22 -07:00
x86_64 elf: Use relaxed atomics for racy accesses [BZ #19329] 2021-05-11 17:16:37 +01:00