Home
last modified time | relevance | path

Searched refs:size (Results 1 – 16 of 16) sorted by relevance

/support/
A Dtst-xreadlink.c38 for (int size = 1; size < 10000; ++size) in do_test() local
40 char *contents = xmalloc (size + 1); in do_test()
41 for (int i = 0; i < size; ++i) in do_test()
43 contents[size] = '\0'; in do_test()
48 printf ("info: ENAMETOOLONG failure at %d bytes\n", size); in do_test()
52 FAIL_EXIT1 ("symlink (%d bytes): %m", size); in do_test()
A Dnext_to_fault.c26 support_next_to_fault_allocate (size_t size) in support_next_to_fault_allocate() argument
31 result.region_size = roundup (size, page_size) + page_size; in support_next_to_fault_allocate()
32 if (size + page_size <= size || result.region_size <= size) in support_next_to_fault_allocate()
33 FAIL_EXIT1 ("support_next_to_fault_allocate (%zu): overflow", size); in support_next_to_fault_allocate()
42 result.buffer = result.region_start + result.region_size - page_size - size; in support_next_to_fault_allocate()
43 result.length = size; in support_next_to_fault_allocate()
A Doom_error.c25 oom_error (const char *function, size_t size) in oom_error() argument
27 printf ("%s: unable to allocate %zu bytes: %m\n", function, size); in oom_error()
A Dsupport_shared_allocate.c34 support_shared_allocate (size_t size) in support_shared_allocate() argument
36 size_t total_size = size + offsetof (struct header, data); in support_shared_allocate()
37 if (total_size < size) in support_shared_allocate()
40 oom_error (__func__, size); in support_shared_allocate()
A Dtst-xsigstack.c42 size_t size; in do_test() local
43 xget_sigstack_location (sstk, &sp, &size); in do_test()
44 printf ("signal stack installed: sp=%p size=%zu\n", sp, size); in do_test()
58 TEST_VERIFY (haddr < (uintptr_t)sp + size); in do_test()
A Dsupport_format_dns_packet.c31 size_t size; member
37 if (in->size == 0) in extract_8()
41 --in->size; in extract_8()
48 if (in->size < 2) in extract_16()
52 in->size -= 2; in extract_16()
59 if (in->size < 4) in extract_32()
67 in->size -= 4; in extract_32()
74 if (in->size < length) in extract_bytes()
78 in->size -= length; in extract_bytes()
94 || in->size > (size_t) (full_end - in->data))); in extract_name()
[all …]
A Dsupport_stack_alloc.c36 support_stack_alloc (size_t size) in support_stack_alloc() argument
45 size_t stacksize = roundup (size + sysconf (_SC_SIGSTKSZ), in support_stack_alloc()
81 size_t alloc_size = stack->size + 2 * stack->guardsize; in support_stack_free()
A Dxsigstack.c46 xalloc_sigstack (size_t size) in xalloc_sigstack() argument
49 desc->stack = support_stack_alloc (size); in xalloc_sigstack()
52 desc->alt_stack.ss_size = desc->stack.size; in xalloc_sigstack()
A Dnext_to_fault.h42 struct support_next_to_fault support_next_to_fault_allocate (size_t size);
A Dtst-support_blob_repeat.c29 TEST_COMPARE_BLOB (repeat.start, repeat.size, "55555", 5); in do_test()
33 TEST_COMPARE_BLOB (repeat.start, repeat.size, "ABCABCABC", 9); in do_test()
37 TEST_COMPARE_BLOB (repeat.start, repeat.size, "abc\0abc\0abc", 12); in do_test()
46 TEST_COMPARE (repeat.size, gigabyte + 1); in do_test()
A Dsupport_test_compare_failure.c25 int size) in report() argument
33 = (~0ULL) >> (8 * (sizeof (unsigned long long) - size)); in report()
A Dsupport.h53 void oom_error (const char *function, size_t size)
61 void *support_shared_allocate (size_t size);
203 size_t size; member
214 struct support_stack support_stack_alloc (size_t size);
A Dblob_repeat.h28 size_t size; member
A Dxsignal.h47 void *xalloc_sigstack (size_t size);
A Dblob_repeat.c100 .size = total_size, in allocate_malloc()
253 .size = total_size, in allocate_big()
291 if (blob->size > 0) in support_blob_repeat_free()
297 xmunmap (blob->start, blob->size); in support_blob_repeat_free()
A Dtest-container.c324 size_t size; member
333 if (pb->buf == NULL || pb->size < len + 1) in r_setup()
345 pb->size = sz; in r_setup()
355 if (pb->size < len + 1) in r_append()
363 pb->size = sz; in r_append()

Completed in 24 milliseconds