Home
last modified time | relevance | path

Searched refs:ttxc (Results 1 – 2 of 2) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/clock_adjtime/
Dclock_adjtime01.c60 static struct tst_timex saved, ttxc; variable
128 memset(&ttxc, 0, sizeof(ttxc)); in verify_clock_adjtime()
131 ttxc.type = verify.type = tv->type; in verify_clock_adjtime()
133 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&ttxc)); in verify_clock_adjtime()
139 timex_show("GET", &ttxc); in verify_clock_adjtime()
141 timex_set_field_uint(&ttxc, ADJ_MODES, tc[i].modes); in verify_clock_adjtime()
144 val = timex_get_field_long(&ttxc, tc[i].modes); in verify_clock_adjtime()
151 timex_set_field_long(&ttxc, tc[i].modes, val); in verify_clock_adjtime()
154 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&ttxc)); in verify_clock_adjtime()
160 timex_show("SET", &ttxc); in verify_clock_adjtime()
[all …]
Dclock_adjtime02.c61 static struct tst_timex saved, ttxc; variable
131 struct tst_timex *txcptr = &ttxc; in verify_clock_adjtime()
157 timex_set_field_long(&ttxc, tc[i].modes, tc[i].lowlimit - tc[i].delta); in verify_clock_adjtime()
160 timex_set_field_long(&ttxc, tc[i].modes, tc[i].highlimit + tc[i].delta); in verify_clock_adjtime()