Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 58) sorted by last modified time

123

/unit/src/
H A Dnxt_var.c332 u_char *p, *end, *next, *src; in nxt_var_compile() local
368 src = nxt_var_raw_start(var); in nxt_var_compile()
370 nxt_memcpy(src, str->start, str->length); in nxt_var_compile()
510 u_char *p, *src; in nxt_var_interpreter() local
553 src = nxt_var_raw_start(var); in nxt_var_interpreter()
561 p = nxt_cpymem(p, &src[last], next - last); in nxt_var_interpreter()
574 p = nxt_cpymem(p, &src[last], var->length - last); in nxt_var_interpreter()
H A Dnxt_http_request.c1112 u_char c, *p, *src, *start, *end, plus; in nxt_http_field_hash() local
1146 for (src = start; src < end; src++) { in nxt_http_field_hash()
1147 c = *src; in nxt_http_field_hash()
1151 if (nxt_slow_path(end - src <= 2)) { in nxt_http_field_hash()
1155 d0 = nxt_hex2int[src[1]]; in nxt_http_field_hash()
1156 d1 = nxt_hex2int[src[2]]; in nxt_http_field_hash()
1157 src += 2; in nxt_http_field_hash()
H A Dnxt_main_process.c1234 offsetof(nxt_fs_mount_t, src),
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)
77 NXT_EXPORT u_char *nxt_cpystr(u_char *dst, const u_char *src);
121 const nxt_str_t *src);
122 NXT_EXPORT char *nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src);
[all …]
H A Dnxt_string.c56 nxt_memcpy(dst->start, src->start, src->length); in nxt_str_dup()
78 p = nxt_cpymem(dst, src->start, src->length); in nxt_str_cstrz()
92 c = *src++; in nxt_memcpy_lowcase()
105 c = *src++; in nxt_memcpy_upcase()
116 *dst = *src; in nxt_cpystr()
123 src++; in nxt_cpystr()
138 *dst = *src; in nxt_cpystrn()
145 src++; in nxt_cpystrn()
625 if (nxt_uri_escape[*src >> 5] & (1U << (*src & 0x1f))) { in nxt_encode_uri()
634 src++; in nxt_encode_uri()
[all …]
H A Dnxt_sockaddr.c166 nxt_sockaddr_copy(nxt_mp_t *mp, nxt_sockaddr_t *src) in nxt_sockaddr_copy() argument
171 length = offsetof(nxt_sockaddr_t, u) + src->socklen; in nxt_sockaddr_copy()
176 nxt_memcpy(dst, src, length); in nxt_sockaddr_copy()
826 u_char c, *addr, *zero_start, *ipv4, *dst, *src, *end; in nxt_inet6_addr() local
938 src = addr - 1; in nxt_inet6_addr()
939 dst = src + groups_left; in nxt_inet6_addr()
941 while (src >= zero_start) { in nxt_inet6_addr()
942 *dst-- = *src--; in nxt_inet6_addr()
H A Dnxt_conf.c970 nxt_conf_value_t *src) in nxt_conf_copy_value() argument
979 switch (src->type) { in nxt_conf_copy_value()
1002 dst->u = src->u; in nxt_conf_copy_value()
1005 dst->type = src->type; in nxt_conf_copy_value()
1013 nxt_conf_value_t *src) in nxt_conf_copy_array() argument
1021 count = src->u.array->count; in nxt_conf_copy_array()
1105 dst->type = src->type; in nxt_conf_copy_array()
1113 nxt_conf_value_t *src) in nxt_conf_copy_object() argument
1122 count = src->u.object->count; in nxt_conf_copy_object()
1235 dst->type = src->type; in nxt_conf_copy_object()
[all …]
H A Dnxt_application.c65 static u_char *nxt_cstr_dup(nxt_mp_t *mp, u_char *dst, u_char *src);
277 size += nxt_strlen(mnt[j].src) + nxt_strlen(mnt[j].dst) in nxt_discovery_modules()
307 mnt[j].src, mnt[j].dst, mnt[j].name, mnt[j].type, in nxt_discovery_modules()
440 to->src = nxt_cstr_dup(mp, to->src, from->src); in nxt_discovery_module()
441 if (nxt_slow_path(to->src == NULL)) { in nxt_discovery_module()
937 nxt_cstr_dup(nxt_mp_t *mp, u_char *dst, u_char *src) in nxt_cstr_dup() argument
942 len = nxt_strlen(src); in nxt_cstr_dup()
951 p = nxt_cpymem(dst, src, len); in nxt_cstr_dup()
H A Dnxt_unit.c177 nxt_unit_read_buf_t *src);
2161 if (nxt_slow_path(src->name_length + src->value_length + 2 in nxt_unit_response_realloc()
2166 i, src, src->name_length, src->value_length); in nxt_unit_response_realloc()
2172 p = nxt_cpymem(p, nxt_unit_sptr_get(&src->name), src->name_length); in nxt_unit_response_realloc()
2176 p = nxt_cpymem(p, nxt_unit_sptr_get(&src->value), src->value_length); in nxt_unit_response_realloc()
2179 f->hash = src->hash; in nxt_unit_response_realloc()
2302 const void* src, uint32_t size) in nxt_unit_response_add_content() argument
6145 memcpy(dst->buf, src->buf, src->size); in nxt_unit_rbuf_cpy()
6146 dst->size = src->size; in nxt_unit_rbuf_cpy()
6147 dst->oob.size = src->oob.size; in nxt_unit_rbuf_cpy()
[all …]
H A Dnxt_fs_mount.h33 u_char *src; member
H A Dnxt_fs_mount.c65 rc = mount((const char *) mnt->src, (const char *) mnt->dst, fsname, flags, in nxt_fs_mount()
70 mnt->src, mnt->dst, fsname, flags, mnt->data, nxt_errno); in nxt_fs_mount()
144 iov[5].iov_base = (void *) mnt->src; in nxt_fs_mount()
145 iov[5].iov_len = nxt_strlen(mnt->src) + 1; in nxt_fs_mount()
/unit/auto/
H A Dsources7 src/nxt_lib.c \
8 src/nxt_gmtime.c \
9 src/nxt_errno.c \
10 src/nxt_time.c \
11 src/nxt_malloc.c \
12 src/nxt_file.c \
14 src/nxt_socket.c \
25 src/nxt_port.c \
26 src/nxt_dyld.c \
30 src/nxt_mp.c \
[all …]
H A Dmake10 mkdir -p $NXT_BUILD_DIR/src \
11 $NXT_BUILD_DIR/src/test
38 for nxt_inc in src $NXT_BUILD_DIR
135 nxt_src=src/test/nxt_cq_test.c
153 nxt_src=src/test/nxt_cq_test.c
403 src/nxt_unit_field.h \
404 src/nxt_unit_request.h \
405 src/nxt_unit_response.h \
406 src/nxt_unit_sptr.h \
407 src/nxt_unit_typedefs.h \
[all …]
/unit/tools/
H A Dsetup-unit125 …printf "deb-src [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/…
141 …printf "deb-src [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/…
/unit/auto/modules/
H A Druby214 src/ruby/nxt_ruby.c \
215 src/ruby/nxt_ruby_stream_io.c
220 nxt_objs=$NXT_BUILD_DIR/src/nxt_unit.o
233 mkdir -p $NXT_BUILD_DIR/src/ruby
H A Dpython170 src/python/nxt_python.c \
171 src/python/nxt_python_asgi.c \
172 src/python/nxt_python_asgi_http.c \
173 src/python/nxt_python_asgi_lifespan.c \
174 src/python/nxt_python_asgi_str.c \
175 src/python/nxt_python_asgi_websocket.c \
176 src/python/nxt_python_wsgi.c \
181 nxt_objs=$NXT_BUILD_DIR/src/nxt_unit.o
194 mkdir -p $NXT_BUILD_DIR/src/python
H A Dphp229 src/nxt_php_sapi.c \
234 nxt_objs=$NXT_BUILD_DIR/src/nxt_unit.o
H A Dperl149 src/perl/nxt_perl_psgi.c \
150 src/perl/nxt_perl_psgi_layer.c
155 nxt_objs=$NXT_BUILD_DIR/src/nxt_unit.o
168 mkdir -p $NXT_BUILD_DIR/src/perl
H A Djava346 src/nxt_java.c \
347 src/java/nxt_jni.c \
348 src/java/nxt_jni_Context.c \
351 src/java/nxt_jni_InputStream.c \
352 src/java/nxt_jni_OutputStream.c \
353 src/java/nxt_jni_Request.c \
354 src/java/nxt_jni_Response.c \
355 src/java/nxt_jni_Thread.c \
374 mkdir -p $NXT_BUILD_DIR/src/java
405 src/java/nginx/unit/Taglib.java \
[all …]
/unit/src/python/
H A Dnxt_python_wsgi.c67 char *src, uint32_t size);
705 char *src, uint32_t size) in nxt_python_add_char() argument
710 value = PyString_FromStringAndSize(src, size); in nxt_python_add_char()
714 (int) size, src); in nxt_python_add_char()
747 char *src; in nxt_python_add_field() local
750 src = nxt_unit_sptr_get(&field->name); in nxt_python_add_field()
840 char *p, *src; in nxt_python_field_value() local
855 src = nxt_unit_sptr_get(&f->value); in nxt_python_field_value()
856 p = nxt_cpymem(p, src, f->value_length); in nxt_python_field_value()
861 src = nxt_unit_sptr_get(&f[i].value); in nxt_python_field_value()
[all …]
/unit/pkg/rpm/
H A Dunit.spec.in135 %{__rm} -rf %{buildroot}/usr/src
137 grep -v 'usr/src' debugfiles.list > debugfiles.list.new && mv debugfiles.list.new debugfiles.list
H A Dunit.module.spec.in97 %{__rm} -rf %{buildroot}/usr/src
99 grep -v 'usr/src' debugfiles.list > debugfiles.list.new && mv debugfiles.list.new debugfiles.list
H A DMakefile166 …LICENSE NOTICE CHANGES README.md CONTRIBUTING.md configure auto src test version go docs/man/unitd…
182 for src in $(MODULE_SOURCES_$*); do \
183 s="`printf "Source%d: %s\n" $${i} $${src}`" ; \
/unit/pkg/deb/
H A DMakefile183 …LICENSE NOTICE CHANGES README.md CONTRIBUTING.md configure auto src test version go docs/man/unitd…
220 for src in $(MODULE_SOURCES_$*); do \
221 cp debian.module/$${src} $@/$(SRCDIR)/debian/ ; \
/unit/src/test/
H A Dnxt_unit_app_test.c37 static inline char *copy(char *p, const void *src, uint32_t len);
276 copy(char *p, const void *src, uint32_t len) in copy() argument
278 memcpy(p, src, len); in copy()

123