Searched refs:len (Results 251 - 275 of 7889) sorted by relevance

<<11121314151617181920>>

/macosx-10.10/xnu-2782.1.97/tools/tests/perf_index/
H A Dmd5.h6 void md5_hash(uint8_t *message, uint64_t len, uint32_t *hash);
/macosx-10.10/zlib-55/zlib/contrib/blast/
H A Dblast.h35 typedef int (*blast_out)(void *how, unsigned char *buf, unsigned len);
48 * The input function is invoked: len = infun(how, &buf), where buf is set by
54 * The output function is invoked: err = outfun(how, buf, len), where the bytes
55 * to be written are buf[0..len-1]. If err is not zero, then blast() returns
56 * with an output error. outfun() is always called with len <= 4096. outhow
H A Dblast.c125 int len; /* current number of bits in code */ local
126 int code; /* len bits being decoded */
127 int first; /* first code of length len */
128 int count; /* number of codes of length len */
129 int index; /* index of first code of length len in symbol table */
137 len = 1;
144 if (code < first + count) { /* if length len, return symbol */
146 s->bitcnt = (s->bitcnt - len) & 7;
153 len++;
155 left = (MAXBITS+1) - len;
188 int len; /* current length when stepping through h->count[] */ local
281 int len; /* length for copy */ local
422 outf(void *how, unsigned char *buf, unsigned len) argument
[all...]
/macosx-10.10/BerkeleyDB-21/db/env/
H A Denv_alloc.c78 * The "len" field is the total length of the chunk, not the size
81 size_t len; /* Chunk length */ member in struct:__alloc_element
99 #define SET_QUEUE_FOR_SIZE(head, q, i, len) do { \
102 if ((len) <= (size_t)1024 << i) \
145 elp->len = size - sizeof(ALLOC_LAYOUT);
158 #define DB_ALLOC_SIZE(len) \
159 (size_t)DB_ALIGN((len) + sizeof(ALLOC_ELEMENT) + 1, sizeof(uintmax_t))
161 #define DB_ALLOC_SIZE(len) \
162 (size_t)DB_ALIGN((len) + sizeof(ALLOC_ELEMENT), sizeof(uintmax_t))
184 __env_alloc_size(len)
351 size_t len; local
[all...]
/macosx-10.10/ruby-106/ruby/ext/json/fbuffer/
H A Dfbuffer.h19 #define RARRAY_LEN(ARRAY) RARRAY(ARRAY)->len
25 #define RSTRING_LEN(string) RSTRING(string)->len
52 unsigned long len; member in struct:FBufferStruct
59 #define FBUFFER_LEN(fb) (fb->len)
66 static void fbuffer_append(FBuffer *fb, const char *newstr, unsigned long len);
94 fb->len = 0;
106 for (required = fb->capa; requested > required - fb->len; required <<= 1);
114 static void fbuffer_append(FBuffer *fb, const char *newstr, unsigned long len) argument
116 if (len > 0) {
117 fbuffer_inc_capa(fb, len);
127 unsigned long len = RSTRING_LEN(str); local
168 unsigned long len = fltoa(number, buf); local
174 unsigned long len = fb->len; local
[all...]
/macosx-10.10/sudo-73/src/
H A Diolog.c64 int len; /* buffer length (how much read in) */ member in struct:script_buf
94 int len; local
114 len = snprintf(pathbuf, sizeof(pathbuf), "%s/seq", def_iolog_dir);
115 if (len <= 0 || len >= sizeof(pathbuf)) {
161 int i, len; local
169 len = snprintf(pathbuf, pathsize, "%s/%c%c/%c%c/%c%c", def_iolog_dir,
172 if (len <= 0 && len >= pathsize) {
181 pathbuf[len
225 int len; local
[all...]
H A Dtoke_util.c106 fill_txt(src, len, olen)
108 int len, olen;
112 dst = olen ? realloc(yylval.string, olen + len + 1) : malloc(len + 1);
121 while (len--) {
122 if (*src == '\\' && len) {
123 if (src[1] == 'x' && len >= 3 &&
128 len -= 3;
131 len--;
143 append(src, len)
[all...]
/macosx-10.10/zsh-61/zsh/Src/
H A Dsort.c49 if (ae->len != -1 || be->len != -1) {
62 int len; local
63 if (ae->len != -1) {
64 len = ae->len;
65 if (be->len != -1 && len > be->len)
66 len
258 int len; local
[all...]
/macosx-10.10/OpenSSH-189/openssh/
H A Dbuffer.c36 const u_int len = 4096; local
39 buffer->buf = xmalloc(len);
40 buffer->alloc = len;
72 buffer_append(Buffer *buffer, const void *data, u_int len) argument
75 p = buffer_append_space(buffer, len);
76 memcpy(p, data, len);
103 buffer_append_space(Buffer *buffer, u_int len) argument
108 if (len > BUFFER_MAX_CHUNK)
109 fatal("buffer_append_space: len %u not supported", len);
144 buffer_check_alloc(Buffer *buffer, u_int len) argument
171 buffer_get_ret(Buffer *buffer, void *buf, u_int len) argument
184 buffer_get(Buffer *buffer, void *buf, u_int len) argument
[all...]
/macosx-10.10/apache-793/httpd/modules/proxy/
H A Dajp_msg.c49 apr_size_t len = msg->len; local
53 if (len > count)
54 len = count;
58 (len + 15) / 16 * AJP_MSG_DUMP_LINE_LENGTH;
64 " len=%" APR_SIZE_T_FMT " max=%" APR_SIZE_T_FMT "\n",
65 err, msg->pos, msg->len, msg->max_size);
67 for (i = 0; i < len; i += AJP_MSG_DUMP_BYTES_PER_LINE) {
76 line_len = len - i;
146 * @param len Pointe
149 ajp_msg_check_header(ajp_msg_t *msg, apr_size_t *len) argument
225 apr_size_t len = msg->len - AJP_HEADER_LEN; local
260 apr_size_t len = msg->len; local
285 apr_size_t len = msg->len; local
308 apr_size_t len = msg->len; local
332 apr_size_t len; local
[all...]
/macosx-10.10/bind9-45.101/bind9/lib/dns/
H A Dspnego_asn1.c84 unsigned int len; member in struct:MechTypeList
174 #define BACK if (e) return e; p -= l; len -= l; ret += l
177 encode_MechType(unsigned char *p, size_t len, const MechType * data, size_t * size) argument
184 e = encode_oid(p, len, data, &l);
190 #define FORW if(e) goto fail; p += l; len -= l; ret += l
193 decode_MechType(const unsigned char *p, size_t len, MechType * data, size_t * size) argument
201 e = decode_oid(p, len, data, &l);
226 #define BACK if (e) return e; p -= l; len -= l; ret += l
229 encode_MechTypeList(unsigned char *p, size_t len, const MechTypeList * data, size_t * size) argument
236 for (i = (data)->len
252 decode_MechTypeList(const unsigned char *p, size_t len, MechTypeList * data, size_t * size) argument
311 encode_ContextFlags(unsigned char *p, size_t len, const ContextFlags * data, size_t * size) argument
361 decode_ContextFlags(const unsigned char *p, size_t len, ContextFlags * data, size_t * size) argument
424 encode_NegTokenInit(unsigned char *p, size_t len, const NegTokenInit * data, size_t * size) argument
475 decode_NegTokenInit(const unsigned char *p, size_t len, NegTokenInit * data, size_t * size) argument
652 encode_NegTokenResp(unsigned char *p, size_t len, const NegTokenResp * data, size_t * size) argument
704 decode_NegTokenResp(const unsigned char *p, size_t len, NegTokenResp * data, size_t * size) argument
[all...]
H A Dspnego.c243 der_get_length(const unsigned char *p, size_t len,
247 der_get_octet_string(const unsigned char *p, size_t len,
250 der_get_oid(const unsigned char *p, size_t len,
253 der_get_tag(const unsigned char *p, size_t len,
258 der_match_tag(const unsigned char *p, size_t len,
262 der_match_tag_and_length(const unsigned char *p, size_t len,
267 decode_oid(const unsigned char *p, size_t len,
271 decode_enumerated(const unsigned char *p, size_t len, void *num, size_t *size);
277 der_put_int(unsigned char *p, size_t len, int val, size_t *);
280 der_put_length(unsigned char *p, size_t len, size_
378 size_t len; local
580 size_t len, taglen, ni_len; local
691 size_t len, len_len, mech_len, foo; local
774 der_get_unsigned(const unsigned char *p, size_t len, unsigned *ret, size_t *size) argument
789 der_get_int(const unsigned char *p, size_t len, int *ret, size_t *size) argument
807 der_get_length(const unsigned char *p, size_t len, size_t *val, size_t *size) argument
845 der_get_octet_string(const unsigned char *p, size_t len, octet_string *data, size_t *size) argument
859 der_get_oid(const unsigned char *p, size_t len, oid *data, size_t *size) argument
895 der_get_tag(const unsigned char *p, size_t len, Der_class *class, Der_type *type, int *tag, size_t *size) argument
910 der_match_tag(const unsigned char *p, size_t len, Der_class class, Der_type type, int tag, size_t *size) argument
935 der_match_tag_and_length(const unsigned char *p, size_t len, Der_class class, Der_type type, int tag, size_t *length_ret, size_t *size) argument
961 decode_enumerated(const unsigned char *p, size_t len, void *num, size_t *size) argument
992 decode_octet_string(const unsigned char *p, size_t len, octet_string *k, size_t *size) argument
1029 decode_oid(const unsigned char *p, size_t len, oid *k, size_t *size) argument
1066 fix_dce(size_t reallen, size_t *len) argument
1091 length_len(size_t len) argument
1110 der_put_unsigned(unsigned char *p, size_t len, unsigned val, size_t *size) argument
1136 der_put_int(unsigned char *p, size_t len, int val, size_t *size) argument
1175 der_put_length(unsigned char *p, size_t len, size_t val, size_t *size) argument
1198 der_put_octet_string(unsigned char *p, size_t len, const octet_string *data, size_t *size) argument
1212 der_put_oid(unsigned char *p, size_t len, const oid *data, size_t *size) argument
1242 der_put_tag(unsigned char *p, size_t len, Der_class class, Der_type type, int tag, size_t *size) argument
1253 der_put_length_and_tag(unsigned char *p, size_t len, size_t len_val, Der_class class, Der_type type, int tag, size_t *size) argument
1278 encode_enumerated(unsigned char *p, size_t len, const void *data, size_t *size) argument
1303 encode_octet_string(unsigned char *p, size_t len, const octet_string *k, size_t *size) argument
1328 encode_oid(unsigned char *p, size_t len, const oid *k, size_t *size) argument
1356 gssapi_encap_length(size_t data_len, size_t *len, size_t *total_len, const gss_OID mech) argument
1371 gssapi_mech_make_header(u_char *p, size_t len, const gss_OID mech) argument
1402 size_t len, outer_len; local
1459 size_t len, len_len, mech_len, foo; local
1502 size_t len; local
1632 size_t len, taglen; local
[all...]
/macosx-10.10/tcpdump-61/tcpdump/
H A Dprint-igmp.c110 print_mtrace(register const u_char *bp, register u_int len) argument
115 if (len < 8 + sizeof (struct tr_query)) {
116 (void)printf(" [invalid len %d]", len);
132 print_mresp(register const u_char *bp, register u_int len) argument
137 if (len < 8 + sizeof (struct tr_query)) {
138 (void)printf(" [invalid len %d]", len);
154 print_igmpv3_report(register const u_char *bp, register u_int len) argument
159 /* Minimum len i
208 print_igmpv3_query(register const u_char *bp, register u_int len) argument
264 igmp_print(register const u_char *bp, register u_int len) argument
[all...]
/macosx-10.10/Heimdal-398.1.2/lib/asn1/
H A Dder_format.c42 ssize_t len; local
53 len = strlen(p);
54 if (len <= 0) {
60 data->length = (len / 2) + 1;
67 len = hex_decode(p, data->data, data->length);
68 if (len < 0) {
77 while(len > 0 && *q == 0) {
79 len--;
81 data->length = len;
82 memmove(data->data, q, len);
90 ssize_t len; local
[all...]
/macosx-10.10/OpenSSH-189/osslshim/heimdal-asn1/
H A Dasn1-der_format.c68 ssize_t len; local
79 len = strlen(p);
80 if (len <= 0) {
86 data->length = (len / 2) + 1;
93 len = hex_decode(p, data->data, data->length);
94 if (len < 0) {
103 while(len > 0 && *q == 0) {
105 len--;
107 data->length = len;
108 memmove(data->data, q, len);
116 ssize_t len; local
[all...]
/macosx-10.10/OpenSSL098-52/src/crypto/aes/
H A Daes_cbc.c68 unsigned long len = length; local
76 while (len >= AES_BLOCK_SIZE) {
81 len -= AES_BLOCK_SIZE;
85 if (len) {
86 for(n=0; n < len; ++n)
88 for(n=len; n < AES_BLOCK_SIZE; ++n)
95 while (len >= AES_BLOCK_SIZE) {
100 len -= AES_BLOCK_SIZE;
104 if (len) {
106 for(n=0; n < len;
[all...]
/macosx-10.10/ntp-92/lib/isc/
H A Dhmacsha.c43 unsigned int len)
49 if (len > sizeof(ctx->key)) {
52 isc_sha1_update(&sha1ctx, key, len);
55 memcpy(ctx->key, key, len);
77 unsigned int len)
79 isc_sha1_update(&ctx->sha1ctx, buf, len);
86 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) { argument
91 REQUIRE(len <= ISC_SHA1_DIGESTLENGTH);
103 memcpy(digest, newdigest, len);
112 isc_hmacsha1_verify(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) { argument
42 isc_hmacsha1_init(isc_hmacsha1_t *ctx, const unsigned char *key, unsigned int len) argument
76 isc_hmacsha1_update(isc_hmacsha1_t *ctx, const unsigned char *buf, unsigned int len) argument
124 isc_hmacsha224_init(isc_hmacsha224_t *ctx, const unsigned char *key, unsigned int len) argument
157 isc_hmacsha224_update(isc_hmacsha224_t *ctx, const unsigned char *buf, unsigned int len) argument
167 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) argument
192 isc_hmacsha224_verify(isc_hmacsha224_t *ctx, unsigned char *digest, size_t len) argument
204 isc_hmacsha256_init(isc_hmacsha256_t *ctx, const unsigned char *key, unsigned int len) argument
237 isc_hmacsha256_update(isc_hmacsha256_t *ctx, const unsigned char *buf, unsigned int len) argument
247 isc_hmacsha256_sign(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) argument
272 isc_hmacsha256_verify(isc_hmacsha256_t *ctx, unsigned char *digest, size_t len) argument
284 isc_hmacsha384_init(isc_hmacsha384_t *ctx, const unsigned char *key, unsigned int len) argument
317 isc_hmacsha384_update(isc_hmacsha384_t *ctx, const unsigned char *buf, unsigned int len) argument
327 isc_hmacsha384_sign(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) argument
352 isc_hmacsha384_verify(isc_hmacsha384_t *ctx, unsigned char *digest, size_t len) argument
364 isc_hmacsha512_init(isc_hmacsha512_t *ctx, const unsigned char *key, unsigned int len) argument
397 isc_hmacsha512_update(isc_hmacsha512_t *ctx, const unsigned char *buf, unsigned int len) argument
407 isc_hmacsha512_sign(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) argument
432 isc_hmacsha512_verify(isc_hmacsha512_t *ctx, unsigned char *digest, size_t len) argument
[all...]
/macosx-10.10/objc4-646/runtime/
H A Dobjc-typeencoding.mm276 size_t len;
286 len = end - t;
287 strncpy(dst, t, MIN(len, dst_len));
288 if (len < dst_len) memset(dst+len, 0, dst_len - len);
298 size_t len;
305 len = end - t;
306 result = (char *)malloc(len + 1);
307 strncpy(result, t, len);
[all...]
/macosx-10.10/zlib-55/zlib/contrib/puff/
H A Dpuff.c158 unsigned len; /* length of stored block */ local
166 len = s->in[s->incnt++];
167 len |= s->in[s->incnt++] << 8;
168 if (s->in[s->incnt++] != (~len & 0xff) ||
169 s->in[s->incnt++] != ((~len >> 8) & 0xff))
172 /* copy len bytes from in to out */
173 if (s->incnt + len > s->inlen) return 2; /* not enough input */
175 if (s->outcnt + len > s->outlen)
177 while (len--)
181 s->outcnt += len;
227 int len; /* current number of bits in code */ local
255 int len; /* current number of bits in code */ local
330 int len; /* current length when stepping through h->count[] */ local
427 int len; /* length for copy */ local
684 int len; /* last length to repeat */ local
854 load(char *name, size_t *len) argument
888 size_t len = 0; local
[all...]
/macosx-10.10/system_cmds-643.1.1/chkpasswd.tproj/
H A Dstringops.c32 int len; local
37 len = strlen(s) + 1;
38 t = malloc(len);
39 bcopy(s, t, len);
45 int len; local
49 len = strlen(s) + strlen(t) + 1;
50 s = realloc(s, len);
57 int i, len; local
69 len = i + 1; /* count the NULL on the end of the list too! */
71 l = (char **)realloc(l, (len
149 int i, len; local
168 int i, len; local
186 int i, len; local
[all...]
/macosx-10.10/ppp-786.1.1/Helpers/pppd/
H A Dcbcp.c87 static void cbcp_input __P((int unit, u_char *pkt, int len));
89 static int cbcp_printpkt __P((u_char *pkt, int len,
119 static void cbcp_recvreq __P((cbcp_state *us, u_char *pckt, int len));
122 static void cbcp_recvack __P((cbcp_state *us, u_char *pckt, int len));
123 static void cbcp_send __P((cbcp_state *us, int code, u_char *buf, int len));
183 u_short len; local
196 GETSHORT(len, inp);
199 if (len > pktlen) {
205 len -= CBCP_MINLEN;
210 cbcp_recvreq(us, inp, len);
254 int code, opt, id, len, olen, delay; local
333 int len = pcktlen; local
384 int len = 0; local
[all...]
/macosx-10.10/OpenSSH-189/osslshim/ossl-asn1/
H A Dcs-a-bitstr.c71 int ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len) argument
72 { return M_ASN1_BIT_STRING_set(x, d, len); }
76 int ret,j,bits,len; local
81 len=a->length;
83 if (len > 0)
91 for ( ; len > 0; len--)
93 if (a->data[len-1]) break;
95 j=a->data[len-1];
110 ret=1+len;
124 c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, const unsigned char **pp, long len) argument
[all...]
/macosx-10.10/OpenSSL098-52/src/crypto/asn1/
H A Da_bitstr.c63 int ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len) argument
64 { return M_ASN1_BIT_STRING_set(x, d, len); }
68 int ret,j,bits,len; local
73 len=a->length;
75 if (len > 0)
83 for ( ; len > 0; len--)
85 if (a->data[len-1]) break;
87 j=a->data[len-1];
102 ret=1+len;
116 c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, const unsigned char **pp, long len) argument
[all...]
/macosx-10.10/ntp-92/ntpd/
H A Dntp_signd.c63 write_all(int fd, const void *buf, size_t len) argument
66 while (len) {
67 int n = write(fd, buf, len);
70 len -= n;
80 read_all(int fd, void *buf, size_t len) argument
83 while (len) {
84 int n = read(fd, buf, len);
87 len -= n;
97 send_packet(int fd, const char *buf, uint32_t len) argument
99 uint32_t net_len = htonl(len);
109 recv_packet(int fd, char **buf, uint32_t *len) argument
[all...]
/macosx-10.10/Heimdal-398.1.2/lib/gssapi/netlogon/
H A Dimport_name.c49 size_t len, i; local
58 len = strlen(netbiosName);
59 if (len < input_name_buffer->length)
60 dnsName = netbiosName + len + 1;
66 name->NetbiosName.value = malloc(len + 1);
69 memcpy(name->NetbiosName.value, netbiosName, len + 1);
70 name->NetbiosName.length = len;
73 for (i = 0; i < len; i++) {

Completed in 709 milliseconds

<<11121314151617181920>>