/freebsd-13-stable/lib/libc/string/ |
H A D | strnlen.c | 37 size_t len; local 39 for (len = 0; len < maxlen; len++, s++) { 43 return (len);
|
H A D | wcsnlen.c | 37 size_t len; local 39 for (len = 0; len < maxlen; len++, s++) { 43 return (len);
|
/freebsd-13-stable/crypto/heimdal/lib/roken/ |
H A D | strlcat.c | 42 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 D | memcmplen.h | 27 /// \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 D | vchar.h | 36 u_int len; member in struct:__anon7904
|
/freebsd-13-stable/contrib/diff/lib/ |
H A D | quotesys.c | 38 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 D | compat_strndup.c | 36 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 D | decode.h | 3 int decode(FILE *fd, char *buffer, int len);
|
/freebsd-13-stable/contrib/openpam/lib/libpam/ |
H A D | openpam_strlcat.c | 46 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 D | pam_getenv.c | 61 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 D | openpam_strlcpy.c | 46 size_t len; local 48 for (len = 0; *src && size > 1; ++len, --size) 52 ++len, ++src; 53 return (len);
|
H A D | openpam_strlcmp.h | 38 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 D | hash_driver.c | 44 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 D | getentropy_freebsd.c | 36 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 D | explicit_bzero.c | 14 __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 D | chap.c | 19 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 D | sdbm_hash.c | 36 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 D | strnlen.c | 37 size_t len; local 39 for (len = 0; len < maxlen; len++, s++) { 43 return (len);
|
/freebsd-13-stable/contrib/wpa/src/wps/ |
H A D | wps_attr_parse.c | 21 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 D | LockFileBase.cpp | 26 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 D | passcheck.c | 41 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 D | d_cvt_in_ternary.c | 4 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 D | sockstream.c | 45 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 D | dnstap_fstrm.h | 83 * 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 D | dprintf.c | 45 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;
|