Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 40) sorted by relevance

12

/unit/src/
H A Dnxt_mem_map.c12 nxt_fd_t fd, nxt_off_t offset) in nxt_mem_mmap() argument
16 p = mmap(addr, len, protection, flags, fd, offset); in nxt_mem_mmap()
20 addr, len, protection, flags, fd, offset, p); in nxt_mem_mmap()
24 addr, len, protection, flags, fd, offset, nxt_errno); in nxt_mem_mmap()
H A Dnxt_unit_sptr.h20 uint32_t offset; member
27 sptr->offset = (uint8_t *) ptr - sptr->base; in nxt_unit_sptr_set()
34 return sptr->base + sptr->offset; in nxt_unit_sptr_get()
H A Dnxt_file.c103 nxt_off_t offset) in nxt_file_write() argument
109 n = pwrite(file->fd, buf, size, offset); in nxt_file_write()
116 file->fd, buf, size, offset, n); in nxt_file_write()
124 offset, file->error); in nxt_file_write()
137 n = pread(file->fd, buf, size, offset); in nxt_file_read()
144 file->fd, buf, size, offset, n); in nxt_file_read()
152 offset, file->error); in nxt_file_read()
174 (void) nxt_file_read(file, &buf, 1, offset); in nxt_file_read_ahead()
208 file->fd, file->name, offset, size, in nxt_file_read_ahead()
235 (void) nxt_file_read(file, &buf, 1, offset); in nxt_file_read_ahead()
[all …]
H A Dnxt_mem_map.h49 #define nxt_mem_map(addr, ctx, len, protection, flags, fd, offset) \ argument
50 nxt_mem_mmap(addr, len, protection, flags, fd, offset)
58 nxt_uint_t flags, nxt_fd_t fd, nxt_off_t offset);
H A Dnxt_http_response.c16 uintptr_t offset);
78 nxt_http_response_field(void *ctx, nxt_http_field_t *field, uintptr_t offset) in nxt_http_response_field() argument
84 nxt_value_at(nxt_http_field_t *, r, offset) = field; in nxt_http_response_field()
H A Dnxt_clang.h205 #define nxt_pointer_to(p, offset) \ argument
206 ((void *) ((char *) (p) + (offset)))
209 #define nxt_value_at(type, p, offset) \ argument
210 *(type *) ((u_char *) p + offset)
H A Dnxt_job_file.c109 nxt_file_read_ahead(&jbf->file, jbf->offset, size); in nxt_job_file_open_and_read()
128 if (jbf->offset == file->size) { in nxt_job_file_open_and_read()
243 jbf->file.fd, jbf->offset); in nxt_job_file_mmap()
254 jbf->offset += size; in nxt_job_file_mmap()
280 n = nxt_file_read(&jbf->file, jbf->buffer->mem.free, size, jbf->offset); in nxt_job_file_read_data()
285 jbf->offset += n; in nxt_job_file_read_data()
H A Dnxt_linux_sendfile.c28 static ssize_t nxt_sys_sendfile(int out_fd, int in_fd, off_t *offset, in nxt_sys_sendfile() argument
53 nxt_off_t offset; in nxt_linux_event_conn_io_sendfile() local
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()
H A Dnxt_mem_zone.c136 static nxt_uint_t nxt_mem_zone_alloc_chunk(uint8_t *map, nxt_uint_t offset,
580 nxt_mem_zone_alloc_chunk(uint8_t *map, nxt_uint_t offset, nxt_uint_t size) in nxt_mem_zone_alloc_chunk() argument
603 return offset; in nxt_mem_zone_alloc_chunk()
606 offset += size; in nxt_mem_zone_alloc_chunk()
613 offset += size * 8; in nxt_mem_zone_alloc_chunk()
622 offset += size * 32; in nxt_mem_zone_alloc_chunk()
826 uint32_t size, offset, chunk; in nxt_mem_zone_free_chunk() local
835 offset = (uintptr_t) p & zone->page_size_mask; in nxt_mem_zone_free_chunk()
836 offset -= slot->start; in nxt_mem_zone_free_chunk()
838 chunk = offset / size; in nxt_mem_zone_free_chunk()
[all …]
H A Dnxt_controller.c1175 resp.offset = -1; in nxt_controller_process_request()
1184 resp.offset = -1; in nxt_controller_process_request()
1193 resp.offset = -1; in nxt_controller_process_request()
1447 resp.offset = -1; in nxt_controller_process_config()
1456 resp.offset = -1; in nxt_controller_process_config()
1465 resp.offset = -1; in nxt_controller_process_config()
1474 resp.offset = -1; in nxt_controller_process_config()
1550 resp.offset = -1; in nxt_controller_process_status()
1734 resp.offset = -1; in nxt_controller_process_cert()
1743 resp.offset = -1; in nxt_controller_process_cert()
[all …]
H A Dnxt_file.h156 size_t size, nxt_off_t offset);
158 nxt_off_t offset);
159 NXT_EXPORT void nxt_file_read_ahead(nxt_file_t *file, nxt_off_t offset,
H A Dnxt_pcre.c37 err->offset = source->length; in nxt_regex_compile()
72 err->offset = erroffset; in nxt_regex_compile()
H A Dnxt_regex.h21 size_t offset; member
H A Dnxt_job_file.h51 nxt_off_t offset; member
H A Dnxt_hpux_sendfile.c15 static ssize_t nxt_sys_sendfile(int s, int fd, off_t offset, size_t nbytes, in nxt_sys_sendfile() argument
25 sbsize_t sendfile(int s, int fd, off_t offset, bsize_t nbytes,
H A Dnxt_pcre2.c58 err->offset = erroffset; in nxt_regex_compile()
90 err->offset = source->length; in nxt_regex_compile()
H A Dnxt_sockaddr.c231 size_t offset; in nxt_sockaddr_text() local
235 offset = offsetof(nxt_sockaddr_t, u) + sa->socklen; in nxt_sockaddr_text()
236 sa->start = offset; in nxt_sockaddr_text()
237 sa->port_start = offset; in nxt_sockaddr_text()
239 start = nxt_pointer_to(sa, offset); in nxt_sockaddr_text()
245 sa->address_start = offset; in nxt_sockaddr_text()
262 sa->address_start = offset + 1; in nxt_sockaddr_text()
283 sa->address_start = offset; in nxt_sockaddr_text()
H A Dnxt_macosx_sendfile.c17 static int nxt_sys_sendfile(int fd, int s, off_t offset, off_t *len, in nxt_sys_sendfile() argument
H A Dnxt_freebsd_sendfile.c21 static int nxt_sys_sendfile(int fd, int s, off_t offset, size_t nbytes, in nxt_sys_sendfile() argument
/unit/src/java/nginx/unit/websocket/
H A DAsyncChannelWrapperSecure.java130 public <B,A extends B> void write(ByteBuffer[] srcs, int offset, int length, in write() argument
142 WriteTask writeTask = new WriteTask(srcs, offset, length, future); in write()
172 private final int offset; field in AsyncChannelWrapperSecure.WriteTask
176 public WriteTask(ByteBuffer[] srcs, int offset, int length, in WriteTask() argument
180 this.offset = offset; in WriteTask()
189 for (int i = offset; i < offset + length; i++) { in run()
H A DAsyncChannelWrapperNonSecure.java61 public <B,A extends B> void write(ByteBuffer[] srcs, int offset, int length, in write() argument
65 srcs, offset, length, timeout, unit, attachment, handler); in write()
H A DAsyncChannelWrapper.java40 <B,A extends B> void write(ByteBuffer[] srcs, int offset, int length, in write() argument
/unit/auto/
H A Dsendfile21 off_t offset;
23 sendfile(-1, -1, &offset, 0);
152 sbsize_t sendfile(int s, int fd, off_t offset,
/unit/src/nodejs/unit-http/
H A Dhttp_server.js501 res = o.resp._write(o.chunk, o.offset, l);
503 o.offset += res;
504 if (o.offset < l) {
534 function BufferedOutput(resp, offset, chunk, encoding, callback) { argument
536 this.offset = offset;
/unit/docs/
H A Dchanges.xsls149 X:var offset = {
164 !length(text = "substring($text, $offset)",
171 !{normalize-space(translate(substring($text, $offset, $length),
176 !wrap(text = "substring($text, $length + $offset)", prefix = "$indent")

12