/*! * Set current time * \param clockid Clock to use * \param time Time to set * \return status */ int sys__clock_settime ( clockid_t clockid, timespec_t *time ) { int retval; SYS_ENTRY(); ASSERT_ERRNO_AND_EXIT ( time && (clockid==CLOCK_REALTIME || clockid==CLOCK_MONOTONIC), EINVAL ); retval = kclock_settime ( clockid, time ); SYS_EXIT ( retval, retval ); }
/*! * Set current time * \param clockid Clock to use * \param time Time to set * \return status */ int sys__clock_settime ( void *p ) { clockid_t clockid; timespec_t *time; int retval; clockid = *( (clockid_t *) p ); p += sizeof (clockid_t); time = *( (void **) p ); ASSERT_ERRNO_AND_EXIT ( time && (clockid==CLOCK_REALTIME || clockid==CLOCK_MONOTONIC), EINVAL ); retval = kclock_settime ( clockid, time ); EXIT ( retval ); }