Lines Matching refs:error
155 int error = validate_clock_permissions(which_clock); in posix_cpu_clock_getres() local
157 if (!error) { in posix_cpu_clock_getres()
169 return error; in posix_cpu_clock_getres()
175 int error = validate_clock_permissions(clock); in posix_cpu_clock_set() local
181 return error ? : -EPERM; in posix_cpu_clock_set()
1444 int error; in do_cpu_nanosleep() local
1453 error = posix_cpu_timer_create(&timer); in do_cpu_nanosleep()
1456 if (!error) { in do_cpu_nanosleep()
1464 error = posix_cpu_timer_set(&timer, flags, &it, NULL); in do_cpu_nanosleep()
1465 if (error) { in do_cpu_nanosleep()
1467 return error; in do_cpu_nanosleep()
1494 error = posix_cpu_timer_set(&timer, 0, &zero_it, &it); in do_cpu_nanosleep()
1495 if (!error) { in do_cpu_nanosleep()
1499 while (error == TIMER_RETRY) { in do_cpu_nanosleep()
1501 error = posix_cpu_timer_del(&timer); in do_cpu_nanosleep()
1514 error = -ERESTART_RESTARTBLOCK; in do_cpu_nanosleep()
1521 error = nanosleep_copyout(restart, &it.it_value); in do_cpu_nanosleep()
1524 return error; in do_cpu_nanosleep()
1533 int error; in posix_cpu_nsleep() local
1543 error = do_cpu_nanosleep(which_clock, flags, rqtp); in posix_cpu_nsleep()
1545 if (error == -ERESTART_RESTARTBLOCK) { in posix_cpu_nsleep()
1553 return error; in posix_cpu_nsleep()