Home
last modified time | relevance | path

Searched refs:__clockctl_fd (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/lib/libc/sys/
H A Dsettimeofday.c54 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 Dclock_settime.c54 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 Dadjtime.c52 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 Dntp_adjtime.c58 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()