/external/mksh/src/ |
H A D | strlcpy.c | 24 * Copy src to string dst of size siz. At most siz-1 characters 25 * will be copied. Always NUL terminates (unless siz == 0). 26 * Returns strlen(src); if retval >= siz, truncation occurred. 30 strlcpy(char *dst, const char *src, size_t siz) argument 34 if (siz == 0) 38 while (--siz && (*dst++ = *s++)) 42 if (siz == 0) { 43 /* safe to NUL-terminate dst since we copied <= siz-1 chars */
|
/external/llvm/lib/Support/ |
H A D | regstrlcpy.c | 24 * Copy src to string dst of size siz. At most siz-1 characters 25 * will be copied. Always NUL terminates (unless siz == 0). 26 * Returns strlen(src); if retval >= siz, truncation occurred. 29 llvm_strlcpy(char *dst, const char *src, size_t siz) argument 33 size_t n = siz; 45 if (siz != 0)
|
H A D | regex_impl.h | 102 size_t llvm_strlcpy(char *dst, const char *src, size_t siz);
|
/external/openssh/openbsd-compat/ |
H A D | strlcpy.c | 28 * Copy src to string dst of size siz. At most siz-1 characters 29 * will be copied. Always NUL terminates (unless siz == 0). 30 * Returns strlen(src); if retval >= siz, truncation occurred. 33 strlcpy(char *dst, const char *src, size_t siz) argument 37 size_t n = siz; 49 if (siz != 0)
|
H A D | strlcat.c | 28 * Appends src to string dst of size siz (unlike strncat, siz is the 29 * full size of dst, not space left). At most siz-1 characters 30 * will be copied. Always NUL terminates (unless siz <= strlen(dst)). 31 * Returns strlen(src) + MIN(siz, strlen(initial dst)). 32 * If retval >= siz, truncation occurred. 35 strlcat(char *dst, const char *src, size_t siz) argument 39 size_t n = siz; 46 n = siz - dlen;
|
H A D | vis.c | 147 * Strnvis will write no more than siz-1 bytes (and will NULL terminate). 166 strnvis(char *dst, const char *src, size_t siz, int flag) argument 173 for (start = dst, end = start + siz - 1; (c = *src) && dst < end; ) { 199 if (siz > 0)
|
H A D | openbsd-compat.h | 82 size_t strlcpy(char *dst, const char *src, size_t siz); 87 size_t strlcat(char *dst, const char *src, size_t siz);
|
/external/tcpdump/missing/ |
H A D | strlcpy.c | 45 * Copy src to string dst of size siz. At most siz-1 characters 46 * will be copied. Always NUL terminates (unless siz == 0). 47 * Returns strlen(src); if retval >= siz, truncation occurred. 50 strlcpy(char *dst, const char *src, size_t siz) argument 54 register size_t n = siz; 66 if (siz != 0)
|
H A D | strlcat.c | 45 * Appends src to string dst of size siz (unlike strncat, siz is the 46 * full size of dst, not space left). At most siz-1 characters 47 * will be copied. Always NUL terminates (unless siz == 0). 48 * Returns strlen(src); if retval >= siz, truncation occurred. 51 strlcat(char *dst, const char *src, size_t siz) argument 55 register size_t n = siz; 62 n = siz - dlen;
|
/external/libedit/src/ |
H A D | strlcat.c | 38 * Appends src to string dst of size siz (unlike strncat, siz is the 39 * full size of dst, not space left). At most siz-1 characters 40 * will be copied. Always NUL terminates (unless siz <= strlen(dst)). 41 * Returns strlen(src) + MIN(siz, strlen(initial dst)). 42 * If retval >= siz, truncation occurred. 45 strlcat(char *dst, const char *src, size_t siz) 50 size_t n = siz; 60 n = siz - dlen; 79 * Find length of string in dst (maxing out at siz) [all...] |
H A D | strlcpy.c | 38 * Copy src to string dst of size siz. At most siz-1 characters 39 * will be copied. Always NUL terminates (unless siz == 0). 40 * Returns strlen(src); if retval >= siz, truncation occurred. 43 strlcpy(char *dst, const char *src, size_t siz) 47 size_t n = siz; 62 if (siz != 0)
|
/external/ipsec-tools/src/racoon/ |
H A D | logger.h | 39 int siz; member in struct:log
|
H A D | logger.c | 64 log_open(siz, fname) 65 size_t siz; 75 p->buf = (char **)racoon_malloc(sizeof(char *) * siz); 80 memset(p->buf, 0, sizeof(char *) * siz); 82 p->tbuf = (time_t *)racoon_malloc(sizeof(time_t *) * siz); 88 memset(p->tbuf, 0, sizeof(time_t *) * siz); 90 p->siz = siz; 113 p->head %= p->siz; 194 for (i = 0; i < p->siz; [all...] |
/external/regex-re2/util/ |
H A D | benchmark.cc | 66 static void runN(Benchmark *b, int n, int siz) { argument 74 b->fnr(n, siz); 95 void RunBench(Benchmark* b, int nthread, int siz) { argument 104 runN(b, n, siz); 114 runN(b, n, siz); 124 if(siz >= (1<<20)) 125 snprintf(suf, sizeof suf, "/%dM", siz/(1<<20)); 126 else if(siz >= (1<<10)) 127 snprintf(suf, sizeof suf, "/%dK", siz/(1<<10)); 129 snprintf(suf, sizeof suf, "/%d", siz); [all...] |
/external/llvm/tools/llvm-c-test/ |
H A D | disassemble.c | 38 unsigned char *buf, int siz) { 50 while (pos < siz) { 51 size_t l = LLVMDisasmInstruction(D, buf + pos, siz - pos, 0, outline, 37 do_disassemble(const char *triple, const char *features, unsigned char *buf, int siz) argument
|
/external/wpa_supplicant_8/hostapd/src/crypto/ |
H A D | random.c | 171 size_t siz, i; local 176 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; 177 for (i = 0; i < siz; i++) 179 left -= siz; 186 size_t siz, i; local 195 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; 196 for (i = 0; i < siz; i++) 198 left -= siz;
|
/external/wpa_supplicant_8/src/crypto/ |
H A D | random.c | 171 size_t siz, i; local 176 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; 177 for (i = 0; i < siz; i++) 179 left -= siz; 186 size_t siz, i; local 195 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; 196 for (i = 0; i < siz; i++) 198 left -= siz;
|
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/ |
H A D | random.c | 171 size_t siz, i; local 176 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; 177 for (i = 0; i < siz; i++) 179 left -= siz; 186 size_t siz, i; local 195 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; 196 for (i = 0; i < siz; i++) 198 left -= siz;
|
/external/svox/pico/lib/ |
H A D | picopal.c | 107 picopal_int32 picopal_strncmp(const picopal_char *a, const picopal_char *b, picopal_objsize_t siz) { argument 108 return (picopal_int32)strncmp((const char *)a, (const char *)b, (size_t) siz); 132 /* copy src into dst, but make sure that dst is not accessed beyond its size 'siz' and is allways NULLC-terminated. 133 * 'siz' is the number of bytes of the destination, including one byte for NULLC! 135 * the copy is successfull without truncation if picopal_strlcpy(dst,src,siz) < siz */ 136 picopal_objsize_t picopal_strlcpy(picopal_char *dst, const picopal_char *src, picopal_objsize_t siz) argument 140 picopal_objsize_t n = siz; 153 if (siz != 0) { 176 picopal_objsize_t picopal_vslprintf(picopal_char * dst, picopal_objsize_t siz, cons argument 237 picopal_slprintf(picopal_char * dst, picopal_objsize_t siz, const picopal_char *fmt, ...) argument [all...] |
H A D | picopal.h | 128 picopal_int32 picopal_strncmp(const picopal_char *a, const picopal_char *b, picopal_objsize_t siz); 143 picopal_objsize_t picopal_vslprintf(picopal_char * dst, picopal_objsize_t siz, const picopal_char *fmt, va_list args); 144 picopal_objsize_t picopal_slprintf(picopal_char * dst, picopal_objsize_t siz, const picopal_char *fmt, /*args*/ ...); 145 picopal_objsize_t picopal_strlcpy(picopal_char *dst, const picopal_char *src, picopal_objsize_t siz);
|
/external/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_sync_test.cc | 26 EXPECT_EQ(mb->siz, 1 * sizeof(u64)); 41 EXPECT_EQ(mb1->siz, 1 * sizeof(u64)); 43 EXPECT_EQ(mb2->siz, 3 * sizeof(u64)); 92 EXPECT_EQ(mb1->siz, 3 * sizeof(u64)); 95 EXPECT_EQ(mb2->siz, 1 * sizeof(u64));
|
/external/tcpdump/ |
H A D | print-icmp6.c | 1002 size_t siz, i; local 1009 siz = ep - bp; 1013 if (siz == sizeof(*dp) + 4) { 1058 if (siz != sizeof(*ni6)) 1068 if (siz == sizeof(*ni6)) { 1080 if (siz != sizeof(*ni6) + sizeof(struct in6_addr)) { 1108 if (siz != sizeof(*ni6) + sizeof(struct in_addr)) { 1126 if (icmp6len > siz) { 1146 if (siz != sizeof(*ni6)) 1153 if (siz ! [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_defs.h | 153 u64 siz; member in struct:__tsan::MBlock
|
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | os_win32.c | 243 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument 246 size_t left = siz; 258 if (siz != 0)
|
/external/wpa_supplicant_8/src/utils/ |
H A D | os_win32.c | 243 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument 246 size_t left = siz; 258 if (siz != 0)
|