/glibc-2.36/misc/ |
D | tst-atomic.c | 31 int ret = 0; in do_test() local 39 ret = 1; in do_test() 47 ret = 1; in do_test() 55 ret = 1; in do_test() 63 ret = 1; in do_test() 72 ret = 1; in do_test() 80 ret = 1; in do_test() 88 ret = 1; in do_test() 96 ret = 1; in do_test() 104 ret = 1; in do_test() [all …]
|
/glibc-2.36/sysdeps/pthread/ |
D | tst-cond25.c | 46 int ret = pthread_mutex_trylock (&mutex); in cleanup() local 47 if (ret != EDEADLK && ret != EBUSY) in cleanup() 49 printf ("mutex not locked in cleanup %d\n", ret); in cleanup() 59 int i, ret = 0; in signaller() local 64 if ((ret = pthread_mutex_lock (&mutex)) != 0) in signaller() 67 printf ("signaller:mutex_lock failed: %s\n", strerror (ret)); in signaller() 70 if ((ret = pthread_cond_signal (&cond)) != 0) in signaller() 73 printf ("signaller:signal failed: %s\n", strerror (ret)); in signaller() 76 if ((ret = pthread_mutex_unlock (&mutex)) != 0) in signaller() 79 printf ("signaller:mutex_unlock failed: %s\n", strerror (ret)); in signaller() [all …]
|
D | tst-setuid3.c | 46 int ret = pthread_barrier_wait (&barrier1); in thread_func() local 47 if (is_invalid_barrier_ret (ret)) in thread_func() 48 FAIL ("pthread_barrier_wait (barrier1) (on thread): %d", ret); in thread_func() 49 ret = pthread_barrier_wait (&barrier2); in thread_func() 50 if (is_invalid_barrier_ret (ret)) in thread_func() 51 FAIL ("pthread_barrier_wait (barrier2) (on thread): %d", ret); in thread_func() 58 int ret = setuid (0); in setuid_failure() local 59 switch (ret) in setuid_failure() 68 FAIL ("invalid setuid return value in phase %d: %d", phase, ret); in setuid_failure() 82 int ret = pthread_barrier_init (&barrier1, NULL, 2); in do_test() local [all …]
|
D | tst-cond-except.c | 28 #define CHECK_RETURN_VAL_OR_FAIL(ret,str) \ argument 29 ({ if ((ret) != 0) \ 31 printf ("%s failed: %s\n", (str), strerror (ret)); \ 32 ret = 1; \ 49 int ret = 0; in thr() local 51 ret = pthread_mutexattr_init (&mutexAttr); in thr() 52 CHECK_RETURN_VAL_OR_FAIL (ret, "pthread_mutexattr_init"); in thr() 54 ret = pthread_mutexattr_setprotocol (&mutexAttr, PTHREAD_PRIO_INHERIT); in thr() 55 CHECK_RETURN_VAL_OR_FAIL (ret, "pthread_mutexattr_setprotocol"); in thr() 57 ret = pthread_mutex_init (&mutex, &mutexAttr); in thr() [all …]
|
D | tst-cancel19.c | 61 int ret = 0; in do_test() local 76 ret = 1; in do_test() 82 ret = 1; in do_test() 92 ret = 1; in do_test() 98 ret = 1; in do_test() 108 ret = 1; in do_test() 114 ret = 1; in do_test() 137 ret = 1; in do_test() 143 ret = 1; in do_test() 161 ret = 1; in do_test() [all …]
|
D | tst-cond24.c | 44 int *ret = arg; in thread_fun_timed() local 47 printf ("Started thread_fun_timed[%d]\n", *ret); in thread_fun_timed() 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() 95 int *ret = arg; in thread_fun() local 98 printf ("Started thread_fun[%d]\n", *ret); in thread_fun() 106 *ret = 1; in thread_fun() [all …]
|
/glibc-2.36/nptl/ |
D | tst-setuid2.c | 39 int ret = pthread_mutex_lock (&mutex); in thread_func() local 40 if (ret != 0) in thread_func() 41 FAIL ("pthread_mutex_lock (thread): %d", ret); in thread_func() 48 ret = pthread_mutex_unlock (&mutex); in thread_func() 49 if (ret != 0) in thread_func() 50 FAIL ("pthread_mutex_unlock (thread): %d", ret); in thread_func() 52 ret = pthread_mutex_lock (&mutex); in thread_func() 53 if (ret != 0) in thread_func() 54 FAIL ("pthread_mutex_lock (thread): %d", ret); in thread_func() 56 ret = pthread_cond_signal (&cond_recv); in thread_func() [all …]
|
D | tst-setgetname.c | 81 int ret = 0; in do_test() local 105 ret++; in do_test() 111 ret++; in do_test() 117 ret++; in do_test() 137 ret++; in do_test() 143 ret++; in do_test() 149 ret++; in do_test() 178 ret++; in do_test() 184 ret++; in do_test() 191 ret++; in do_test() [all …]
|
/glibc-2.36/math/ |
D | math-narrow.h | 93 TYPE ret; \ 98 ret = (TYPE) ((X) + (Y)); \ 100 ret = (TYPE) ROUND_TO_ODD (math_opt_barrier (X) + (Y), \ 103 CHECK_NARROW_ADD (ret, (X), (Y)); \ 104 return ret; \ 115 TYPE ret; \ 117 ret = (TYPE) ((X) + (Y)); \ 118 CHECK_NARROW_ADD (ret, (X), (Y)); \ 119 return ret; \ 151 TYPE ret; \ [all …]
|
D | test-femode.c | 31 int ret = fesetround (mode1); in test_mmee() local 32 if (ret != 0) in test_mmee() 43 ret = fesetexcept (exc1); in test_mmee() 44 if (ret != 0) in test_mmee() 56 ret = fegetmode (&saved); in test_mmee() 57 if (ret != 0) in test_mmee() 64 ret = fesetround (mode2); in test_mmee() 65 if (ret != 0) in test_mmee() 76 ret = fesetexcept (exc2); in test_mmee() 77 if (ret != 0) in test_mmee() [all …]
|
D | test-fesetexcept.c | 30 int ret = fesetexcept (exc); in test_fesetexcept() local 31 if (ret == 0) in test_fesetexcept() 45 ret = fetestexcept (FE_ALL_EXCEPT); in test_fesetexcept() 46 if (ret != exc) in test_fesetexcept() 49 (unsigned int) ret, (unsigned int) exc); in test_fesetexcept() 53 ret = feraiseexcept (FE_ALL_EXCEPT); in test_fesetexcept() 54 if (ret != 0) in test_fesetexcept() 64 ret = fesetexcept (exc); in test_fesetexcept() 65 if (ret != 0) in test_fesetexcept() 70 ret = fetestexcept (FE_ALL_EXCEPT); in test_fesetexcept() [all …]
|
D | test-fenv-tls.c | 33 ret = 1; \ 42 intptr_t ret = 0; in test_round() local 59 return (void *) ret; in test_round() 69 ret = 1; \ 75 ret = 1; \ 83 intptr_t ret = 0; in test_raise() local 102 return (void *) ret; in test_raise() 112 ret = 1; \ 118 ret = 1; \ 126 intptr_t ret = 0; in test_enable() local [all …]
|
/glibc-2.36/resolv/ |
D | tst-resolv-noaaaa.c | 157 int ret = res_mkquery (QUERY, qname, C_IN, qtype, in libresolv_query() local 159 TEST_VERIFY_EXIT (ret > 0); in libresolv_query() 161 return res_send (querybuf, ret, buf, buflen); in libresolv_query() 166 int ret = res_nmkquery (&_res, QUERY, qname, C_IN, qtype, in libresolv_query() local 168 TEST_VERIFY_EXIT (ret > 0); in libresolv_query() 170 return res_nsend (&_res, querybuf, ret, buf, buflen); in libresolv_query() 242 int ret; in do_test() local 243 ret = getaddrinfo ("an1.ns2.ar1.example", "80", in do_test() 249 check_addrinfo ("an1.ns2.ar1.example (AF_INET)", ai, ret, in do_test() 253 ret = getaddrinfo ("an1.ns2.ar1.example", "80", in do_test() [all …]
|
D | tst-resolv-trustad.c | 113 int ret = res_send (hand_crafted_query, sizeof (hand_crafted_query), in do_test() local 115 TEST_VERIFY (ret > 0); in do_test() 116 check_answer (buffer, ret, false); in do_test() 121 ret = res_query ("www.example", C_IN, T_A, buffer, sizeof (buffer)); in do_test() 122 TEST_VERIFY (ret > 0); in do_test() 123 check_answer (buffer, ret, false); in do_test() 130 ret = res_send (hand_crafted_query, sizeof (hand_crafted_query), in do_test() 132 TEST_VERIFY (ret > 0); in do_test() 133 check_answer (buffer, ret, false); in do_test() 138 ret = res_query ("www.example", C_IN, T_A, buffer, sizeof (buffer)); in do_test() [all …]
|
/glibc-2.36/iconvdata/ |
D | tst-iconv-big5-hkscs-to-2ucs4.c | 70 size_t ret; in check_conversion() local 78 ret = mbrtowc (&wc, mbs, inlen - consumed, &st); in check_conversion() 79 if (ret != 2) in check_conversion() 81 printf ("error: First conversion consumed only %zd bytes.\n", ret); in check_conversion() 85 mbs += ret; in check_conversion() 86 consumed += ret; in check_conversion() 93 ret = mbrtowc (&wc, mbs, inlen - consumed, &st); in check_conversion() 94 if (ret != 0) in check_conversion() 96 printf ("error: Second conversion consumed only %zd bytes.\n", ret); in check_conversion() 100 mbs += ret; in check_conversion() [all …]
|
/glibc-2.36/malloc/ |
D | tst-malloc-thread-fail.c | 179 int ret = pthread_barrier_wait (&start_barrier); in allocate_thread() local 180 if (ret != 0 && ret != PTHREAD_BARRIER_SERIAL_THREAD) in allocate_thread() 182 errno = ret; in allocate_thread() 206 int ret = pthread_barrier_wait (&end_barrier); in allocate_thread() local 207 if (ret != 0 && ret != PTHREAD_BARRIER_SERIAL_THREAD) in allocate_thread() 209 errno = ret; in allocate_thread() 249 int ret = pthread_create (threads + i, &small_stack, allocate_thread, NULL); in run_one() local 250 if (ret != 0) in run_one() 252 errno = ret; in run_one() 263 int ret = pthread_join (threads[i], NULL); in run_one() local [all …]
|
D | tst-posix_memalign.c | 39 int ret; in do_test() local 53 ret = posix_memalign (&p, sizeof (void *), -1); in do_test() 58 if (ret != ENOMEM) in do_test() 61 if (ret == ENOMEM && p != NULL) in do_test() 69 ret = posix_memalign (&p, pagesize, -pagesize); in do_test() 71 if (ret != ENOMEM) in do_test() 79 ret = posix_memalign (&p, -1, pagesize); in do_test() 81 if (ret != EINVAL) in do_test() 90 ret = posix_memalign (&p, sizeof (void *), 0); in do_test() 92 if (ret != 0 || p == NULL) in do_test() [all …]
|
D | tst-mallopt.c | 34 int ret; in do_test() local 36 ret = mallopt(M_CHECK_ACTION, 1); in do_test() 38 if (ret != 1) in do_test() 41 ret = mallopt(M_MMAP_MAX, 64*1024); in do_test() 43 if (ret != 1) in do_test() 46 ret = mallopt(M_MMAP_THRESHOLD, 64*1024); in do_test() 48 if (ret != 1) in do_test() 51 ret = mallopt(M_MXFAST, 0); in do_test() 53 if (ret != 1) in do_test() 56 ret = mallopt(M_PERTURB, 0xa5); in do_test() [all …]
|
/glibc-2.36/libio/ |
D | tst-ftell-active-handler.c | 36 int ret = 0; \ 41 ret = 1; \ 50 ret = 1; \ 53 ret; \ 58 int ret = 0; \ 63 ret = 1; \ 71 ret = 1; \ 74 ret; \ 102 int ret = 0; in do_ftruncate_test() local 140 ret |= 1; in do_ftruncate_test() [all …]
|
/glibc-2.36/sysdeps/ieee754/flt-32/ |
D | e_gammaf_r.c | 94 float ret = (__ieee754_powf (x_adj_mant, x_adj) in gammaf_positive() local 105 return ret + ret * __expm1f (exp_adj); in gammaf_positive() 113 float ret; in __ieee754_gammaf_r() local 148 ret = math_narrow_eval (FLT_MAX * FLT_MAX); in __ieee754_gammaf_r() 149 return ret; in __ieee754_gammaf_r() 159 ret = __scalbnf (tret, exp2_adj); in __ieee754_gammaf_r() 164 ret = 1.0f / x; in __ieee754_gammaf_r() 172 ret = FLT_MIN * FLT_MIN; in __ieee754_gammaf_r() 184 ret = __scalbnf (tret, -exp2_adj); in __ieee754_gammaf_r() 185 math_check_force_underflow_nonneg (ret); in __ieee754_gammaf_r() [all …]
|
/glibc-2.36/sysdeps/ieee754/ldbl-opt/ |
D | nldbl-compat.c | 59 int ret; in libc_hidden_proto() local 62 ret = __vasprintf_internal (string_ptr, fmt, ap, PRINTF_LDBL_IS_DBL); in libc_hidden_proto() 65 return ret; in libc_hidden_proto() 74 int ret; in weak_alias() local 77 ret = __vdprintf_internal (d, fmt, ap, PRINTF_LDBL_IS_DBL); in weak_alias() 80 return ret; in weak_alias() 88 int ret; in __nldbl_fprintf() local 91 ret = __vfprintf_internal (stream, fmt, ap, PRINTF_LDBL_IS_DBL); in __nldbl_fprintf() 94 return ret; in __nldbl_fprintf() 103 int ret; in weak_alias() local [all …]
|
/glibc-2.36/io/ |
D | test-lfs.c | 94 int ret; in test_ftello() local 99 ret = fseeko64 (f, TWO_GB+100, SEEK_SET); in test_ftello() 100 if (ret == -1 && errno == ENOSYS) in test_ftello() 105 if (ret == -1 && errno == EINVAL) in test_ftello() 110 if (ret == -1) in test_ftello() 116 ret = fwrite ("Hello", 1, 5, f); in test_ftello() 117 if (ret == -1 && errno == EFBIG) in test_ftello() 123 if (ret == -1 && errno == ENOSPC) in test_ftello() 129 if (ret != 5) in test_ftello() 146 int ret, fd2; in do_test() local [all …]
|
/glibc-2.36/elf/ |
D | tst-_dl_addr_inside_object.c | 30 int ret, err = 0; in do_test() local 43 ret = _dl_addr_inside_object (&map, addr); in do_test() 44 switch (ret) in do_test() 59 ret = _dl_addr_inside_object (&map, addr); in do_test() 60 switch (ret) in do_test() 75 ret = _dl_addr_inside_object (&map, addr); in do_test() 76 switch (ret) in do_test() 91 ret = _dl_addr_inside_object (&map, addr); in do_test() 92 switch (ret) in do_test() 107 ret = _dl_addr_inside_object (&map, addr); in do_test() [all …]
|
/glibc-2.36/sysdeps/generic/ |
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 …]
|
/glibc-2.36/sysdeps/ieee754/dbl-64/ |
D | e_gamma_r.c | 125 double ret; in __ieee754_gamma_r() local 160 ret = math_narrow_eval (DBL_MAX * DBL_MAX); in __ieee754_gamma_r() 161 return ret; in __ieee754_gamma_r() 171 ret = __scalbn (tret, exp2_adj); in __ieee754_gamma_r() 176 ret = 1.0 / x; in __ieee754_gamma_r() 184 ret = DBL_MIN * DBL_MIN; in __ieee754_gamma_r() 207 ret = __scalbn (-h1, -exp2_adj); in __ieee754_gamma_r() 208 math_check_force_underflow_nonneg (ret); in __ieee754_gamma_r() 211 ret = math_narrow_eval (ret); in __ieee754_gamma_r() 213 if (isinf (ret) && x != 0) in __ieee754_gamma_r() [all …]
|