Home
last modified time | relevance | path

Searched refs:fb (Results 1 – 7 of 7) sorted by relevance

/unit/src/
H A Dnxt_macosx_sendfile.c33 nxt_buf_t *fb; in nxt_macosx_event_conn_io_sendfile() local
59 fb = sb.buf; in nxt_macosx_event_conn_io_sendfile()
106 fb->file->fd, c->socket.fd, fb->file_pos, sent, in nxt_macosx_event_conn_io_sendfile()
109 n = nxt_sys_sendfile(fb->file->fd, c->socket.fd, in nxt_macosx_event_conn_io_sendfile()
110 fb->file_pos, &sent, ht, 0); in nxt_macosx_event_conn_io_sendfile()
130 fb->file->fd, c->socket.fd, fb->file_pos, sent, err, in nxt_macosx_event_conn_io_sendfile()
131 fb->file->name, nhd, ntr); in nxt_macosx_event_conn_io_sendfile()
143 "file \"%FN\" was truncated while sendfile()", fb->file->name); in nxt_macosx_event_conn_io_sendfile()
H A Dnxt_freebsd_sendfile.c38 nxt_buf_t *fb; in nxt_freebsd_event_conn_io_sendfile() local
63 fb = sb.buf; in nxt_freebsd_event_conn_io_sendfile()
96 fb->file->fd, c->socket.fd, fb->file_pos, file_size, in nxt_freebsd_event_conn_io_sendfile()
100 n = nxt_sys_sendfile(fb->file->fd, c->socket.fd, fb->file_pos, in nxt_freebsd_event_conn_io_sendfile()
121 fb->file->fd, c->socket.fd, fb->file_pos, file_size, err, in nxt_freebsd_event_conn_io_sendfile()
122 fb->file->name, nhd, ntr); in nxt_freebsd_event_conn_io_sendfile()
133 "file \"%FN\" was truncated while sendfile()", fb->file->name); in nxt_freebsd_event_conn_io_sendfile()
H A Dnxt_aix_send_file.c20 nxt_buf_t *fb; in nxt_aix_event_conn_io_send_file() local
45 fb = sb.buf; in nxt_aix_event_conn_io_send_file()
65 sfp.file_descriptor = fb->file->fd; in nxt_aix_event_conn_io_send_file()
66 sfp.file_offset = fb->file_pos; in nxt_aix_event_conn_io_send_file()
75 c->socket.fd, fb->file->fd, fb->file_pos, file_size, nhd, ntr); in nxt_aix_event_conn_io_send_file()
106 c->socket.fd, err, fb->file->name, fb->file->fd, fb->file_pos, in nxt_aix_event_conn_io_send_file()
H A Dnxt_hpux_sendfile.c38 nxt_buf_t *fb; in nxt_hpux_event_conn_io_sendfile() local
61 fb = sb.buf; in nxt_hpux_event_conn_io_sendfile()
97 c->socket.fd, fb->file->fd, fb->file_pos, file_size, in nxt_hpux_event_conn_io_sendfile()
100 n = nxt_sys_sendfile(c->socket.fd, fb->file->fd, fb->file_pos, in nxt_hpux_event_conn_io_sendfile()
121 c->socket.fd, fb->file_pos, file_size, &fb->file->name, in nxt_hpux_event_conn_io_sendfile()
H A Dnxt_linux_sendfile.c51 nxt_buf_t *fb; in nxt_linux_event_conn_io_sendfile() local
71 fb = (sb.buf != NULL && nxt_buf_is_file(sb.buf)) ? sb.buf : NULL; in nxt_linux_event_conn_io_sendfile()
77 if (fb != NULL) { in nxt_linux_event_conn_io_sendfile()
99 c->socket.fd, fb->file->fd, fb->file_pos, size); in nxt_linux_event_conn_io_sendfile()
101 offset = fb->file_pos; in nxt_linux_event_conn_io_sendfile()
103 n = nxt_sys_sendfile(c->socket.fd, fb->file->fd, &offset, size); in nxt_linux_event_conn_io_sendfile()
123 c->socket.fd, fb->file->fd, fb->file_pos, size, in nxt_linux_event_conn_io_sendfile()
124 err, fb->file->name); in nxt_linux_event_conn_io_sendfile()
H A Dnxt_http_static.c299 nxt_buf_t *fb; in nxt_http_static_send_ready() local
572 fb->file = f; in nxt_http_static_send_ready()
575 r->out = fb; in nxt_http_static_send_ready()
790 fb = r->out; in nxt_http_static_body_handler()
792 rest = fb->file_end - fb->file_pos; in nxt_http_static_body_handler()
845 nxt_buf_t *b, *fb, *next; in nxt_http_static_buf_completion() local
854 fb = r->out; in nxt_http_static_buf_completion()
860 rest = fb->file_end - fb->file_pos; in nxt_http_static_buf_completion()
865 n = nxt_file_read(fb->file, b->mem.start, size, fb->file_pos); in nxt_http_static_buf_completion()
886 fb->file_pos += n; in nxt_http_static_buf_completion()
[all …]
H A Dnxt_buf_filter.c402 nxt_buf_t *fb, *b; in nxt_buf_filter_buf_completion() local
416 fb = ctx->buf; in nxt_buf_filter_buf_completion()
421 if (fb->file_pos < fb->file_end) { in nxt_buf_filter_buf_completion()
426 if (b->file_end == fb->file_end) { in nxt_buf_filter_buf_completion()
432 fb->completion_handler, in nxt_buf_filter_buf_completion()
433 task, fb, fb->parent); in nxt_buf_filter_buf_completion()