/malloc/ |
A D | tst-dynarray.c | 411 struct long_array result; in test_long_init() local 428 free (result.array); in test_long_init() 448 free (result.array); in test_long_init() 521 TEST_VERIFY (result == NULL); in test_zstr() 525 TEST_VERIFY (result == NULL); in test_zstr() 537 TEST_VERIFY (*result == '\0'); in test_zstr() 539 free (result); in test_zstr() 545 TEST_VERIFY (*result == '\0'); in test_zstr() 548 free (result); in test_zstr() 563 free (result); in test_zstr() [all …]
|
A D | tst-dynarray-at-fail.c | 33 struct support_capture_subprocess result in check() local 35 if (strcmp (result.err.buffer, expected) != 0) in check() 41 test, index, expected, result.err.buffer); in check() 43 TEST_VERIFY (strlen (result.out.buffer) == 0); in check() 44 TEST_VERIFY (WIFSIGNALED (result.status)); in check() 45 if (WIFSIGNALED (result.status)) in check() 46 TEST_VERIFY (WTERMSIG (result.status) == SIGABRT); in check() 47 support_capture_subprocess_free (&result); in check()
|
A D | memusage.c | 141 if (result != NULL) in update_data() 380 if (result == NULL) in malloc() 468 if (result == NULL) in realloc() 475 if (real == result) in realloc() 526 if (result == NULL) in calloc() 597 void *result = NULL; in mmap() local 641 return result; in mmap() 694 return result; in mmap64() 761 return result; in mremap() 769 int result; in munmap() local [all …]
|
A D | tst-interpose-aux.c | 161 void *result = mmap (NULL, allocation_size, PROT_READ | PROT_WRITE, in malloc_internal() local 163 if (result == MAP_FAILED) in malloc_internal() 165 allocations[index] = result; in malloc_internal() 181 int result = mprotect (header, header->allocation_size, PROT_NONE); in free_internal() local 182 if (result != 0) in free_internal() 228 void *result = malloc_internal (size); in malloc() local 230 return result; in malloc() 254 void *result = malloc_internal (a * b); in calloc() local 256 return result; in calloc() 272 void *result = realloc_internal (ptr, n); in realloc() local [all …]
|
A D | tst-safe-linking.c | 42 struct support_capture_subprocess result in check() local 44 printf ("%s\n", result.out.buffer); in check() 46 if (strlen (result.err.buffer) == 0) in check() 50 if (strcmp (result.err.buffer, expected) != 0) in check() 55 test, expected, result.err.buffer); in check() 59 TEST_VERIFY (WIFSIGNALED (result.status)); in check() 60 if (WIFSIGNALED (result.status)) in check() 61 TEST_VERIFY (WTERMSIG (result.status) == SIGABRT); in check() 62 support_capture_subprocess_free (&result); in check()
|
A D | tst-interpose-skeleton.c | 86 ssize_t result = getline (&actual, &actual_size, fp); in run_tests() local 87 if (result == 0) in run_tests() 92 if (result < 0 && errno != 0) in run_tests() 97 if (result < 0 && line_lengths[lineno] >= 0) in run_tests() 102 if (result > 0 && line_lengths[lineno] < 0) in run_tests() 107 if (result == -1 && line_lengths[lineno] == -1) in run_tests() 111 if (result != line_lengths[lineno] + 1) in run_tests() 114 line_lengths[lineno], result); in run_tests()
|
A D | tst-dynarray-fail.c | 115 struct int_array result = { (int *) (uintptr_t) -1, -1 }; in test_int_fail() local 118 TEST_VERIFY_EXIT (result.length == (size_t) -1); in test_int_fail() 146 struct int_array result = { (int *) (uintptr_t) -1, -1 }; in test_int_fail() local 147 TEST_VERIFY_EXIT (!dynarray_int_finalize (&dyn, &result)); in test_int_fail() 148 TEST_VERIFY_EXIT (result.array == (int *) (uintptr_t) -1); in test_int_fail() 149 TEST_VERIFY_EXIT (result.length == (size_t) -1); in test_int_fail() 247 TEST_VERIFY_EXIT (result.length == (size_t) -1); in test_str_fail() 276 struct str_array result = { (char **) (uintptr_t) -1, -1 }; in test_str_fail() local 277 TEST_VERIFY_EXIT (!dynarray_str_finalize (&dyn, &result)); in test_str_fail() 278 TEST_VERIFY_EXIT (result.array == (char **) (uintptr_t) -1); in test_str_fail() [all …]
|
A D | morecore.c | 29 void *result = (void *) __sbrk (increment); in __glibc_morecore() local 30 if (result == (void *) -1) in __glibc_morecore() 33 return result; in __glibc_morecore()
|
A D | arena.c | 275 char *result = NULL; 298 return result; 812 if (result != NULL) in get_free_list() 836 return result; in get_free_list() 865 mstate result; in reused_arena() local 873 result = next_to_use; in reused_arena() 880 result = result->next; in reused_arena() 887 result = result->next; in reused_arena() 890 LIBC_PROBE (memory_arena_reuse_wait, 3, &result->mutex, result, avoid_arena); in reused_arena() 917 thread_arena = result; in reused_arena() [all …]
|
A D | dynarray_finalize.c | 26 struct dynarray_finalize_result *result) in __libc_dynarray_finalize() argument 41 *result = (struct dynarray_finalize_result) { NULL, 0 }; in __libc_dynarray_finalize() 54 *result = (struct dynarray_finalize_result) in __libc_dynarray_finalize()
|
A D | tst-malloc-stats-cancellation.c | 97 int result = 0, err, real_stderr_fd, bufpipe[2]; in do_test() local 195 result = 1; in do_test() 202 result = 1; in do_test() 207 result = 1; in do_test() 210 if (result == 1) in do_test() 215 return result; in do_test()
|
A D | tst-obstack.c | 30 int result = 0; in do_test() local 53 result |= ((uintptr_t) obj & align_mask) != 0; in do_test() 62 return result; in do_test()
|
A D | dynarray-skeleton.c | 322 DYNARRAY_ELEMENT *result in DYNARRAY_NAME() local 326 DYNARRAY_ELEMENT_INIT (result); in DYNARRAY_NAME() 328 memset (result, 0, sizeof (*result)); in DYNARRAY_NAME() 330 return result; in DYNARRAY_NAME() 458 DYNARRAY_FINAL_TYPE *result) in DYNARRAY_NAME() 467 *result = (DYNARRAY_FINAL_TYPE) { res.array, res.length }; in DYNARRAY_NAME()
|
A D | memusage.sh | 253 result=$? 270 exit $result
|
A D | dynarray.h | 162 struct dynarray_finalize_result *result);
|
A D | tst-mallocstate.c | 132 void *result = next_heap_chunk + 1; in dumped_heap_alloc() local 137 return result; in dumped_heap_alloc()
|
A D | malloc.c | 5047 int result = 0; in mtrim() local 5080 result = 1; in mtrim() 5087 return result | (av == &main_arena ? systrim (pad, av) : 0); in mtrim() 5090 return result; in mtrim() 5098 int result = 0; in __malloc_trim() local 5107 result |= mtrim (ar_ptr, s); in __malloc_trim() 5114 return result; in __malloc_trim()
|