Searched refs:len (Results 51 - 75 of 6914) sorted by relevance

1234567891011>>

/freebsd-11-stable/lib/libc/string/
H A Dwcsdup.c37 size_t len; local
39 len = wcslen(s) + 1;
40 if ((copy = malloc(len * sizeof(wchar_t))) == NULL)
42 return (wmemcpy(copy, s, len));
H A Dstrndup.c30 size_t len; local
32 len = strnlen(str, maxlen);
33 copy = malloc(len + 1);
35 (void)memcpy(copy, str, len);
36 copy[len] = '\0';
/freebsd-11-stable/lib/libgssapi/
H A Dgss_decapsulate_token.c40 size_t len = input_token->length; local
49 if (len == 0 || *p != 0x60)
52 len--;
58 if (len == 0)
63 len--;
67 len--;
68 if (len < b)
74 len--;
78 if (a != len)
85 if (len <
[all...]
/freebsd-11-stable/crypto/openssl/crypto/asn1/
H A Da_print.c63 int ASN1_PRINTABLE_type(const unsigned char *s, int len) argument
69 if (len <= 0)
70 len = -1;
74 while ((*s) && (len-- != 0)) {
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dstrndup.c44 size_t len = strnlen (old, sz); local
45 char *t = malloc(len + 1);
48 memcpy (t, old, len);
49 t[len] = '\0';
H A Dhex-test.c46 size_t len; member in struct:test
62 int len; local
63 len = hex_encode(t->data, t->len, &str);
71 len = strlen(str);
72 len = hex_decode(t->result, str, len);
73 if(len != t->len) {
74 fprintf(stderr, "failed test %d: len
87 int len; local
[all...]
/freebsd-11-stable/sys/libkern/
H A Dexplicit_bzero.c19 __explicit_bzero_hook(void *buf, size_t len) argument
24 explicit_bzero(void *buf, size_t len) argument
26 memset(buf, 0, len);
27 __explicit_bzero_hook(buf, len);
H A Dstrndup.c43 size_t len; local
46 len = strnlen(string, maxlen) + 1;
47 copy = malloc(len, type, M_WAITOK);
48 bcopy(string, copy, len);
49 copy[len - 1] = '\0';
/freebsd-11-stable/contrib/tcpdump/missing/
H A Dstrdup.c44 size_t len; local
47 len = strlen(str) + 1;
48 if ((copy = malloc(len)) == NULL)
50 memcpy(copy, str, len);
/freebsd-11-stable/sbin/dhclient/
H A Dinet.c59 rv.len = 0;
62 if (addr.len != mask.len)
65 rv.len = addr.len;
66 for (i = 0; i < rv.len; i++)
82 if (subnet.len != mask.len) {
83 rv.len = 0;
87 for (i = 0; i < subnet.len;
[all...]
/freebsd-11-stable/contrib/openpam/lib/libpam/
H A Dopenpam_strlset.c50 size_t len; local
52 for (len = 0; *str && size > 1; ++len, --size)
55 return (++len);
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dbase64.h12 unsigned char * base64_encode(const unsigned char *src, size_t len,
14 unsigned char * base64_decode(const unsigned char *src, size_t len,
16 unsigned char * base64_url_encode(const unsigned char *src, size_t len,
18 unsigned char * base64_url_decode(const unsigned char *src, size_t len,
/freebsd-11-stable/contrib/expat/tests/
H A Dchardata.c46 int len = 0; local
48 while (s[len] != 0)
49 ++len;
50 return len;
60 CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len) { argument
68 if (len < 0)
69 len = xmlstrlen(s);
70 if ((len + storage->count) > maxchars) {
71 len = (maxchars - storage->count);
73 if (len
82 int len = xmlstrlen(expected); local
[all...]
/freebsd-11-stable/contrib/xz/src/common/
H A Dtuklib_mbstr_fw.c19 size_t len; local
20 const size_t width = tuklib_mbstr_width(str, &len);
28 len += (size_t)columns_min - width;
30 return len;
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/ssp/
H A Dh_readlink.c49 size_t len = atoi(argv[1]); local
50 sl = malloc(len);
51 memset(sl, 'a', len);
52 sl[len - 1] = 0;
56 (void)readlink("symlink", b, len);
60 size_t len = atoi(argv[1]);
61 (void)readlink("/", b, len);
/freebsd-11-stable/crypto/heimdal/lib/wind/
H A Dtest-punycode.c53 size_t len; local
55 len = sizeof(buf);
56 ret = wind_punycode_label_toascii(e->val, e->len, buf, &len);
63 memmove(buf, buf + 4, len - 4);
64 len -= 4;
66 if (len != strlen(e->pc)) {
67 printf("punycode %u (%s) wrong len, actual: %u, expected: %u\n",
69 (unsigned int)len, (unsigned int)strlen(e->pc));
74 if (strncasecmp(buf, e->pc, len) !
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libopts/
H A Doption-value-type.c67 option_value_type_hash (register const char *str, register unsigned int len) argument
98 return len + asso_values[(unsigned char)str[0]];
122 find_option_value_type_name (register const char *str, register unsigned int len) argument
124 if (len <= 14 && len >= 3)
126 register int key = (int)option_value_type_hash (str, len);
132 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
143 * @param[in] len the provided length of the keyword at \a str.
148 find_option_value_type_cmd(char const * str, size_t len) argument
[all...]
H A Doption-xat-attribute.c67 option_xat_attribute_hash (register const char *str, register unsigned int len) argument
98 return len + asso_values[(unsigned char)str[0]];
114 find_option_xat_attribute_name (register const char *str, register unsigned int len) argument
116 if (len <= 8 && len >= 4)
118 register int key = (int)option_xat_attribute_hash (str, len);
124 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
135 * @param[in] len the provided length of the keyword at \a str.
140 find_option_xat_attribute_cmd(char const * str, size_t len) argument
[all...]
/freebsd-11-stable/stand/userboot/userboot/
H A Dcopy.c35 userboot_copyin(const void *src, vm_offset_t va, size_t len) argument
38 CALLBACK(copyin, src, va, len);
39 return (len);
43 userboot_copyout(vm_offset_t va, void *dst, size_t len) argument
46 CALLBACK(copyout, va, dst, len);
47 return (len);
51 userboot_readin(int fd, vm_offset_t va, size_t len) argument
58 while (len > 0) {
59 sz = len;
68 len
[all...]
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dctrl_iface_ap.c33 size_t len = curr_len; local
35 ret = os_snprintf(buf + len, buflen - len,
37 if (os_snprintf_error(buflen - len, ret))
38 return len;
39 len += ret;
42 len += wpa_snprintf_hex(buf + len, buflen - len, mcs_set, 10);
44 ret = os_snprintf(buf + len, bufle
59 int len = 0; local
209 int len, res, ret, i; local
654 int len = 0, ret, j; local
881 hostapd_ctrl_iface_pmksa_list(struct hostapd_data *hapd, char *buf, size_t len) argument
945 hostapd_ctrl_iface_pmksa_list_mesh(struct hostapd_data *hapd, const u8 *addr, char *buf, size_t len) argument
[all...]
/freebsd-11-stable/contrib/ncurses/ncurses/widechar/
H A Dlib_key_name.c45 size_t len; local
55 len = wcstombs(result, my_wchars, sizeof(result) - 1);
56 if (isEILSEQ(len) || (len == 0)) {
60 result[len] = '\0';
/freebsd-11-stable/sys/cddl/boot/zfs/
H A Dzle.c43 int len = 1 + *src++; local
44 if (len <= n) {
45 while (len-- != 0)
48 len -= n;
49 while (len-- != 0)
/freebsd-11-stable/sys/contrib/ngatm/netnatm/misc/
H A Dunimsg_common.c36 * len bytes, and update the read pointer.
39 uni_msg_prepend(struct uni_msg *msg, size_t len) argument
43 if (uni_msg_leading(msg) >= len) {
44 msg->b_rptr -= len;
47 need = len - uni_msg_leading(msg);
51 msg->b_rptr += need - len;
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-msdp.c36 unsigned int type, len; local
41 len = EXTRACT_16BITS(sp + 1);
42 if (len > 1500 || len < 3 || type == 0 || type > MSDP_TYPE_MAX)
48 len = EXTRACT_16BITS(sp + 1);
49 if (len > 1400 || ndo->ndo_vflag)
50 ND_PRINT((ndo, " [len %u]", len));
51 if (len < 3)
64 if ((u_int)((*sp * 12) + 8) < len) {
[all...]
/freebsd-11-stable/lib/libc/stdio/
H A Dfgets.c55 size_t len; local
75 if ((len = fp->_r) <= 0) {
84 len = fp->_r;
94 if (len > n)
95 len = n;
96 t = memchr((void *)p, '\n', len);
98 len = ++t - p;
99 fp->_r -= len;
101 (void)memcpy((void *)s, (void *)p, len);
102 s[len]
[all...]

Completed in 257 milliseconds

1234567891011>>