Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 29) sorted by relevance

12

/libuv/test/
H A Dtest-ref.c110 uv_idle_t h; in TEST_IMPL() local
115 do_close(&h); in TEST_IMPL()
122 uv_async_t h; in TEST_IMPL() local
224 uv_tcp_t h; in TEST_IMPL() local
235 uv_tcp_t h; in TEST_IMPL() local
247 uv_tcp_t h; in TEST_IMPL() local
261 uv_tcp_t h; in TEST_IMPL() local
280 uv_tcp_t h; in TEST_IMPL() local
299 uv_udp_t h; in TEST_IMPL() local
311 uv_udp_t h; in TEST_IMPL() local
[all …]
H A Dtest-udp-options.c33 uv_udp_t h; in udp_options_test() local
38 r = uv_udp_init(loop, &h); in udp_options_test()
43 r = uv_udp_bind(&h, addr, 0); in udp_options_test()
46 r = uv_udp_set_broadcast(&h, 1); in udp_options_test()
47 r |= uv_udp_set_broadcast(&h, 1); in udp_options_test()
48 r |= uv_udp_set_broadcast(&h, 0); in udp_options_test()
49 r |= uv_udp_set_broadcast(&h, 0); in udp_options_test()
54 r = uv_udp_set_ttl(&h, i); in udp_options_test()
116 uv_udp_t h; in TEST_IMPL() local
122 ASSERT_OK(uv_udp_init(loop, &h)); in TEST_IMPL()
[all …]
H A Dtest-shutdown-close.c69 uv_tcp_t h; in TEST_IMPL() local
73 r = uv_tcp_init(uv_default_loop(), &h); in TEST_IMPL()
76 &h, in TEST_IMPL()
93 uv_pipe_t h; in TEST_IMPL() local
96 r = uv_pipe_init(uv_default_loop(), &h, 0); in TEST_IMPL()
98 uv_pipe_connect(&connect_req, &h, TEST_PIPENAME, connect_cb); in TEST_IMPL()
H A Dtest-shutdown-twice.c62 uv_tcp_t h; in TEST_IMPL() local
69 r = uv_tcp_init(loop, &h); in TEST_IMPL()
73 &h, in TEST_IMPL()
H A Dtest-poll-closesocket.c34 static void close_cb(uv_handle_t* h) { in close_cb() argument
39 static void poll_cb(uv_poll_t* h, int status, int events) { in poll_cb() argument
43 ASSERT_PTR_EQ(h, &handle); in poll_cb()
H A Dtest-udp-send-unreachable.c96 static void timer_cb(uv_timer_t* h) { in timer_cb() argument
97 ASSERT_PTR_EQ(h, &timer); in timer_cb()
102 uv_close((uv_handle_t*) h, close_cb); in timer_cb()
H A Dtest-poll-close-doesnt-corrupt-stack.c40 static void close_cb(uv_handle_t* h) { in close_cb() argument
45 static void poll_cb(uv_poll_t* h, int status, int events) { in poll_cb() argument
H A Dtest-fork.c378 static void fork_signal_cb(uv_signal_t* h, int s) { in fork_signal_cb() argument
381 static void empty_close_cb(uv_handle_t* h){} in empty_close_cb() argument
/libuv/src/
H A Dqueue.h25 for ((q) = (h)->next; (q) != (h); (q) = (q)->next)
47 h->prev = n->prev; in uv__queue_add()
48 h->prev->next = h; in uv__queue_add()
54 n->prev = h->prev; in uv__queue_split()
57 h->prev = q->prev; in uv__queue_split()
58 h->prev->next = h; in uv__queue_split()
66 uv__queue_split(h, h->next, n); in uv__queue_move()
72 q->prev = h; in uv__queue_insert_head()
74 h->next = q; in uv__queue_insert_head()
79 q->next = h; in uv__queue_insert_tail()
[all …]
H A Duv-common.h265 (((h)->flags & UV_HANDLE_ACTIVE) != 0)
268 (((h)->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED)) != 0)
272 (h->stream.conn.shutdown_req != NULL)
275 (h->shutdown_req != NULL)
282 if (((h)->flags & UV_HANDLE_REF) != 0) uv__active_handle_add(h); \
290 if (((h)->flags & UV_HANDLE_REF) != 0) uv__active_handle_rm(h); \
299 if (((h)->flags & UV_HANDLE_ACTIVE) != 0) uv__active_handle_add(h); \
308 if (((h)->flags & UV_HANDLE_ACTIVE) != 0) uv__active_handle_rm(h); \
313 (((h)->flags & UV_HANDLE_REF) != 0)
316 # define uv__handle_platform_init(h) ((h)->u.fd = -1) argument
[all …]
H A Didna.c157 unsigned h; in uv__idna_toascii_label() local
170 h = 0; in uv__idna_toascii_label()
184 h++; in uv__idna_toascii_label()
210 if (++x == h) in uv__idna_toascii_label()
215 return h; in uv__idna_toascii_label()
218 if (h > 0) in uv__idna_toascii_label()
241 y = h + 1; in uv__idna_toascii_label()
299 h++; in uv__idna_toascii_label()
300 delta += delta / h; in uv__idna_toascii_label()
H A Duv-common.c538 uv_handle_t* h; in uv_walk() local
548 if (h->flags & UV_HANDLE_INTERNAL) continue; in uv_walk()
549 walk_cb(h, arg); in uv_walk()
557 uv_handle_t* h; in uv__print_handles() local
568 if (only_active && !uv__is_active(h)) in uv__print_handles()
571 switch (h->type) { in uv__print_handles()
580 "R-"[!(h->flags & UV_HANDLE_REF)], in uv__print_handles()
581 "A-"[!(h->flags & UV_HANDLE_ACTIVE)], in uv__print_handles()
584 (void*)h); in uv__print_handles()
853 uv_handle_t* h; in uv_loop_close() local
[all …]
H A Dfs-poll.c28 #define uv__make_close_pending(h) uv__want_endgame((h)->loop, (h)) argument
/libuv/
H A DMakefile.am20 include_HEADERS=include/uv.h
23 uvinclude_HEADERS = include/uv/errno.h \
25 include/uv/version.h
33 src/heap-inl.h \
35 src/idna.h \
37 src/queue.h \
40 src/strscpy.h \
46 src/uv-common.h \
49 src/strtok.h
59 uvinclude_HEADERS += include/uv/win.h include/uv/tree.h
[all …]
H A DSUPPORTED_PLATFORMS.md39 ``src/unix/internal.h``.
42 new include file in ``include/`` with the name ``uv-theplatform.h`` and add
H A DCONTRIBUTING.md51 declarations go into `include/uv/unix.h`.
55 be declared in `include/uv/win.h`.
140 `test/` directory. Each new test needs to be registered in `test/test-list.h`.
H A DLICENSE-extra32 - tree.h (from FreeBSD), copyright Niels Provos. Two clause BSD license.
H A DREADME.md108 — Documenting types and methods of libuv, mostly by reading uv.h.
258 The list of all tests is in `test/test-list.h`.
306 listed in `test/benchmark-list.h`.
H A Dconfigure.ac86 AC_CHECK_HEADERS([sys/ahafs_evProds.h])
/libuv/src/unix/
H A Dasync.c165 uv_async_t* h; local
195 h = uv__queue_data(q, uv_async_t, queue);
201 pending = (_Atomic int*) &h->pending;
205 if (h->async_cb == NULL)
208 h->async_cb(h);
329 uv_async_t* h; local
340 h = uv__queue_data(q, uv_async_t, queue);
345 uv__async_spin(h);
363 uv_async_t* h; local
382 h->pending = 0;
[all …]
H A Dudp.c221 struct msghdr h; in uv__udp_recvmsg() local
251 memset(&h, 0, sizeof(h)); in uv__udp_recvmsg()
253 h.msg_name = &peer; in uv__udp_recvmsg()
256 h.msg_iovlen = 1; in uv__udp_recvmsg()
287 struct msghdr h; in uv__udp_sendmsg_one() local
291 memset(&h, 0, sizeof h); in uv__udp_sendmsg_one()
293 h.msg_name = NULL; in uv__udp_sendmsg_one()
341 struct mmsghdr h[20]; in uv__udp_sendmsg_many() local
354 p = &h[pkts]; in uv__udp_sendmsg_many()
793 struct msghdr h; in uv__udp_try_send() local
[all …]
H A Dloop-watcher.c49 uv_##name##_t* h; \
55 h = uv__queue_data(q, uv_##name##_t, queue); \
58 h->name##_cb(h); \
H A Dprocess.c110 struct uv__queue* h; in uv__wait_children() local
114 h = &loop->process_handles; in uv__wait_children()
115 q = uv__queue_head(h); in uv__wait_children()
116 while (q != h) { in uv__wait_children()
153 h = &pending; in uv__wait_children()
154 q = uv__queue_head(h); in uv__wait_children()
155 while (q != h) { in uv__wait_children()
/libuv/docs/code/
H A D.gitignore3 !*.h
/libuv/m4/
H A Dax_pthread.m495 # We used to check for pthread.h first, but this fails if pthread.h
139 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
360 # Check for various functions. We must include pthread.h,
370 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
408 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
440 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],

Completed in 48 milliseconds

12