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: memmove.c
/* * memmove.c: memmove compat implementation. * * Copyright (c) 2001-2006, NLnet Labs. All rights reserved. * * See LICENSE for the license. */ #include <config.h> #include <stdlib.h> void *memmove(void *dest, const void *src, size_t n); void *memmove(void *dest, const void *src, size_t n) { uint8_t* from = (uint8_t*) src; uint8_t* to = (uint8_t*) dest; if (from == to || n == 0) return dest; if (to > from && to-from < (int)n) { /* to overlaps with from */ /* <from......> */ /* <to........> */ /* copy in reverse, to avoid overwriting from */ int i; for(i=n-1; i>=0; i--) to[i] = from[i]; return dest; } if (from > to && from-to < (int)n) { /* to overlaps with from */ /* <from......> */ /* <to........> */ /* copy forwards, to avoid overwriting from */ size_t i; for(i=0; i<n; i++) to[i] = from[i]; return dest; } memcpy(dest, src, n); return dest; }
Upload File
Create Folder