Lines Matching refs:uap
117 struct gettimeofday_args *uap,
123 if (uap->tp) {
132 if (uap->tzp) {
137 error = copyout((caddr_t)<z, CAST_USER_ADDR_T(uap->tzp), sizeof (tz));
148 settimeofday(__unused struct proc *p, struct settimeofday_args *uap, __unused int32_t *retval)
166 if (uap->tv) {
169 error = copyin(uap->tv, &user_atv, sizeof(user_atv));
174 error = copyin(uap->tv, &user_atv, sizeof(user_atv));
181 if (uap->tzp && (error = copyin(uap->tzp, (caddr_t)&atz, sizeof(atz))))
183 if (uap->tv) {
189 if (uap->tzp) {
209 adjtime(struct proc *p, struct adjtime_args *uap, __unused int32_t *retval)
223 error = copyin(uap->delta, &user_atv, sizeof(user_atv));
228 error = copyin(uap->delta, &user_atv, sizeof(user_atv));
240 if (uap->olddelta) {
245 error = copyout(&user_atv, uap->olddelta, sizeof(user_atv));
250 error = copyout(&user_atv, uap->olddelta, sizeof(user_atv));
320 getitimer(struct proc *p, struct getitimer_args *uap, __unused int32_t *retval)
324 if (uap->which > ITIMER_PROF)
330 switch (uap->which) {
371 return (copyout((caddr_t)&user_itv, uap->itv, sizeof (user_itv)));
378 return (copyout((caddr_t)&user_itv, uap->itv, sizeof (user_itv)));
391 setitimer(struct proc *p, struct setitimer_args *uap, int32_t *retval)
399 if (uap->which > ITIMER_PROF)
401 if ((itvp = uap->itv)) {
420 if ((uap->itv = uap->oitv) && (error = getitimer(p, (struct getitimer_args *)uap, retval)))
427 switch (uap->which) {