Searched refs:total_size (Results 1 – 6 of 6) sorted by relevance
/glibc-2.36/support/ |
D | blob_repeat.c | 90 allocate_malloc (size_t total_size, const void *element, size_t element_size, in allocate_malloc() argument 93 void *buffer = malloc (total_size); in allocate_malloc() 100 .size = total_size, in allocate_malloc() 131 allocate_big (size_t total_size, const void *element, size_t element_size, in allocate_big() argument 148 if (stride_size > total_size) in allocate_big() 150 return allocate_malloc (total_size, element, element_size, count); in allocate_big() 154 void *target = mmap (NULL, total_size, PROT_NONE, in allocate_big() 191 xmunmap (target, total_size); in allocate_big() 215 size_t remaining_size = total_size; in allocate_big() 235 xmunmap (target, total_size); in allocate_big() [all …]
|
D | support_shared_allocate.c | 29 size_t total_size; member 36 size_t total_size = size + offsetof (struct header, data); in support_shared_allocate() local 37 if (total_size < size) in support_shared_allocate() 45 struct header *result = xmmap (NULL, total_size, PROT_READ | PROT_WRITE, in support_shared_allocate() 47 result->total_size = total_size; in support_shared_allocate() 56 xmunmap (header, header->total_size); in support_shared_free()
|
D | tst-support_blob_repeat.c | 88 enum { total_size = 9 * 10 * 1000 * 1000 }; in do_test() enumerator 89 p[total_size - 1] = '\0'; in do_test() 94 TEST_VERIFY (strlen (repeat.start) < total_size - 1); in do_test() 96 TEST_COMPARE (strlen (repeat.start), total_size - 1); in do_test()
|
/glibc-2.36/manual/examples/ |
D | mkdirent.c | 29 size_t total_size = dirent_size + name_length; in mkdirent() local 30 if (total_size < dirent_size) in mkdirent() 35 struct dirent *result = malloc (total_size); in mkdirent()
|
/glibc-2.36/time/ |
D | tzfile.c | 269 size_t total_size = (num_transitions * sizeof (__time64_t) in __tzfile_read() local 275 transitions = malloc (total_size); in __tzfile_read() 278 buf = alloc_buffer_create (transitions, total_size); in __tzfile_read()
|
/glibc-2.36/malloc/ |
D | malloc.c | 3046 size_t total_size = prev_size (p) + size; in munmap_chunk() local 3052 if (__glibc_unlikely ((block | total_size) & (pagesize - 1)) != 0 in munmap_chunk() 3057 atomic_add (&mp_.mmapped_mem, -total_size); in munmap_chunk() 3062 __munmap ((char *) block, total_size); in munmap_chunk() 3079 size_t total_size = offset + size; in mremap_chunk() local 3080 if (__glibc_unlikely ((block | total_size) & (pagesize - 1)) != 0 in mremap_chunk() 3088 if (total_size == new_size) in mremap_chunk() 3091 cp = (char *) __mremap ((char *) block, total_size, new_size, in mremap_chunk()
|