Searched refs:tmx (Results 1 – 1 of 1) sorted by relevance
195 struct timex tmx = {}; in set_offset() local198 tmx.modes = ADJ_SETOFFSET; in set_offset()200 tmx.modes |= ADJ_NANO; in set_offset()202 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()203 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset()205 if (offset < 0 && tmx.time.tv_usec) { in set_offset()206 tmx.time.tv_sec -= 1; in set_offset()207 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()210 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset()211 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset()[all …]