003 File Manager
Current Path:
/usr/src/contrib/ldns/compat
usr
/
src
/
contrib
/
ldns
/
compat
/
📁
..
📄
b64_ntop.c
(7.25 KB)
📄
b64_pton.c
(8.47 KB)
📄
calloc.c
(415 B)
📄
ctime_r.c
(262 B)
📄
fake-rfc2553.c
(6.07 KB)
📄
fake-rfc2553.h
(5.26 KB)
📄
gmtime_r.c
(231 B)
📄
inet_aton.c
(5.33 KB)
📄
inet_ntop.c
(5.48 KB)
📄
inet_pton.c
(5.15 KB)
📄
isascii.c
(225 B)
📄
isblank.c
(255 B)
📄
localtime_r.c
(237 B)
📄
malloc.c
(397 B)
📄
memmove.c
(953 B)
📄
realloc.c
(567 B)
📄
snprintf.c
(28.66 KB)
📄
strlcpy.c
(1.63 KB)
📄
timegm.c
(414 B)
Editing: realloc.c
/* Just a replacement, if the original malloc is not GNU-compliant. Based on malloc.c */ #if HAVE_CONFIG_H #include <ldns/config.h> #endif #undef realloc #include <sys/types.h> void *realloc (void*, size_t); void *malloc (size_t); /* Changes allocation to new sizes, copies over old data. * if oldptr is NULL, does a malloc. * if size is zero, allocate 1-byte block.... * (does not return NULL and free block) */ void * rpl_realloc (void* ptr, size_t n) { if (n == 0) n = 1; if(ptr == 0) { return malloc(n); } return realloc(ptr, n); }
Upload File
Create Folder