Changeset View
Changeset View
Standalone View
Standalone View
libexec/rtld-elf/xmalloc.c
Show All 28 Lines | |||||
#include <stddef.h> | #include <stddef.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include "rtld.h" | #include "rtld.h" | ||||
#include "rtld_printf.h" | #include "rtld_printf.h" | ||||
#include "rtld_malloc.h" | #include "rtld_malloc.h" | ||||
#include "rtld_libc.h" | |||||
void * | void * | ||||
xcalloc(size_t number, size_t size) | xcalloc(size_t number, size_t size) | ||||
{ | { | ||||
void *p; | void *p; | ||||
p = __crt_calloc(number, size); | p = __crt_calloc(number, size); | ||||
if (p == NULL) { | if (p == NULL) { | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |