Searched refs:__clockctl_fd (Results 1 – 4 of 4) sorted by relevance
/netbsd-src/lib/libc/sys/ |
H A D | settimeofday.c | 54 int __clockctl_fd = -1; variable 68 if (__clockctl_fd == -1) { in settimeofday() 80 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0); in settimeofday() 81 if (__clockctl_fd == -1) { in settimeofday() 94 return ioctl(__clockctl_fd, CLOCKCTL_SETTIMEOFDAY, &args); in settimeofday()
|
H A D | clock_settime.c | 54 extern int __clockctl_fd; 68 if (__clockctl_fd == -1) { in clock_settime() 81 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0); in clock_settime() 82 if (__clockctl_fd == -1) { in clock_settime() 95 return ioctl(__clockctl_fd, CLOCKCTL_CLOCK_SETTIME, &args); in clock_settime()
|
H A D | adjtime.c | 52 extern int __clockctl_fd; 66 if (__clockctl_fd == -1) { in adjtime() 79 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0); in adjtime() 80 if (__clockctl_fd == -1) { in adjtime() 93 return ioctl(__clockctl_fd, CLOCKCTL_ADJTIME, &args); in adjtime()
|
H A D | ntp_adjtime.c | 58 extern int __clockctl_fd; 75 if (__clockctl_fd == -1) { in ntp_adjtime() 89 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0); in ntp_adjtime() 90 if (__clockctl_fd == -1) { in ntp_adjtime() 102 error = ioctl(__clockctl_fd, CLOCKCTL_NTP_ADJTIME, &args); in ntp_adjtime()
|