/sysdeps/pthread/ |
A D | tst-cond-except.c | 28 #define CHECK_RETURN_VAL_OR_FAIL(ret,str) \ argument 29 ({ if ((ret) != 0) \ 32 ret = 1; \ 49 int ret = 0; in thr() local 60 ret = pthread_cond_init (&cond, 0); in thr() 66 ret = pthread_mutex_lock (&mutex); in thr() 76 return (void *) (uintptr_t) ret; in thr() 83 int ret = 0; in do_test() local 92 ret = pthread_cancel (thread); in do_test() 96 ret = pthread_join (thread, NULL); in do_test() [all …]
|
A D | tst-setuid3.c | 47 if (is_invalid_barrier_ret (ret)) in thread_func() 50 if (is_invalid_barrier_ret (ret)) in thread_func() 58 int ret = setuid (0); in setuid_failure() local 59 switch (ret) in setuid_failure() 83 if (ret != 0) in do_test() 86 if (ret != 0) in do_test() 91 if (ret != 0) in do_test() 96 if (is_invalid_barrier_ret (ret)) in do_test() 107 if (is_invalid_barrier_ret (ret)) in do_test() 111 if (ret != 0) in do_test() [all …]
|
A D | tst-cond25.c | 47 if (ret != EDEADLK && ret != EBUSY) in cleanup() 59 int i, ret = 0; in signaller() local 97 int i, ret = 0; in waiter() local 140 int i, ret; in timed_waiter() local 196 int i, j, ret = 0; in do_test_wait() local 252 ret = 1; in do_test_wait() 268 ret = 1; in do_test_wait() 274 return ret; in do_test_wait() 280 int ret = do_test_wait (waiter); in do_test() local 282 if (ret) in do_test() [all …]
|
A D | tst-rwlock13.c | 27 int ret; in do_test() local 30 if ((ret = pthread_rwlock_init (&r, NULL)) != 0) in do_test() 32 printf ("rwlock_init failed: %d\n", ret); in do_test() 36 if ((ret = pthread_rwlock_rdlock (&r)) != 0) in do_test() 38 printf ("rwlock_rdlock failed: %d\n", ret); in do_test() 42 if ((ret = pthread_rwlock_unlock (&r)) != 0) in do_test() 44 printf ("rwlock_unlock failed: %d\n", ret); in do_test() 48 if ((ret = pthread_rwlock_wrlock (&r)) != 0) in do_test() 50 printf ("rwlock_wrlock failed: %d\n", ret); in do_test() 54 if ((ret = pthread_rwlock_unlock (&r)) != 0) in do_test() [all …]
|
A D | tst-getpid3.c | 31 int ret = pthread_create (&thr, NULL, pid_thread, NULL); in do_test() local 32 if (ret) in do_test() 34 printf ("pthread_create failed: %d\n", ret); in do_test() 39 ret = pthread_join (thr, &thr_ret); in do_test() 40 if (ret) in do_test() 42 printf ("pthread_create failed: %d\n", ret); in do_test() 67 if (ret) in do_test() 69 printf ("pthread_create failed: %d\n", ret); in do_test() 73 ret = pthread_join (thr, &thr_ret); in do_test() 74 if (ret) in do_test() [all …]
|
A D | tst-join7mod.c | 41 int ret = pthread_create (&th, NULL, test_run, NULL); in do_init() local 43 if (ret != 0) in do_init() 45 printf ("failed to create thread: %s (%d)\n", strerror (ret), ret); in do_init() 54 int ret = pthread_join (th, NULL); in do_end() local 56 if (ret != 0) in do_end() 58 printf ("pthread_join: %s(%d)\n", strerror (ret), ret); in do_end()
|
A D | tst-cancel-self-cancelstate.c | 29 int ret = 0; in do_test() local 34 if ((ret = pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, NULL)) != 0) in do_test() 36 printf ("setcancelstate(disable) failed: %s\n", strerror (ret)); in do_test() 40 if ((ret = pthread_cancel (pthread_self ())) != 0) in do_test() 42 printf ("cancel failed: %s\n", strerror (ret)); in do_test() 49 if ((ret = pthread_setcancelstate (PTHREAD_CANCEL_ENABLE, NULL)) != 0) in do_test() 51 printf ("setcancelstate(enable) failed: %s\n", strerror (ret)); in do_test()
|
A D | tst-cond24.c | 55 *ret = 1; in thread_fun_timed() 70 *ret = 1; in thread_fun_timed() 81 *ret = 1; in thread_fun_timed() 86 *ret = 0; in thread_fun_timed() 89 return ret; in thread_fun_timed() 106 *ret = 1; in thread_fun() 128 *ret = 1; in thread_fun() 133 *ret = 0; in thread_fun() 136 return ret; in thread_fun() 225 if (ret && *(int *)ret) in do_test_wait() [all …]
|
/sysdeps/generic/ |
A D | dl-osinfo.h | 29 } ret = { 0 }; in _dl_setup_stack_chk_guard() local 33 ret.bytes[sizeof (ret) - 1] = 255; in _dl_setup_stack_chk_guard() 34 ret.bytes[sizeof (ret) - 2] = '\n'; in _dl_setup_stack_chk_guard() 38 memcpy (ret.bytes, dl_random, sizeof (ret)); in _dl_setup_stack_chk_guard() 40 ret.num &= ~(uintptr_t) 0xff; in _dl_setup_stack_chk_guard() 42 ret.num &= ~((uintptr_t) 0xff << (8 * (sizeof (ret) - 1))); in _dl_setup_stack_chk_guard() 47 return ret.num; in _dl_setup_stack_chk_guard() 53 uintptr_t ret; in _dl_setup_pointer_guard() local 55 ret = stack_chk_guard; in _dl_setup_pointer_guard() 57 memcpy (&ret, (char *) dl_random + sizeof (ret), sizeof (ret)); in _dl_setup_pointer_guard() [all …]
|
/sysdeps/ieee754/flt-32/ |
A D | e_gammaf_r.c | 105 return ret + ret * __expm1f (exp_adj); in gammaf_positive() 113 float ret; in __ieee754_gammaf_r() local 149 return ret; in __ieee754_gammaf_r() 188 ret = math_narrow_eval (ret); in __ieee754_gammaf_r() 194 ret = math_narrow_eval (-copysignf (FLT_MAX, ret) * FLT_MAX); in __ieee754_gammaf_r() 195 ret = -ret; in __ieee754_gammaf_r() 198 ret = math_narrow_eval (copysignf (FLT_MAX, ret) * FLT_MAX); in __ieee754_gammaf_r() 199 return ret; in __ieee754_gammaf_r() 206 ret = -ret; in __ieee754_gammaf_r() 209 ret = math_narrow_eval (copysignf (FLT_MIN, ret) * FLT_MIN); in __ieee754_gammaf_r() [all …]
|
/sysdeps/unix/sysv/linux/ |
A D | tst-sync_file_range.c | 63 int ret; in do_test() local 72 if ((ret = sync_file_range (-1, 0, 0, 0)) != -1) in do_test() 74 "(returned %d, expected -1)", ret); in do_test() 79 if ((ret = sync_file_range (fifofd, 0, 0, 0)) != -1) in do_test() 81 "(returned %d, expected -1)", ret); in do_test() 89 if ((ret = sync_file_range (temp_fd, 0, 0, -1)) != -1) in do_test() 91 "(returned %d, " "expected -1)", ret); in do_test() 97 if ((ret = sync_file_range (temp_fd, -1, 1, 0)) != -1) in do_test() 99 "(returned %d, expected -1)", ret); in do_test() 107 "expected -1)", ret); in do_test() [all …]
|
A D | dl-osinfo.h | 57 } ret; in _dl_setup_stack_chk_guard() local 62 memcpy (ret.bytes, dl_random, sizeof (ret)); in _dl_setup_stack_chk_guard() 64 ret.num &= ~(uintptr_t) 0xff; in _dl_setup_stack_chk_guard() 66 ret.num &= ~((uintptr_t) 0xff << (8 * (sizeof (ret) - 1))); in _dl_setup_stack_chk_guard() 70 return ret.num; in _dl_setup_stack_chk_guard() 76 uintptr_t ret; in _dl_setup_pointer_guard() local 77 memcpy (&ret, (char *) dl_random + sizeof (ret), sizeof (ret)); in _dl_setup_pointer_guard() 78 return ret; in _dl_setup_pointer_guard()
|
A D | sched_rr_gi.c | 31 int ret = INLINE_SYSCALL_CALL (sched_rr_get_interval_time64, pid, tp); in __sched_rr_get_interval64() local 33 if (ret == 0 || errno != ENOSYS) in __sched_rr_get_interval64() 34 return ret; in __sched_rr_get_interval64() 37 ret = INLINE_SYSCALL_CALL (sched_rr_get_interval, pid, &tp32); in __sched_rr_get_interval64() 38 if (ret == 0) in __sched_rr_get_interval64() 41 return ret; in __sched_rr_get_interval64() 50 int ret; in libc_hidden_def() local 53 ret = __sched_rr_get_interval64 (pid, &tp64); in libc_hidden_def() 55 if (ret == 0) in libc_hidden_def() 66 return ret; in libc_hidden_def()
|
A D | mq_unlink.c | 30 int ret = INTERNAL_SYSCALL_CALL (mq_unlink, name + 1); in __mq_unlink() local 34 if (__glibc_unlikely (INTERNAL_SYSCALL_ERROR_P (ret))) in __mq_unlink() 36 ret = INTERNAL_SYSCALL_ERRNO (ret); in __mq_unlink() 37 if (ret == EPERM) in __mq_unlink() 38 ret = EACCES; in __mq_unlink() 39 return INLINE_SYSCALL_ERROR_RETURN_VALUE (ret); in __mq_unlink() 42 return ret; in __mq_unlink()
|
A D | tst-affinity-pid.c | 136 int ret = fork (); in getaffinity() local 137 if (ret < 0) in getaffinity() 142 if (ret == 0) in getaffinity() 146 if (ret < 0) in getaffinity() 147 ret = errno; in getaffinity() 148 if (write_fully (pipes[1], &ret, sizeof (ret)) < 0 in getaffinity() 172 int ret = fork (); in setaffinity() local 173 if (ret < 0) in setaffinity() 178 if (ret == 0) in setaffinity() 182 if (write_fully (pipes[1], &ret, sizeof (ret)) < 0) in setaffinity() [all …]
|
A D | arch-fork.h | 38 long int ret; in arch_fork() local 41 ret = INLINE_CLONE_SYSCALL (flags, 0, NULL, 0, ctid); in arch_fork() 43 ret = INLINE_SYSCALL_CALL (clone, flags, 0, NULL, 0, ctid); in arch_fork() 46 ret = INLINE_SYSCALL_CALL (clone, 0, flags, NULL, ctid, 0); in arch_fork() 48 ret = INLINE_SYSCALL_CALL (clone, flags, 0, 0, NULL, ctid, 0); in arch_fork() 50 ret = INLINE_SYSCALL_CALL (clone2, flags, 0, 0, NULL, ctid, 0); in arch_fork() 52 ret = INLINE_SYSCALL_CALL (clone, flags, 0, NULL, ctid, 0); in arch_fork() 56 return ret; in arch_fork()
|
/sysdeps/powerpc/fpu/ |
A D | s_logb.c | 34 double ret; in __logb() local 43 : "=d" (ret) in __logb() 45 ret = (ret * 0x1p-52) - 1023.0; in __logb() 46 if (ret > 1023.0) in __logb() 49 else if (ret == -1023.0) in __logb() 59 return ret == -0.0 ? 0.0 : ret; in __logb()
|
A D | s_logbf.c | 32 double ret; in __logbf() local 41 : "=d"(ret) in __logbf() 44 ret = (ret * 0x1p-52) - 1023.0; in __logbf() 45 if (ret > 127.0) in __logbf() 51 return ret == -0.0 ? 0.0 : ret; in __logbf()
|
A D | s_logbl.c | 34 double ret; in __logbl() local 47 : "=d" (ret) in __logbl() 49 ret = (ret * 0x1p-52) - 1023.0; in __logbl() 50 if (ret > 1023.0) in __logbl() 53 else if (ret == -1023.0) in __logbl() 73 return ret == -0.0 ? 0.0 : ret; in __logbl()
|
/sysdeps/mach/hurd/htl/ |
A D | pt-mutex-trylock.c | 30 int ret; in __pthread_mutex_trylock() local 35 ret = lll_trylock (mtxp->__lock); in __pthread_mutex_trylock() 36 if (ret) in __pthread_mutex_trylock() 37 ret = EBUSY; in __pthread_mutex_trylock() 48 ret = 0; in __pthread_mutex_trylock() 50 else if ((ret = lll_trylock (mtxp->__lock)) == 0) in __pthread_mutex_trylock() 56 ret = EBUSY; in __pthread_mutex_trylock() 62 if ((ret = lll_trylock (mtxp->__lock)) == 0) in __pthread_mutex_trylock() 65 ret = EBUSY; in __pthread_mutex_trylock() 76 ret = EINVAL; in __pthread_mutex_trylock() [all …]
|
/sysdeps/ieee754/dbl-64/ |
A D | e_gamma_r.c | 125 double ret; in __ieee754_gamma_r() local 161 return ret; in __ieee754_gamma_r() 176 ret = 1.0 / x; in __ieee754_gamma_r() 211 ret = math_narrow_eval (ret); in __ieee754_gamma_r() 217 ret = math_narrow_eval (-copysign (DBL_MAX, ret) * DBL_MAX); in __ieee754_gamma_r() 218 ret = -ret; in __ieee754_gamma_r() 221 ret = math_narrow_eval (copysign (DBL_MAX, ret) * DBL_MAX); in __ieee754_gamma_r() 228 ret = math_narrow_eval (-copysign (DBL_MIN, ret) * DBL_MIN); in __ieee754_gamma_r() 229 ret = -ret; in __ieee754_gamma_r() 232 ret = math_narrow_eval (copysign (DBL_MIN, ret) * DBL_MIN); in __ieee754_gamma_r() [all …]
|
/sysdeps/unix/sysv/linux/x86_64/ |
A D | tst-glibc-hwcaps-2.c | 47 int ret; in do_test() local 55 ret = EXIT_FAILURE; in do_test() 57 ret = EXIT_SUCCESS; in do_test() 64 ret = EXIT_FAILURE; in do_test() 66 ret = EXIT_SUCCESS; in do_test() 73 ret = EXIT_SUCCESS; in do_test() 75 ret = EXIT_FAILURE; in do_test() 80 return ret; in do_test()
|
/sysdeps/ieee754/ldbl-128ibm/ |
A D | e_gammal_r.c | 118 return ret + ret * __expm1l (exp_adj); in gammal_positive() 127 long double ret; in __ieee754_gammal_r() local 171 ret = gammal_positive (x, &exp2_adj); in __ieee754_gammal_r() 172 ret = __scalbnl (ret, exp2_adj); in __ieee754_gammal_r() 177 ret = 1.0L / x; in __ieee754_gammal_r() 185 ret = LDBL_MIN * LDBL_MIN; in __ieee754_gammal_r() 195 ret = M_PIl / (-x * sinpix in __ieee754_gammal_r() 197 ret = __scalbnl (ret, -exp2_adj); in __ieee754_gammal_r() 202 if (isinf (ret) && x != 0) in __ieee754_gammal_r() 209 else if (ret == 0) in __ieee754_gammal_r() [all …]
|
/sysdeps/powerpc/ |
A D | ifunc-sel.h | 11 register void *ret __asm__ ("r3"); in ifunc_sel() 29 : "=r" (ret) in ifunc_sel() 32 return ret; in ifunc_sel() 39 register void *ret __asm__ ("r3"); in ifunc_one() 46 : "=r" (ret) in ifunc_one() 49 return ret; in ifunc_one()
|
/sysdeps/posix/ |
A D | raise.c | 26 int ret = __pthread_kill (__pthread_self (), sig); in raise() local 27 if (ret != 0) in raise() 29 __set_errno (ret); in raise() 30 ret = -1; in raise() 32 return ret; in raise()
|