/external/strace/xlat/ |
D | socktypes.h | 14 #if defined(SOCK_STREAM) || (defined(HAVE_DECL_SOCK_STREAM) && HAVE_DECL_SOCK_STREAM) 16 static_assert((SOCK_STREAM) == (2), "SOCK_STREAM != 2"); 19 # define SOCK_STREAM 2 22 #if defined(SOCK_STREAM) || (defined(HAVE_DECL_SOCK_STREAM) && HAVE_DECL_SOCK_STREAM) 24 static_assert((SOCK_STREAM) == (1), "SOCK_STREAM != 1"); 27 # define SOCK_STREAM 1 80 XLAT(SOCK_STREAM), 82 XLAT(SOCK_STREAM),
|
/external/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt01.c | 86 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 90 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 96 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0, &optlen, 100 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0, 106 PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, &optlen, 110 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval, 114 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval, 119 PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, &optlen, 123 PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, &optlen,
|
/external/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt01.c | 86 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 91 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 98 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0, 105 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0, 109 PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, 114 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval, 119 PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, 124 PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval,
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg01.c | 111 PF_INET, SOCK_STREAM, 0, iov, 1, buf, sizeof(buf), &msgdat, 0, 123 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), 129 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), 134 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)-1, sizeof(buf), 140 PF_INET, SOCK_STREAM, 0, 0, 1, (void *)buf, sizeof(buf), 146 PF_INET, SOCK_STREAM, 0, iov, -1, (void *)buf, sizeof(buf), 152 PF_UNIX, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), 158 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), 165 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), 172 PF_UNIX, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf), [all …]
|
/external/ltp/testcases/kernel/syscalls/recvfrom/ |
D | recvfrom01.c | 94 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), 0, 103 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), 0, 108 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), 0, 113 PF_INET, SOCK_STREAM, 0, (void *)-1, sizeof(buf), 0, 118 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), MSG_OOB, 123 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), MSG_ERRQUEUE, 151 && (tdat[testno].type & SOCK_STREAM)) { in main() 220 if (tdat[testno].type == SOCK_STREAM && in setup1() 257 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_dualstack.c | 68 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd() 112 if (proto == SOCK_STREAM) { in receive_once() 194 build_rcv_fd(AF_INET, SOCK_STREAM, rcv_fds, 5); in main() 195 build_rcv_fd(AF_INET6, SOCK_STREAM, &(rcv_fds[5]), 5); in main() 196 test(rcv_fds, 10, SOCK_STREAM); in main() 201 build_rcv_fd(AF_INET6, SOCK_STREAM, rcv_fds, 5); in main() 202 build_rcv_fd(AF_INET, SOCK_STREAM, &(rcv_fds[5]), 5); in main() 203 test(rcv_fds, 10, SOCK_STREAM); in main()
|
D | reuseport_bpf.c | 175 if (p.protocol == SOCK_STREAM) { in build_recv_group() 246 if (p.protocol == SOCK_STREAM) { in test_recv_order() 577 .protocol = SOCK_STREAM, in main() 584 .protocol = SOCK_STREAM, in main() 590 .protocol = SOCK_STREAM, in main() 594 .protocol = SOCK_STREAM, in main() 601 .protocol = SOCK_STREAM, in main() 608 .protocol = SOCK_STREAM, in main() 614 .protocol = SOCK_STREAM, in main() 618 .protocol = SOCK_STREAM, in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/socketpair/ |
D | socketpair01.c | 45 {0, SOCK_STREAM, 0, fds, -1, EAFNOSUPPORT, "invalid domain"}, 50 {PF_UNIX, SOCK_STREAM, 0, 0, -1, EFAULT, "bad aligned pointer"}, 51 {PF_UNIX, SOCK_STREAM, 0, (int *)7, -1, EFAULT, "bad unaligned pointer"}, 55 {PF_INET, SOCK_STREAM, 6, fds, -1, EOPNOTSUPP, "TCP socket"}, 56 {PF_INET, SOCK_STREAM, 1, fds, -1, EPROTONOSUPPORT, "ICMP stream"}
|
D | socketpair02.c | 46 {SOCK_STREAM, 0, F_GETFD, "no close-on-exec"}, 47 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"}, 48 {SOCK_STREAM, 0, F_GETFL, "no non-blocking"}, 49 {SOCK_STREAM | SOCK_NONBLOCK, O_NONBLOCK, F_GETFL, "non-blocking"}
|
/external/ltp/testcases/kernel/syscalls/bind/ |
D | bind01.c | 82 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1, 87 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 93 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin2, 96 PF_UNIX, SOCK_STREAM, 0, (struct sockaddr *)&sun1, 100 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin3, 155 sin1.sin_port = tst_get_unused_port(NULL, AF_INET, SOCK_STREAM); in setup()
|
/external/ltp/testcases/kernel/syscalls/connect/ |
D | connect01.c | 83 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 89 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1, 94 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 100 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 104 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin2, 108 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin4, 187 sin2.sin_port = tst_get_unused_port(NULL, AF_INET, SOCK_STREAM); in setup() 249 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
|
/external/ltp/testcases/kernel/syscalls/accept/ |
D | accept01.c | 69 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 72 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 75 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)3, 78 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 81 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 84 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
|
/external/ltp/testcases/kernel/syscalls/socket/ |
D | socket02.c | 43 {SOCK_STREAM, 0, F_GETFD, "no close-on-exec"}, 44 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"}, 45 {SOCK_STREAM, 0, F_GETFL, "no non-blocking"}, 46 {SOCK_STREAM | SOCK_NONBLOCK, O_NONBLOCK, F_GETFL, "non-blocking"}
|
D | socket01.c | 43 {0, SOCK_STREAM, 0, -1, EAFNOSUPPORT, "invalid domain"}, 48 {PF_INET, SOCK_STREAM, 17, -1, EPROTONOSUPPORT, "UDP stream"}, 50 {PF_INET, SOCK_STREAM, 6, 0, 0, "TCP socket"}, 51 {PF_INET, SOCK_STREAM, 1, -1, EPROTONOSUPPORT, "ICMP stream"}
|
/external/webrtc/webrtc/base/ |
D | socket_unittest.cc | 198 SOCK_STREAM)); in ConnectInternal() 205 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectInternal() 253 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupInternal() 258 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupInternal() 301 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectFailInternal() 306 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectFailInternal() 334 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupFailInternal() 339 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupFailInternal() 372 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithClosedSocketInternal() 378 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithClosedSocketInternal() [all …]
|
/external/ltp/testcases/kernel/syscalls/getsockname/ |
D | getsockname01.c | 80 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 83 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 89 PF_INET, SOCK_STREAM, 0, NULL, 93 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1, 97 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
|
/external/ltp/testcases/kernel/syscalls/recv/ |
D | recv01.c | 84 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), 0, 93 PF_INET, SOCK_STREAM, 0, (void *)-1, sizeof(buf), 0, 98 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), MSG_OOB, 102 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), MSG_ERRQUEUE, 129 && (tdat[testno].type & SOCK_STREAM)) { in main() 198 if (tdat[testno].type == SOCK_STREAM && in setup1() 228 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_sock.c | 123 SOCK_STREAM, 137 SOCK_STREAM, 207 SOCK_STREAM, 221 SOCK_STREAM, 250 SOCK_STREAM, 279 SOCK_STREAM, 293 SOCK_STREAM, 307 SOCK_STREAM,
|
D | test_sock_addr.c | 103 SOCK_STREAM, 117 SOCK_STREAM, 131 SOCK_STREAM, 159 SOCK_STREAM, 173 SOCK_STREAM, 187 SOCK_STREAM, 217 SOCK_STREAM, 231 SOCK_STREAM, 245 SOCK_STREAM, 273 SOCK_STREAM, [all …]
|
/external/autotest/client/tests/ipv6connect/src/ |
D | ipv6connect.c | 47 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept() 72 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept() 103 if ((*server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServer() 132 if ((server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept() 156 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept() 175 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept() 224 if ((threaded_server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedStartServer() 286 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedCreateServerConnectAndAccept() 314 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedCreateServerConnectAndAccept()
|
/external/python/cpython3/Lib/test/ |
D | test_timeout.py | 24 socket.SOCK_STREAM)[0][4] 31 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 147 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 200 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 251 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv: 260 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv: 270 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
|
/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_connect.c | 88 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 89 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 92 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 96 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 98 clnt2_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_1_to_1_connectx.c | 87 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 88 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 91 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 95 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 97 clnt2_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_1_to_1_accept_close.c | 94 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 97 new_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 101 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 104 clnt2_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 107 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_1_to_1_send.c | 85 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 87 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 89 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 178 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 180 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|