rtld.c (8b40aab156eb4b8bde73210f1cda8c27322f84d6) | rtld.c (1a3b2ebf9595f4203df1b54d8a1343b908a1ea9d) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra. 5 * Copyright 2003 Alexander Kabaev <kan@FreeBSD.ORG>. 6 * Copyright 2009-2013 Konstantin Belousov <kib@FreeBSD.ORG>. 7 * Copyright 2012 John Marino <draco@marino.st>. 8 * Copyright 2014-2017 The FreeBSD Foundation --- 52 unchanged lines hidden (view full) --- 61#include <unistd.h> 62 63#include "debug.h" 64#include "rtld.h" 65#include "libmap.h" 66#include "paths.h" 67#include "rtld_tls.h" 68#include "rtld_printf.h" | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra. 5 * Copyright 2003 Alexander Kabaev <kan@FreeBSD.ORG>. 6 * Copyright 2009-2013 Konstantin Belousov <kib@FreeBSD.ORG>. 7 * Copyright 2012 John Marino <draco@marino.st>. 8 * Copyright 2014-2017 The FreeBSD Foundation --- 52 unchanged lines hidden (view full) --- 61#include <unistd.h> 62 63#include "debug.h" 64#include "rtld.h" 65#include "libmap.h" 66#include "paths.h" 67#include "rtld_tls.h" 68#include "rtld_printf.h" |
69#include "rtld_malloc.h" |
|
69#include "rtld_utrace.h" 70#include "notes.h" 71 72/* Types. */ 73typedef void (*func_ptr_type)(void); 74typedef void * (*path_enum_proc) (const char *path, size_t len, void *arg); 75 76 --- 5555 unchanged lines hidden (view full) --- 5632void 5633bzero(void *dest, size_t len) 5634{ 5635 size_t i; 5636 5637 for (i = 0; i < len; i++) 5638 ((char *)dest)[i] = 0; 5639} | 70#include "rtld_utrace.h" 71#include "notes.h" 72 73/* Types. */ 74typedef void (*func_ptr_type)(void); 75typedef void * (*path_enum_proc) (const char *path, size_t len, void *arg); 76 77 --- 5555 unchanged lines hidden (view full) --- 5633void 5634bzero(void *dest, size_t len) 5635{ 5636 size_t i; 5637 5638 for (i = 0; i < len; i++) 5639 ((char *)dest)[i] = 0; 5640} |
5641 5642/* malloc */ 5643void * 5644malloc(size_t nbytes) 5645{ 5646 5647 return (__crt_malloc(nbytes)); 5648} 5649 5650void * 5651calloc(size_t num, size_t size) 5652{ 5653 5654 return (__crt_calloc(num, size)); 5655} 5656 5657void 5658free(void *cp) 5659{ 5660 5661 __crt_free(cp); 5662} 5663 5664void * 5665realloc(void *cp, size_t nbytes) 5666{ 5667 5668 return (__crt_realloc(cp, nbytes)); 5669} |
|