Lines Matching full:error
143 int error; in linux_put_timespec() local
145 error = native_to_linux_timespec(<s, ntp); in linux_put_timespec()
146 if (error != 0) in linux_put_timespec()
147 return (error); in linux_put_timespec()
155 int error; in linux_get_timespec() local
157 error = copyin(ultp, <s, sizeof(lts)); in linux_get_timespec()
158 if (error != 0) in linux_get_timespec()
159 return (error); in linux_get_timespec()
197 int error; in linux_put_timespec64() local
199 error = native_to_linux_timespec64(<s, ntp); in linux_put_timespec64()
200 if (error != 0) in linux_put_timespec64()
201 return (error); in linux_put_timespec64()
209 int error; in linux_get_timespec64() local
211 error = copyin(ultp, <s, sizeof(lts)); in linux_get_timespec64()
212 if (error != 0) in linux_get_timespec64()
213 return (error); in linux_get_timespec64()
221 int error; in native_to_linux_itimerspec() local
223 error = native_to_linux_timespec(<p->it_interval, &ntp->it_interval); in native_to_linux_itimerspec()
224 if (error == 0) in native_to_linux_itimerspec()
225 error = native_to_linux_timespec(<p->it_value, &ntp->it_value); in native_to_linux_itimerspec()
226 return (error); in native_to_linux_itimerspec()
232 int error; in linux_to_native_itimerspec() local
234 error = linux_to_native_timespec(&ntp->it_interval, <p->it_interval); in linux_to_native_itimerspec()
235 if (error == 0) in linux_to_native_itimerspec()
236 error = linux_to_native_timespec(&ntp->it_value, <p->it_value); in linux_to_native_itimerspec()
237 return (error); in linux_to_native_itimerspec()
244 int error; in linux_to_native_itimerspec64() local
246 error = linux_to_native_timespec64(&ntp->it_interval, <p->it_interval); in linux_to_native_itimerspec64()
247 if (error == 0) in linux_to_native_itimerspec64()
248 error = linux_to_native_timespec64(&ntp->it_value, <p->it_value); in linux_to_native_itimerspec64()
249 return (error); in linux_to_native_itimerspec64()
255 int error; in native_to_linux_itimerspec64() local
257 error = native_to_linux_timespec64(<p->it_interval, &ntp->it_interval); in native_to_linux_itimerspec64()
258 if (error == 0) in native_to_linux_itimerspec64()
259 error = native_to_linux_timespec64(<p->it_value, &ntp->it_value); in native_to_linux_itimerspec64()
260 return (error); in native_to_linux_itimerspec64()
343 int error, clockwhich; in linux_common_clock_gettime() local
348 error = linux_to_native_clockid(&nwhich, which); in linux_common_clock_gettime()
349 if (error != 0) { in linux_common_clock_gettime()
353 conversion_error, error); in linux_common_clock_gettime()
354 return (error); in linux_common_clock_gettime()
370 error = pget(pid, PGET_CANSEE, &p); in linux_common_clock_gettime()
371 if (error != 0) in linux_common_clock_gettime()
451 error = kern_clock_gettime(td, nwhich, tp); in linux_common_clock_gettime()
455 return (error); in linux_common_clock_gettime()
462 int error; in linux_clock_gettime() local
464 error = linux_common_clock_gettime(td, args->which, &tp); in linux_clock_gettime()
465 if (error != 0) { in linux_clock_gettime()
466 LIN_SDT_PROBE1(time, linux_clock_gettime, gettime_error, error); in linux_clock_gettime()
467 return (error); in linux_clock_gettime()
469 error = linux_put_timespec(&tp, args->tp); in linux_clock_gettime()
470 if (error != 0) in linux_clock_gettime()
471 LIN_SDT_PROBE1(time, linux_clock_gettime, copyout_error, error); in linux_clock_gettime()
473 return (error); in linux_clock_gettime()
481 int error; in linux_clock_gettime64() local
483 error = linux_common_clock_gettime(td, args->which, &tp); in linux_clock_gettime64()
484 if (error != 0) { in linux_clock_gettime64()
485 LIN_SDT_PROBE1(time, linux_clock_gettime64, gettime_error, error); in linux_clock_gettime64()
486 return (error); in linux_clock_gettime64()
488 error = linux_put_timespec64(&tp, args->tp); in linux_clock_gettime64()
489 if (error != 0) in linux_clock_gettime64()
490 LIN_SDT_PROBE1(time, linux_clock_gettime64, copyout_error, error); in linux_clock_gettime64()
492 return (error); in linux_clock_gettime64()
500 int error; in linux_common_clock_settime() local
503 error = linux_to_native_clockid(&nwhich, which); in linux_common_clock_settime()
504 if (error != 0) { in linux_common_clock_settime()
508 error); in linux_common_clock_settime()
509 return (error); in linux_common_clock_settime()
512 error = kern_clock_settime(td, nwhich, ts); in linux_common_clock_settime()
513 if (error != 0) in linux_common_clock_settime()
515 settime_error, error); in linux_common_clock_settime()
517 return (error); in linux_common_clock_settime()
524 int error; in linux_clock_settime() local
526 error = linux_get_timespec(&ts, args->tp); in linux_clock_settime()
527 if (error != 0) { in linux_clock_settime()
528 LIN_SDT_PROBE1(time, linux_clock_settime, copyin_error, error); in linux_clock_settime()
529 return (error); in linux_clock_settime()
539 int error; in linux_clock_settime64() local
541 error = linux_get_timespec64(&ts, args->tp); in linux_clock_settime64()
542 if (error != 0) { in linux_clock_settime64()
543 LIN_SDT_PROBE1(time, linux_clock_settime64, copyin_error, error); in linux_clock_settime64()
544 return (error); in linux_clock_settime64()
555 int error, clockwhich; in linux_common_clock_getres() local
560 error = linux_to_native_clockid(&nwhich, which); in linux_common_clock_getres()
561 if (error != 0) { in linux_common_clock_getres()
565 conversion_error, error); in linux_common_clock_getres()
566 return (error); in linux_common_clock_getres()
587 error = pget(pid, PGET_CANSEE, &p); in linux_common_clock_getres()
588 if (error != 0) in linux_common_clock_getres()
634 error = kern_clock_getres(td, nwhich, ts); in linux_common_clock_getres()
635 if (error != 0) { in linux_common_clock_getres()
637 getres_error, error); in linux_common_clock_getres()
638 return (error); in linux_common_clock_getres()
642 return (error); in linux_common_clock_getres()
650 int error; in linux_clock_getres() local
652 error = linux_common_clock_getres(td, args->which, &ts); in linux_clock_getres()
653 if (error != 0 || args->tp == NULL) in linux_clock_getres()
654 return (error); in linux_clock_getres()
655 error = linux_put_timespec(&ts, args->tp); in linux_clock_getres()
656 if (error != 0) in linux_clock_getres()
658 copyout_error, error); in linux_clock_getres()
659 return (error); in linux_clock_getres()
668 int error; in linux_clock_getres_time64() local
670 error = linux_common_clock_getres(td, args->which, &ts); in linux_clock_getres_time64()
671 if (error != 0 || args->tp == NULL) in linux_clock_getres_time64()
672 return (error); in linux_clock_getres_time64()
673 error = linux_put_timespec64(&ts, args->tp); in linux_clock_getres_time64()
674 if (error != 0) in linux_clock_getres_time64()
676 copyout_error, error); in linux_clock_getres_time64()
677 return (error); in linux_clock_getres_time64()
686 int error, error2; in linux_nanosleep() local
688 error = linux_get_timespec(&rqts, args->rqtp); in linux_nanosleep()
689 if (error != 0) { in linux_nanosleep()
690 LIN_SDT_PROBE1(time, linux_nanosleep, copyin_error, error); in linux_nanosleep()
691 return (error); in linux_nanosleep()
698 error = kern_nanosleep(td, &rqts, rmtp); in linux_nanosleep()
699 if (error == EINTR && args->rmtp != NULL) { in linux_nanosleep()
708 return (error); in linux_nanosleep()
715 int error, flags; in linux_common_clock_nanosleep() local
718 error = linux_to_native_timerflags(&flags, lflags); in linux_common_clock_nanosleep()
719 if (error != 0) { in linux_common_clock_nanosleep()
722 return (error); in linux_common_clock_nanosleep()
725 error = linux_to_native_clockid(&clockid, which); in linux_common_clock_nanosleep()
726 if (error != 0) { in linux_common_clock_nanosleep()
731 return (error); in linux_common_clock_nanosleep()
745 int error, error2; in linux_clock_nanosleep() local
747 error = linux_get_timespec(&rqts, args->rqtp); in linux_clock_nanosleep()
748 if (error != 0) { in linux_clock_nanosleep()
750 error); in linux_clock_nanosleep()
751 return (error); in linux_clock_nanosleep()
758 error = linux_common_clock_nanosleep(td, args->which, args->flags, in linux_clock_nanosleep()
760 if (error == EINTR && (args->flags & LINUX_TIMER_ABSTIME) == 0 && in linux_clock_nanosleep()
769 return (error); in linux_clock_nanosleep()
779 int error, error2; in linux_clock_nanosleep_time64() local
781 error = linux_get_timespec64(&rqts, args->rqtp); in linux_clock_nanosleep_time64()
782 if (error != 0) { in linux_clock_nanosleep_time64()
784 copyin_error, error); in linux_clock_nanosleep_time64()
785 return (error); in linux_clock_nanosleep_time64()
792 error = linux_common_clock_nanosleep(td, args->which, args->flags, in linux_clock_nanosleep_time64()
794 if (error == EINTR && (args->flags & LINUX_TIMER_ABSTIME) == 0 && in linux_clock_nanosleep_time64()
803 return (error); in linux_clock_nanosleep_time64()