Home
last modified time | relevance | path

Searched refs:NXT_EXPORT (Results 1 – 25 of 70) sorted by relevance

123

/unit/src/
H A Dnxt_mp.h42 NXT_EXPORT void nxt_mp_destroy(nxt_mp_t *mp);
47 NXT_EXPORT void nxt_mp_retain(nxt_mp_t *mp);
53 NXT_EXPORT void nxt_mp_release(nxt_mp_t *mp);
60 NXT_EXPORT nxt_bool_t nxt_mp_is_empty(nxt_mp_t *mp);
67 NXT_EXPORT void *nxt_mp_alloc(nxt_mp_t *mp, size_t size)
75 NXT_EXPORT void *nxt_mp_zalloc(nxt_mp_t *mp, size_t size)
87 NXT_EXPORT void nxt_mp_free(nxt_mp_t *mp, void *p);
91 NXT_EXPORT void *nxt_mp_nget(nxt_mp_t *mp, size_t size)
98 NXT_EXPORT void *nxt_mp_get(nxt_mp_t *mp, size_t size)
105 NXT_EXPORT void *nxt_mp_zget(nxt_mp_t *mp, size_t size)
[all …]
H A Dnxt_thread.h34 NXT_EXPORT extern __thread type tsd
67 NXT_EXPORT extern nxt_thread_specific_data_t tsd
89 NXT_EXPORT nxt_int_t nxt_thread_create(nxt_thread_handle_t *handle,
91 NXT_EXPORT nxt_thread_t *nxt_thread_init(void);
92 NXT_EXPORT void nxt_thread_exit(nxt_thread_t *thr);
93 NXT_EXPORT void nxt_thread_cancel(nxt_thread_handle_t handle);
94 NXT_EXPORT void nxt_thread_wait(nxt_thread_handle_t handle);
104 NXT_EXPORT void nxt_thread_mutex_destroy(nxt_thread_mutex_t *mtx);
105 NXT_EXPORT nxt_int_t nxt_thread_mutex_lock(nxt_thread_mutex_t *mtx);
113 NXT_EXPORT void nxt_thread_cond_destroy(nxt_thread_cond_t *cond);
[all …]
H A Dnxt_parse.h11 NXT_EXPORT nxt_int_t nxt_int_parse(const u_char *p, size_t len);
12 NXT_EXPORT ssize_t nxt_size_t_parse(const u_char *p, size_t len);
13 NXT_EXPORT ssize_t nxt_size_parse(const u_char *p, size_t len);
14 NXT_EXPORT nxt_off_t nxt_off_t_parse(const u_char *p, size_t len);
16 NXT_EXPORT nxt_int_t nxt_str_int_parse(nxt_str_t *s);
18 NXT_EXPORT double nxt_number_parse(const u_char **start, const u_char *end);
20 NXT_EXPORT nxt_time_t nxt_time_parse(const u_char *p, size_t len);
21 NXT_EXPORT nxt_int_t nxt_term_parse(const u_char *p, size_t len,
H A Dnxt_file.h102 NXT_EXPORT nxt_int_t nxt_file_open(nxt_task_t *task, nxt_file_t *file,
154 NXT_EXPORT void nxt_file_close(nxt_task_t *task, nxt_file_t *file);
177 NXT_EXPORT nxt_int_t nxt_file_delete(nxt_file_name_t *name);
178 NXT_EXPORT nxt_int_t nxt_file_set_access(nxt_file_name_t *name,
180 NXT_EXPORT nxt_int_t nxt_file_rename(nxt_file_name_t *old_name,
184 NXT_EXPORT nxt_int_t nxt_fd_blocking(nxt_task_t *task, nxt_fd_t fd);
187 NXT_EXPORT void nxt_fd_close(nxt_fd_t fd);
190 NXT_EXPORT nxt_int_t nxt_file_stderr(nxt_file_t *file);
191 NXT_EXPORT nxt_int_t nxt_stderr_start(void);
207 NXT_EXPORT void nxt_pipe_close(nxt_task_t *task, nxt_fd_t *pp);
[all …]
H A Dnxt_sockaddr.h77 NXT_EXPORT nxt_sockaddr_t *nxt_sockaddr_create(nxt_mp_t *mp,
82 NXT_EXPORT nxt_sockaddr_t *nxt_getsockname(nxt_task_t *task, nxt_mp_t *mp,
85 NXT_EXPORT void nxt_sockaddr_text(nxt_sockaddr_t *sa);
88 NXT_EXPORT uint32_t nxt_sockaddr_port_number(nxt_sockaddr_t *sa);
89 NXT_EXPORT nxt_bool_t nxt_sockaddr_cmp(nxt_sockaddr_t *sa1,
91 NXT_EXPORT size_t nxt_sockaddr_ntop(nxt_sockaddr_t *sa, u_char *buf,
94 NXT_EXPORT nxt_sockaddr_t *nxt_sockaddr_parse_optport(nxt_mp_t *mp,
96 NXT_EXPORT void nxt_job_sockaddr_parse(nxt_job_sockaddr_parse_t *jbs);
97 NXT_EXPORT in_addr_t nxt_inet_addr(u_char *buf, size_t len);
99 NXT_EXPORT nxt_int_t nxt_inet6_addr(struct in6_addr *in6_addr, u_char *buf,
[all …]
H A Dnxt_socket.h96 NXT_EXPORT void nxt_socket_defer_accept(nxt_task_t *task, nxt_socket_t s,
98 NXT_EXPORT nxt_int_t nxt_socket_getsockopt(nxt_task_t *task, nxt_socket_t s,
100 NXT_EXPORT nxt_int_t nxt_socket_setsockopt(nxt_task_t *task, nxt_socket_t s,
102 NXT_EXPORT nxt_int_t nxt_socket_bind(nxt_task_t *task, nxt_socket_t s,
104 NXT_EXPORT nxt_int_t nxt_socket_connect(nxt_task_t *task, nxt_socket_t s,
106 NXT_EXPORT void nxt_socket_shutdown(nxt_task_t *task, nxt_socket_t s,
108 NXT_EXPORT void nxt_socket_close(nxt_task_t *task, nxt_socket_t s);
112 NXT_EXPORT nxt_int_t nxt_socketpair_create(nxt_task_t *task,
114 NXT_EXPORT void nxt_socketpair_close(nxt_task_t *task, nxt_socket_t *pair);
115 NXT_EXPORT ssize_t nxt_socketpair_send(nxt_fd_event_t *ev, nxt_fd_t *fd,
[all …]
H A Dnxt_string.h48 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,
85 NXT_EXPORT u_char *nxt_cpystr(u_char *dst, const u_char *src);
90 NXT_EXPORT nxt_int_t nxt_memcasecmp(const void *p1, const void *p2,
93 NXT_EXPORT u_char *nxt_memstrn(const u_char *s, const u_char *end,
95 NXT_EXPORT u_char *nxt_memcasestrn(const u_char *s, const u_char *end,
97 NXT_EXPORT u_char *nxt_rmemstrn(const u_char *s, const u_char *end,
99 NXT_EXPORT size_t nxt_str_strip(const u_char *start, u_char *end);
127 NXT_EXPORT nxt_str_t *nxt_str_alloc(nxt_mp_t *mp, size_t length);
128 NXT_EXPORT nxt_str_t *nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst,
[all …]
H A Dnxt_main_process.h26 NXT_EXPORT extern nxt_uint_t nxt_conf_ver;
27 NXT_EXPORT extern const nxt_process_init_t nxt_discovery_process;
28 NXT_EXPORT extern const nxt_process_init_t nxt_controller_process;
29 NXT_EXPORT extern const nxt_process_init_t nxt_router_process;
30 NXT_EXPORT extern const nxt_process_init_t nxt_proto_process;
31 NXT_EXPORT extern const nxt_process_init_t nxt_app_process;
H A Dnxt_utf8.h19 NXT_EXPORT u_char *nxt_utf8_encode(u_char *p, uint32_t u);
20 NXT_EXPORT uint32_t nxt_utf8_decode(const u_char **start, const u_char *end);
21 NXT_EXPORT uint32_t nxt_utf8_decode2(const u_char **start, const u_char *end);
22 NXT_EXPORT nxt_int_t nxt_utf8_casecmp(const u_char *start1,
24 NXT_EXPORT uint32_t nxt_utf8_lowcase(const u_char **start, const u_char *end);
25 NXT_EXPORT ssize_t nxt_utf8_length(const u_char *p, size_t len);
26 NXT_EXPORT nxt_bool_t nxt_utf8_is_valid(const u_char *p, size_t len);
H A Dnxt_conf.h80 NXT_EXPORT nxt_uint_t nxt_conf_type(nxt_conf_value_t *value);
82 NXT_EXPORT nxt_conf_value_t *nxt_conf_get_path(nxt_conf_value_t *value,
86 NXT_EXPORT nxt_conf_value_t *nxt_conf_next_object_member(
90 NXT_EXPORT nxt_conf_value_t *nxt_conf_get_array_element_or_itself(
117 NXT_EXPORT void nxt_conf_get_string(nxt_conf_value_t *value, nxt_str_t *str);
118 NXT_EXPORT void nxt_conf_set_string(nxt_conf_value_t *value, nxt_str_t *str);
119 NXT_EXPORT nxt_int_t nxt_conf_set_string_dup(nxt_conf_value_t *value,
121 NXT_EXPORT double nxt_conf_get_number(nxt_conf_value_t *value);
122 NXT_EXPORT uint8_t nxt_conf_get_boolean(nxt_conf_value_t *value);
125 NXT_EXPORT nxt_uint_t nxt_conf_object_members_count(nxt_conf_value_t *value);
[all …]
H A Dnxt_work_queue.h85 NXT_EXPORT void nxt_work_queue_cache_create(nxt_work_queue_cache_t *cache,
87 NXT_EXPORT void nxt_work_queue_cache_destroy(nxt_work_queue_cache_t *cache);
89 NXT_EXPORT void nxt_work_queue_add(nxt_work_queue_t *wq,
91 NXT_EXPORT nxt_work_handler_t nxt_work_queue_pop(nxt_work_queue_t *wq,
107 NXT_EXPORT void nxt_work_queue_name(nxt_work_queue_t *wq, const char *name);
108 NXT_EXPORT void nxt_work_queue_thread_adopt(nxt_work_queue_t *wq);
119 NXT_EXPORT void nxt_locked_work_queue_add(nxt_locked_work_queue_t *lwq,
121 NXT_EXPORT nxt_work_handler_t nxt_locked_work_queue_pop(
123 NXT_EXPORT void nxt_locked_work_queue_move(nxt_thread_t *thr,
H A Dnxt_job.h59 NXT_EXPORT void *nxt_job_create(nxt_mp_t *mp, size_t size);
60 NXT_EXPORT void nxt_job_init(nxt_job_t *job, size_t size);
61 NXT_EXPORT void nxt_job_destroy(nxt_task_t *task, void *data);
62 NXT_EXPORT nxt_int_t nxt_job_cleanup_add(nxt_mp_t *mp, nxt_job_t *job);
64 NXT_EXPORT void nxt_job_start(nxt_task_t *task, nxt_job_t *job,
66 NXT_EXPORT void nxt_job_return(nxt_task_t *task, nxt_job_t *job,
H A Dnxt_websocket.h15 NXT_EXPORT size_t nxt_websocket_frame_header_size(const void *data);
16 NXT_EXPORT uint64_t nxt_websocket_frame_payload_len(const void *data);
17 NXT_EXPORT void *nxt_websocket_frame_init(void *data, uint64_t payload_len);
18 NXT_EXPORT void nxt_websocket_accept(u_char *accept, const void *key);
H A Dnxt_spinlock.h13 NXT_EXPORT void nxt_thread_spin_init(nxt_uint_t ncpu, nxt_uint_t count);
14 NXT_EXPORT void nxt_thread_spin_lock(nxt_thread_spinlock_t *lock);
15 NXT_EXPORT nxt_bool_t nxt_thread_spin_trylock(nxt_thread_spinlock_t *lock);
16 NXT_EXPORT void nxt_thread_spin_unlock(nxt_thread_spinlock_t *lock);
H A Dnxt_main.h163 NXT_EXPORT nxt_int_t nxt_lib_start(const char *app, char **argv, char ***envp);
164 NXT_EXPORT void nxt_lib_stop(void);
167 NXT_EXPORT extern nxt_uint_t nxt_ncpu;
168 NXT_EXPORT extern nxt_uint_t nxt_pagesize;
169 NXT_EXPORT extern nxt_task_t nxt_main_task;
170 NXT_EXPORT extern nxt_atomic_t nxt_task_ident;
H A Dnxt_vector.h31 NXT_EXPORT nxt_vector_t *nxt_vector_create(nxt_uint_t items, size_t item_size,
33 NXT_EXPORT void *nxt_vector_init(nxt_vector_t *vector, nxt_uint_t items,
35 NXT_EXPORT void nxt_vector_destroy(nxt_vector_t *vector,
37 NXT_EXPORT void *nxt_vector_add(nxt_vector_t *vector,
39 NXT_EXPORT void *nxt_vector_zero_add(nxt_vector_t *vector,
41 NXT_EXPORT void nxt_vector_remove(nxt_vector_t *vector, void *item);
H A Dnxt_lvlhsh.h131 NXT_EXPORT nxt_int_t nxt_lvlhsh_find(nxt_lvlhsh_t *lh, nxt_lvlhsh_query_t *lhq);
147 NXT_EXPORT nxt_int_t nxt_lvlhsh_insert(nxt_lvlhsh_t *lh,
158 NXT_EXPORT nxt_int_t nxt_lvlhsh_delete(nxt_lvlhsh_t *lh,
175 NXT_EXPORT void *nxt_lvlhsh_each(nxt_lvlhsh_t *lh, nxt_lvlhsh_each_t *lhe);
183 NXT_EXPORT void *nxt_lvlhsh_peek(nxt_lvlhsh_t *lh,
192 NXT_EXPORT void *nxt_lvlhsh_retrieve(nxt_lvlhsh_t *lh,
196 NXT_EXPORT void *nxt_lvlhsh_alloc(void *data, size_t size);
197 NXT_EXPORT void nxt_lvlhsh_free(void *data, void *p);
H A Dnxt_array.h29 NXT_EXPORT nxt_array_t *nxt_array_create(nxt_mp_t *mp, nxt_uint_t n,
31 NXT_EXPORT void nxt_array_destroy(nxt_array_t *array);
32 NXT_EXPORT void *nxt_array_add(nxt_array_t *array);
33 NXT_EXPORT void *nxt_array_zero_add(nxt_array_t *array);
34 NXT_EXPORT void nxt_array_remove(nxt_array_t *array, void *elt);
35 NXT_EXPORT nxt_array_t *nxt_array_copy(nxt_mp_t *mp, nxt_array_t *dst,
H A Dnxt_listen_socket.h54 NXT_EXPORT nxt_int_t nxt_listen_socket(nxt_task_t *task, nxt_socket_t s,
57 NXT_EXPORT nxt_int_t nxt_listen_socket_create(nxt_task_t *task, nxt_mp_t *mp,
59 NXT_EXPORT nxt_int_t nxt_listen_socket_update(nxt_task_t *task,
61 NXT_EXPORT void nxt_listen_socket_remote_size(nxt_listen_socket_t *ls);
62 NXT_EXPORT size_t nxt_listen_socket_pool_min_size(nxt_listen_socket_t *ls);
H A Dnxt_semaphore.h26 NXT_EXPORT nxt_int_t nxt_sem_init(nxt_sem_t *sem, nxt_uint_t count);
27 NXT_EXPORT void nxt_sem_destroy(nxt_sem_t *sem);
28 NXT_EXPORT nxt_int_t nxt_sem_post(nxt_sem_t *sem);
29 NXT_EXPORT nxt_err_t nxt_sem_wait(nxt_sem_t *sem, nxt_nsec_t timeout);
H A Dnxt_process.h158 NXT_EXPORT nxt_pid_t nxt_process_execute(nxt_task_t *task, char *name,
160 NXT_EXPORT nxt_int_t nxt_process_daemon(nxt_task_t *task);
161 NXT_EXPORT void nxt_nanosleep(nxt_nsec_t ns);
163 NXT_EXPORT void nxt_process_arguments(nxt_task_t *task, char **orig_argv,
210 NXT_EXPORT void nxt_process_title(nxt_task_t *task, const char *fmt, ...);
227 NXT_EXPORT extern nxt_pid_t nxt_pid;
228 NXT_EXPORT extern nxt_pid_t nxt_ppid;
229 NXT_EXPORT extern nxt_uid_t nxt_euid;
230 NXT_EXPORT extern nxt_gid_t nxt_egid;
231 NXT_EXPORT extern char **nxt_process_argv;
[all …]
H A Dnxt_mem_zone.h14 NXT_EXPORT nxt_mem_zone_t *nxt_mem_zone_init(u_char *start, size_t zone_size,
20 NXT_EXPORT void *nxt_mem_zone_align(nxt_mem_zone_t *zone, size_t alignment,
23 NXT_EXPORT void *nxt_mem_zone_zalloc(nxt_mem_zone_t *zone, size_t size)
25 NXT_EXPORT void nxt_mem_zone_free(nxt_mem_zone_t *zone, void *p);
H A Dnxt_rbtree.h107 NXT_EXPORT void nxt_rbtree_init(nxt_rbtree_t *tree,
109 NXT_EXPORT void nxt_rbtree_insert(nxt_rbtree_t *tree, nxt_rbtree_part_t *node);
110 NXT_EXPORT nxt_rbtree_node_t *nxt_rbtree_find(nxt_rbtree_t *tree,
112 NXT_EXPORT nxt_rbtree_node_t *nxt_rbtree_find_less_or_equal(nxt_rbtree_t *tree,
114 NXT_EXPORT nxt_rbtree_node_t
117 NXT_EXPORT void nxt_rbtree_delete(nxt_rbtree_t *tree, nxt_rbtree_part_t *node);
127 NXT_EXPORT nxt_rbtree_node_t *nxt_rbtree_destroy_next(nxt_rbtree_t *tree,
H A Dnxt_regex.h32 NXT_EXPORT void nxt_regex_init(void);
33 NXT_EXPORT nxt_regex_t *nxt_regex_compile(nxt_mp_t *mp, nxt_str_t *source,
35 NXT_EXPORT nxt_regex_match_t *nxt_regex_match_create(nxt_mp_t *mp, size_t size);
36 NXT_EXPORT nxt_int_t nxt_regex_match(nxt_regex_t *re, u_char *subject,
H A Dnxt_malloc.h11 NXT_EXPORT void *nxt_malloc(size_t size)
13 NXT_EXPORT void *nxt_zalloc(size_t size)
15 NXT_EXPORT void *nxt_realloc(void *p, size_t size)
17 NXT_EXPORT void *nxt_memalign(size_t alignment, size_t size)
23 NXT_EXPORT void nxt_free(void *p);

123