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

1234567891011>>

/freebsd-13-stable/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-13-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-13-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-13-stable/sbin/setkey/
H A Dvchar.h36 u_int len; member in struct:__anon7904
/freebsd-13-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-13-stable/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-13-stable/usr.sbin/vidcontrol/
H A Ddecode.h3 int decode(FILE *fd, char *buffer, int len);
/freebsd-13-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);
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-13-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-13-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-13-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-13-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-13-stable/sys/libkern/
H A Dstrnlen.c37 size_t len; local
39 for (len = 0; len < maxlen; len++, s++) {
43 return (len);
/freebsd-13-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-13-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-13-stable/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-13-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));
/freebsd-13-stable/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-13-stable/contrib/unbound/dnstap/
H A Ddnstap_fstrm.h83 * The START type can have only one field. Field max len 256.
120 * @param len: if a buffer is returned this is the length of that buffer.
124 * the 'len' variable (like data frames are), but straight the content of the
128 void* fstrm_create_control_frame_start(char* contenttype, size_t* len);
135 * @param len: if a buffer is returned this is the length of that buffer.
139 * the 'len' variable (like data frames are), but straight the content of the
143 void* fstrm_create_control_frame_ready(char* contenttype, size_t* len);
147 * @param len: if a buffer is returned this is the length of that buffer.
151 * the 'len' variable (like data frames are), but straight the content of the
155 void* fstrm_create_control_frame_stop(size_t* len);
[all...]
/freebsd-13-stable/contrib/file/src/
H A Ddprintf.c45 int len; local
48 len = vsnprintf(buf, sizeof(buf), fmt, ap);
51 if ((size_t)len >= sizeof(buf))
54 if (write(fd, buf, (size_t)len) != len)
57 return len;

Completed in 312 milliseconds

1234567891011>>