003 File Manager
Current Path:
/usr/src/contrib/unbound/compat
usr
/
src
/
contrib
/
unbound
/
compat
/
📁
..
📄
arc4_lock.c
(2.3 KB)
📄
arc4random.c
(6.42 KB)
📄
arc4random_uniform.c
(1.78 KB)
📄
chacha_private.h
(5.28 KB)
📄
ctime_r.c
(912 B)
📄
explicit_bzero.c
(473 B)
📄
fake-rfc2553.c
(5.96 KB)
📄
fake-rfc2553.h
(5.18 KB)
📄
getentropy_freebsd.c
(1.58 KB)
📄
getentropy_linux.c
(12.87 KB)
📄
getentropy_osx.c
(10.31 KB)
📄
getentropy_solaris.c
(10.42 KB)
📄
getentropy_win.c
(1.66 KB)
📄
gmtime_r.c
(2.37 KB)
📄
inet_aton.c
(5.4 KB)
📄
inet_ntop.c
(5.48 KB)
📄
inet_pton.c
(5.15 KB)
📄
isblank.c
(1.82 KB)
📄
malloc.c
(450 B)
📄
memcmp.c
(472 B)
📄
memcmp.h
(317 B)
📄
memmove.c
(947 B)
📄
reallocarray.c
(1.4 KB)
📄
sha512.c
(15.5 KB)
📄
snprintf.c
(28.82 KB)
📄
strlcat.c
(2.39 KB)
📄
strlcpy.c
(1.63 KB)
📄
strptime.c
(8.97 KB)
📄
strsep.c
(2.11 KB)
Editing: ctime_r.c
/* taken from ldns 1.6.1 */ #include "config.h" #ifdef HAVE_TIME_H #include <time.h> #endif #include "util/locks.h" /** the lock for ctime buffer */ static lock_basic_type ctime_lock; /** has it been inited */ static int ctime_r_init = 0; /** cleanup ctime_r on exit */ static void ctime_r_cleanup(void) { if(ctime_r_init) { ctime_r_init = 0; lock_basic_destroy(&ctime_lock); } } char *ctime_r(const time_t *timep, char *buf) { char* result; if(!ctime_r_init) { /* still small race where this init can be done twice, * which is mostly harmless */ ctime_r_init = 1; lock_basic_init(&ctime_lock); atexit(&ctime_r_cleanup); } lock_basic_lock(&ctime_lock); result = ctime(timep); if(buf && result) { if(strlen(result) > 10 && result[7]==' ' && result[8]=='0') result[8]=' '; /* fix error in windows ctime */ strcpy(buf, result); } lock_basic_unlock(&ctime_lock); return result; }
Upload File
Create Folder