Branch
Hash :
2d08d875
Author :
Date :
2024-11-17T13:05:55
doc: Prefer https urls where possible. * doc/gnulib.texi (POSIXURL): Use https url. * doc/multithread.texi: Use https instead of http where possible. * doc/glibc-functions/*.texi: Likewise. * doc/posix-functions/*.texi: Likewise. * lib/glthread/lock.c: Likewise. * lib/hamt.h: Likewise. * lib/localcharset.c: Likewise. * lib/pipe2.c: Likewise. * lib/pipe.c: Likewise. * lib/sigsegv.c: Likewise. * lib/sigsegv.in.h: Likewise. * lib/sm3.c: Likewise. * lib/sm3.h: Likewise. * lib/sm3-stream.c: Likewise. * lib/stackvma.c: Likewise. * lib/stdio-impl.h: Likewise. * lib/stdnoreturn.in.h: Likewise. * m4/getopt.m4: Likewise. * m4/largefile.m4: Likewise. * m4/stdalign.m4: Likewise. * STATUS-libposix: Likewise. * tests/test-float.c: Likewise. * tests/test-getopt.h: Likewise. * tests/test-setenv.c: Likewise. * tests/test-spawn-pipe-child.c: Likewise. * tests/test-strerror.c: Likewise. * tests/test-strerror_r.c: Likewise. * tests/test-unsetenv.c: Likewise. * users.txt: Likewise.
@node timespec_getres
@subsection @code{timespec_getres}
@findex timespec_getres
ISO C23 specification:@* @url{https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf} section 7.29.2.7
Gnulib module: timespec_getres
@mindex timespec_getres
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
glibc 2.33, macOS 12, FreeBSD 14.0, NetBSD 9.2, OpenBSD 7.0, Minix 3.3.0, AIX 7.1, HP-UX 11.31, Solaris 11.3, Cygwin 2.9, mingw, MSVC 14, Android API level 34.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
On some platforms, this function returns a value other than the clock
resolution of @code{timespec_get}, i.e., the minimum distance between
differing timestamps. For example, on GNU/Linux it typically returns
1 nanosecond regardless of the actual clock resolution.
@end itemize
@mindex gettime-res
The Gnulib module @code{gettime-res} is a partial substitute; it implements
the @code{TIME_UTC} functionality of @code{timespec_getres}.