Home
last modified time | relevance | path

Searched refs:siz (Results 1 – 25 of 54) sorted by relevance

123

/external/ipsec-tools/src/racoon/
Dlogger.c64 log_open(siz, fname) in log_open() argument
65 size_t siz; in log_open()
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; i++) {
195 j = (p->head + i) % p->siz;
[all …]
/external/regex-re2/util/
Dbenchmark.cc66 static void runN(Benchmark *b, int n, int siz) { in runN() argument
74 b->fnr(n, siz); in runN()
95 void RunBench(Benchmark* b, int nthread, int siz) { in RunBench() argument
104 runN(b, n, siz); in RunBench()
114 runN(b, n, siz); in RunBench()
124 if(siz >= (1<<20)) in RunBench()
125 snprintf(suf, sizeof suf, "/%dM", siz/(1<<20)); in RunBench()
126 else if(siz >= (1<<10)) in RunBench()
127 snprintf(suf, sizeof suf, "/%dK", siz/(1<<10)); in RunBench()
129 snprintf(suf, sizeof suf, "/%d", siz); in RunBench()
/external/libedit/src/
Dstrlcat.c45 strlcat(char *dst, const char *src, size_t siz) in __weak_alias()
50 size_t n = siz; in __weak_alias()
60 n = siz - dlen; in __weak_alias()
81 size_t dlen = strnlen(dst, siz); in __weak_alias()
87 return dlen + strlcpy(dst + dlen, src, siz - dlen); in __weak_alias()
Dstrlcpy.c43 strlcpy(char *dst, const char *src, size_t siz) in __weak_alias()
47 size_t n = siz; in __weak_alias()
62 if (siz != 0) in __weak_alias()
/external/mksh/src/
Dstrlcpy.c30 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() argument
34 if (siz == 0) in strlcpy()
38 while (--siz && (*dst++ = *s++)) in strlcpy()
42 if (siz == 0) { in strlcpy()
/external/libevent/
Dstrlcpy.c47 _event_strlcpy(dst, src, siz) in _event_strlcpy() argument
50 size_t siz;
54 register size_t n = siz;
66 if (siz != 0)
/external/swiftshader/third_party/LLVM/lib/Support/
Dregstrlcpy.c29 llvm_strlcpy(char *dst, const char *src, size_t siz) in llvm_strlcpy() argument
33 size_t n = siz; in llvm_strlcpy()
45 if (siz != 0) in llvm_strlcpy()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
Dregstrlcpy.c29 llvm_strlcpy(char *dst, const char *src, size_t siz) in llvm_strlcpy() argument
33 size_t n = siz; in llvm_strlcpy()
45 if (siz != 0) in llvm_strlcpy()
/external/llvm/lib/Support/
Dregstrlcpy.c29 llvm_strlcpy(char *dst, const char *src, size_t siz) in llvm_strlcpy() argument
33 size_t n = siz; in llvm_strlcpy()
45 if (siz != 0) in llvm_strlcpy()
/external/openssh/openbsd-compat/
Dstrlcpy.c33 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() argument
37 size_t n = siz; in strlcpy()
49 if (siz != 0) in strlcpy()
Dstrlcat.c35 strlcat(char *dst, const char *src, size_t siz) in strlcat() argument
39 size_t n = siz; in strlcat()
46 n = siz - dlen; in strlcat()
Dvis.c174 strnvis(char *dst, const char *src, size_t siz, int flag) in strnvis() argument
181 for (start = dst, end = start + siz - 1; (c = *src) && dst < end; ) { in strnvis()
206 if (siz > 0) in strnvis()
/external/tcpdump/missing/
Dstrlcpy.c47 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() argument
51 register size_t n = siz; in strlcpy()
63 if (siz != 0) in strlcpy()
Dstrlcat.c48 strlcat(char *dst, const char *src, size_t siz) in strlcat() argument
52 register size_t n = siz; in strlcat()
59 n = siz - dlen; in strlcat()
/external/wpa_supplicant_8/src/crypto/
Drandom.c178 size_t siz, i; in random_get_bytes() local
183 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; in random_get_bytes()
184 for (i = 0; i < siz; i++) in random_get_bytes()
186 left -= siz; in random_get_bytes()
194 size_t siz, i; in random_get_bytes() local
203 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; in random_get_bytes()
204 for (i = 0; i < siz; i++) in random_get_bytes()
206 left -= siz; in random_get_bytes()
/external/svox/pico/lib/
Dpicopal.c107 picopal_int32 picopal_strncmp(const picopal_char *a, const picopal_char *b, picopal_objsize_t siz) { in picopal_strncmp() argument
108 return (picopal_int32)strncmp((const char *)a, (const char *)b, (size_t) siz); in picopal_strncmp()
136 picopal_objsize_t picopal_strlcpy(picopal_char *dst, const picopal_char *src, picopal_objsize_t siz) in picopal_strlcpy() argument
140 picopal_objsize_t n = siz; in picopal_strlcpy()
153 if (siz != 0) { in picopal_strlcpy()
176 picopal_objsize_t picopal_vslprintf(picopal_char * dst, picopal_objsize_t siz, const picopal_char *… in picopal_vslprintf() argument
181 picopal_objsize_t len, nnew, n = siz; in picopal_vslprintf()
237 picopal_objsize_t picopal_slprintf(picopal_char * dst, picopal_objsize_t siz, const picopal_char *f… in picopal_slprintf() argument
242 i = picopal_vslprintf(dst, siz, fmt, args); in picopal_slprintf()
Dpicopal.h128 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 *…
144 picopal_objsize_t picopal_slprintf(picopal_char * dst, picopal_objsize_t siz, const picopal_char *f…
145 picopal_objsize_t picopal_strlcpy(picopal_char *dst, const picopal_char *src, picopal_objsize_t siz
/external/llvm/tools/llvm-c-test/
Ddisassemble.c38 unsigned char *buf, int siz) { in do_disassemble() argument
50 while (pos < siz) { in do_disassemble()
51 size_t l = LLVMDisasmInstruction(D, buf + pos, siz - pos, 0, outline, in do_disassemble()
/external/bison/m4/
Dgetdelim.m439 size_t siz = 0;
40 int len = getdelim (&line, &siz, '\n', in);
48 size_t siz = (size_t)(~0) / 4;
49 if (getdelim (&line, &siz, '\n', in) == -1)
Dgetline.m446 size_t siz = 0;
47 int len = getline (&line, &siz, in);
55 size_t siz = (size_t)(~0) / 4;
56 if (getline (&line, &siz, in) == -1)
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_sync_test.cc26 EXPECT_EQ(mb->siz, 1 * sizeof(u64)); in TEST()
41 EXPECT_EQ(mb1->siz, 1 * sizeof(u64)); in TEST()
43 EXPECT_EQ(mb2->siz, 3 * sizeof(u64)); in TEST()
92 EXPECT_EQ(mb1->siz, 3 * sizeof(u64)); in TEST()
95 EXPECT_EQ(mb2->siz, 1 * sizeof(u64)); in TEST()
/external/python/cpython2/Lib/
Ddumbdbm.py122 pos, siz = self._index[key] # may raise KeyError
125 dat = f.read(siz)
170 pos, siz = self._index[key]
171 oldblocks = (siz + _BLOCKSIZE - 1) // _BLOCKSIZE
/external/wpa_supplicant_8/src/utils/
Dos_win32.c243 size_t os_strlcpy(char *dest, const char *src, size_t siz) in os_strlcpy() argument
246 size_t left = siz; in os_strlcpy()
258 if (siz != 0) in os_strlcpy()
/external/syslinux/com32/chain/
Dpartiter.c128 uint64_t siz; in pi_gpt_ctor() local
133 siz = (uint64_t)gpth->part_count * gpth->part_size; in pi_gpt_ctor()
135 if (!(iter->data = malloc((size_t)siz))) { in pi_gpt_ctor()
140 memcpy(iter->data, gptl, (size_t)siz); in pi_gpt_ctor()
410 static inline int valid_crc(uint32_t crc, const uint8_t *buf, unsigned int siz) in valid_crc() argument
412 return crc == crc32(crc32(0, NULL, 0), buf, siz); in valid_crc()
/external/tcpdump/
Dprint-icmp6.c1571 size_t siz, i; in icmp6_nodeinfo_print() local
1578 siz = ep - bp; in icmp6_nodeinfo_print()
1582 if (siz == sizeof(*dp) + 4) { in icmp6_nodeinfo_print()
1626 if (siz != sizeof(*ni6)) in icmp6_nodeinfo_print()
1636 if (siz == sizeof(*ni6)) { in icmp6_nodeinfo_print()
1648 if (siz != sizeof(*ni6) + sizeof(struct in6_addr)) { in icmp6_nodeinfo_print()
1676 if (siz != sizeof(*ni6) + sizeof(struct in_addr)) { in icmp6_nodeinfo_print()
1694 if (icmp6len > siz) { in icmp6_nodeinfo_print()
1714 if (siz != sizeof(*ni6)) in icmp6_nodeinfo_print()
1721 if (siz != sizeof(*ni6)) in icmp6_nodeinfo_print()
[all …]

123