Searched refs:offset (Results 1 - 25 of 41) sorted by relevance

12

/tldk/app/nginx/src/os/unix/
H A Dngx_files.c20 off_t offset);
31 ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) argument
36 "read: %d, %p, %uz, %O", file->fd, buf, size, offset);
40 n = pread(file->fd, buf, size, offset);
50 if (file->sys_offset != offset) {
51 if (lseek(file->fd, offset, SEEK_SET) == -1) {
57 file->sys_offset = offset;
72 file->offset += n;
87 off_t offset; member in struct:__anon378
95 ngx_thread_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset, argument
193 ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) argument
293 ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset, ngx_pool_t *pool) argument
392 ngx_writev_file(ngx_file_t *file, ngx_iovec_t *vec, off_t offset) argument
477 ngx_thread_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset, ngx_pool_t *pool) argument
543 off_t offset; local
[all...]
H A Dngx_linux_aio_read.c50 ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset, argument
59 return ngx_read_file(file, buf, size, offset);
77 ev->complete, offset, size, &file->name);
103 aio->aiocb.aio_offset = offset;
122 return ngx_read_file(file, buf, size, offset);
130 return ngx_read_file(file, buf, size, offset);
H A Dngx_linux_sendfile_chain.c32 * if off_t is 64 bit wide. So we use own sendfile() definition, where offset
233 off_t offset; local
235 int32_t offset;
249 offset = file->file_pos;
251 offset = (int32_t) file->file_pos;
259 n = sendfile(c->fd, file->file->fd, &offset, size);
285 * so the offset became beyond the end of the file
367 * so the offset became beyond the end of the file
408 off_t offset; local
415 offset
[all...]
H A Dngx_file_aio_read.c62 ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset, argument
70 return ngx_read_file(file, buf, size, offset);
88 ev->complete, offset, size, &file->name);
107 aio->aiocb.aio_offset = offset;
123 return ngx_read_file(file, buf, size, offset);
131 return ngx_read_file(file, buf, size, offset);
H A Dngx_files.h122 ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset);
130 off_t offset);
133 off_t offset, ngx_pool_t *pool);
381 off_t offset, ngx_pool_t *pool);
389 off_t offset, ngx_pool_t *pool);
391 off_t offset, ngx_pool_t *pool);
H A Dngx_linux_config.h77 extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size);
/tldk/app/nginx/src/core/
H A Dngx_parse.c62 off_t offset, scale, max; local
100 offset = ngx_atoof(line->data, len);
101 if (offset == NGX_ERROR || offset > max) {
105 offset *= scale;
107 return offset;
H A Dngx_file.h21 off_t offset; member in struct:ngx_file_s
73 off_t offset; member in struct:__anon18
H A Dngx_conf_file.c212 cf->conf_file->file.offset = 0;
534 if (cf->conf_file->file.offset >= file_size) {
582 size = (ssize_t) (file_size - cf->conf_file->file.offset);
589 cf->conf_file->file.offset);
1027 fp = (ngx_flag_t *) (p + cmd->offset);
1066 field = (ngx_str_t *) (p + cmd->offset);
1094 a = (ngx_array_t **) (p + cmd->offset);
1131 a = (ngx_array_t **) (p + cmd->offset);
1169 np = (ngx_int_t *) (p + cmd->offset);
1200 sp = (size_t *) (p + cmd->offset);
[all...]
H A Dngx_conf_file.h82 ngx_uint_t offset; member in struct:ngx_command_s
H A Dngx_file.c130 return ngx_thread_write_chain_to_file(&tf->file, chain, tf->offset,
136 return ngx_write_chain_to_file(&tf->file, chain, tf->offset, tf->pool);
370 slot = (ngx_path_t **) (p + cmd->offset);
468 access = (ngx_uint_t *) (confp + cmd->offset);
/tldk/app/nginx/src/http/modules/
H A Dngx_http_sub_filter_module.c72 ngx_int_t offset; member in struct:__anon236
263 ctx->offset = ctx->tables->min_match_len - 1;
612 ngx_int_t offset, start, next, end, len, rc; local
622 offset = ctx->offset;
627 offset = end + (ngx_int_t) tables->min_match_len - 1;
631 while (offset < end) {
633 c = offset < 0 ? ctx->looked.data[ctx->looked.len + offset]
634 : ctx->pos[offset];
[all...]
H A Dngx_http_headers_filter_module.c21 ngx_uint_t offset; member in struct:__anon148
30 ngx_uint_t offset; member in struct:ngx_http_header_val_s
513 old = (ngx_table_elt_t **) ((char *) &r->headers_out + hv->offset);
698 hv->offset = 0;
707 hv->offset = set[i].offset;
H A Dngx_http_auth_basic_module.c98 off_t offset; local
184 offset = 0;
190 offset);
265 offset += n;
H A Dngx_http_range_filter_module.c56 off_t offset; member in struct:__anon208
225 ctx->offset = r->headers_out.content_offset;
655 if (ctx->offset) {
662 start = ctx->offset;
663 last = ctx->offset + ngx_buf_size(buf);
673 ctx->offset = ngx_buf_size(buf);
703 start = ctx->offset;
704 last = ctx->offset + ngx_buf_size(buf);
706 ctx->offset = last;
H A Dngx_http_mp4_module.c128 off_t offset; member in struct:__anon180
173 mp4->offset += n
912 end = mp4->offset + atom_data_size;
914 while (mp4->offset < end) {
962 (size_t) 4, atom_name, mp4->offset, atom_size);
964 if (atom_size > (uint64_t) (NGX_MAX_OFF_T_VALUE - mp4->offset)
965 || mp4->offset + (off_t) atom_size > end)
1007 if (mp4->offset + (off_t) mp4->buffer_size > mp4->end) {
1008 mp4->buffer_size = (size_t) (mp4->end - mp4->offset);
1027 mp4->offset);
2451 u_char offset[4]; member in struct:__anon195
3300 uint32_t offset, *entry, *end; local
3484 uint64_t offset, *entry, *end; local
[all...]
/tldk/app/nginx/src/event/
H A Dngx_event_connectex.c130 offset = (nevents == WSA_MAXIMUM_WAIT_EVENTS + 1) ? 1: 0;
133 n = WSAWaitForMultipleEvents(nevents - offset, events[offset],
H A Dngx_event_pipe.c265 || p->temp_file->offset < p->max_temp_file_size)
276 "pipe temp offset: %O", p->temp_file->offset);
708 if (cl->buf->file_last == p->temp_file->offset) {
709 p->temp_file->offset = 0;
784 "pipe offset: %O", p->temp_file->offset);
796 || (p->temp_file->offset + size + bsize
858 p->temp_file->offset = p->buf_to_file->last - p->buf_to_file->pos;
872 if (b->file_last == p->temp_file->offset) {
[all...]
/tldk/app/nginx/src/os/win32/
H A Dngx_files.c62 ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) argument
70 ovlp.Offset = (u_long) offset;
71 ovlp.OffsetHigh = (u_long) (offset >> 32);
88 file->offset += n;
95 ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) argument
102 ovlp.Offset = (u_long) offset;
103 ovlp.OffsetHigh = (u_long) (offset >> 32);
121 file->offset += n;
128 ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset, argument
150 n = ngx_write_file(file, buf, size, offset);
[all...]
H A Dngx_files.h246 ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset);
250 off_t offset);
253 off_t offset, ngx_pool_t *pool);
/tldk/app/nginx/src/http/modules/perl/
H A Dnginx.xs263 if (hh->offset == offsetof(ngx_http_headers_in_t, cookies)) {
268 if (hh->offset == offsetof(ngx_http_headers_in_t, x_forwarded_for)) {
274 ph = (ngx_table_elt_t **) ((char *) &r->headers_in + hh->offset);
288 a = (ngx_array_t *) ((char *) &r->headers_in + hh->offset);
663 sendfile(r, filename, offset = -1, bytes = 0)
668 off_t offset;
683 offset = items < 3 ? -1 : SvIV(ST(2));
732 if (offset == -1) {
733 offset = 0;
737 bytes = of.size - offset;
[all...]
/tldk/app/nginx/src/http/
H A Dngx_http_upstream.c106 ngx_table_elt_t *h, ngx_uint_t offset);
108 ngx_table_elt_t *h, ngx_uint_t offset);
110 ngx_table_elt_t *h, ngx_uint_t offset);
112 ngx_table_elt_t *h, ngx_uint_t offset);
115 ngx_table_elt_t *h, ngx_uint_t offset);
117 ngx_table_elt_t *h, ngx_uint_t offset);
119 ngx_table_elt_t *h, ngx_uint_t offset);
121 ngx_table_elt_t *h, ngx_uint_t offset);
123 ngx_table_elt_t *h, ngx_uint_t offset);
125 ngx_table_elt_t *h, ngx_uint_t offset);
1096 off_t offset; local
4387 ngx_http_upstream_process_header_line(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4403 ngx_http_upstream_ignore_header_line(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4411 ngx_http_upstream_process_content_length(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4426 ngx_http_upstream_process_last_modified(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4449 ngx_http_upstream_process_set_cookie(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4484 ngx_http_upstream_process_cache_control(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4622 ngx_http_upstream_process_expires(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4662 ngx_http_upstream_process_accel_expires(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4720 ngx_http_upstream_process_limit_rate(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4744 ngx_http_upstream_process_buffering(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4782 ngx_http_upstream_process_charset(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4796 ngx_http_upstream_process_connection(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4813 ngx_http_upstream_process_transfer_encoding(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4830 ngx_http_upstream_process_vary(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4863 ngx_http_upstream_copy_header_line(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4885 ngx_http_upstream_copy_multi_header_lines(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4918 ngx_http_upstream_copy_content_type(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4970 ngx_http_upstream_copy_last_modified(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
4998 ngx_http_upstream_rewrite_location(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
5042 ngx_http_upstream_rewrite_refresh(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
5088 ngx_http_upstream_rewrite_set_cookie(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
5123 ngx_http_upstream_copy_allow_ranges(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
5163 ngx_http_upstream_copy_content_encoding(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) argument
[all...]
H A Dngx_http_request.h166 ngx_uint_t offset; member in struct:__anon295
173 ngx_uint_t offset; member in struct:__anon296
H A Dngx_http.h25 ngx_table_elt_t *h, ngx_uint_t offset);
/tldk/app/nginx/src/http/v2/
H A Dngx_http_v2_filter_module.c65 ngx_http_v2_stream_t *stream, ngx_buf_t *buf, off_t offset, off_t size);
795 off_t size, offset; local
851 offset = ngx_buf_in_memory(in->buf)
859 offset = 0;
889 if (offset) {
891 offset, size);
896 offset = 0;
923 cl = ngx_http_v2_filter_get_shadow(stream, in->buf, offset, rest);
933 offset += rest;
960 if (offset) {
984 ngx_http_v2_filter_get_shadow(ngx_http_v2_stream_t *stream, ngx_buf_t *buf, off_t offset, off_t size) argument
[all...]

Completed in 33 milliseconds

12