Lines Matching refs:malloc
1 # malloc.m4 serial 28
12 AC_CACHE_CHECK([whether malloc (0) returns nonnull],
18 [[void *p = malloc (0);
41 # Replace malloc if it is not compatible with GNU libc.
54 # Test whether malloc (N) reliably fails when N exceeds PTRDIFF_MAX,
55 # and replace malloc otherwise.
63 # Test whether malloc, realloc, calloc refuse to create objects
68 AC_CACHE_CHECK([whether malloc is ptrdiff_t safe],
82 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
90 #error "malloc might not be ptrdiff_t safe"
101 # Test whether 'malloc' is POSIX compliant (sets errno to ENOMEM when it
103 # malloc if it is not.
111 [Define if malloc, realloc, and calloc set errno on allocation failure.])
117 # Test whether malloc, realloc, calloc set errno to ENOMEM on failure.
122 AC_CACHE_CHECK([whether malloc, realloc, calloc set errno on failure],
128 dnl except on those platforms where we have seen 'test-malloc-gnu',
156 p = malloc ((unsigned long) PTRDIFF_MAX + 1);