Searched refs:socket_fds (Results 1 – 2 of 2) sorted by relevance
/third_party/ltp/testcases/cve/ |
D | cve-2016-7117.c | 55 static volatile int socket_fds[2]; variable 91 close(socket_fds[0]); in cleanup() 92 close(socket_fds[1]); in cleanup() 102 send(socket_fds[0], MSG, sizeof(MSG), 0); in send_and_close() 103 send(socket_fds[0], MSG, sizeof(MSG), 0); in send_and_close() 105 close(socket_fds[0]); in send_and_close() 108 close(socket_fds[1]); in send_and_close() 123 SAFE_SOCKETPAIR(AF_LOCAL, SOCK_DGRAM, 0, (int *)socket_fds); in run() 128 socket_fds[1], msghdrs, 2, 0, &timeout); in run()
|
/third_party/libuv/test/ |
D | test-fork.c | 123 int socket_fds[2]; in TEST_IMPL() local 129 ASSERT(0 == socketpair(AF_UNIX, SOCK_STREAM, 0, socket_fds)); in TEST_IMPL() 132 ASSERT(0 == uv_poll_init(uv_default_loop(), &poll_handle, socket_fds[0])); in TEST_IMPL() 139 ASSERT(3 == send(socket_fds[1], "hi\n", 3, 0)); in TEST_IMPL() 161 int socket_fds[2]; in TEST_IMPL() local 171 ASSERT(0 == socketpair(AF_UNIX, SOCK_STREAM, 0, socket_fds)); in TEST_IMPL() 174 ASSERT(0 == uv_poll_init(uv_default_loop(), &poll_handle, socket_fds[0])); in TEST_IMPL() 193 ASSERT(3 == send(socket_fds[1], "hi\n", 3, 0)); in TEST_IMPL() 207 socket_cb_read_fd = socket_fds[0]; in TEST_IMPL()
|