Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 979) sorted by relevance

12345678910>>...40

/sysdeps/pthread/
A Dtst-cond-except.c28 #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 Dtst-setuid3.c47 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 Dtst-cond25.c47 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 Dtst-rwlock13.c27 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 Dtst-getpid3.c31 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 Dtst-join7mod.c41 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 Dtst-cancel-self-cancelstate.c29 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 Dtst-cond24.c55 *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 Ddl-osinfo.h29 } 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 De_gammaf_r.c105 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 Dtst-sync_file_range.c63 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 Ddl-osinfo.h57 } 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 Dsched_rr_gi.c31 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 Dmq_unlink.c30 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 Dtst-affinity-pid.c136 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 Darch-fork.h38 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 Ds_logb.c34 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 Ds_logbf.c32 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 Ds_logbl.c34 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 Dpt-mutex-trylock.c30 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 De_gamma_r.c125 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 Dtst-glibc-hwcaps-2.c47 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 De_gammal_r.c118 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 Difunc-sel.h11 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 Draise.c26 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()

Completed in 35 milliseconds

12345678910>>...40