Home
last modified time | relevance | path

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

123456

/unit/src/
H A Dnxt_socket.h94 NXT_EXPORT nxt_socket_t nxt_socket_create(nxt_task_t *task, nxt_uint_t family,
95 nxt_uint_t type, nxt_uint_t protocol, nxt_uint_t flags);
99 nxt_uint_t level, nxt_uint_t sockopt);
101 nxt_uint_t level, nxt_uint_t sockopt, int val);
107 nxt_uint_t how);
110 nxt_uint_t nxt_socket_error_level(nxt_err_t err);
116 nxt_iobuf_t *iob, nxt_uint_t niob);
118 nxt_iobuf_t *iob, nxt_uint_t niob, void *oob);
H A Dnxt_socket.c10 static const char *nxt_socket_sockopt_name(nxt_uint_t level,
11 nxt_uint_t sockopt);
15 nxt_socket_create(nxt_task_t *task, nxt_uint_t domain, nxt_uint_t type, in nxt_socket_create()
16 nxt_uint_t protocol, nxt_uint_t flags) in nxt_socket_create()
76 nxt_uint_t sockopt) in nxt_socket_getsockopt()
99 nxt_uint_t sockopt, int val) in nxt_socket_setsockopt()
120 nxt_socket_sockopt_name(nxt_uint_t level, nxt_uint_t sockopt) in nxt_socket_sockopt_name()
196 nxt_uint_t level; in nxt_socket_connect()
251 nxt_uint_t level; in nxt_socket_shutdown()
286 nxt_uint_t level; in nxt_socket_close()
[all …]
H A Dnxt_conf.h77 nxt_uint_t ver;
81 NXT_EXPORT nxt_uint_t nxt_conf_type(nxt_conf_value_t *value);
95 nxt_conf_map_t *map, nxt_uint_t n, void *data);
114 nxt_uint_t *column);
126 NXT_EXPORT nxt_uint_t nxt_conf_object_members_count(nxt_conf_value_t *value);
127 nxt_conf_value_t *nxt_conf_create_object(nxt_mp_t *mp, nxt_uint_t count);
141 nxt_conf_value_t *nxt_conf_create_array(nxt_mp_t *mp, nxt_uint_t count);
142 void nxt_conf_set_element(nxt_conf_value_t *array, nxt_uint_t index,
145 nxt_uint_t index, nxt_str_t *value);
146 NXT_EXPORT nxt_uint_t nxt_conf_array_elements_count(nxt_conf_value_t *value);
[all …]
H A Dnxt_list.h53 nxt_list_elt(nxt_list_t *list, nxt_uint_t n) in nxt_list_elt()
61 if (n < (nxt_uint_t) part->nelts) { 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);
106 nxt_inline nxt_uint_t
109 nxt_uint_t n; in nxt_list_nelts()
118 n += (nxt_uint_t) part->nelts; in nxt_list_nelts()
H A Dnxt_spinlock.c31 static nxt_uint_t nxt_spinlock_count = 1000;
35 nxt_thread_spin_init(nxt_uint_t ncpu, nxt_uint_t count) in nxt_thread_spin_init()
65 nxt_uint_t n; in nxt_thread_spin_lock()
H A Dnxt_parse.c19 nxt_uint_t val; in nxt_int_parse()
21 static const nxt_uint_t cutoff = NXT_INT_T_MAX / 10; in nxt_int_parse()
22 static const nxt_uint_t cutlim = NXT_INT_T_MAX % 10; in nxt_int_parse()
112 nxt_uint_t shift; in nxt_size_parse()
217 nxt_uint_t val; in nxt_str_int_parse()
219 static const nxt_uint_t cutoff = NXT_INT_T_MAX / 10; in nxt_str_int_parse()
220 static const nxt_uint_t cutlim = NXT_INT_T_MAX % 10; in nxt_str_int_parse()
270 nxt_uint_t integral, frac, power; in nxt_number_parse()
273 static const nxt_uint_t cutoff = NXT_INT_T_MAX / 10; in nxt_number_parse()
274 static const nxt_uint_t cutlim = NXT_INT_T_MAX % 10; in nxt_number_parse()
H A Dnxt_event_engine.h35 nxt_uint_t mchanges, nxt_uint_t mevents);
201 nxt_uint_t nchanges;
202 nxt_uint_t mchanges;
238 nxt_uint_t nchanges;
239 nxt_uint_t mchanges;
315 nxt_uint_t max_nfds;
316 nxt_uint_t nfds;
318 nxt_uint_t nchanges;
319 nxt_uint_t mchanges;
499 nxt_uint_t flags, nxt_uint_t batch);
[all …]
H A Dnxt_log.h22 typedef void nxt_cdecl (*nxt_log_handler_t)(nxt_uint_t level, nxt_log_t *log,
40 NXT_EXPORT void nxt_cdecl nxt_log_handler(nxt_uint_t level, nxt_log_t *log,
59 nxt_uint_t _level_ = (_level); \
88 nxt_uint_t _level_ = (_level); \
162 NXT_EXPORT extern nxt_uint_t nxt_debug;
163 NXT_EXPORT extern nxt_uint_t nxt_trace;
H A Dnxt_lvlhsh.c168 nxt_uint_t size);
173 nxt_uint_t nlvl, nxt_uint_t shift);
176 nxt_uint_t nlvl);
202 nxt_uint_t nlvl) in nxt_lvlhsh_level_find()
206 nxt_uint_t shift; in nxt_lvlhsh_level_find()
232 nxt_uint_t n; in nxt_lvlhsh_bucket_find()
312 nxt_uint_t nlvl) in nxt_lvlhsh_level_insert()
317 nxt_uint_t shift; in nxt_lvlhsh_level_insert()
518 nxt_uint_t shift; in nxt_lvlhsh_level_convertion_insert()
645 nxt_uint_t nlvl) in nxt_lvlhsh_level_delete()
[all …]
H A Dnxt_time_parse.c22 nxt_uint_t year, days; in nxt_time_parse()
253 } else if (nxt_slow_path(day > mday[(nxt_uint_t) month])) { in nxt_time_parse()
273 + 367 * (nxt_uint_t) month / 12 - 30 in nxt_time_parse()
276 + (nxt_uint_t) day - 1; in nxt_time_parse()
285 + (nxt_uint_t) hour * 3600 in nxt_time_parse()
286 + (nxt_uint_t) min * 60 in nxt_time_parse()
287 + (nxt_uint_t) sec; in nxt_time_parse()
314 nxt_uint_t val, term, scale, max; in nxt_term_parse()
H A Dnxt_gmtime.c16 nxt_uint_t daytime, mday, mon, year, days, leap; in nxt_gmtime()
18 days = (nxt_uint_t) (s / 86400); in nxt_gmtime()
19 daytime = (nxt_uint_t) (s % 86400); in nxt_gmtime()
H A Dnxt_mem_zone.c127 nxt_uint_t page_size);
129 nxt_uint_t page_size);
131 nxt_uint_t page_size);
136 static nxt_uint_t nxt_mem_zone_alloc_chunk(uint8_t *map, nxt_uint_t offset,
137 nxt_uint_t size);
161 nxt_uint_t n; in nxt_mem_zone_init()
579 static nxt_uint_t
580 nxt_mem_zone_alloc_chunk(uint8_t *map, nxt_uint_t offset, nxt_uint_t size) in nxt_mem_zone_alloc_chunk()
583 nxt_uint_t n; in nxt_mem_zone_alloc_chunk()
773 nxt_uint_t count; in nxt_mem_zone_free()
[all …]
H A Dnxt_spinlock.h13 NXT_EXPORT void nxt_thread_spin_init(nxt_uint_t ncpu, nxt_uint_t count);
H A Dnxt_sendbuf.h57 nxt_uint_t niov;
110 nxt_uint_t nxt_sendbuf_mem_coalesce0(nxt_task_t *task, nxt_sendbuf_t *sb,
111 struct iovec *iov, nxt_uint_t niov_max);
112 nxt_uint_t nxt_sendbuf_mem_coalesce(nxt_task_t *task,
H A Dnxt_errno.c32 static nxt_uint_t nxt_sys_nerr;
41 nxt_uint_t err, invalid; in nxt_strerror_start()
143 nxt_uint_t n; in nxt_runtime_strerror()
145 n = nxt_min((nxt_uint_t) err, nxt_sys_nerr); in nxt_runtime_strerror()
H A Dnxt_linux_sendfile.c40 nxt_uint_t flags);
42 nxt_sendbuf_coalesce_t *sb, nxt_uint_t niov, nxt_uint_t flags);
54 nxt_uint_t niov, flags; in nxt_linux_event_conn_io_sendfile()
143 nxt_linux_send(nxt_event_conn_t *c, void *buf, size_t size, nxt_uint_t flags) in nxt_linux_send()
189 nxt_uint_t niov, nxt_uint_t flags) in nxt_linux_sendmsg()
H A Dnxt_poll_engine.c30 nxt_uint_t mchanges, nxt_uint_t mevents);
53 nxt_uint_t op, nxt_uint_t events);
109 nxt_uint_t mevents) in nxt_poll_create()
170 nxt_uint_t op, events; in nxt_poll_enable_read()
190 nxt_uint_t op, events; in nxt_poll_enable_write()
210 nxt_uint_t op, events; in nxt_poll_disable_read()
230 nxt_uint_t op, events; in nxt_poll_disable_write()
268 nxt_uint_t op; in nxt_poll_oneshot_read()
283 nxt_uint_t op; in nxt_poll_oneshot_write()
302 nxt_uint_t events) in nxt_poll_change()
[all …]
H A Dnxt_types.h25 typedef u_int nxt_uint_t; typedef
30 typedef uintptr_t nxt_uint_t; typedef
34 typedef nxt_uint_t nxt_bool_t;
H A Dnxt_file.h15 typedef nxt_uint_t nxt_file_access_t;
103 nxt_uint_t mode, nxt_uint_t create, nxt_file_access_t access);
107 nxt_uint_t mode, nxt_uint_t create, nxt_file_access_t access, nxt_fd_t dfd,
108 nxt_uint_t resolve);
H A Dnxt_runtime.h12 typedef void (*nxt_runtime_cont_t)(nxt_task_t *task, nxt_uint_t status);
90 void nxt_runtime_quit(nxt_task_t *task, nxt_uint_t status);
95 nxt_uint_t max_threads, nxt_nsec_t timeout);
135 void nxt_cdecl nxt_log_time_handler(nxt_uint_t level, nxt_log_t *log,
160 extern nxt_uint_t nxt_init_modules_n;
H A Dnxt_fs.h34 nxt_uint_t builtin; /* 1-bit */
35 nxt_uint_t deps; /* 1-bit */
H A Dnxt_timer.h69 nxt_uint_t mchanges;
70 nxt_uint_t nchanges;
95 nxt_int_t nxt_timers_init(nxt_timers_t *timers, nxt_uint_t mchanges);
/unit/src/test/
H A Dnxt_tests.h39 nxt_int_t nxt_rbtree_test(nxt_thread_t *thr, nxt_uint_t n);
40 nxt_int_t nxt_rbtree1_test(nxt_thread_t *thr, nxt_uint_t n);
54 nxt_int_t nxt_mp_test(nxt_thread_t *thr, nxt_uint_t runs, nxt_uint_t nblocks,
56 nxt_int_t nxt_mem_zone_test(nxt_thread_t *thr, nxt_uint_t runs,
57 nxt_uint_t nblocks, size_t max_size);
58 nxt_int_t nxt_lvlhsh_test(nxt_thread_t *thr, nxt_uint_t n,
H A Dnxt_mem_zone_test.c12 nxt_mem_zone_test(nxt_thread_t *thr, nxt_uint_t runs, nxt_uint_t nblocks, in nxt_mem_zone_test()
18 nxt_uint_t i, n; in nxt_mem_zone_test()
H A Dnxt_mp_test.c12 nxt_mp_test(nxt_thread_t *thr, nxt_uint_t runs, nxt_uint_t nblocks, in nxt_mp_test()
20 nxt_uint_t i, n; in nxt_mp_test()

123456