HomeSort by: relevance | last modified time | path
    Searched refs:__clockctl_fd (Results 1 - 4 of 4) sorted by relevancy

  /src/lib/libc/sys/
adjtime.c 52 extern int __clockctl_fd;
66 if (__clockctl_fd == -1) {
79 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
80 if (__clockctl_fd == -1) {
88 * If __clockctl_fd >=0, clockctl has already been open
93 return ioctl(__clockctl_fd, CLOCKCTL_ADJTIME, &args);
clock_settime.c 54 extern int __clockctl_fd;
68 if (__clockctl_fd == -1) {
81 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
82 if (__clockctl_fd == -1) {
90 * If __clockctl_fd >=0, clockctl has already been open
95 return ioctl(__clockctl_fd, CLOCKCTL_CLOCK_SETTIME, &args);
ntp_adjtime.c 58 extern int __clockctl_fd;
75 if (__clockctl_fd == -1) {
89 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
90 if (__clockctl_fd == -1) {
98 * If __clockctl_fd >=0, clockctl has already been open
102 error = ioctl(__clockctl_fd, CLOCKCTL_NTP_ADJTIME, &args);
settimeofday.c 54 int __clockctl_fd = -1; variable in typeref:typename:int
68 if (__clockctl_fd == -1) {
80 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
81 if (__clockctl_fd == -1) {
89 * If __clockctl_fd >=0, clockctl has already been open
94 return ioctl(__clockctl_fd, CLOCKCTL_SETTIMEOFDAY, &args);

Completed in 16 milliseconds