Home
last modified time | relevance | path

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

/unit/src/
H A Dnxt_string.c59 return dst; in nxt_str_dup()
73 char *p, *dst; in nxt_str_cstrz() local
82 return dst; in nxt_str_cstrz()
122 dst++; in nxt_cpystr()
126 return dst; in nxt_cpystr()
144 dst++; in nxt_cpystrn()
148 *dst = '\0'; in nxt_cpystrn()
150 return dst; in nxt_cpystrn()
550 return dst; in nxt_decode_uri()
591 return dst; in nxt_decode_uri_plus()
[all …]
H A Dnxt_array.c122 if (dst == NULL) { in nxt_array_copy()
123 dst = nxt_array_create(mp, src->nelts, size); in nxt_array_copy()
124 if (nxt_slow_path(dst == NULL)) { in nxt_array_copy()
129 nxt_assert(size == dst->size); in nxt_array_copy()
131 if (dst->nalloc >= src->nelts) { in nxt_array_copy()
132 nxt_memcpy(dst->elts, src->elts, src->nelts * size); in nxt_array_copy()
135 nxt_memcpy(dst->elts, src->elts, dst->nelts * size); in nxt_array_copy()
137 for (i = dst->nelts; i < src->nelts; i++) { in nxt_array_copy()
138 data = nxt_array_add(dst); in nxt_array_copy()
147 dst->nelts = src->nelts; in nxt_array_copy()
[all …]
H A Dnxt_file_name.c29 nxt_file_name_t *dst, *fn; in nxt_file_name_create() local
120 dst = fn; in nxt_file_name_create()
131 *dst++ = (nxt_file_name_t) ch; in nxt_file_name_create()
146 dst = nxt_file_name_add(dst, v->start, v->length); in nxt_file_name_create()
156 *dst++ = (nxt_file_name_t) (*p++); in nxt_file_name_create()
169 dst = nxt_file_name_add(dst, p, length); in nxt_file_name_create()
182 *dst++ = *fn++; in nxt_file_name_create()
190 *dst++ = '\0'; in nxt_file_name_create()
H A Dnxt_string.h44 #define nxt_memcpy(dst, src, length) \ argument
45 (void) memcpy(dst, src, length)
48 NXT_EXPORT void nxt_memcpy_lowcase(u_char *dst, const u_char *src,
50 NXT_EXPORT void nxt_memcpy_upcase(u_char *dst, const u_char *src,
59 nxt_cpymem(void *dst, const void *src, size_t length) in nxt_cpymem() argument
61 return ((u_char *) memcpy(dst, src, length)) + length; in nxt_cpymem()
66 (void) memmove(dst, src, length)
85 NXT_EXPORT u_char *nxt_cpystr(u_char *dst, const u_char *src);
128 NXT_EXPORT nxt_str_t *nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst,
163 NXT_EXPORT u_char *nxt_decode_uri(u_char *dst, u_char *src, size_t length);
[all …]
H A Dnxt_fs.c68 rc = mount((const char *) mnt->src, (const char *) mnt->dst, fsname, flags, in nxt_fs_mount()
73 mnt->src, mnt->dst, fsname, flags, mnt->data, nxt_errno); in nxt_fs_mount()
143 iov[3].iov_base = (void *) mnt->dst; in nxt_fs_mount()
144 iov[3].iov_len = nxt_strlen(mnt->dst) + 1; in nxt_fs_mount()
239 char *start, *end, *dst; in nxt_fs_mkdir_all() local
247 dst = path; in nxt_fs_mkdir_all()
252 *dst++ = *start++; in nxt_fs_mkdir_all()
260 dst = nxt_cpymem(dst, start, end - start); in nxt_fs_mkdir_all()
261 *dst = '\0'; in nxt_fs_mkdir_all()
H A Dnxt_conf.c988 dst->u = src->u; in nxt_conf_copy_value()
991 dst->type = src->type; in nxt_conf_copy_value()
1091 dst->type = src->type; in nxt_conf_copy_array()
1221 dst->type = src->type; in nxt_conf_copy_object()
2564 *dst++ = ch; in nxt_conf_json_escape()
2567 *dst++ = '\\'; in nxt_conf_json_escape()
2571 *dst++ = 'n'; in nxt_conf_json_escape()
2575 *dst++ = 'r'; in nxt_conf_json_escape()
2579 *dst++ = 't'; in nxt_conf_json_escape()
2591 *dst++ = 'u'; *dst++ = '0'; *dst++ = '0'; in nxt_conf_json_escape()
[all …]
H A Dnxt_isolation.c581 len = nxt_strlen(lang_mnt[i].dst); in nxt_isolation_set_lang_mounts()
584 if (nxt_slow_path(mnt[i].dst == NULL)) { in nxt_isolation_set_lang_mounts()
589 p = nxt_cpymem(p, lang_mnt[i].dst, len); in nxt_isolation_set_lang_mounts()
610 if (nxt_slow_path(mnt->dst == NULL)) { in nxt_isolation_set_lang_mounts()
614 p = nxt_cpymem(mnt->dst, rootfs, rootfs_len); in nxt_isolation_set_lang_mounts()
629 if (nxt_slow_path(mnt->dst == NULL)) { in nxt_isolation_set_lang_mounts()
633 p = nxt_cpymem(mnt->dst, rootfs, rootfs_len); in nxt_isolation_set_lang_mounts()
693 nxt_fs_unmount(mnt[n].dst); in nxt_isolation_unmount_all()
705 const u_char *dst; in nxt_isolation_prepare_rootfs() local
716 dst = mnt[i].dst; in nxt_isolation_prepare_rootfs()
[all …]
H A Dnxt_http_request.c805 for (p = start, dst = dst_start; p < end; p++, dst++) { in nxt_http_arguments_parse()
806 *dst = *p; in nxt_http_arguments_parse()
811 name_length = dst - dst_start; in nxt_http_arguments_parse()
813 dst_start = dst + 1; in nxt_http_arguments_parse()
819 if (name_length != 0 || dst != dst_start) { in nxt_http_arguments_parse()
821 dst); in nxt_http_arguments_parse()
830 dst_start = dst + 1; in nxt_http_arguments_parse()
835 *dst = ' '; in nxt_http_arguments_parse()
852 *dst = (d0 << 4) + d1; in nxt_http_arguments_parse()
858 hash = nxt_http_field_hash_char(hash, *dst); in nxt_http_arguments_parse()
[all …]
H A Dnxt_file.h38 #define nxt_file_name_copy(dst, src, len) \ argument
39 nxt_cpymem(dst, src, len)
42 #define nxt_file_name_add(dst, src, len) \ argument
43 nxt_cpymem(dst, src, len)
H A Dnxt_fs.h29 u_char *dst; member
H A Dnxt_application.c58 static u_char *nxt_cstr_dup(nxt_mp_t *mp, u_char *dst, u_char *src);
270 size += nxt_strlen(mnt[j].src) + nxt_strlen(mnt[j].dst) in nxt_discovery_modules()
300 mnt[j].src, mnt[j].dst, mnt[j].name, mnt[j].type, in nxt_discovery_modules()
438 to->dst = nxt_cstr_dup(mp, to->dst, from->dst); in nxt_discovery_module()
439 if (nxt_slow_path(to->dst == NULL)) { in nxt_discovery_module()
894 nxt_cstr_dup(nxt_mp_t *mp, u_char *dst, u_char *src) in nxt_cstr_dup() argument
901 if (dst == NULL) { in nxt_cstr_dup()
902 dst = nxt_mp_alloc(mp, len + 1); in nxt_cstr_dup()
903 if (nxt_slow_path(dst == NULL)) { in nxt_cstr_dup()
908 p = nxt_cpymem(dst, src, len); in nxt_cstr_dup()
[all …]
H A Dnxt_unit.h186 void *dst, size_t size);
313 ssize_t nxt_unit_request_read(nxt_unit_request_info_t *req, void *dst,
328 ssize_t nxt_unit_websocket_read(nxt_unit_websocket_frame_t *ws, void *dst,
H A Dnxt_array.h35 NXT_EXPORT nxt_array_t *nxt_array_copy(nxt_mp_t *mp, nxt_array_t *dst,
H A Dnxt_sockaddr.c173 nxt_sockaddr_t *dst; in nxt_sockaddr_copy() local
177 dst = nxt_mp_alloc(mp, length); in nxt_sockaddr_copy()
179 if (nxt_fast_path(dst != NULL)) { in nxt_sockaddr_copy()
180 nxt_memcpy(dst, src, length); in nxt_sockaddr_copy()
183 return dst; in nxt_sockaddr_copy()
1237 u_char c, *addr, *zero_start, *ipv4, *dst, *src, *end; in nxt_inet6_addr() local
1350 dst = src + groups_left; in nxt_inet6_addr()
1353 *dst-- = *src--; in nxt_inet6_addr()
H A Dnxt_unit.c176 nxt_inline void nxt_unit_rbuf_cpy(nxt_unit_read_buf_t *dst,
3062 dst, size); in nxt_unit_request_read()
3065 res = read(req->content_fd, dst, size); in nxt_unit_request_read()
3082 dst = nxt_pointer_to(dst, res); in nxt_unit_request_read()
3206 p = dst; in nxt_unit_buf_read()
3412 dst, size); in nxt_unit_websocket_read()
3418 b = dst; in nxt_unit_websocket_read()
6139 memcpy(dst->buf, src->buf, src->size); in nxt_unit_rbuf_cpy()
6140 dst->size = src->size; in nxt_unit_rbuf_cpy()
6141 dst->oob.size = src->oob.size; in nxt_unit_rbuf_cpy()
[all …]
H A Dnxt_main_process.c1249 offsetof(nxt_fs_mount_t, dst),
/unit/src/java/nginx/unit/websocket/
H A DWsPongMessage.java29 byte[] dst = new byte[applicationData.limit()]; in WsPongMessage()
30 applicationData.get(dst); in WsPongMessage()
31 this.applicationData = ByteBuffer.wrap(dst); in WsPongMessage()
H A DAsyncChannelWrapperNonSecure.java45 public Future<Integer> read(ByteBuffer dst) { in read() argument
46 return socketChannel.read(dst); in read()
50 public <B,A extends B> void read(ByteBuffer dst, A attachment, in read() argument
52 socketChannel.read(dst, attachment, handler); in read()
H A DAsyncChannelWrapper.java33 Future<Integer> read(ByteBuffer dst); in read() argument
35 <B,A extends B> void read(ByteBuffer dst, A attachment, in read() argument
H A DAsyncChannelWrapperSecure.java78 public Future<Integer> read(ByteBuffer dst) { in read() argument
86 ReadTask readTask = new ReadTask(dst, future); in read()
94 public <B,A extends B> void read(ByteBuffer dst, A attachment, in read() argument
105 ReadTask readTask = new ReadTask(dst, future); in read()
/unit/go/
H A Dnxt_cgo_lib.c77 nxt_cgo_request_read(nxt_unit_request_info_t *req, uintptr_t dst, in nxt_cgo_request_read() argument
80 return nxt_unit_request_read(req, (void *) dst, dst_len); in nxt_cgo_request_read()
H A Dnxt_cgo_lib.h27 uintptr_t dst, uint32_t dst_len);
/unit/src/java/
H A Dnxt_jni_Response.c669 char *dst; in nxt_java_response_set_header() local
693 dst = nxt_unit_sptr_get(&f->value); in nxt_java_response_set_header()
694 memcpy(dst, value, value_len); in nxt_java_response_set_header()
695 dst[value_len] = '\0'; in nxt_java_response_set_header()
/unit/src/perl/
H A Dnxt_perl_psgi.c84 static ssize_t nxt_perl_psgi_io_read(nxt_unit_read_info_t *read_info, void *dst,
1002 nxt_perl_psgi_io_read(nxt_unit_read_info_t *read_info, void *dst, size_t size) in nxt_perl_psgi_io_read() argument
1011 res = PerlIO_read(ctx->fp, dst, size); in nxt_perl_psgi_io_read()
/unit/src/ruby/
H A Dnxt_ruby.c1068 nxt_ruby_rack_file_read(nxt_unit_read_info_t *read_info, void *dst, size_t size) in nxt_ruby_rack_file_read() argument
1077 res = pread(file->fd, dst, size, file->pos); in nxt_ruby_rack_file_read()