Home
last modified time | relevance | path

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

123

/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
398 src/nxt_unit_field.h \
399 src/nxt_unit_request.h \
400 src/nxt_unit_response.h \
401 src/nxt_unit_sptr.h \
402 src/nxt_unit_typedefs.h \
[all …]
/unit/src/
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_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);
129 const nxt_str_t *src);
130 NXT_EXPORT char *nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src);
[all …]
H A Dnxt_array.c115 nxt_array_copy(nxt_mp_t *mp, nxt_array_t *dst, nxt_array_t *src) in nxt_array_copy() argument
120 size = src->size; in nxt_array_copy()
123 dst = nxt_array_create(mp, src->nelts, 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()
143 nxt_memcpy(data, src->elts + (i * size), size); in nxt_array_copy()
147 dst->nelts = src->nelts; in nxt_array_copy()
H A Dnxt_buf.h227 NXT_EXPORT nxt_buf_t *nxt_buf_make_plain(nxt_mp_t *mp, nxt_buf_t *src,
231 nxt_buf_chk_make_plain(nxt_mp_t *mp, nxt_buf_t *src, size_t size) in nxt_buf_chk_make_plain() argument
233 if (nxt_slow_path(src != NULL && src->next != NULL)) { in nxt_buf_chk_make_plain()
234 return nxt_buf_make_plain(mp, src, size); in nxt_buf_chk_make_plain()
237 return src; in nxt_buf_chk_make_plain()
248 nxt_buf_cpy(nxt_buf_t *b, const void *src, size_t length) in nxt_buf_cpy() argument
250 nxt_memcpy(b->mem.free, src, length); in nxt_buf_cpy()
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_conf.c956 nxt_conf_value_t *src) in nxt_conf_copy_value() argument
965 switch (src->type) { in nxt_conf_copy_value()
988 dst->u = src->u; in nxt_conf_copy_value()
991 dst->type = src->type; in nxt_conf_copy_value()
999 nxt_conf_value_t *src) in nxt_conf_copy_array() argument
1007 count = src->u.array->count; in nxt_conf_copy_array()
1091 dst->type = src->type; in nxt_conf_copy_array()
1099 nxt_conf_value_t *src) in nxt_conf_copy_object() argument
1108 count = src->u.object->count; in nxt_conf_copy_object()
1221 dst->type = src->type; in nxt_conf_copy_object()
[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()
147 iov[5].iov_base = (void *) mnt->src; in nxt_fs_mount()
148 iov[5].iov_len = nxt_strlen(mnt->src) + 1; in nxt_fs_mount()
H A Dnxt_var.c235 u_char *p, *end, *next, *src; in nxt_var_compile() local
272 src = nxt_var_raw_start(var); in nxt_var_compile()
274 nxt_memcpy(src, str->start, str->length); in nxt_var_compile()
277 src[str->length] = '\0'; in nxt_var_compile()
557 u_char *p, *src; in nxt_var_query_finish() local
604 src = nxt_var_raw_start(var); in nxt_var_query_finish()
612 p = nxt_cpymem(p, &src[last], next - last); in nxt_var_query_finish()
621 p = nxt_cpymem(p, &src[last], var->length - last); in nxt_var_query_finish()
630 nxt_debug(task, "var: \"%*s\" -> \"%V\"", var->length, src, in nxt_var_query_finish()
H A Dnxt_fs.h28 u_char *src; member
H A Dnxt_http_source.c113 nxt_http_source_copy(u_char *p, nxt_str_t *src, size_t len) in nxt_http_source_copy() argument
117 if (nxt_fast_path(len >= src->len)) { in nxt_http_source_copy()
118 len = src->len; in nxt_http_source_copy()
119 src->len = 0; in nxt_http_source_copy()
122 src->len -= len; in nxt_http_source_copy()
125 s = src->data; in nxt_http_source_copy()
126 src->data += len; in nxt_http_source_copy()
/unit/auto/modules/
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 …]
H A Dgo100 .PHONY: ${NXT_GO}-install-src
113 ${NXT_GO}-install: ${NXT_GO}-install-src ${NXT_GO}-install-env
114 cd \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG} && \
117 ${NXT_GO}-install-src:
118 install -d \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG}
119 install -p -m644 ./go/* \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG}/
121 ${NXT_GO}-install-env: \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG}/env.go \
124 \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG}/env.go:
125 install -d \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG}
129 $echo "#cgo CPPFLAGS: -I${PWD}/src -I${PWD}/${NXT_BUILD_DIR}" >> \$@
[all …]
H A Dnodejs124 NXT_NODE_TMP=${NXT_BUILD_DIR}/src/${NXT_NODE}/unit-http
125 NXT_NODE_TMP_G=${NXT_BUILD_DIR}/src/${NXT_NODE}/unit-http-g
128 NXT_NODE_VERSION_FILE=${NXT_BUILD_DIR}/src/${NXT_NODE}/version.h
129 NXT_NODE_PACKAGE_FILE=${NXT_BUILD_DIR}/src/${NXT_NODE}/package.json
130 NXT_NODE_EXPORTS="export UNIT_SRC_PATH=${PWD}/src \
158 cp -rp src/nodejs/unit-http/* ${NXT_NODE_TMP}/
164 cp -rp src/nodejs/unit-http/* ${NXT_NODE_TMP_G}/
169 mkdir -p ${NXT_BUILD_DIR}/src/${NXT_NODE}
172 ${NXT_NODE_PACKAGE_FILE}: ${NXT_VERSION_H} src/nodejs/unit-http/package.json
173 mkdir -p ${NXT_BUILD_DIR}/src/${NXT_NODE}
[all …]
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 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
/unit/test/unit/applications/lang/
H A Djava.py23 src = []
29 src.append(file_path)
50 if src:
79 javac.extend(src)
/unit/pkg/rpm/
H A DMakefile.go11 MODULE_INSTARGS_go= go-install-src
55 %dir %{gopath}/src/unit.nginx.org/go
56 %{gopath}/src/unit.nginx.org/go/*
/unit/src/java/nginx/unit/websocket/
H A DAsyncChannelWrapperNonSecure.java56 public Future<Integer> write(ByteBuffer src) { in write() argument
57 return socketChannel.write(src); in write()
/unit/src/nodejs/unit-http/
H A DREADME.md1 [<img src="https://unit.nginx.org/_static/logo.svg" width="40%">](https://unit.nginx.org)
/unit/go/
H A Dnxt_cgo_lib.h24 uintptr_t src, uint32_t len);
/unit/pkg/docker/
H A DDockerfile.go1.1836 && make -j $NCPU go-install-src libunit-install \
40 && make -j $NCPU go-install-src libunit-install \
51 COPY --from=BUILDER /go/src/ /go/src/
H A DMakefile24 INSTALL_go ?= go-install-src libunit-install
28 COPY --from=BUILDER /go/src/ /go/src/
/unit/src/python/
H A Dnxt_python_wsgi.c695 char *src; in nxt_python_add_sptr() local
698 src = nxt_unit_sptr_get(sptr); in nxt_python_add_sptr()
700 value = PyString_FromStringAndSize(src, size); in nxt_python_add_sptr()
704 (int) size, src); in nxt_python_add_sptr()
729 char *src; in nxt_python_add_field() local
732 src = nxt_unit_sptr_get(&field->name); in nxt_python_add_field()
822 char *p, *src; in nxt_python_field_value() local
837 src = nxt_unit_sptr_get(&f->value); in nxt_python_field_value()
838 p = nxt_cpymem(p, src, f->value_length); in nxt_python_field_value()
843 src = nxt_unit_sptr_get(&f[i].value); in nxt_python_field_value()
[all …]

123