Home
last modified time | relevance | path

Searched refs:socket_fd (Results 1 – 19 of 19) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt02.c17 static int socket_fd, accepted; variable
26 socket_fd = SAFE_SOCKET(sun.sun_family, SOCK_STREAM, 0); in setup()
27 SAFE_BIND(socket_fd, (struct sockaddr *)&sun, sizeof(sun)); in setup()
28 SAFE_LISTEN(socket_fd, SOMAXCONN); in setup()
51 accepted = accept(socket_fd, NULL, NULL); in test_function()
77 if (socket_fd >= 0) in cleanup()
78 SAFE_CLOSE(socket_fd); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/accept/
Daccept01.c30 int socket_fd; variable
53 PF_INET, SOCK_STREAM, 0, &socket_fd, (struct sockaddr *)3,
57 PF_INET, SOCK_STREAM, 0, &socket_fd, (struct sockaddr *)&fsin1,
61 PF_INET, SOCK_STREAM, 0, &socket_fd, (struct sockaddr *)&fsin1,
78 socket_fd = SAFE_SOCKET(PF_INET, SOCK_STREAM, 0); in test_setup()
79 SAFE_BIND(socket_fd, (struct sockaddr *)&sin0, sizeof(sin0)); in test_setup()
92 SAFE_CLOSE(socket_fd); in test_cleanup()
/third_party/skia/third_party/externals/microhttpd/src/microspdy/
Dio_raw.c69 fd_flags = fcntl (session->socket_fd, F_GETFL); in SPDYF_raw_new_session()
71 || 0 != fcntl (session->socket_fd, F_SETFL, fd_flags | O_NONBLOCK)) in SPDYF_raw_new_session()
76 ret = setsockopt(session->socket_fd, IPPROTO_TCP, TCP_NODELAY, &val, (socklen_t)sizeof(val)); in SPDYF_raw_new_session()
97 int n = read(session->socket_fd, in SPDYF_raw_recv()
126 int n = write(session->socket_fd, in SPDYF_raw_send()
168 ret = setsockopt(session->socket_fd, IPPROTO_TCP, TCP_CORK, &val, (socklen_t)sizeof(val)); in SPDYF_raw_before_write()
187 ret = setsockopt(session->socket_fd, IPPROTO_TCP, TCP_CORK, &val, (socklen_t)sizeof(val)); in SPDYF_raw_after_write()
Ddaemon.c199 daemon->socket_fd = -1; in SPDYF_start_daemon_va()
307 daemon->socket_fd = socket (afamily, SOCK_STREAM, 0); in SPDYF_start_daemon_va()
308 if (-1 == daemon->socket_fd) in SPDYF_start_daemon_va()
315 ret = setsockopt(daemon->socket_fd, SOL_SOCKET, SO_REUSEADDR, &option_on, sizeof(option_on)); in SPDYF_start_daemon_va()
324 ret = setsockopt(daemon->socket_fd, IPPROTO_IPV6, IPV6_V6ONLY, &option_on, sizeof(option_on)); in SPDYF_start_daemon_va()
333 if (-1 == bind (daemon->socket_fd, daemon->address, addrlen)) in SPDYF_start_daemon_va()
339 if (listen (daemon->socket_fd, 20) < 0) in SPDYF_start_daemon_va()
355 if(daemon->socket_fd > 0) in SPDYF_start_daemon_va()
356 (void)close (daemon->socket_fd); in SPDYF_start_daemon_va()
377 shutdown (daemon->socket_fd, SHUT_RDWR); in SPDYF_stop_daemon()
[all …]
Dstructures.h783 int socket_fd; member
966 int socket_fd; member
Dsession.c951 shutdown (session->socket_fd, SHUT_RD); in SPDYF_session_read()
1089 shutdown (session->socket_fd, SHUT_RD); in SPDYF_session_write()
1367 shutdown (session->socket_fd, in SPDYF_session_close()
1409 new_socket_fd = accept (daemon->socket_fd, addr, &addr_len); in SPDYF_session_accept()
1421 session->socket_fd = new_socket_fd; in SPDYF_session_accept()
1580 (void)close (session->socket_fd); in SPDYF_session_destroy()
Dio_openssl.c143 if(1 != (ret = SSL_set_fd(session->io_context, session->socket_fd))) in SPDYF_openssl_new_session()
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
Ddaemon.c735 if (MHD_INVALID_SOCKET != daemon->socket_fd && in MHD_get_fdset2()
736 MHD_YES != add_to_fd_set (daemon->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
744 if (MHD_YES != add_to_fd_set (pos->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
748 if (MHD_YES != add_to_fd_set (pos->socket_fd, write_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
751 MHD_YES != add_to_fd_set (pos->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
756 MHD_YES != add_to_fd_set (pos->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
844 add_to_fd_set (con->socket_fd, &rs, &max, FD_SETSIZE)) in MHD_handle_connection()
849 add_to_fd_set (con->socket_fd, &ws, &max, FD_SETSIZE)) in MHD_handle_connection()
853 add_to_fd_set (con->socket_fd, &rs, &max, FD_SETSIZE)) ) in MHD_handle_connection()
859 add_to_fd_set (con->socket_fd, &rs, &max, FD_SETSIZE)) ) in MHD_handle_connection()
[all …]
Dinternal.h740 MHD_socket socket_fd; member
1120 MHD_socket socket_fd; member
Dconnection.c275 shutdown (connection->socket_fd, in MHD_connection_close()
2484 setsockopt (connection->socket_fd, IPPROTO_TCP, TCP_CORK, &val,
2566 setsockopt (connection->socket_fd, IPPROTO_TCP, TCP_CORK, &val,
2729 connection->socket_fd,
2801 return (const union MHD_ConnectionInfo *) &connection->socket_fd;
/third_party/ltp/testcases/kernel/syscalls/quotactl/
Dquotactl09.c36 static int getnextquota_nsup, socket_fd = -1; variable
115 TST_EXP_FAIL(syscall(__NR_quotactl_fd, socket_fd, tc->cmd, *tc->id, in verify_quotactl()
149 socket_fd = SAFE_SOCKET(PF_INET, SOCK_STREAM, 0); in setup()
166 if (socket_fd > -1) in cleanup()
167 SAFE_CLOSE(socket_fd); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind01.c27 int *socket_fd; member
51 TST_EXP_FAIL(bind(*tcase->socket_fd, tcase->sockaddr, tcase->salen), in verify_bind()
54 TST_EXP_PASS(bind(*tcase->socket_fd, tcase->sockaddr, tcase->salen), in verify_bind()
/third_party/eudev/src/shared/
Dselinux-util.c251 int mac_selinux_get_child_mls_label(int socket_fd, const char *exe, const char *exec_label, char **… in mac_selinux_get_child_mls_label() argument
260 assert(socket_fd >= 0); in mac_selinux_get_child_mls_label()
271 r = getpeercon(socket_fd, &peercon); in mac_selinux_get_child_mls_label()
Dselinux-util.h38 int mac_selinux_get_child_mls_label(int socket_fd, const char *exe, const char *exec_label, char **…
/third_party/node/deps/cares/include/
Dares.h237 ares_socket_t socket_fd,
308 typedef int (*ares_sock_create_callback)(ares_socket_t socket_fd,
312 typedef int (*ares_sock_config_callback)(ares_socket_t socket_fd,
/third_party/curl/lib/
Dasyn-ares.c136 static void sock_state_cb(void *data, ares_socket_t socket_fd, in sock_state_cb() argument
142 Curl_multi_closed(easy, socket_fd); in sock_state_cb()
/third_party/grpc/test/core/iomgr/
Dfd_posix_test.cc59 static void create_test_socket(int port, int* socket_fd, in create_test_socket() argument
75 *socket_fd = fd; in create_test_socket()
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_socket.c75 static int virgl_vtest_receive_fd(int socket_fd) in virgl_vtest_receive_fd() argument
93 int size = recvmsg(socket_fd, &msgh, 0); in virgl_vtest_receive_fd()
/third_party/openssl/apps/
Dvms_term_sock.c483 SocketPair[1] = socket_fd (TcpDeviceChan); in CreateSocketPair()