diff options
author | Zhaoming Luo <zhmingluo@163.com> | 2025-01-06 12:39:07 +0800 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-01-12 22:47:00 +0100 |
commit | 3782ffaf3e6c2a071df029b96712e596b5229838 (patch) | |
tree | e50d8f1eaea004c0a84e8d32382a15de7b9245a8 /sysdeps/unix | |
parent | 73b854e955a3c38655fa51f742238dc7163b4a29 (diff) | |
download | glibc-3782ffaf3e6c2a071df029b96712e596b5229838.zip glibc-3782ffaf3e6c2a071df029b96712e596b5229838.tar.gz glibc-3782ffaf3e6c2a071df029b96712e596b5229838.tar.bz2 |
mach: Add CLOCK_MONOTONIC case in clock_gettime()
The Mach RPC host_get_uptime64() is implemented. It returns the elapsed time
value since bootup. See
https://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/?id=fc494bfe3fb6363e1077dc035eb119970d84a9d1
In this patch, the RPC is used to implement the monotonic clock for
mach.
* config.h.in: Add HAVE_HOST_GET_UPTIME64 config entry
* sysdeps/mach/clock_gettime.c: Add CLOCK_MONOTONIC case
* sysdeps/mach/configure: Check the existence of host_get_uptime64 RPC
* sysdeps/mach/configure.ac: Check the existence of host_get_uptime64 RPC
Message-ID: <20250106043907.1046-1-zhmingluo@163.com>
Diffstat (limited to 'sysdeps/unix')
0 files changed, 0 insertions, 0 deletions