/libpthread/nptl/sysdeps/unix/sysv/linux/ |
A D | pthread_setaffinity.c | 36 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 D | pthread_getaffinity.c | 34 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 D | timer_gettime.c | 54 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 D | timer_getoverr.c | 51 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 D | timer_settime.c | 61 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 D | pthread_attr_setaffinity.c | 51 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 D | timer_create.c | 142 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 D | timer_delete.c | 52 int res = INLINE_SYSCALL (timer_delete, 1, kt->ktimerid); in timer_delete() local 54 if (res == 0) in timer_delete()
|
A D | timer_routines.c | 188 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 D | pthread_spin_trylock.c | 25 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 D | td_ta_event_addr.c | 26 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 D | createthread.c | 95 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 D | pthread_setname.c | 53 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 D | pthread_getname.c | 52 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 D | init.c | 187 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 D | descr.h | 357 struct __res_state res; member
|
A D | pthread_create.c | 229 __resp = &pd->res; in start_thread()
|
/libpthread/linuxthreads/sysdeps/bfin/ |
A D | pt-machine.h | 41 long int res; in testandset() local 45 : "=q0" (res), "=m" (*spinlock) in testandset() 49 return res; in testandset()
|
/libpthread/linuxthreads/ |
A D | spinlock.h | 149 int res = EBUSY; in __pthread_alt_trylock() local 157 res = 0; in __pthread_alt_trylock() 161 return res; in __pthread_alt_trylock()
|
A D | mutex.c | 131 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 D | spinlock.c | 673 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 D | manager.c | 515 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()
|