Searched refs:len (Results 1 - 25 of 6914) sorted by relevance

1234567891011>>

/freebsd-11-stable/lib/libc/string/
H A Dstrnlen.c35 size_t len; local
37 for (len = 0; len < maxlen; len++, s++) {
41 return (len);
H A Dwcsnlen.c35 size_t len; local
37 for (len = 0; len < maxlen; len++, s++) {
41 return (len);
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dstrlcat.c42 size_t len; local
44 len = strnlen_s(dst, dst_sz);
46 len = strnlen(dst, dst_sz);
48 len = strlen(dst);
51 if (dst_sz <= len)
55 return len + strlen(src);
57 return len + strlcpy (dst + len, src, dst_sz - len);
/freebsd-11-stable/contrib/xz/src/liblzma/common/
H A Dmemcmplen.h27 /// \param len How many bytes have already been compared and will
36 /// This is always at least len and at most limit.
44 uint32_t len, uint32_t limit)
46 assert(len <= limit);
63 while (len < limit) {
64 const uint64_t x = read64ne(buf1 + len) - read64ne(buf2 + len);
69 len += (uint32_t)tmp >> 3;
71 len += (uint32_t)__builtin_ctzll(x) >> 3;
73 return my_min(len, limi
43 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, uint32_t len, uint32_t limit) argument
[all...]
/freebsd-11-stable/contrib/gperf/lib/
H A Dhash.h13 extern unsigned int hashpjw (const unsigned char *string, unsigned int len);
H A Dhash.cc15 hashpjw (const unsigned char *x, unsigned int len) // From Dragon book, p436 argument
20 for (; len > 0; len--)
/freebsd-11-stable/sbin/setkey/
H A Dvchar.h34 u_int len; member in struct:__anon7097
/freebsd-11-stable/contrib/diff/lib/
H A Dquotesys.c38 size_t len = 0; local
50 return len;
65 len = 0;
76 quoted[len] = '-';
77 quoted[len + 1] = c;
79 len += 2;
86 quoted[len] = c;
87 len++;
95 quoted[len] = '\'';
96 len
[all...]
/freebsd-11-stable/usr.sbin/vidcontrol/
H A Ddecode.h3 int decode(FILE *fd, char *buffer, int len);
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/nbperf/
H A Dhash_driver.c44 ssize_t len; local
46 while ((len = getline(&line, &buflen, stdin)) > 0) {
47 if (len && line[len - 1] == '\n')
48 --len;
49 printf("%" PRId32 "\n", hash(line, len));
/freebsd-11-stable/contrib/gcclibs/libiberty/
H A Dxstrndup.c51 size_t len = strlen (s); local
53 if (n < len)
54 len = n;
56 result = XNEWVEC (char, len + 1);
58 result[len] = '\0';
59 return (char *) memcpy (result, s, len);
H A Dbcopy.c15 bcopy (const void *src, void *dest, size_t len) argument
21 while (len--)
26 const char *lasts = (const char *)src + (len-1);
27 char *lastd = (char *)dest + (len-1);
28 while (len--)
/freebsd-11-stable/contrib/openpam/lib/libpam/
H A Dopenpam_strlcat.c46 size_t len; local
48 for (len = 0; *dst && size > 1; ++len, --size)
50 for (; *src && size > 1; ++len, --size)
54 ++len, ++src;
55 return (len);
H A Dpam_getenv.c61 size_t len; local
65 for (len = 0; name[len] != '\0'; ++len) {
66 if (name[len] == '=') {
71 if ((i = openpam_findenv(pamh, name, len)) < 0)
73 /* assert(pamh->env[i][len] == '='); */
74 RETURNS(pamh->env[i] + len + 1);
H A Dopenpam_strlcpy.c46 size_t len; local
48 for (len = 0; *src && size > 1; ++len, --size)
52 ++len, ++src;
53 return (len);
/freebsd-11-stable/contrib/unbound/compat/
H A Dgetentropy_freebsd.c36 size_t len, done; local
43 len = size;
44 if (sysctl(mib, 2, buf, &len, NULL, 0) == -1)
46 done += len;
47 buf += len;
48 size -= len;
55 getentropy(void *buf, size_t len) argument
57 if (len <= 256 && getentropy_sysctl(buf, len) == len)
[all...]
H A Dexplicit_bzero.c14 __explicit_bzero_hook(void *ATTR_UNUSED(buf), size_t ATTR_UNUSED(len))
19 explicit_bzero(void *buf, size_t len) argument
22 SecureZeroMemory(buf, len);
24 memset(buf, 0, len);
25 __explicit_bzero_hook(buf, len);
/freebsd-11-stable/contrib/apr-util/dbm/sdbm/
H A Dsdbm_hash.c36 long sdbm_hash(const char *str, int len) argument
45 if (len > 0) {
46 register int loop = (len + 8 - 1) >> 3;
48 switch(len & (8 - 1)) {
59 while (len--)
/freebsd-11-stable/contrib/gcc/config/
H A Dmemmove.c5 memmove (void *dest, const void *src, size_t len) argument
10 while (len--)
14 char *lasts = s + (len-1);
15 char *lastd = d + (len-1);
16 while (len--)
/freebsd-11-stable/contrib/binutils/libiberty/
H A Dbcopy.c15 bcopy (const void *src, void *dest, size_t len) argument
21 while (len--)
26 const char *lasts = (const char *)src + (len-1);
27 char *lastd = (char *)dest + (len-1);
28 while (len--)
/freebsd-11-stable/contrib/wpa/src/eap_common/
H A Dchap.c19 size_t len[3]; local
22 len[0] = 1;
24 len[1] = secret_len;
26 len[2] = challenge_len;
27 return md5_vector(3, addr, len, response);
/freebsd-11-stable/sys/libkern/
H A Dstrnlen.c35 size_t len; local
37 for (len = 0; len < maxlen; len++, s++) {
41 return (len);
/freebsd-11-stable/contrib/wpa/src/wps/
H A Dwps_attr_parse.c21 u8 id, u8 len, const u8 *pos)
23 wpa_printf(MSG_EXCESSIVE, "WPS: WFA subelement id=%u len=%u",
24 id, len);
27 if (len != 1) {
29 "%u", len);
36 attr->authorized_macs_len = len;
39 if (len != 1) {
41 "Shareable length %u", len);
47 if (len != 1) {
49 "length %u", len);
20 wps_set_vendor_ext_wfa_subelem(struct wps_parse_attr *attr, u8 id, u8 len, const u8 *pos) argument
91 wps_parse_vendor_ext_wfa(struct wps_parse_attr *attr, const u8 *pos, u16 len) argument
111 wps_parse_vendor_ext(struct wps_parse_attr *attr, const u8 *pos, u16 len) argument
152 wps_set_attr(struct wps_parse_attr *attr, u16 type, const u8 *pos, u16 len) argument
599 u16 type, len; local
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/
H A DLockFileBase.cpp26 Status LockFileBase::WriteLock(const uint64_t start, const uint64_t len) { argument
28 const uint64_t len) { return DoWriteLock(start, len); },
29 start, len);
32 Status LockFileBase::TryWriteLock(const uint64_t start, const uint64_t len) {
34 const uint64_t len) { return DoTryWriteLock(start, len); },
35 start, len);
38 Status LockFileBase::ReadLock(const uint64_t start, const uint64_t len) {
40 const uint64_t len) { retur
[all...]
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_cvt_in_ternary.c4 unsigned len:32; member in struct:filecore_direntry
11 size_t bytelen = (((dirent.len)<(uio_resid))?(dirent.len):(uio_resid));

Completed in 193 milliseconds

1234567891011>>