Home
last modified time | relevance | path

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

1234567

/unit/auto/
H A Datomic14 long n = 0;
18 if (__sync_fetch_and_add(&n, 1) != 3)
22 if (n != 5)
28 __sync_lock_release(&n);
29 if (n != 0)
48 ulong_t n = 0;
56 if (n != 5)
74 long n = 0;
83 if (n != 5)
91 int n = 0;
[all …]
H A Devents17 int n;
20 close(n);
43 close(n);
58 int n;
61 close(n);
83 int n;
86 close(n);
128 int n;
131 close(n);
156 int n;
[all …]
/unit/src/
H A Dnxt_random.c54 ssize_t n; in nxt_random_stir() local
73 n = 0; in nxt_random_stir()
76 n = NXT_RANDOM_KEY_SIZE; in nxt_random_stir()
81 n = 0; in nxt_random_stir()
85 if (n != NXT_RANDOM_KEY_SIZE) { in nxt_random_stir()
94 if (n != NXT_RANDOM_KEY_SIZE) { in nxt_random_stir()
108 for (n = 3072; n != 0; n--) { in nxt_random_stir()
121 uint32_t n; in nxt_random_add() local
123 for (n = 0; n < 256; n++) { in nxt_random_add()
184 nxt_uint_t n; in nxt_random_test() local
[all …]
H A Dnxt_service.c63 nxt_uint_t n; in nxt_services_init() local
75 while (n != 0) { in nxt_services_init()
84 n--; in nxt_services_init()
95 nxt_uint_t n; in nxt_service_add() local
99 n = services->nelts; in nxt_service_add()
101 while (n != 0) { in nxt_service_add()
117 n--; in nxt_service_add()
133 nxt_uint_t n; in nxt_service_get() local
138 n = services->nelts; in nxt_service_get()
145 while (n != 0) { in nxt_service_get()
[all …]
H A Dnxt_conn_read.c77 if (n > 0) { in nxt_conn_io_read()
78 c->nbytes = n; in nxt_conn_io_read()
159 if (n > 0) { in nxt_conn_io_recvbuf()
164 return n; in nxt_conn_io_recvbuf()
167 if (n == 0) { in nxt_conn_io_recvbuf()
170 return n; in nxt_conn_io_recvbuf()
200 ssize_t n; in nxt_conn_io_recv() local
211 if (n > 0) { in nxt_conn_io_recv()
216 return n; in nxt_conn_io_recv()
219 if (n == 0) { in nxt_conn_io_recv()
[all …]
H A Dnxt_linux_sendfile.c50 ssize_t n; in nxt_linux_event_conn_io_sendfile() local
109 if (n == -1) { in nxt_linux_event_conn_io_sendfile()
134 if (n < (ssize_t) size) { in nxt_linux_event_conn_io_sendfile()
138 return n; in nxt_linux_event_conn_io_sendfile()
145 ssize_t n; in nxt_linux_send() local
155 if (n == -1) { in nxt_linux_send()
179 if (n < (ssize_t) size) { in nxt_linux_send()
183 return n; in nxt_linux_send()
191 ssize_t n; in nxt_linux_sendmsg() local
210 if (n == -1) { in nxt_linux_sendmsg()
[all …]
H A Dnxt_recvbuf.c15 nxt_int_t n; in nxt_recvbuf_mem_coalesce() local
20 n = -1; in nxt_recvbuf_mem_coalesce()
30 if (++n >= rb->nmax) { in nxt_recvbuf_mem_coalesce()
34 nxt_iobuf_set(&rb->iobuf[n], b->mem.free, size); in nxt_recvbuf_mem_coalesce()
37 nxt_iobuf_add(&rb->iobuf[n], size); in nxt_recvbuf_mem_coalesce()
40 nxt_thread_log_debug("recvbuf: %ui, %p, %uz", n, in nxt_recvbuf_mem_coalesce()
41 nxt_iobuf_data(&rb->iobuf[n]), in nxt_recvbuf_mem_coalesce()
42 nxt_iobuf_size(&rb->iobuf[n])); in nxt_recvbuf_mem_coalesce()
48 n++; in nxt_recvbuf_mem_coalesce()
54 return n; in nxt_recvbuf_mem_coalesce()
H A Dnxt_job_file.c63 nxt_int_t n; in nxt_job_file_open_and_read() local
154 nxt_int_t n; in nxt_job_file_open() local
174 if (n == NXT_OK) { in nxt_job_file_open()
186 return n; in nxt_job_file_open()
201 return n; in nxt_job_file_open()
208 nxt_int_t n; in nxt_job_file_info() local
216 if (n != NXT_OK) { in nxt_job_file_info()
239 static nxt_uint_t n; in nxt_job_file_mmap() local
262 n += *p; in nxt_job_file_mmap()
265 n += *p; in nxt_job_file_mmap()
[all …]
H A Dnxt_mem_zone.c183 for (n = 0; n < pages; n++) { in nxt_mem_zone_init()
222 n = 0; in nxt_mem_zone_pages()
296 n = 0; in nxt_mem_zone_slots_init()
373 n--; in nxt_next_highest_power_of_two()
374 n |= n >> 1; in nxt_next_highest_power_of_two()
375 n |= n >> 2; in nxt_next_highest_power_of_two()
376 n |= n >> 4; in nxt_next_highest_power_of_two()
377 n |= n >> 8; in nxt_next_highest_power_of_two()
378 n |= n >> 16; in nxt_next_highest_power_of_two()
379 n++; in nxt_next_highest_power_of_two()
[all …]
H A Dnxt_socketpair.c89 ssize_t n; in nxt_socketpair_send() local
98 err = (n == -1) ? nxt_socket_errno : 0; in nxt_socketpair_send()
101 fd[1], niob, n); in nxt_socketpair_send()
103 if (n > 0) { in nxt_socketpair_send()
104 return n; in nxt_socketpair_send()
144 ssize_t n; in nxt_socketpair_recv() local
150 err = (n == -1) ? nxt_socket_errno : 0; in nxt_socketpair_recv()
155 if (n > 0) { in nxt_socketpair_recv()
156 return n; in nxt_socketpair_recv()
159 if (n == 0) { in nxt_socketpair_recv()
[all …]
H A Dnxt_polarssl.c37 int n; in nxt_polarssl_server_init() local
50 n = ssl_init(&ctx->ssl); in nxt_polarssl_server_init()
51 if (n != 0) { in nxt_polarssl_server_init()
52 nxt_polarssl_log_error(NXT_LOG_ALERT, thr->log, n, "ssl_init() failed"); in nxt_polarssl_server_init()
61 n = x509parse_crtfile(&ctx->certificate, conf->certificate); in nxt_polarssl_server_init()
62 if (n != 0) { in nxt_polarssl_server_init()
63 nxt_polarssl_log_error(NXT_LOG_ALERT, thr->log, n, in nxt_polarssl_server_init()
71 n = x509parse_keyfile(&ctx->key, conf->certificate_key, NULL); in nxt_polarssl_server_init()
72 if (n != 0) { in nxt_polarssl_server_init()
73 nxt_polarssl_log_error(NXT_LOG_ALERT, thr->log, n, in nxt_polarssl_server_init()
H A Dnxt_sendbuf.c23 nxt_uint_t n; in nxt_sendbuf_mem_coalesce0() local
65 n, iov[n].iov_base, iov[n].iov_len); in nxt_sendbuf_mem_coalesce0()
77 n++; in nxt_sendbuf_mem_coalesce0()
83 return n; in nxt_sendbuf_mem_coalesce0()
93 nxt_uint_t n; in nxt_sendbuf_mem_coalesce() local
139 n, sb->iobuf[n].iov_base, sb->iobuf[n].iov_len); in nxt_sendbuf_mem_coalesce()
151 n++; in nxt_sendbuf_mem_coalesce()
157 sb->niov = n; in nxt_sendbuf_mem_coalesce()
159 return n; in nxt_sendbuf_mem_coalesce()
215 ssize_t n; in nxt_sendbuf_copy_coalesce() local
[all …]
H A Dnxt_upstream.c21 uint32_t i, n, next; in nxt_upstreams_create() local
36 n = nxt_conf_object_members_count(upstreams_conf); in nxt_upstreams_create()
38 if (n == 0) { in nxt_upstreams_create()
50 upstreams->items = n; in nxt_upstreams_create()
53 for (i = 0; i < n; i++) { in nxt_upstreams_create()
78 uint32_t i, n; in nxt_upstream_find() local
86 n = upstreams->items; in nxt_upstream_find()
88 for (i = 0; i < n; i++) { in nxt_upstream_find()
105 uint32_t i, n; in nxt_upstreams_joint_create() local
118 n = upstreams->items; in nxt_upstreams_joint_create()
[all …]
H A Dnxt_file.c105 ssize_t n; in nxt_file_write() local
119 return n; in nxt_file_write()
133 ssize_t n; in nxt_file_read() local
147 return n; in nxt_file_read()
259 int n; in nxt_file_info() local
268 if (n == 0) { in nxt_file_info()
286 if (n == 0) { in nxt_file_info()
450 ssize_t n; in nxt_fd_write() local
463 return n; in nxt_fd_write()
470 ssize_t n; in nxt_fd_read() local
[all …]
H A Dnxt_conn_write.c187 ssize_t n; in nxt_conn_io_sendfile() local
203 if (n > 0) { in nxt_conn_io_sendfile()
208 return n; in nxt_conn_io_sendfile()
300 ssize_t n; in nxt_conn_io_writev() local
315 if (n > 0) { in nxt_conn_io_writev()
347 ssize_t n; in nxt_conn_io_send() local
357 if (n > 0) { in nxt_conn_io_send()
456 ssize_t n; in nxt_event_conn_io_writev() local
471 if (n > 0) { in nxt_event_conn_io_writev()
501 ssize_t n; in nxt_event_conn_io_send() local
[all …]
H A Dnxt_list.h53 nxt_list_elt(nxt_list_t *list, nxt_uint_t n) in nxt_list_elt() argument
61 if (n < (nxt_uint_t) part->nelts) { in nxt_list_elt()
62 return nxt_pointer_to(nxt_list_data(part), n * (list)->size); in nxt_list_elt()
65 n -= (nxt_uint_t) part->nelts; in nxt_list_elt()
95 NXT_EXPORT nxt_list_t *nxt_list_create(nxt_mp_t *mp, nxt_uint_t n, size_t size);
109 nxt_uint_t n; in nxt_list_nelts() local
112 n = 0; in nxt_list_nelts()
118 n += (nxt_uint_t) part->nelts; in nxt_list_nelts()
123 return n; in nxt_list_nelts()
H A Dnxt_log_moderation.c17 nxt_uint_t n; in nxt_log_moderate_allow() local
30 n = mod->count++; in nxt_log_moderate_allow()
34 if (n <= mod->limit) { in nxt_log_moderate_allow()
44 if (n < mod->limit) { in nxt_log_moderate_allow()
47 } else if (n == mod->limit) { in nxt_log_moderate_allow()
78 nxt_atomic_uint_t n; in nxt_log_moderate_timer_handler() local
87 n = mod->count; in nxt_log_moderate_timer_handler()
95 mod->msg, n - mod->limit); in nxt_log_moderate_timer_handler()
H A Dnxt_utf8.c98 size_t n; in nxt_utf8_decode2() local
119 n = 3; in nxt_utf8_decode2()
124 n = 2; in nxt_utf8_decode2()
133 n = 1; in nxt_utf8_decode2()
142 if (nxt_fast_path(p + n <= end)) { in nxt_utf8_decode2()
157 n--; in nxt_utf8_decode2()
159 } while (n != 0); in nxt_utf8_decode2()
181 int32_t n; in nxt_utf8_casecmp() local
198 n = u1 - u2; in nxt_utf8_casecmp()
200 if (n != 0) { in nxt_utf8_casecmp()
[all …]
/unit/src/test/
H A Dnxt_rbtree_test.c55 for (i = 0; i < n; i++) { in nxt_rbtree_test()
67 for (i = 0; i < n; i++) { in nxt_rbtree_test()
71 for (i = 0; i < n; i++) { in nxt_rbtree_test()
98 if (i != n) { in nxt_rbtree_test()
103 for (i = 0; i < n; i++) { in nxt_rbtree_test()
207 nxt_uint_t i, n; in nxt_rbtree_mb_start() local
209 n = NXT_RBT_STEP; in nxt_rbtree_mb_start()
246 nxt_uint_t n; in nxt_rbtree_mb_insert() local
248 n = NXT_RBT_STEP; in nxt_rbtree_mb_insert()
264 nxt_uint_t n; in nxt_rbtree_mb_delete() local
[all …]
H A Dnxt_rbtree1_test.c83 for (i = 0; i < n; i++) { in nxt_rbtree1_test()
122 if (i != n) { in nxt_rbtree1_test()
228 nxt_int_t n; in nxt_rbtree1_test_find() local
240 if (n < 0) { in nxt_rbtree1_test_find()
243 } else if (n > 0) { in nxt_rbtree1_test_find()
269 nxt_uint_t i, n; in nxt_rbtree1_mb_start() local
271 n = NXT_RBT_STEP; in nxt_rbtree1_mb_start()
308 nxt_uint_t n; in nxt_rbtree1_mb_insert() local
310 n = NXT_RBT_STEP; in nxt_rbtree1_mb_insert()
326 nxt_uint_t n; in nxt_rbtree1_mb_delete() local
[all …]
H A Dnxt_mem_zone_test.c18 nxt_uint_t i, n; in nxt_mem_zone_test() local
49 for (n = 0; n < nblocks; n++) { in nxt_mem_zone_test()
53 blocks[n] = nxt_mem_zone_alloc(zone, size & max_size); in nxt_mem_zone_test()
55 if (blocks[n] == NULL) { in nxt_mem_zone_test()
62 for (n = 0; n < nblocks; n++) { in nxt_mem_zone_test()
63 nxt_mem_zone_free(zone, blocks[n]); in nxt_mem_zone_test()
H A Dnxt_mp_test.c20 nxt_uint_t i, n; in nxt_mp_test() local
53 for (n = 0; n < nblocks; n++) { in nxt_mp_test()
63 blocks[n] = nxt_mp_alloc(mp, size); in nxt_mp_test()
65 if (blocks[n] == NULL) { in nxt_mp_test()
72 for (n = 0; n < nblocks; n++) { in nxt_mp_test()
73 nxt_mp_free(mp, blocks[n]); in nxt_mp_test()
H A Dnxt_lvlhsh_test.c144 "lvlhsh test started: %uD pool", n); in nxt_lvlhsh_test()
149 "lvlhsh test started: %uD malloc", n); in nxt_lvlhsh_test()
157 for (i = 0; i < n; i++) { in nxt_lvlhsh_test()
168 for (i = 0; i < n; i++) { in nxt_lvlhsh_test()
178 for (i = 0; i < n + 1; i++) { in nxt_lvlhsh_test()
184 if (i != n) { in nxt_lvlhsh_test()
190 for (i = 0; i < n; i++) { in nxt_lvlhsh_test()
204 if (i != n) { in nxt_lvlhsh_test()
217 for (i = 0; i < n; i++) { in nxt_lvlhsh_test()
227 for (i = 0; i < n; i++) { in nxt_lvlhsh_test()
[all …]
/unit/pkg/deb/debian/
H A Dunit.example-python-app7 output += "\n\nPython: "
9 output += "\n\nENV Variables:\n\n"
14 output += "\n"
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit.example-python-app7 output += "\n\nPython: "
9 output += "\n\nENV Variables:\n\n"
14 output += "\n"

1234567