9 __weak_alias(clock_settime
, __clock_settime50
);
12 int clock_settime(clockid_t clock_id
, const struct timespec
*ts
)
16 memset(&m
, 0, sizeof(m
));
17 m
.m_lc_pm_time
.clk_id
= clock_id
;
18 m
.m_lc_pm_time
.now
= 1; /* set time immediately. don't use adjtime() method. */
19 m
.m_lc_pm_time
.sec
= ts
->tv_sec
;
20 m
.m_lc_pm_time
.nsec
= ts
->tv_nsec
;
22 if (_syscall(PM_PROC_NR
, PM_CLOCK_SETTIME
, &m
) < 0)