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

1234567891011>>

/freebsd-head/lib/libc/string/
H A Dstrnlen.c37 size_t len; local
39 for (len = 0; len < maxlen; len++, s++) {
43 return (len);
H A Dwcsnlen.c37 size_t len; local
39 for (len = 0; len < maxlen; len++, s++) {
43 return (len);
/freebsd-head/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-head/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-head/sbin/setkey/
H A Dvchar.h36 u_int len; member in struct:__anon149
/freebsd-head/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-head/usr.sbin/vidcontrol/
H A Ddecode.h3 int decode(FILE *fd, char *buffer, int len);
/freebsd-head/contrib/mandoc/
H A Dcompat_strndup.c36 size_t len; local
38 for (len = 0; len < maxlen && str[len] != '\0'; len++)
41 copy = malloc(len + 1);
43 (void)memcpy(copy, str, len);
44 copy[len] = '\0';
/freebsd-head/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-head/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-head/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-head/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 = *(const uint64_t *)(buf1 + len)
65 - *(const uint64_t *)(buf2 + len);
70 len += (uint32_t)tmp >> 3;
72 len += (uint32_t)__builtin_ctzll(x) >> 3;
74 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-head/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-head/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-head/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-head/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-head/contrib/unbound/compat/
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-head/sys/libkern/
H A Dstrnlen.c37 size_t len; local
39 for (len = 0; len < maxlen; len++, s++) {
43 return (len);
/freebsd-head/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-head/contrib/llvm/tools/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-head/contrib/opie/libopie/
H A Dpasscheck.c41 int len = strlen(secret); local
43 if (len < OPIE_SECRET_MIN)
46 if (len > OPIE_SECRET_MAX)

Completed in 453 milliseconds

1234567891011>>