glibc/sysdeps/mach
Zhaoming Luo 0544df4f4a mach: Use the host_get_time64 to replace the deprecated host_get_time for CLOCK_REALTIME when it's available
Check the availability of host_get_time64 and use it to replace
host_get_time for CLOCK_REALTIME when it's available. Fall back to
host_get_time if gnumach does not support host_get_time64 but the
gnumach headers do.

host_get_time is deprecated
See https://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/?id=569df850cd7badd1e36132ad3b44aa76a4d27c25
However, it's kept for backward compactbility.

* config.h.in: Add HAVE_HOST_GET_TIME64 config entry.
* sysdeps/mach/clock_gettime.c: Use host_get_time64 for CLOCK_REALTIME
  when it's possible, fall to host_get_time otherwise.
* sysdeps/mach/configure: Check the existence of host_get_time64 RPC.
* sysdeps/mach/configure.ac: Check the existence of host_get_time64 RPC.
Message-ID: <20250324052042.19803-1-zhmingluo@163.com>
2025-03-25 01:10:10 +01:00
..
htl Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurd Add _FORTIFY_SOURCE support for inet_pton 2025-03-24 14:43:03 -04:00
i386 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
include
sys
x86 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
x86_64
Makefile Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
Subdirs
_strerror.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
adjtime.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
clock_gettime.c mach: Use the host_get_time64 to replace the deprecated host_get_time for CLOCK_REALTIME when it's available 2025-03-25 01:10:10 +01:00
clock_nanosleep.c hurd: Add CLOCK_MONOTONIC to clock_nanosleep 2025-01-12 22:47:00 +01:00
configure mach: Use the host_get_time64 to replace the deprecated host_get_time for CLOCK_REALTIME when it's available 2025-03-25 01:10:10 +01:00
configure.ac mach: Use the host_get_time64 to replace the deprecated host_get_time for CLOCK_REALTIME when it's available 2025-03-25 01:10:10 +01:00
getloadavg.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getpagesize.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getsysstats.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libc-lock.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libmachuser.abilist
mach_rpc.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mprotect.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
msync.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
munmap.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
pagecopy.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
readonly-area-fallback.c debug: Improve '%n' fortify detection (BZ 30932) 2025-03-21 15:46:48 -03:00
sched_yield.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sleep.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
strerror_l.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sysdep.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
thread_state.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
usleep.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
xpg-strerror.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00