Home
last modified time | relevance | path

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

12

/unit/src/
H A Dnxt_websocket.c19 nxt_hton16(uint8_t *b, uint16_t v) in nxt_hton16() argument
21 b[0] = (v >> 8); in nxt_hton16()
22 b[1] = (v & 0xFFu); in nxt_hton16()
43 b[0] = (v >> 56); in nxt_hton64()
44 b[1] = (v >> 48) & 0xFFu; in nxt_hton64()
45 b[2] = (v >> 40) & 0xFFu; in nxt_hton64()
46 b[3] = (v >> 32) & 0xFFu; in nxt_hton64()
47 b[4] = (v >> 24) & 0xFFu; in nxt_hton64()
48 b[5] = (v >> 16) & 0xFFu; in nxt_hton64()
49 b[6] = (v >> 8) & 0xFFu; in nxt_hton64()
[all …]
H A Dnxt_file_name.c26 nxt_str_t *v; in nxt_file_name_create() local
54 v = va_arg(args, nxt_str_t *); in nxt_file_name_create()
56 if (nxt_fast_path(v != NULL)) { in nxt_file_name_create()
57 length += v->length; in nxt_file_name_create()
143 v = va_arg(args, nxt_str_t *); in nxt_file_name_create()
145 if (nxt_fast_path(v != NULL)) { in nxt_file_name_create()
146 dst = nxt_file_name_add(dst, v->start, v->length); in nxt_file_name_create()
H A Dnxt_mp.c184 nxt_lg2(uint64_t v) in nxt_lg2() argument
186 v |= v >> 1; in nxt_lg2()
187 v |= v >> 2; in nxt_lg2()
188 v |= v >> 4; in nxt_lg2()
189 v |= v >> 8; in nxt_lg2()
190 v |= v >> 16; in nxt_lg2()
191 v |= v >> 32; in nxt_lg2()
192 return nxt_lg2_tab64[ ((v - (v >> 1)) * nxt_lg2_magic) >> 58 ]; in nxt_lg2()
H A Dnxt_sprintf.c105 nxt_str_t *v; in nxt_vsprintf() local
142 v = va_arg(args, nxt_str_t *); in nxt_vsprintf()
144 if (nxt_fast_path(v != NULL)) { in nxt_vsprintf()
145 length = v->length; in nxt_vsprintf()
146 p = v->start; in nxt_vsprintf()
H A Dnxt_conf.c568 nxt_conf_value_t *v; in nxt_conf_map_object() local
581 void *v; in nxt_conf_map_object() member
588 if (v == NULL || v->type == NXT_CONF_VALUE_NULL) { in nxt_conf_map_object()
598 if (v->type == NXT_CONF_VALUE_BOOLEAN) { in nxt_conf_map_object()
599 ptr->ui8 = v->u.boolean; in nxt_conf_map_object()
611 if (v->type != NXT_CONF_VALUE_INTEGER) { in nxt_conf_map_object()
615 num = nxt_strtod(v->u.number, NULL); in nxt_conf_map_object()
651 if (v->type == NXT_CONF_VALUE_NUMBER) { in nxt_conf_map_object()
662 && v->type != NXT_CONF_VALUE_STRING) in nxt_conf_map_object()
667 nxt_conf_get_string(v, &str); in nxt_conf_map_object()
[all …]
H A Dnxt_runtime.c154 u_char *v, *p; in nxt_runtime_inherited_listen_sockets() local
160 v = (u_char *) getenv("NGINX"); in nxt_runtime_inherited_listen_sockets()
162 if (v == NULL) { in nxt_runtime_inherited_listen_sockets()
166 nxt_alert(task, "using inherited listen sockets: %s", v); in nxt_runtime_inherited_listen_sockets()
176 for (p = v; *p != '\0'; p++) { in nxt_runtime_inherited_listen_sockets()
179 s = nxt_int_parse(v, p - v); in nxt_runtime_inherited_listen_sockets()
184 "ignoring the rest of the variable", v); in nxt_runtime_inherited_listen_sockets()
188 v = p + 1; in nxt_runtime_inherited_listen_sockets()
/unit/src/python/
H A Dnxt_python_asgi.c594 v = NULL; in nxt_py_asgi_create_http_scope()
626 Py_DECREF(v); in nxt_py_asgi_create_http_scope()
636 Py_DECREF(v); in nxt_py_asgi_create_http_scope()
655 Py_DECREF(v); in nxt_py_asgi_create_http_scope()
664 Py_DECREF(v); in nxt_py_asgi_create_http_scope()
673 Py_DECREF(v); in nxt_py_asgi_create_http_scope()
682 Py_DECREF(v); in nxt_py_asgi_create_http_scope()
684 v = NULL; in nxt_py_asgi_create_http_scope()
726 Py_XDECREF(v); in nxt_py_asgi_create_http_scope()
740 PyObject *pair, *v; in nxt_py_asgi_create_address() local
[all …]
H A Dnxt_python_asgi_lifespan.c37 nxt_py_asgi_lifespan_t *lifespan, int v, PyObject *dict);
39 int v, int *sent, PyObject **future);
41 nxt_py_asgi_lifespan_t *lifespan, int v, PyObject *dict);
467 nxt_py_asgi_lifespan_send_startup(nxt_py_asgi_lifespan_t *lifespan, int v, in nxt_py_asgi_lifespan_send_startup() argument
473 if (nxt_slow_path(v != 0)) { in nxt_py_asgi_lifespan_send_startup()
483 return nxt_py_asgi_lifespan_send_(lifespan, v, in nxt_py_asgi_lifespan_send_startup()
490 nxt_py_asgi_lifespan_send_(nxt_py_asgi_lifespan_t *lifespan, int v, int *sent, in nxt_py_asgi_lifespan_send_() argument
499 *sent = 1 + v; in nxt_py_asgi_lifespan_send_()
537 nxt_py_asgi_lifespan_send_shutdown(nxt_py_asgi_lifespan_t *lifespan, int v, in nxt_py_asgi_lifespan_send_shutdown() argument
540 return nxt_py_asgi_lifespan_send_(lifespan, v, in nxt_py_asgi_lifespan_send_shutdown()
H A Dnxt_python_asgi.h42 PyObject *nxt_py_asgi_calc_size(void *data, int i, PyObject *n, PyObject *v);
43 PyObject *nxt_py_asgi_add_field(void *data, int i, PyObject *n, PyObject *v);
/unit/src/test/
H A Dnxt_cq_test.c175 uintptr_t i, v; in enq_deq_worker() local
182 v = nxt_cq_dequeue(&q->free_queue); in enq_deq_worker()
189 v = nxt_cq_dequeue(&q->active_queue); in enq_deq_worker()
195 if ((int) v == wi->id) { in enq_deq_worker()
207 uintptr_t i, v; in enq_worker() local
214 v = nxt_cq_dequeue(&q->free_queue); in enq_worker()
228 uintptr_t i, v; in deq_worker() local
249 uintptr_t i, v; in wenq_worker() local
262 nxt_cq_enqueue(&q->active_queue, v); in wenq_worker()
274 uintptr_t i, v; in wdeq_worker() local
[all …]
/unit/go/
H A Dresponse.go71 for _, v := range vv {
73 fields_size += len(k) + len(v)
81 for _, v := range vv {
83 str_ref(v), C.uint32_t(len(v)))
H A Dobservable.go27 for _, v := range o.observers {
28 v <- e
H A Drequest.go86 v := GoStringN(&f.value, C.int(f.value_length))
88 r.req.Header.Add(n, v)
/unit/test/python/threads/
H A Dasgi.py10 def get_header(n, v=None): argument
14 return v
/unit/test/
H A Dtest_asgi_targets.py10 'python': lambda v: version.parse(v) >= version.parse('3.5')
H A Dtest_node_es_modules.py9 'node': lambda v: version.parse(v) >= version.parse('14.16.0')
H A Dtest_asgi_lifespan.py12 'python': lambda v: version.parse(v) >= version.parse('3.5')
H A Dtest_asgi_application.py12 'python': lambda v: version.parse(v) >= version.parse('3.5')
H A Dtest_settings.py200 values = [int(v) for v in values]
/unit/auto/cc/
H A Dtest24 if `/bin/sh -c "($CC -v)" 2>&1 | grep "gcc version" >> $NXT_AUTOCONF_ERR 2>&1`
28 NXT_CC_VERSION=`/bin/sh -c "($CC -v)" 2>&1 | grep "gcc version" 2>&1`
32 if `/bin/sh -c "($CC -v)" 2>&1 | grep "clang version" >> $NXT_AUTOCONF_ERR 2>&1`
36 NXT_CC_VERSION=`/bin/sh -c "($CC -v)" 2>&1 | grep "clang version" 2>&1`
40 if `/bin/sh -c "($CC -v)" 2>&1 \
45 NXT_CC_VERSION=`/bin/sh -c "($CC -v)" 2>&1 | grep "Apple LLVM version" 2>&1`
73 if `/bin/sh -c "($CC -v)" 2>&1 \
/unit/test/python/delayed/
H A Dasgi.py16 def get_header(n, v=None): argument
20 return v
/unit/auto/modules/
H A Dnodejs66 if /bin/sh -c "${NXT_NODE} -v" >> $NXT_AUTOCONF_ERR 2>&1; then
69 NXT_NODE_VERSION="`${NXT_NODE} -v`"
84 if /bin/sh -c "${NXT_NPM} -v" >> $NXT_AUTOCONF_ERR 2>&1; then
87 NXT_NPM_VERSION="`${NXT_NPM} -v`"
102 if /bin/sh -c "${NXT_NODE_GYP} -v" >> $NXT_AUTOCONF_ERR 2>&1; then
105 NXT_NODE_GYP_VERSION="`${NXT_NODE_GYP} -v`"
/unit/test/python/header_fields/
H A Dwsgi.py3 h = (k for k, v in environ.items() if k.startswith('HTTP_'))
/unit/src/ruby/
H A Dnxt_ruby.c107 VALUE *v; member
157 VALUE v; in nxt_ruby_init_strings() local
163 v = rb_str_new_static((char *) pstr->string.start, pstr->string.length); in nxt_ruby_init_strings()
165 if (nxt_slow_path(v == Qnil)) { in nxt_ruby_init_strings()
173 *pstr->v = v; in nxt_ruby_init_strings()
175 rb_gc_register_address(pstr->v); in nxt_ruby_init_strings()
192 rb_gc_unregister_address(pstr->v); in nxt_ruby_done_strings()
194 *pstr->v = Qnil; in nxt_ruby_done_strings()
/unit/test/unit/
H A Dhttp.py77 for v in value:
78 req += header + ': ' + str(v) + crlf

12