Searched refs:len (Results 151 - 175 of 6914) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/tcpdump/
H A Dprint-loopback.c58 loopback_message_print(netdissect_options *ndo, const u_char *cp, const u_int len) argument
60 const u_char *ep = cp + len;
63 if (len < 2)
73 if (len < 4)
80 ND_PRINT((ndo, ", data (%u octets)", len - 4));
81 ND_TCHECK2(*cp, len - 4);
84 if (len < 8)
91 ND_PRINT((ndo, ", data (%u octets)", len - 8));
92 ND_TCHECK2(*cp, len - 8);
95 ND_TCHECK2(*cp, len
109 loopback_print(netdissect_options *ndo, const u_char *cp, const u_int len) argument
[all...]
/freebsd-11-stable/crypto/heimdal/lib/asn1/
H A Dder_get.c38 * which to read, from the left, `len' which means the maximum number
45 der_get_unsigned (const unsigned char *p, size_t len, argument
49 size_t oldlen = len;
51 if (len == sizeof(unsigned) + 1 && p[0] == 0)
53 else if (len > sizeof(unsigned))
56 while (len--)
64 der_get_integer (const unsigned char *p, size_t len, argument
68 size_t oldlen = len;
70 if (len > sizeof(int))
73 if (len >
84 der_get_length(const unsigned char *p, size_t len, size_t *val, size_t *size) argument
118 der_get_boolean(const unsigned char *p, size_t len, int *data, size_t *size) argument
131 der_get_general_string(const unsigned char *p, size_t len, heim_general_string *str, size_t *size) argument
163 der_get_utf8string(const unsigned char *p, size_t len, heim_utf8_string *str, size_t *size) argument
170 der_get_printable_string(const unsigned char *p, size_t len, heim_printable_string *str, size_t *size) argument
184 der_get_ia5_string(const unsigned char *p, size_t len, heim_ia5_string *str, size_t *size) argument
191 der_get_bmp_string(const unsigned char *p, size_t len, heim_bmp_string *data, size_t *size) argument
222 der_get_universal_string(const unsigned char *p, size_t len, heim_universal_string *data, size_t *size) argument
252 der_get_visible_string(const unsigned char *p, size_t len, heim_visible_string *str, size_t *size) argument
259 der_get_octet_string(const unsigned char *p, size_t len, heim_octet_string *data, size_t *size) argument
272 der_get_octet_string_ber(const unsigned char *p, size_t len, heim_octet_string *data, size_t *size) argument
341 der_get_heim_integer(const unsigned char *p, size_t len, heim_integer *data, size_t *size) argument
427 der_get_time(const unsigned char *p, size_t len, time_t *data, size_t *size) argument
448 der_get_generalized_time(const unsigned char *p, size_t len, time_t *data, size_t *size) argument
455 der_get_utctime(const unsigned char *p, size_t len, time_t *data, size_t *size) argument
462 der_get_oid(const unsigned char *p, size_t len, heim_oid *data, size_t *size) argument
510 der_get_tag(const unsigned char *p, size_t len, Der_class *class, Der_type *type, unsigned int *tag, size_t *size) argument
542 der_match_tag(const unsigned char *p, size_t len, Der_class class, Der_type type, unsigned int tag, size_t *size) argument
556 der_match_tag2(const unsigned char *p, size_t len, Der_class class, Der_type *type, unsigned int tag, size_t *size) argument
578 der_match_tag_and_length(const unsigned char *p, size_t len, Der_class class, Der_type *type, unsigned int tag, size_t *length_ret, size_t *size) argument
612 _heim_fix_dce(size_t reallen, size_t *len) argument
623 der_get_bit_string(const unsigned char *p, size_t len, heim_bit_string *data, size_t *size) argument
[all...]
/freebsd-11-stable/usr.sbin/ctld/
H A Dpdu.c61 uint32_t len = 0; local
63 len += pdu->pdu_bhs->bhs_data_segment_len[0];
64 len <<= 8;
65 len += pdu->pdu_bhs->bhs_data_segment_len[1];
66 len <<= 8;
67 len += pdu->pdu_bhs->bhs_data_segment_len[2];
69 return (len);
73 pdu_set_data_segment_length(struct pdu *pdu, uint32_t len) argument
76 pdu->pdu_bhs->bhs_data_segment_len[2] = len;
77 pdu->pdu_bhs->bhs_data_segment_len[1] = len >>
111 size_t len; local
149 pdu_read(int fd, char *data, size_t len) argument
169 size_t len, padding; local
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/
H A Dhmacsha.h80 unsigned int len);
87 unsigned int len);
90 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len);
93 isc_hmacsha1_verify(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len);
98 unsigned int len);
105 unsigned int len);
108 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len);
111 isc_hmacsha224_verify(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len);
116 unsigned int len);
123 unsigned int len);
[all...]
/freebsd-11-stable/crypto/heimdal/appl/telnet/telnetd/
H A Dauthenc.c41 telnet_net_write(unsigned char *str, int len) argument
43 if (nfrontp + len < netobuf + BUFSIZ) {
44 memmove(nfrontp, str, len);
45 nfrontp += len;
46 return(len);
/freebsd-11-stable/release/picobsd/tinyware/msg/
H A Dmsg.c42 int len,i; local
49 i=sysctlbyname(mib,NULL,&len,NULL,0);
54 buf=(char *)malloc(len*sizeof(char));
55 i=sysctlbyname(mib,buf,&len,NULL,0);
62 while(p<(buf+len)) {
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dbasename.c30 size_t len; local
57 len = endp - startp + 1;
58 if (len >= sizeof(bname)) {
62 memcpy(bname, startp, len);
63 bname[len] = '\0';
/freebsd-11-stable/contrib/netbsd-tests/kernel/
H A Dmsg.h67 msg_write_child(const char *info, struct msg_fds *fds, void *msg, size_t len) argument
74 rv = write(fds->pfd[1], msg, len);
75 if (rv != (ssize_t)len)
78 rv = read(fds->cfd[0], msg, len);
79 if (rv != (ssize_t)len)
85 msg_write_parent(const char *info, struct msg_fds *fds, void *msg, size_t len) argument
92 rv = write(fds->cfd[1], msg, len);
93 if (rv != (ssize_t)len)
96 rv = read(fds->pfd[0], msg, len);
97 if (rv != (ssize_t)len)
103 msg_read_parent(const char *info, struct msg_fds *fds, void *msg, size_t len) argument
121 msg_read_child(const char *info, struct msg_fds *fds, void *msg, size_t len) argument
[all...]
/freebsd-11-stable/contrib/unbound/sldns/
H A Dstr2wire.h41 * @param len: length of the buffer on input, length of the result on output.
44 int sldns_str2wire_dname_buf(const char* str, uint8_t* buf, size_t* len);
51 * @param len: length of the buffer on input, length of the result on output.
56 int sldns_str2wire_dname_buf_origin(const char* str, uint8_t* buf, size_t* len,
62 * @param len: returned length of wireformat.
65 uint8_t* sldns_str2wire_dname(const char* str, size_t* len);
75 * @param len: on input the length of the buffer, on output the amount of
86 int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len,
96 * @param len: on input the length of the buffer, on output the amount of
106 int sldns_str2wire_rr_question_buf(const char* str, uint8_t* rr, size_t* len,
[all...]
/freebsd-11-stable/sys/libkern/
H A Dbcmp.c60 int shl, shr, len = length; local
64 if (len == 0)
73 if (--len <= 0)
90 while ((len -= sizeof(long)) >= 0) {
99 * At this point, len is between -sizeof(long) and -1,
102 if (!(len += sizeof(long)))
105 len <<= 3; /* remaining length in bits */
112 return ((((va >> shr | ((shl < len) ? *(culp)p2 << shl : 0)) ^
113 *(culp)p1) & ((1L << len) - 1)) != 0);
116 while ((len
[all...]
/freebsd-11-stable/stand/mips/beri/loader/
H A Darch.c44 static ssize_t beri_arch_copyin(const void *src, vm_offset_t va, size_t len);
45 static ssize_t beri_arch_copyout(vm_offset_t va, void *dst, size_t len);
47 static ssize_t beri_arch_readin(int fd, vm_offset_t va, size_t len);
67 beri_arch_copyin(const void *src, vm_offset_t va, size_t len) argument
70 memcpy((void *)va, src, len);
71 return (len);
75 beri_arch_copyout(vm_offset_t va, void *dst, size_t len) argument
78 memcpy(dst, (void *)va, len);
79 return (len);
93 beri_arch_readin(int fd, vm_offset_t va, size_t len) argument
[all...]
/freebsd-11-stable/usr.bin/asa/
H A Dasa.c98 size_t len; local
101 if ((buf = fgetln(f, &len)) != NULL) {
102 if (buf[len - 1] == '\n')
103 buf[--len] = '\0';
114 if (len > 1 && buf[0] && buf[1])
115 printf("%.*s", (int)(len - 1), buf + 1);
117 while ((buf = fgetln(f, &len)) != NULL) {
118 if (buf[len - 1] == '\n')
119 buf[--len] = '\0';
137 if (len >
[all...]
/freebsd-11-stable/contrib/gcclibs/libssp/
H A Dgets-chk.c75 size_t len = strlen (buf); local
76 if (len > 0 && buf[len - 1] == '\n')
77 --len;
78 if (len == slen)
80 memcpy (s, buf, len);
81 s[len] = '\0';
/freebsd-11-stable/contrib/gdb/gdb/
H A Dcoff-solib.c68 bfd_byte len[4]; member in struct:libent
82 int len, nameoffset; local
87 len = bfd_get_32 (exec_bfd, ent->len);
91 if (len <= 0)
101 libsize -= len * 4;
102 lib += len * 4;
/freebsd-11-stable/tools/tools/bus_autoconf/
H A Dbus_load_file.c42 ssize_t len; local
61 len = off;
62 if (len != off)
65 ptr = malloc(len);
69 if (read(f, ptr, len) != len)
75 *plen = len;
/freebsd-11-stable/sbin/iscontrol/
H A Dauth_subr.c62 int len; local
70 if((len = str2bin(chapSecret, &tmp)) == 0) {
74 MD5Update(&ctx, tmp, len);
77 if((len = str2bin(cp, &tmp)) == 0) {
81 MD5Update(&ctx, tmp, len);
95 int len; local
103 if((len = str2bin(chapSecret, &tmp)) == 0) {
107 SHA1_Update(&ctx, tmp, len);
110 if((len = str2bin(cp, &tmp)) == 0) {
114 SHA1_Update(&ctx, tmp, len);
132 int len; local
154 genChapChallenge(char *encoding, uint len) argument
174 puke(char *str, unsigned char *dg, int len) argument
185 int len; local
[all...]
/freebsd-11-stable/stand/efi/libefi/
H A Dwchar.c51 * 0 terminates it. len is the size of *dst in bytes.
54 cpy8to16(const char *src, CHAR16 *dst, size_t len) argument
56 len <<= 1; /* Assume CHAR16 is 2 bytes */
57 while (len > 0 && *src) {
59 len--;
65 cpy16to8(const CHAR16 *src, char *dst, size_t len) argument
69 for (i = 0; i < len && src[i]; i++)
71 if (i < len)
/freebsd-11-stable/stand/libsa/
H A Din_cksum.c53 in_cksum(p, len)
55 int len;
61 while (len > 0) {
64 len--;
67 while ((len -= 2) >= 0) {
72 while ((len -= 2) >= 0) {
82 if ((oddbyte = len & 1) != 0)
/freebsd-11-stable/contrib/openpam/lib/libpam/
H A Dopenpam_get_option.c61 size_t len; local
68 len = strlen(option);
70 if (strncmp(cur->optv[i], option, len) == 0) {
71 if (cur->optv[i][len] == '\0')
72 RETURNS(&cur->optv[i][len]);
73 else if (cur->optv[i][len] == '=')
74 RETURNS(&cur->optv[i][len + 1]);
/freebsd-11-stable/crypto/heimdal/appl/test/
H A Dnt_gss_common.c54 uint32_t len; local
57 len = buf->length;
59 net_len[0] = (len >> 0) & 0xFF;
60 net_len[1] = (len >> 8) & 0xFF;
61 net_len[2] = (len >> 16) & 0xFF;
62 net_len[3] = (len >> 24) & 0xFF;
66 if (write (sock, buf->value, len) != len)
80 uint32_t len; local
84 len
[all...]
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dn-fold.c36 rr13(unsigned char *buf, size_t len) argument
39 int bytes = (len + 7) / 8;
41 if(len == 0)
44 const int bits = 13 % len;
45 const int lbit = len % 8;
54 for(i = lbit; i < 8; i += len)
63 bb += len;
70 s2 = (len + 8 - s1) % 8;
83 add1(unsigned char *a, unsigned char *b, size_t len) argument
87 for(i = len
100 _krb5_n_fold(const void *str, size_t len, void *key, size_t size) argument
[all...]
/freebsd-11-stable/contrib/tnftp/src/
H A Dprogressbar.c129 #define BUFLEFT (sizeof(buf) - len)
152 size_t len; local
183 len = snprintf(buf, sizeof(buf), "\r\n%s: "
186 (void)write(fileno(ttyout), buf, len); local
212 len = 0;
220 len += snprintf(buf + len, BUFLEFT, "\r");
222 len += snprintf(buf + len, BUFLEFT, "%s", prefix);
227 len
297 (void)write(fileno(ttyout), buf, len); local
318 size_t len; local
[all...]
/freebsd-11-stable/usr.bin/tail/
H A Dread.c67 int ch, len, tlen; local
89 for (t = p - 1, len = 0; t >= sp; --t, ++len)
90 if (*t == '\n' && len) {
91 WR(t + 1, len);
92 len = 0;
95 tlen = len;
96 for (t = ep - 1, len = 0; t >= p; --t, ++len)
98 if (len) {
139 u_int len; member in struct:__anon13831
[all...]
/freebsd-11-stable/lib/libc/string/
H A Dstrxfrm.c44 strxfrm_l(char * __restrict dest, const char * __restrict src, size_t len, locale_t loc);
46 strxfrm(char * __restrict dest, const char * __restrict src, size_t len) argument
48 return strxfrm_l(dest, src, len, __get_locale());
52 strxfrm_l(char * __restrict dest, const char * __restrict src, size_t len, locale_t locale) argument
63 if (len > 0)
84 if ((xlen = _collate_sxfrm(table, wcs, dest, len)) == (size_t)-1)
89 if (len > xlen) {
91 } else if (len) {
92 dest[len-1] = 0;
100 strlcpy(dest, src, len);
[all...]
/freebsd-11-stable/contrib/wpa/src/eap_common/
H A Deap_peap_common.c25 size_t len[5]; local
28 len[0] = 0;
30 len[1] = label_len;
32 len[2] = seed_len;
47 len[3] = 1;
49 len[4] = 2;
63 len[3] = 1;
65 len[4] = 1;
72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0)
81 len[
[all...]

Completed in 220 milliseconds

1234567891011>>