/malloc/ |
A D | tst-scratch_buffer.c | 65 if (buf.data != buf.__space.__c) in array_size_must_fail() 79 struct scratch_buffer buf; in do_test() local 81 memset (buf.data, ' ', buf.length); in do_test() 85 struct scratch_buffer buf; in do_test() local 87 memset (buf.data, ' ', buf.length); in do_test() 95 memset (buf.data, ' ', buf.length); in do_test() 99 struct scratch_buffer buf; in do_test() local 101 memset (buf.data, '@', buf.length); in do_test() 157 memset (buf.data, '@', buf.length); in do_test() 159 size_t sizes[] = { 16, buf.length, buf.length + 16 }; in do_test() [all …]
|
A D | tst-alloc_buffer.c | 248 test_empty (buf); in test_size_1() 257 test_empty (buf); in test_size_1() 266 test_empty (buf); in test_size_1() 317 test_size_1 (buf); in test_size_2() 326 test_size_1 (buf); in test_size_2() 345 test_empty (buf); in test_size_2() 355 test_empty (buf); in test_size_2() 364 test_empty (buf); in test_size_2() 483 test_empty (buf); in test_large() 499 test_empty (buf); in test_large() [all …]
|
A D | alloc_buffer_create_failure.c | 25 char buf[200]; in __libc_alloc_buffer_create_failure() local 26 __snprintf (buf, sizeof (buf), "Fatal glibc error: " in __libc_alloc_buffer_create_failure() 29 __libc_fatal (buf); in __libc_alloc_buffer_create_failure()
|
A D | tst-obstack.c | 15 void *buf = malloc (size); in verbose_malloc() local 16 printf ("malloc (%zu) => %p\n", size, buf); in verbose_malloc() 17 return buf; in verbose_malloc() 21 verbose_free (void *buf) in verbose_free() argument 23 free (buf); in verbose_free() 24 printf ("free (%p)\n", buf); in verbose_free()
|
A D | dynarray_at_failure.c | 26 char buf[200]; in __libc_dynarray_at_failure() local 27 __snprintf (buf, sizeof (buf), "Fatal glibc error: " in __libc_dynarray_at_failure() 30 __libc_fatal (buf); in __libc_dynarray_at_failure()
|
A D | alloc_buffer_alloc_array.c | 23 __libc_alloc_buffer_alloc_array (struct alloc_buffer *buf, size_t element_size, in __libc_alloc_buffer_alloc_array() argument 26 size_t current = buf->__alloc_buffer_current; in __libc_alloc_buffer_alloc_array() 35 && new_current <= buf->__alloc_buffer_end) /* Room in buffer. */ in __libc_alloc_buffer_alloc_array() 37 buf->__alloc_buffer_current = new_current; in __libc_alloc_buffer_alloc_array() 42 alloc_buffer_mark_failed (buf); in __libc_alloc_buffer_alloc_array()
|
A D | alloc_buffer_copy_bytes.c | 26 __libc_alloc_buffer_copy_bytes (struct alloc_buffer buf, in __libc_alloc_buffer_copy_bytes() argument 29 void *ptr = alloc_buffer_alloc_bytes (&buf, len); in __libc_alloc_buffer_copy_bytes() 32 return buf; in __libc_alloc_buffer_copy_bytes()
|
A D | memusagestat.c | 132 char buf[30]; in main() local 295 snprintf (buf, sizeof (buf), heap_format, 0); in main() 298 snprintf (buf, sizeof (buf), stack_format, 0); in main() 300 (unsigned char *) buf, green); in main() 316 snprintf (buf, sizeof (buf), heap_format, maxsize_heap / heap_scale); in main() 318 (unsigned char *) buf, red); in main() 319 snprintf (buf, sizeof (buf), stack_format, maxsize_stack / stack_scale); in main() 331 snprintf (buf, sizeof (buf), heap_format, in main() 348 snprintf (buf, sizeof (buf), stack_format, in main() 354 snprintf (buf, sizeof (buf), "%llu", (unsigned long long) total); in main() [all …]
|
A D | alloc_buffer_copy_string.c | 26 __libc_alloc_buffer_copy_string (struct alloc_buffer buf, const char *src) in __libc_alloc_buffer_copy_string() argument 28 return __libc_alloc_buffer_copy_bytes (buf, src, strlen (src) + 1); in __libc_alloc_buffer_copy_string()
|
A D | mtrace-impl.c | 45 char *buf = (char *) ""; in tr_where() local 49 buf = alloca (len + 6 + 2 * sizeof (void *)); in tr_where() 62 sprintf (buf, "(%s%c%" PRIxPTR ")", info->dli_sname, sign, in tr_where() 67 info->dli_fname ? : "", info->dli_fname ? ":" : "", buf, in tr_where()
|
A D | memusage.sh | 137 -b | --b | --bu | --buf | --buff | --buffe | --buffer) 144 --b=* | --bu=* | --buf=* | --buff=* | --buffe=* | --buffer=*)
|