]> git.ipfire.org Git - thirdparty/gnulib.git/commit
gethrxtime: don’t use nanouptime, microuptime master
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Jun 2026 17:45:10 +0000 (10:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Jun 2026 17:53:26 +0000 (10:53 -0700)
commit9ae60e4c3621821b787dbd77c0ecb0aef0a83ffc
treecfe9f4e2d1f13124578fadff3ea9579597eaa977
parenta575239e473656fd0c055a228963bdb48bd0c2cb
gethrxtime: don’t use nanouptime, microuptime

* lib/gethrxtime.c (gethrxtime): On platforms with
CLOCK_MONOTONIC, try it first.  If it fails, just fall back on
CLOCK_REALTIME as that’s what current_timespec would do anyway.
On platforms lacking CLOCK_MONOTONIC, just use current_timespec.
* m4/gethrxtime.m4 (gl_GETHRXTIME): Don’t check for microuptime or
nanouptime.  They aren’t exposed to user space by BSD kernels now,
and it’s not clear that they ever were.
ChangeLog
lib/gethrxtime.c
m4/gethrxtime.m4