Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_time.c
| Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
| static int register_posix_clock(int, const struct kclock *); | static int register_posix_clock(int, const struct kclock *); | ||||
| static void itimer_fire(struct itimer *it); | static void itimer_fire(struct itimer *it); | ||||
| static int itimespecfix(struct timespec *ts); | static int itimespecfix(struct timespec *ts); | ||||
| #define CLOCK_CALL(clock, call, arglist) \ | #define CLOCK_CALL(clock, call, arglist) \ | ||||
| ((*posix_clocks[clock].call) arglist) | ((*posix_clocks[clock].call) arglist) | ||||
| SYSINIT(posix_timer, SI_SUB_P1003_1B, SI_ORDER_FIRST+4, itimer_start, NULL); | SYSINIT(posix_timer, SI_SUB_P1003_1B, SI_ORDER_FIRST+4, itimer_start); | ||||
| static int | static int | ||||
| settime(struct thread *td, struct timeval *tv) | settime(struct thread *td, struct timeval *tv) | ||||
| { | { | ||||
| struct timeval delta, tv1, tv2; | struct timeval delta, tv1, tv2; | ||||
| static struct timeval maxtime, laststep; | static struct timeval maxtime, laststep; | ||||
| struct timespec ts; | struct timespec ts; | ||||
| ▲ Show 20 Lines • Show All 1,707 Lines • Show Last 20 Lines | |||||