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

12345678

/tldk/app/nginx/src/core/
H A Dngx_parse_time.h16 time_t ngx_parse_http_time(u_char *value, size_t len);
19 #define ngx_http_parse_time(value, len) ngx_parse_http_time(value, len)
H A Dngx_crc.h19 ngx_crc(u_char *data, size_t len) argument
23 for (sum = 0; len; len--) {
H A Dngx_murmurhash.c12 ngx_murmur_hash2(u_char *data, size_t len) argument
16 h = 0 ^ len;
18 while (len >= 4) {
32 len -= 4;
35 switch (len) {
H A Dngx_murmurhash.h16 uint32_t ngx_murmur_hash2(u_char *data, size_t len);
H A Dngx_proxy_protocol.c15 size_t len; local
20 len = last - buf;
22 if (len < 8 || ngx_strncmp(p, "PROXY ", 6) != 0) {
27 len -= 6;
29 if (len >= 7 && ngx_strncmp(p, "UNKNOWN", 7) == 0) {
36 if (len < 5 || ngx_strncmp(p, "TCP", 3) != 0
65 len = p - addr - 1;
66 c->proxy_protocol_addr.data = ngx_pnalloc(c->pool, len);
72 ngx_memcpy(c->proxy_protocol_addr.data, addr, len);
73 c->proxy_protocol_addr.len
[all...]
H A Dngx_parse.c16 size_t len; local
19 len = line->len;
21 if (len == 0) {
25 unit = line->data[len - 1];
30 len--;
37 len--;
47 size = ngx_atosz(line->data, len);
63 size_t len; local
65 len
[all...]
H A Dngx_crc32.h21 ngx_crc32_short(u_char *p, size_t len) argument
28 while (len--) {
39 ngx_crc32_long(u_char *p, size_t len) argument
45 while (len--) {
58 ngx_crc32_update(uint32_t *crc, u_char *p, size_t len) argument
64 while (len--) {
H A Dngx_inet.c18 ngx_inet_addr(u_char *text, size_t len) argument
28 for (p = text; p < text + len; p++) {
63 ngx_inet6_addr(u_char *p, size_t len, u_char *addr) argument
69 if (len == 0) {
82 len--;
85 for (/* void */; len; len--) {
91 len4 = len;
104 len4 = len;
181 ngx_sock_ntop(struct sockaddr *sa, socklen_t socklen, u_char *text, size_t len, argument
260 ngx_inet_ntop(int family, void *addr, u_char *text, size_t len) argument
290 ngx_inet6_ntop(u_char *p, u_char *text, size_t len) argument
372 size_t len; local
556 ngx_parse_addr(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, size_t len) argument
616 ngx_parse_addr_port(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, size_t len) argument
681 size_t len; local
703 size_t len; local
780 size_t len; local
976 size_t len; local
1104 size_t len; local
1250 size_t len; local
1367 size_t len; local
[all...]
H A Dngx_hash.c13 ngx_hash_find(ngx_hash_t *hash, ngx_uint_t key, u_char *name, size_t len) argument
19 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "hf:\"%*s\"", len, name);
29 if (len != (size_t) elt->len) {
33 for (i = 0; i < len; i++) {
43 elt = (ngx_hash_elt_t *) ngx_align_ptr(&elt->name[0] + elt->len,
53 ngx_hash_find_wc_head(ngx_hash_wildcard_t *hwc, u_char *name, size_t len) argument
59 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "wch:\"%*s\"", len, name);
62 n = len;
74 for (i = n; i < len;
147 ngx_hash_find_wc_tail(ngx_hash_wildcard_t *hwc, u_char *name, size_t len) argument
211 ngx_hash_find_combined(ngx_hash_combined_t *hash, ngx_uint_t key, u_char *name, size_t len) argument
255 size_t len; local
468 size_t len, dot_len; local
610 ngx_hash_key(u_char *data, size_t len) argument
625 ngx_hash_key_lc(u_char *data, size_t len) argument
716 size_t len; local
[all...]
H A Dngx_crypt.c170 size_t len; local
173 len = ngx_strlen(key);
175 *encrypted = ngx_pnalloc(pool, sizeof("{PLAIN}") - 1 + len + 1);
181 ngx_memcpy(p, key, len + 1);
190 size_t len; local
200 encoded.len = ngx_strlen(encoded.data);
202 len = ngx_max(ngx_base64_decoded_length(encoded.len), 20);
204 decoded.data = ngx_pnalloc(pool, len);
211 if (rc != NGX_OK || decoded.len < 2
242 size_t len; local
[all...]
H A Dngx_hash.h18 u_short len; member in struct:__anon21
42 typedef ngx_uint_t (*ngx_hash_key_pt) (u_char *data, size_t len);
100 void *ngx_hash_find(ngx_hash_t *hash, ngx_uint_t key, u_char *name, size_t len);
101 void *ngx_hash_find_wc_head(ngx_hash_wildcard_t *hwc, u_char *name, size_t len);
102 void *ngx_hash_find_wc_tail(ngx_hash_wildcard_t *hwc, u_char *name, size_t len);
104 u_char *name, size_t len);
112 ngx_uint_t ngx_hash_key(u_char *data, size_t len);
113 ngx_uint_t ngx_hash_key_lc(u_char *data, size_t len);
H A Dngx_syslog.h27 size_t len);
28 ssize_t ngx_syslog_send(ngx_syslog_peer_t *peer, u_char *buf, size_t len);
/tldk/app/nginx/src/os/win32/
H A Dngx_errno.c15 u_int len; local
22 len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
25 if (len == 0 && lang && GetLastError() == ERROR_RESOURCE_LANG_NOT_FOUND) {
36 len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
40 if (len == 0) {
46 while (errstr[len] == '\0' || errstr[len] == CR
47 || errstr[len] == LF || errstr[len] == '.')
49 --len;
[all...]
/tldk/app/nginx/src/os/unix/
H A Dngx_errno.c39 size = ngx_min(size, msg->len);
50 size_t len; local
58 len = NGX_SYS_NERR * sizeof(ngx_str_t);
60 ngx_sys_errlist = malloc(len);
67 len = ngx_strlen(msg);
69 p = malloc(len);
74 ngx_memcpy(p, msg, len);
75 ngx_sys_errlist[err].len = len;
84 ngx_log_stderr(0, "malloc(%uz) failed (%d: %s)", len, er
[all...]
H A Dngx_user.c30 size_t len; local
42 len = ngx_strlen(value) + 1;
44 *encrypted = ngx_pnalloc(pool, len);
49 ngx_memcpy(*encrypted, value, len);
64 size_t len; local
70 len = ngx_strlen(value) + 1;
72 *encrypted = ngx_pnalloc(pool, len);
77 ngx_memcpy(*encrypted, value, len);
/tldk/app/nginx/src/http/modules/
H A Dngx_http_random_index_module.c77 size_t len, allocated, root; local
86 if (r->uri.data[r->uri.len - 1] != '/') {
101 len = NGX_DIR_MASK_LEN;
103 len = NGX_HTTP_RANDOM_INDEX_PREALLOCATE;
106 last = ngx_http_map_uri_to_path(r, &path, &root, len);
111 allocated = path.len;
113 path.len = last - path.data - 1;
114 path.data[path.len] = '\0';
149 filename[path.len] = '/';
173 len
[all...]
H A Dngx_http_autoindex_module.c156 size_t len, allocated, root; local
169 if (r->uri.data[r->uri.len - 1] != '/') {
191 allocated = path.len;
192 path.len = last - path.data;
193 if (path.len > 1) {
194 path.len--;
196 path.data[path.len] = '\0';
208 if (callback.len == 0) {
276 r->headers_out.content_type_len = r->headers_out.content_type.len;
291 filename[path.len]
433 size_t len, char_len, escape_html; local
696 size_t len; local
840 size_t len; local
[all...]
/tldk/lib/libtle_memtank/
H A Dtle_memtank_pub.h71 uint32_t len, n; local
75 len = t->nb_free;
76 n = RTE_MIN(num, len);
77 len -= n;
78 _copy_objs(obj, t->free + len, n);
79 t->nb_free = len;
88 uint32_t len, n; local
92 len = t->nb_free;
93 n = t->max_free - len;
95 _copy_objs(t->free + len, ob
[all...]
/tldk/app/nginx/src/http/
H A Dngx_http_header_filter_module.c159 size_t len; local
199 len = sizeof("HTTP/1.x ") - 1 + sizeof(CRLF) - 1
205 if (r->headers_out.status_line.len) {
206 len += r->headers_out.status_line.len;
232 len += ngx_http_status_lines[status].len;
245 len += ngx_http_status_lines[status].len;
255 len
[all...]
H A Dngx_http_variables.c396 if (name->len == 0) {
410 if (name->len != key[i].key.len
411 || ngx_strncasecmp(name->data, key[i].key.data, name->len) != 0)
434 v->name.len = name->len;
435 v->name.data = ngx_pnalloc(cf->pool, name->len);
440 ngx_strlow(v->name.data, name->data, name->len);
475 if (name->len != v[i].name.len
650 size_t len; local
848 size_t len; local
1066 size_t len; local
1094 socklen_t len; local
1514 size_t len; local
1886 size_t len; local
1993 size_t len; local
2327 size_t len; local
2470 ngx_uint_t i, n, len; local
2582 size_t len; local
[all...]
/tldk/lib/libtle_l4p/
H A Dtcp_tx_seg.h57 uint32_t len; local
71 len = bytes_left;
72 if (len > (in_seg->data_len - in_seg_data_pos))
73 len = in_seg->data_len - in_seg_data_pos;
76 out_seg->data_len = (uint16_t)len;
77 out_pkt->pkt_len = (uint16_t)(len + out_pkt->pkt_len);
79 in_seg_data_pos += len;
80 bytes_left -= len;
/tldk/app/nginx/src/http/modules/perl/
H A Dnginx.xs22 #define ngx_http_perl_set_targ(p, len) \
26 sv_setpvn(TARG, (char *) p, len)
33 STRLEN len;
39 p = (u_char *) SvPV(sv, len);
41 s->len = len;
52 s->data = ngx_pnalloc(r->pool, len);
57 ngx_memcpy(s->data, p, len);
142 r->headers_out.content_type_len = r->headers_out.content_type.len;
176 ngx_http_perl_set_targ(r->uri.data, r->uri.len);
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream_log_module.c27 size_t len; member in struct:ngx_stream_log_op_s
87 size_t len; member in struct:__anon441
93 u_char *buf, size_t len);
95 ngx_stream_log_script_t *script, u_char **name, u_char *buf, size_t len);
98 static ssize_t ngx_stream_log_gzip(ngx_fd_t fd, u_char *buf, size_t len,
195 size_t len, size; local
221 if (val.len == 0 || (val.len == 1 && val.data[0] == '0')) {
240 len = 0;
243 if (op[i].len
345 ngx_stream_log_write(ngx_stream_session_t *s, ngx_stream_log_t *log, u_char *buf, size_t len) argument
411 ngx_stream_log_script_write(ngx_stream_session_t *s, ngx_stream_log_script_t *script, u_char **name, u_char *buf, size_t len) argument
469 ngx_stream_log_gzip(ngx_fd_t fd, u_char *buf, size_t len, ngx_int_t level, ngx_log_t *log) argument
604 size_t len; local
660 size_t len; local
714 uintptr_t len; local
816 uintptr_t len; local
1265 size_t i, len; local
[all...]
H A Dngx_stream_variables.c136 if (name->len == 0) {
150 if (name->len != key[i].key.len
151 || ngx_strncasecmp(name->data, key[i].key.data, name->len) != 0)
174 v->name.len = name->len;
175 v->name.data = ngx_pnalloc(cf->pool, name->len);
180 ngx_strlow(v->name.data, name->data, name->len);
216 if (name->len != v[i].name.len
392 size_t len; local
876 size_t len; local
1020 ngx_uint_t i, n, len; local
1132 size_t len; local
[all...]
/tldk/app/nginx/src/mail/
H A Dngx_mail_imap_handler.c123 if (s->out.len) {
138 s->text.len = 0;
152 end = dst + arg[i].len;
161 arg[i].len = dst - arg[i].data;
254 if (s->tag.len == 0) {
258 if (s->tagged_line.len < s->tag.len + s->text.len + s->out.len) {
259 s->tagged_line.len
[all...]

Completed in 16 milliseconds

12345678