Lines Matching refs:size
24 xmalloc(size_t size)
28 if (size == 0)
29 fatal("xmalloc: zero size");
30 ptr = malloc(size);
32 fatal("xmalloc: out of memory (allocating %lu bytes)", (u_long) size);
37 xcalloc(size_t nmemb, size_t size)
41 if (size == 0 || nmemb == 0)
42 fatal("xcalloc: zero size");
43 if (SIZE_T_MAX / nmemb < size)
44 fatal("xcalloc: nmemb * size > SIZE_T_MAX");
45 ptr = calloc(nmemb, size);
48 (u_long)(size * nmemb));
58 fatal("xrealloc: zero size");