Searched refs:buf (Results 1 - 25 of 127) sorted by relevance

123456

/tldk/app/nginx/src/http/
H A Dngx_http_write_filter_module.c75 "write old buf t:%d f:%d %p, pos %p, size: %z "
77 cl->buf->temporary, cl->buf->in_file,
78 cl->buf->start, cl->buf->pos,
79 cl->buf->last - cl->buf->pos,
80 cl->buf->file_pos,
81 cl->buf->file_last - cl->buf
[all...]
H A Dngx_http_request_body.c71 * rb->buf = NULL;
97 out.buf = r->header_in;
126 rb->buf = b;
176 rb->buf = ngx_create_temp_buf(r->pool, size);
177 if (rb->buf == NULL) {
283 if (rb->buf->last == rb->buf->end) {
285 if (rb->buf->pos != rb->buf->last) {
289 out.buf
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream_write_filter_module.c99 "write old buf t:%d f:%d %p, pos %p, size: %z "
101 cl->buf->temporary, cl->buf->in_file,
102 cl->buf->start, cl->buf->pos,
103 cl->buf->last - cl->buf->pos,
104 cl->buf->file_pos,
105 cl->buf->file_last - cl->buf
[all...]
/tldk/app/nginx/src/core/
H A Dngx_proxy_protocol.c13 ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf, u_char *last) argument
19 p = buf;
20 len = last - buf;
121 "broken header: \"%*s\"", (size_t) (last - buf), buf);
128 ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf, u_char *last) argument
132 if (last - buf < NGX_PROXY_PROTOCOL_MAX_HEADER) {
143 buf = ngx_cpymem(buf, "PROXY TCP4 ", sizeof("PROXY TCP4 ") - 1);
148 buf
[all...]
H A Dngx_output_chain.c31 ngx_output_chain_as_is(ngx_output_chain_ctx_t *ctx, ngx_buf_t *buf);
60 * are empty, the incoming chain is empty too or has the single buf
70 && !(in->buf->in_file && in->buf->file_last > NGX_SENDFILE_LIMIT)
72 && ngx_output_chain_as_is(ctx, in->buf))
78 /* add the incoming buf to the chain ctx->in */
105 bsize = ngx_buf_size(ctx->in->buf);
107 if (bsize == 0 && !ngx_buf_special(ctx->in->buf)) {
110 "zero size buf in output "
112 ctx->in->buf
228 ngx_output_chain_as_is(ngx_output_chain_ctx_t *ctx, ngx_buf_t *buf) argument
312 ngx_buf_t *b, *buf; local
[all...]
H A Dngx_buf.c115 cl->buf = b;
143 cl->buf = in->buf;
172 cl->buf = ngx_calloc_buf(p);
173 if (cl->buf == NULL) {
205 if (ngx_buf_size(cl->buf) != 0) {
209 if (cl->buf->tag != tag) {
215 cl->buf->pos = cl->buf->start;
216 cl->buf
[all...]
H A Dngx_cpuinfo.c15 static ngx_inline void ngx_cpuid(uint32_t i, uint32_t *buf);
21 ngx_cpuid(uint32_t i, uint32_t *buf) argument
42 : : "a" (i), "D" (buf) : "ecx", "edx", "esi", "memory" );
50 ngx_cpuid(uint32_t i, uint32_t *buf) argument
60 buf[0] = eax;
61 buf[1] = ebx;
62 buf[2] = edx;
63 buf[3] = ecx;
H A Dngx_proxy_protocol.h19 u_char *ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf,
21 u_char *ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf,
H A Dngx_syslog.h25 u_char *ngx_syslog_add_header(ngx_syslog_peer_t *peer, u_char *buf);
26 void ngx_syslog_writer(ngx_log_t *log, ngx_uint_t level, u_char *buf,
28 ssize_t ngx_syslog_send(ngx_syslog_peer_t *peer, u_char *buf, size_t len);
H A Dngx_log.c20 u_char *buf, size_t len);
288 ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err) argument
290 if (buf > last - 50) {
294 buf = last - 50;
295 *buf++ = '.';
296 *buf++ = '.';
297 *buf++ = '.';
301 buf = ngx_slprintf(buf, last, ((unsigned) err < 0x80000000)
304 buf
593 ngx_log_memory_buf_t *buf; local
716 ngx_log_memory_writer(ngx_log_t *log, ngx_uint_t level, u_char *buf, size_t len) argument
[all...]
/tldk/app/nginx/src/os/unix/
H A Dngx_writev_chain.c62 if (cl && cl->buf->in_file) {
64 "file buf in writev "
66 cl->buf->temporary,
67 cl->buf->recycled,
68 cl->buf->in_file,
69 cl->buf->start,
70 cl->buf->pos,
71 cl->buf->last,
72 cl->buf->file,
73 cl->buf
[all...]
H A Dngx_udp_sendmsg_chain.c66 if (cl && cl->buf->in_file) {
68 "file buf in sendmsg "
70 cl->buf->temporary,
71 cl->buf->recycled,
72 cl->buf->in_file,
73 cl->buf->start,
74 cl->buf->pos,
75 cl->buf->last,
76 cl->buf->file,
77 cl->buf
[all...]
H A Dngx_solaris_sendfilev_chain.c93 if (ngx_buf_special(cl->buf)) {
97 if (ngx_buf_in_memory_only(cl->buf)) {
100 size = cl->buf->last - cl->buf->pos;
106 if (prev == cl->buf->pos) {
118 sfv->sfv_off = (off_t) (uintptr_t) cl->buf->pos;
122 prev = cl->buf->pos + (size_t) size;
128 size = cl->buf->file_last - cl->buf->file_pos;
133 aligned = (cl->buf
[all...]
H A Dngx_os.h19 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
22 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size);
46 ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size);
48 ssize_t ngx_udp_unix_recv(ngx_connection_t *c, u_char *buf, size_t size);
49 ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size);
52 ssize_t ngx_udp_unix_send(ngx_connection_t *c, u_char *buf, size_t size);
/tldk/app/nginx/src/event/
H A Dngx_event_pipe.c18 static ngx_inline void ngx_event_pipe_remove_shadow_links(ngx_buf_t *buf);
170 * This test allows not to allocate a buf on these conditions
230 /* allocate a new buf if it's still allowed */
244 chain->buf = b;
321 ngx_event_pipe_remove_shadow_links(chain->buf);
343 ngx_event_pipe_remove_shadow_links(cl->buf);
345 size = cl->buf->end - cl->buf->last;
348 cl->buf->last = cl->buf
950 ngx_event_pipe_copy_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf) argument
993 ngx_event_pipe_remove_shadow_links(ngx_buf_t *buf) argument
[all...]
/tldk/app/nginx/src/os/win32/
H A Dngx_os.h19 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
22 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size);
42 ssize_t ngx_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
43 ssize_t ngx_overlapped_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
44 ssize_t ngx_udp_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
45 ssize_t ngx_udp_overlapped_wsarecv(ngx_connection_t *c, u_char *buf,
48 ssize_t ngx_wsasend(ngx_connection_t *c, u_char *buf, size_t size);
49 ssize_t ngx_overlapped_wsasend(ngx_connection_t *c, u_char *buf, size_t size);
H A Dngx_wsasend_chain.c66 if (ngx_buf_special(cl->buf)) {
70 size = cl->buf->last - cl->buf->pos;
76 if (prev == cl->buf->pos) {
77 wsabuf->len += cl->buf->last - cl->buf->pos;
85 wsabuf->buf = (char *) cl->buf->pos;
86 wsabuf->len = cl->buf->last - cl->buf
[all...]
H A Dngx_wsarecv_chain.c44 n = chain->buf->end - chain->buf->last;
56 if (prev == chain->buf->last) {
65 wsabuf->buf = (char *) chain->buf->last;
70 prev = chain->buf->end;
H A Dngx_udp_wsarecv.c14 ngx_udp_wsarecv(ngx_connection_t *c, u_char *buf, size_t size) argument
22 wsabuf[0].buf = (char *) buf;
55 ngx_udp_overlapped_wsarecv(ngx_connection_t *c, u_char *buf, size_t size) argument
107 wsabuf[0].buf = (char *) buf;
H A Dngx_wsasend.c14 ngx_wsasend(ngx_connection_t *c, u_char *buf, size_t size) argument
33 wsabuf.buf = (char *) buf;
69 ngx_overlapped_wsasend(ngx_connection_t *c, u_char *buf, size_t size) argument
96 wsabuf.buf = (char *) buf;
/tldk/app/nginx/src/http/v2/
H A Dngx_http_v2_huff_encode.c164 #define ngx_http_v2_huff_encode_buf(dst, buf) \
165 (*(uint64_t *) (dst) = __builtin_bswap64(buf))
167 #define ngx_http_v2_huff_encode_buf(dst, buf) \
168 ((dst)[0] = (u_char) ((buf) >> 56), \
169 (dst)[1] = (u_char) ((buf) >> 48), \
170 (dst)[2] = (u_char) ((buf) >> 40), \
171 (dst)[3] = (u_char) ((buf) >> 32), \
172 (dst)[4] = (u_char) ((buf) >> 24), \
173 (dst)[5] = (u_char) ((buf) >> 16), \
174 (dst)[6] = (u_char) ((buf) >>
196 ngx_uint_t buf, pending, code; local
[all...]
H A Dngx_http_v2_filter_module.c65 ngx_http_v2_stream_t *stream, ngx_buf_t *buf, off_t offset, off_t size);
740 cl->buf = b;
764 cl->buf = b;
812 size = ngx_buf_size(in->buf);
814 if (size || in->buf->last_buf) {
842 if (in->buf->tag == (ngx_buf_tag_t) &ngx_http_v2_filter_get_shadow) {
848 cl->buf = in->buf;
849 in->buf = cl->buf
984 ngx_http_v2_filter_get_shadow(ngx_http_v2_stream_t *stream, ngx_buf_t *buf, off_t offset, off_t size) argument
1021 ngx_buf_t *buf; local
1229 ngx_buf_t *buf; local
[all...]
/tldk/lib/libtle_l4p/
H A Dstream_table.c40 char buf[RTE_HASH_NAMESIZE]; local
45 hprm.name = buf;
51 snprintf(buf, sizeof(buf), "stbl4@%p", st);
58 snprintf(buf, sizeof(buf), "stbl6@%p", st);
/tldk/app/nginx/src/http/modules/
H A Dngx_http_charset_filter_module.c101 ngx_buf_t *buf, ngx_http_charset_ctx_t *ctx);
103 ngx_buf_t *buf, ngx_http_charset_ctx_t *ctx);
566 b = cl->buf;
575 (*ll)->buf = b;
614 b = cl->buf;
644 (void) ngx_http_charset_recode(cl->buf, ctx->table);
685 ngx_http_charset_recode_from_utf8(ngx_pool_t *pool, ngx_buf_t *buf, argument
695 src = buf->pos;
699 for ( /* void */ ; src < buf->last; src++) {
705 len = src - buf
966 ngx_http_charset_recode_to_utf8(ngx_pool_t *pool, ngx_buf_t *buf, ngx_http_charset_ctx_t *ctx) argument
[all...]
/tldk/examples/l4fwd/
H A Dfwdtbl.h91 char buf[RTE_HASH_NAMESIZE]; local
94 snprintf(buf, sizeof(buf), "fwd4tbl@%u", lcore);
98 snprintf(buf, sizeof(buf), "fwd6tbl@%u", lcore);
103 hprm.name = buf;

Completed in 12 milliseconds

123456