Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 8 of 8) sorted by relevance

/libuv/src/unix/
H A Dsignal.c226 struct sigaction sa; in uv__signal_register_handler() local
229 memset(&sa, 0, sizeof(sa)); in uv__signal_register_handler()
230 if (sigfillset(&sa.sa_mask)) in uv__signal_register_handler()
232 sa.sa_handler = uv__signal_handler; in uv__signal_register_handler()
233 sa.sa_flags = SA_RESTART; in uv__signal_register_handler()
235 sa.sa_flags |= SA_RESETHAND; in uv__signal_register_handler()
238 if (sigaction(signum, &sa, NULL)) in uv__signal_register_handler()
247 struct sigaction sa; in uv__signal_unregister_handler() local
249 memset(&sa, 0, sizeof(sa)); in uv__signal_unregister_handler()
250 sa.sa_handler = SIG_DFL; in uv__signal_unregister_handler()
[all …]
H A Dpipe.c357 struct sockaddr_un sa; in uv__pipe_getsockpeername() local
363 addrlen = sizeof(sa); in uv__pipe_getsockpeername()
364 memset(&sa, 0, addrlen); in uv__pipe_getsockpeername()
367 (struct sockaddr*) &sa, in uv__pipe_getsockpeername()
375 if (is_linux && sa.sun_path[0] == '\0') { in uv__pipe_getsockpeername()
380 p = memchr(sa.sun_path, '\0', sizeof(sa.sun_path)); in uv__pipe_getsockpeername()
382 p = ARRAY_END(sa.sun_path); in uv__pipe_getsockpeername()
383 addrlen = p - sa.sun_path; in uv__pipe_getsockpeername()
391 memcpy(buffer, sa.sun_path, addrlen); in uv__pipe_getsockpeername()
/libuv/test/
H A Dtest-tcp-write-after-connect.c51 struct sockaddr_in sa; in TEST_IMPL() local
52 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &sa)); in TEST_IMPL()
59 &sa, in TEST_IMPL()
H A Dtest-not-readable-nor-writable-on-read-error.c85 struct sockaddr_in sa; in TEST_IMPL() local
86 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &sa)); in TEST_IMPL()
92 (const struct sockaddr*) &sa, in TEST_IMPL()
H A Dtest-readable-on-eof.c91 struct sockaddr_in sa; in TEST_IMPL() local
92 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &sa)); in TEST_IMPL()
98 (const struct sockaddr*) &sa, in TEST_IMPL()
/libuv/src/win/
H A Dprocess-stdio.c147 SECURITY_ATTRIBUTES sa; in uv__create_nul_handle() local
149 sa.nLength = sizeof sa; in uv__create_nul_handle()
150 sa.lpSecurityDescriptor = NULL; in uv__create_nul_handle()
151 sa.bInheritHandle = TRUE; in uv__create_nul_handle()
156 &sa, in uv__create_nul_handle()
H A Dutil.c815 struct sockaddr* sa; in uv_interface_addresses() local
818 sa = unicast_address->Address.lpSockaddr; in uv_interface_addresses()
836 if (sa->sa_family == AF_INET6) { in uv_interface_addresses()
837 uv_address->address.address6 = *((struct sockaddr_in6 *) sa); in uv_interface_addresses()
848 uv_address->address.address4 = *((struct sockaddr_in *) sa); in uv_interface_addresses()
H A Dpipe.c255 SECURITY_ATTRIBUTES sa; in uv__create_pipe_pair() local
295 sa.nLength = sizeof sa; in uv__create_pipe_pair()
296 sa.lpSecurityDescriptor = NULL; in uv__create_pipe_pair()
297 sa.bInheritHandle = inherit_client; in uv__create_pipe_pair()
302 &sa, in uv__create_pipe_pair()

Completed in 19 milliseconds