/external/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt02.c | 29 static int socket_fd, accepted; variable 38 socket_fd = SAFE_SOCKET(sun.sun_family, SOCK_STREAM, 0); in setup() 39 SAFE_BIND(socket_fd, (struct sockaddr *)&sun, sizeof(sun)); in setup() 40 SAFE_LISTEN(socket_fd, SOMAXCONN); in setup() 63 accepted = accept(socket_fd, NULL, NULL); in test_function() 89 if (socket_fd >= 0) in cleanup() 90 SAFE_CLOSE(socket_fd); in cleanup()
|
/external/adhd/cras/src/server/ |
D | cras_server.c | 442 int socket_fd = -1; in cras_server_run() local 491 socket_fd = socket(PF_UNIX, SOCK_SEQPACKET, 0); in cras_server_run() 492 if (socket_fd < 0) { in cras_server_run() 494 rc = socket_fd; in cras_server_run() 513 rc = fchmod(socket_fd, 0700); in cras_server_run() 517 if (bind(socket_fd, (struct sockaddr *) &addr, in cras_server_run() 529 if (listen(socket_fd, 5) != 0) { in cras_server_run() 555 pollfds[0].fd = socket_fd; in cras_server_run() 601 handle_new_connection(&addr, socket_fd); in cras_server_run() 624 if (socket_fd >= 0) { in cras_server_run() [all …]
|
/external/bcc/examples/networking/dns_matching/ |
D | dns_matching.py | 76 socket_fd = function_dns_matching.sock variable 77 fl = fcntl.fcntl(socket_fd, fcntl.F_GETFL) 78 fcntl.fcntl(socket_fd, fcntl.F_SETFL, fl & (~os.O_NONBLOCK)) 83 packet_str = os.read(socket_fd, 2048)
|
/external/bcc/examples/networking/http_filter/ |
D | http-parse-simple.py | 76 socket_fd = function_http_filter.sock variable 79 sock = socket.fromfd(socket_fd,socket.PF_PACKET,socket.SOCK_RAW,socket.IPPROTO_IP) 85 packet_str = os.read(socket_fd,2048)
|
D | http-parse-complete.py | 129 socket_fd = function_http_filter.sock variable 132 sock = socket.fromfd(socket_fd,socket.PF_PACKET,socket.SOCK_RAW,socket.IPPROTO_IP) 149 packet_str = os.read(socket_fd,4096) #set packet length to max packet length on the interface
|
/external/bcc/examples/networking/vlan_filter/ |
D | data-plane-tracing.py | 86 socket_fd = function_vlan_filter.sock variable 89 sock = socket.fromfd(socket_fd,socket.PF_PACKET,socket.SOCK_RAW,socket.IPPROTO_IP) 105 packet_str = os.read(socket_fd, 2048)
|
/external/perfetto/src/ipc/ |
D | host_impl.cc | 46 std::unique_ptr<Host> Host::CreateInstance(base::ScopedFile socket_fd, in CreateInstance() argument 49 new HostImpl(std::move(socket_fd), task_runner)); in CreateInstance() 55 HostImpl::HostImpl(base::ScopedFile socket_fd, base::TaskRunner* task_runner) in HostImpl() argument 59 sock_ = base::UnixSocket::Listen(std::move(socket_fd), this, task_runner_); in HostImpl()
|
D | host_impl.h | 40 HostImpl(base::ScopedFile socket_fd, base::TaskRunner*);
|
/external/libchrome/mojo/core/ |
D | broker_posix.cc | 27 int socket_fd, in WaitForBrokerMessage() argument 36 SocketRecvmsg(socket_fd, const_cast<void*>(message->data()), in WaitForBrokerMessage()
|
/external/webrtc/webrtc/base/ |
D | macasyncsocket.cc | 235 int socket_fd = ::accept(native_socket_, reinterpret_cast<sockaddr*>(&saddr), in Accept() local 237 if (socket_fd == INVALID_SOCKET) { in Accept() 242 MacAsyncSocket* s = new MacAsyncSocket(ss_, saddr.ss_family, socket_fd); in Accept()
|
/external/perfetto/include/perfetto/ipc/ |
D | host.h | 48 static std::unique_ptr<Host> CreateInstance(base::ScopedFile socket_fd,
|
/external/grpc-grpc/test/core/iomgr/ |
D | fd_posix_test.cc | 59 static void create_test_socket(int port, int* socket_fd, in create_test_socket() argument 75 *socket_fd = fd; in create_test_socket()
|
/external/curl/lib/ |
D | asyn-ares.c | 123 static void Curl_ares_sock_state_cb(void *data, ares_socket_t socket_fd, in Curl_ares_sock_state_cb() argument 129 Curl_multi_closed(easy, socket_fd); in Curl_ares_sock_state_cb()
|
/external/libbrillo/brillo/http/ |
D | http_transport_curl.cc | 39 curl_socket_t socket_fd) in SocketPollData() argument 43 socket_fd_(socket_fd), in SocketPollData()
|
/external/adhd/cras/src/tests/ |
D | rclient_unittest.cc | 767 int cras_server_disconnect_from_client_socket(int socket_fd) { in cras_server_disconnect_from_client_socket() argument
|