Searched refs:len (Results 1 - 25 of 7162) 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/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-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/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);
H A Dopenpam_strlcmp.h38 strlcmp(const char *s1, const char *s2, size_t len) argument
41 for (; len && *s1 && *s2; --len, ++s1, ++s2)
/freebsd-head/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-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/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-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-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)
/freebsd-head/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));
/freebsd-head/usr.sbin/bhyve/
H A Dsockstream.c45 ssize_t len = 0; local
50 while (len < nbytes) {
51 n = read(fd, p + len, nbytes - len);
60 len += n;
62 return (len);
69 ssize_t len = 0; local
74 while (len < nbytes) {
75 n = write(fd, p + len, nbytes - len);
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/ssp/
H A Dh_stpncpy.c43 int len = atoi(argv[1]); local
45 char *q = stpncpy(b, "1020202020202", len);
47 if (q - b != len)
51 (void)strncpy(b, "1020202020202", len);
54 (void)printf("%*.*s\n", len, len, b);

Completed in 135 milliseconds

1234567891011>>