Home
last modified time | relevance | path

Searched refs:res (Results 1 – 22 of 22) sorted by relevance

/libpthread/nptl/sysdeps/unix/sysv/linux/
A Dpthread_setaffinity.c36 int res; in libpthread_hidden_proto() local
42 INTERNAL_SYSCALL_ERROR_P (res, err) in libpthread_hidden_proto()
46 if (res == 0 || INTERNAL_SYSCALL_ERROR_P (res, err)) in libpthread_hidden_proto()
47 return INTERNAL_SYSCALL_ERRNO (res, err); in libpthread_hidden_proto()
49 __kernel_cpumask_size = res; in libpthread_hidden_proto()
62 int res; in libpthread_hidden_def() local
67 if (res != 0) in libpthread_hidden_def()
68 return res; in libpthread_hidden_def()
84 if (!INTERNAL_SYSCALL_ERROR_P (res, err)) in libpthread_hidden_def()
88 return (INTERNAL_SYSCALL_ERROR_P (res, err) in libpthread_hidden_def()
[all …]
A Dpthread_getaffinity.c34 int res = INTERNAL_SYSCALL (sched_getaffinity, err, 3, pd->tid, in __pthread_getaffinity_np() local
36 if (INTERNAL_SYSCALL_ERROR_P (res, err)) in __pthread_getaffinity_np()
37 return INTERNAL_SYSCALL_ERRNO (res, err); in __pthread_getaffinity_np()
40 memset ((char *) cpuset + res, '\0', cpusetsize - res); in __pthread_getaffinity_np()
A Dtimer_gettime.c54 int res = INLINE_SYSCALL (timer_gettime64, 2, kt->ktimerid, value); in timer_gettime() local
56 int res = INLINE_SYSCALL (timer_gettime, 2, kt->ktimerid, value); in timer_gettime() local
60 if (res != -1 || errno != ENOSYS) in timer_gettime()
65 return res; in timer_gettime()
A Dtimer_getoverr.c51 int res = INLINE_SYSCALL (timer_getoverrun, 1, kt->ktimerid); in timer_getoverrun() local
54 if (res != -1 || errno != ENOSYS) in timer_getoverrun()
59 return res; in timer_getoverrun()
A Dtimer_settime.c61 int res = INLINE_SYSCALL (timer_settime64, 4, kt->ktimerid, flags, in timer_settime() local
64 int res = INLINE_SYSCALL (timer_settime, 4, kt->ktimerid, flags, in timer_settime() local
69 if (res != -1 || errno != ENOSYS) in timer_settime()
74 return res; in timer_settime()
A Dpthread_attr_setaffinity.c51 int res = __determine_cpumask_size (THREAD_SELF->tid); in libpthread_hidden_proto() local
52 if (res != 0) in libpthread_hidden_proto()
54 return res; in libpthread_hidden_proto()
A Dtimer_create.c142 int res; in timer_create() local
144 res = INTERNAL_SYSCALL (clock_getres_time64, err, 2, in timer_create()
147 res = INTERNAL_SYSCALL (clock_getres, err, 2, in timer_create()
150 __no_posix_timers = (INTERNAL_SYSCALL_ERROR_P (res, err) in timer_create()
209 int res; in timer_create() local
210 res = INTERNAL_SYSCALL (timer_create, err, 3, in timer_create()
212 if (! INTERNAL_SYSCALL_ERROR_P (res, err)) in timer_create()
228 __set_errno (INTERNAL_SYSCALL_ERRNO (res, err)); in timer_create()
A Dtimer_delete.c52 int res = INLINE_SYSCALL (timer_delete, 1, kt->ktimerid); in timer_delete() local
54 if (res == 0) in timer_delete()
A Dtimer_routines.c188 int res = pthread_create (&th, &attr, timer_helper_thread, NULL); in __start_helper_thread() local
189 if (res == 0) in __start_helper_thread()
/libpthread/nptl/sysdeps/sparc/
A Dpthread_spin_trylock.c25 int res; in pthread_spin_trylock() local
26 __asm__ __volatile__ ("ldstub [%1], %0" : "=r" (res) : "r" (lock) : "memory"); in pthread_spin_trylock()
27 return res == 0 ? 0 : EBUSY; in pthread_spin_trylock()
/libpthread/linuxthreads_db/
A Dtd_ta_event_addr.c26 td_err_e res = TD_NOEVENT; in td_ta_event_addr() local
65 res = TD_OK; in td_ta_event_addr()
68 res = TD_ERR; in td_ta_event_addr()
71 return res; in td_ta_event_addr()
/libpthread/nptl/sysdeps/pthread/
A Dcreatethread.c95 int res = 0; in do_clone() local
100 res = INTERNAL_SYSCALL (sched_setaffinity, err, 3, pd->tid, in do_clone()
111 return (INTERNAL_SYSCALL_ERROR_P (res, err) in do_clone()
112 ? INTERNAL_SYSCALL_ERRNO (res, err) in do_clone()
120 res = INTERNAL_SYSCALL (sched_setscheduler, err, 3, pd->tid, in do_clone()
199 int res = do_clone (pd, attr, clone_flags, start_thread, in create_thread() local
201 if (res == 0) in create_thread()
224 return res; in create_thread()
243 int res = do_clone (pd, attr, clone_flags, start_thread, in create_thread() local
246 if (res == 0 && stopped) in create_thread()
[all …]
/libpthread/nptl/
A Dpthread_setname.c53 int res = 0; in pthread_setname_np() local
56 res = errno; in pthread_setname_np()
58 res = EIO; in pthread_setname_np()
62 return res; in pthread_setname_np()
A Dpthread_getname.c52 int res = 0; in pthread_getname_np() local
55 res = errno; in pthread_getname_np()
61 res = ERANGE; in pthread_getname_np()
68 return res; in pthread_getname_np()
A Dinit.c187 int res = INTERNAL_SYSCALL (set_robust_list, err, 2, &pd->robust_head, in __pthread_initialize_minimal_internal() local
189 if (INTERNAL_SYSCALL_ERROR_P (res, err)) in __pthread_initialize_minimal_internal()
A Ddescr.h357 struct __res_state res; member
A Dpthread_create.c229 __resp = &pd->res; in start_thread()
/libpthread/linuxthreads/sysdeps/bfin/
A Dpt-machine.h41 long int res; in testandset() local
45 : "=q0" (res), "=m" (*spinlock) in testandset()
49 return res; in testandset()
/libpthread/linuxthreads/
A Dspinlock.h149 int res = EBUSY; in __pthread_alt_trylock() local
157 res = 0; in __pthread_alt_trylock()
161 return res; in __pthread_alt_trylock()
A Dmutex.c131 int res; in strong_alias() local
154 res = __pthread_alt_timedlock(&mutex->__m_lock, self, abstime); in strong_alias()
155 if (res != 0) in strong_alias()
A Dspinlock.c673 int res; in __pthread_compare_and_swap() local
678 *ptr = newval; res = 1; in __pthread_compare_and_swap()
680 res = 0; in __pthread_compare_and_swap()
685 return res; in __pthread_compare_and_swap()
A Dmanager.c515 int res = pthread_allocate_stack(attr, thread_segment(sseg), pagesize, in pthread_handle_create() local
518 if ( res == 0) in pthread_handle_create()
528 else if (res == -2) in pthread_handle_create()

Completed in 29 milliseconds