glibc/sysdeps/unix/sysv/linux/arc
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
..
bits Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sys Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
arch-syscall.h Update syscall lists for Linux 5.12. 2021-04-28 17:19:24 +00:00
c++-types.data ARC: ABI lists 2020-07-10 16:08:44 -07:00
clone.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
configure Regenerate configure scripts. 2020-08-04 21:36:19 -04:00
configure.ac ARC: Build Infrastructure 2020-07-10 16:08:45 -07:00
fixup-asm-unistd.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getcontext.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies ARC: Build Infrastructure 2020-07-10 16:08:45 -07:00
jmp_buf-macros.h
kernel-features.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ld.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
ldconfig.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libanl.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
libBrokenLocale.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
libc_sigaction.c signal: Add __libc_sigaction 2021-03-18 15:54:39 -03:00
libc.abilist Add C2X timespec_getres 2021-05-17 20:55:21 +00:00
libcrypt.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
libdl.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
libm.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
libpthread.abilist nptl: Move pthread_sigqueue into libc 2021-05-17 10:25:12 +02:00
libresolv.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
librt.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
libthread_db.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
libutil.abilist ARC: ABI lists 2020-07-10 16:08:44 -07:00
localplt.data ARC: ABI lists 2020-07-10 16:08:44 -07:00
makecontext.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile arc: Remove _dl_var_init 2021-05-17 10:08:05 +02:00
mmap_internal.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
setcontext.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
shlib-versions ARC: Build Infrastructure 2020-07-10 16:08:45 -07:00
sigcontextinfo.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sigrestorer.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
swapcontext.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
syscall.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
syscalls.list
sysdep.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sysdep.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ucontext_i.sym
ucontext-macros.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Versions arc: Remove _dl_var_init 2021-05-17 10:08:05 +02:00
vfork.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00