xmalloc.c (7e565c552a5d3ab1745f5d37c61c51069508f124) | xmalloc.c (b54a59f3ba244b76a34488090653df687527e53c) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright 1996-1998 John D. Polstra. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 20 unchanged lines hidden (view full) --- 29 30#include <stddef.h> 31#include <stdlib.h> 32#include <string.h> 33#include <unistd.h> 34#include "rtld.h" 35#include "rtld_printf.h" 36#include "rtld_malloc.h" | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright 1996-1998 John D. Polstra. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 20 unchanged lines hidden (view full) --- 29 30#include <stddef.h> 31#include <stdlib.h> 32#include <string.h> 33#include <unistd.h> 34#include "rtld.h" 35#include "rtld_printf.h" 36#include "rtld_malloc.h" |
37#include "rtld_libc.h" |
|
37 38void * 39xcalloc(size_t number, size_t size) 40{ 41 void *p; 42 43 p = __crt_calloc(number, size); 44 if (p == NULL) { --- 59 unchanged lines hidden --- | 38 39void * 40xcalloc(size_t number, size_t size) 41{ 42 void *p; 43 44 p = __crt_calloc(number, size); 45 if (p == NULL) { --- 59 unchanged lines hidden --- |