Searched defs:siz (Results 1 - 25 of 33) sorted by relevance

12

/external/mksh/src/
H A Dstrlcpy.c24 * 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/ipsec-tools/src/racoon/
H A Dlogger.h39 int siz; member in struct:log
/external/llvm/lib/Support/
H A Dregstrlcpy.c24 * 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)
/external/openssh/openbsd-compat/
H A Dstrlcpy.c28 * 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 Dstrlcat.c28 * 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 Dvis.c147 * 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)
/external/swiftshader/third_party/LLVM/lib/Support/
H A Dregstrlcpy.c24 * 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)
/external/tcpdump/missing/
H A Dstrlcpy.c42 * Copy src to string dst of size siz. At most siz-1 characters
43 * will be copied. Always NUL terminates (unless siz == 0).
44 * Returns strlen(src); if retval >= siz, truncation occurred.
47 strlcpy(char *dst, const char *src, size_t siz) argument
51 register size_t n = siz;
63 if (siz != 0)
H A Dstrlcat.c42 * Appends src to string dst of size siz (unlike strncat, siz is the
43 * full size of dst, not space left). At most siz-1 characters
44 * will be copied. Always NUL terminates (unless siz == 0).
45 * Returns strlen(src); if retval >= siz, truncation occurred.
48 strlcat(char *dst, const char *src, size_t siz) argument
52 register size_t n = siz;
59 n = siz - dlen;
/external/llvm/tools/llvm-c-test/
H A Ddisassemble.c38 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/compiler-rt/lib/tsan/rtl/
H A Dtsan_defs.h162 u64 siz; member in struct:__tsan::MBlock
/external/regex-re2/util/
H A Dbenchmark.cc66 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/wpa_supplicant_8/hostapd/src/crypto/
H A Drandom.c171 size_t siz, i; local
176 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
177 for (i = 0; i < siz; i++)
179 left -= siz;
187 size_t siz, i; local
196 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
197 for (i = 0; i < siz; i++)
199 left -= siz;
/external/wpa_supplicant_8/src/crypto/
H A Drandom.c171 size_t siz, i; local
176 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
177 for (i = 0; i < siz; i++)
179 left -= siz;
187 size_t siz, i; local
196 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
197 for (i = 0; i < siz; i++)
199 left -= siz;
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Drandom.c171 size_t siz, i; local
176 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
177 for (i = 0; i < siz; i++)
179 left -= siz;
187 size_t siz, i; local
196 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
197 for (i = 0; i < siz; i++)
199 left -= siz;
/external/syslinux/com32/chain/
H A Dpartiter.c128 uint64_t siz; local
133 siz = (uint64_t)gpth->part_count * gpth->part_size;
135 if (!(iter->data = malloc((size_t)siz))) {
140 memcpy(iter->data, gptl, (size_t)siz);
410 static inline int valid_crc(uint32_t crc, const uint8_t *buf, unsigned int siz) argument
412 return crc == crc32(crc32(0, NULL, 0), buf, siz);
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dos_win32.c243 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
246 size_t left = siz;
258 if (siz != 0)
H A Dos_internal.c449 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
452 size_t left = siz;
464 if (siz != 0)
H A Dos_unix.c472 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
475 size_t left = siz;
487 if (siz != 0)
/external/wpa_supplicant_8/src/utils/
H A Dos_win32.c243 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
246 size_t left = siz;
258 if (siz != 0)
H A Dos_internal.c449 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
452 size_t left = siz;
464 if (siz != 0)
H A Dos_unix.c472 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
475 size_t left = siz;
487 if (siz != 0)
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dos_win32.c243 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
246 size_t left = siz;
258 if (siz != 0)
/external/svox/pico/lib/
H A Dpicopal.c107 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...]
/external/wpa_supplicant_8/wpa_supplicant/
H A Dbss.c808 unsigned int siz; local
810 siz = 32;
812 siz = wpa_s->last_scan_res_size * 2;
813 n = os_realloc_array(wpa_s->last_scan_res, siz,
818 wpa_s->last_scan_res_size = siz;

Completed in 610 milliseconds

12