/external/strace/tests/ |
D | net-yy-unix.c | 61 int listen_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local 62 if (listen_fd < 0) in main() 64 unsigned long listen_inode = inode_of_sockfd(listen_fd); in main() 66 listen_fd, listen_inode); in main() 69 if (bind(listen_fd, listen_sa, *len)) in main() 73 listen_fd, listen_inode, TEST_SOCKET, (unsigned) *len); in main() 75 if (listen(listen_fd, 1)) in main() 78 listen_fd, listen_inode, TEST_SOCKET); in main() 82 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 86 listen_fd, listen_inode, TEST_SOCKET, *optval, (unsigned) *len); in main() [all …]
|
D | net-y-unix.c | 61 int listen_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local 62 if (listen_fd < 0) in main() 64 unsigned long listen_inode = inode_of_sockfd(listen_fd); in main() 66 listen_fd, listen_inode); in main() 69 if (bind(listen_fd, listen_sa, *len)) in main() 73 listen_fd, listen_inode, TEST_SOCKET, (unsigned) *len); in main() 75 if (listen(listen_fd, 1)) in main() 77 printf("listen(%d<socket:[%lu]>, 1) = 0\n", listen_fd, listen_inode); in main() 81 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 85 listen_fd, listen_inode, *optval, (unsigned) *len); in main() [all …]
|
D | net-yy-inet.c | 71 const int listen_fd = socket(ADDR_FAMILY, SOCK_STREAM, 0); in main() local 72 if (listen_fd < 0) in main() 74 const unsigned long listen_inode = inode_of_sockfd(listen_fd); in main() 77 listen_fd, listen_inode); in main() 79 if (bind(listen_fd, listen_sa, *len)) in main() 83 listen_fd, listen_inode, (unsigned) *len); in main() 85 if (listen(listen_fd, 1)) in main() 88 listen_fd, listen_inode); in main() 92 if (getsockname(listen_fd, listen_sa, len)) in main() 99 listen_fd, listen_port, listen_port, (unsigned) *len); in main() [all …]
|
/external/strace/tests-m32/ |
D | net-yy-unix.c | 61 int listen_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local 62 if (listen_fd < 0) in main() 64 unsigned long listen_inode = inode_of_sockfd(listen_fd); in main() 66 listen_fd, listen_inode); in main() 69 if (bind(listen_fd, listen_sa, *len)) in main() 73 listen_fd, listen_inode, TEST_SOCKET, (unsigned) *len); in main() 75 if (listen(listen_fd, 1)) in main() 78 listen_fd, listen_inode, TEST_SOCKET); in main() 82 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 86 listen_fd, listen_inode, TEST_SOCKET, *optval, (unsigned) *len); in main() [all …]
|
D | net-y-unix.c | 61 int listen_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local 62 if (listen_fd < 0) in main() 64 unsigned long listen_inode = inode_of_sockfd(listen_fd); in main() 66 listen_fd, listen_inode); in main() 69 if (bind(listen_fd, listen_sa, *len)) in main() 73 listen_fd, listen_inode, TEST_SOCKET, (unsigned) *len); in main() 75 if (listen(listen_fd, 1)) in main() 77 printf("listen(%d<socket:[%lu]>, 1) = 0\n", listen_fd, listen_inode); in main() 81 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 85 listen_fd, listen_inode, *optval, (unsigned) *len); in main() [all …]
|
D | net-yy-inet.c | 71 const int listen_fd = socket(ADDR_FAMILY, SOCK_STREAM, 0); in main() local 72 if (listen_fd < 0) in main() 74 const unsigned long listen_inode = inode_of_sockfd(listen_fd); in main() 77 listen_fd, listen_inode); in main() 79 if (bind(listen_fd, listen_sa, *len)) in main() 83 listen_fd, listen_inode, (unsigned) *len); in main() 85 if (listen(listen_fd, 1)) in main() 88 listen_fd, listen_inode); in main() 92 if (getsockname(listen_fd, listen_sa, len)) in main() 99 listen_fd, listen_port, listen_port, (unsigned) *len); in main() [all …]
|
/external/strace/tests-mx32/ |
D | net-yy-unix.c | 61 int listen_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local 62 if (listen_fd < 0) in main() 64 unsigned long listen_inode = inode_of_sockfd(listen_fd); in main() 66 listen_fd, listen_inode); in main() 69 if (bind(listen_fd, listen_sa, *len)) in main() 73 listen_fd, listen_inode, TEST_SOCKET, (unsigned) *len); in main() 75 if (listen(listen_fd, 1)) in main() 78 listen_fd, listen_inode, TEST_SOCKET); in main() 82 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 86 listen_fd, listen_inode, TEST_SOCKET, *optval, (unsigned) *len); in main() [all …]
|
D | net-y-unix.c | 61 int listen_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local 62 if (listen_fd < 0) in main() 64 unsigned long listen_inode = inode_of_sockfd(listen_fd); in main() 66 listen_fd, listen_inode); in main() 69 if (bind(listen_fd, listen_sa, *len)) in main() 73 listen_fd, listen_inode, TEST_SOCKET, (unsigned) *len); in main() 75 if (listen(listen_fd, 1)) in main() 77 printf("listen(%d<socket:[%lu]>, 1) = 0\n", listen_fd, listen_inode); in main() 81 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 85 listen_fd, listen_inode, *optval, (unsigned) *len); in main() [all …]
|
D | net-yy-inet.c | 71 const int listen_fd = socket(ADDR_FAMILY, SOCK_STREAM, 0); in main() local 72 if (listen_fd < 0) in main() 74 const unsigned long listen_inode = inode_of_sockfd(listen_fd); in main() 77 listen_fd, listen_inode); in main() 79 if (bind(listen_fd, listen_sa, *len)) in main() 83 listen_fd, listen_inode, (unsigned) *len); in main() 85 if (listen(listen_fd, 1)) in main() 88 listen_fd, listen_inode); in main() 92 if (getsockname(listen_fd, listen_sa, len)) in main() 99 listen_fd, listen_port, listen_port, (unsigned) *len); in main() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_sock_fields.c | 310 int listen_fd, cli_fd, accept_fd, epfd, err; in test() local 322 listen_fd = socket(AF_INET6, SOCK_STREAM | SOCK_NONBLOCK, 0); in test() 323 CHECK(listen_fd == -1, "socket()", "listen_fd:%d errno:%d", in test() 324 listen_fd, errno); in test() 327 err = bind(listen_fd, (struct sockaddr *)&srv_sa6, sizeof(srv_sa6)); in test() 330 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test() 333 err = listen(listen_fd, 1); in test() 362 ev.data.fd = listen_fd; in test() 363 err = epoll_ctl(epfd, EPOLL_CTL_ADD, listen_fd, &ev); in test() 370 CHECK(err != 1 || ev.data.fd != listen_fd, in test() [all …]
|
/external/ltp/testcases/network/lib6/ |
D | asapi_01.c | 336 static int listen_fd, connect_fd; variable 340 connect_fd = accept(listen_fd, 0, 0); in ilistener() 341 close(listen_fd); in ilistener() 351 listen_fd = SAFE_SOCKET(NULL, pf, type, proto); in isocketpair() 355 SAFE_BIND(NULL, listen_fd, (struct sockaddr *)&sin4, sizeof(sin4)); in isocketpair() 357 SAFE_LISTEN(NULL, listen_fd, 10); in isocketpair() 360 SAFE_GETSOCKNAME(NULL, listen_fd, (struct sockaddr *)&sin4, &namelen); in isocketpair()
|
/external/grpc-grpc/test/core/network_benchmarks/ |
D | low_level_ping_pong.cc | 408 static int accept_server(int listen_fd) { in accept_server() argument 409 int fd = accept(listen_fd, nullptr, nullptr); in accept_server() 418 int listen_fd = -1; in create_sockets_tcp() local 429 listen_fd = create_listening_socket(sa_port, sizeof(port)); in create_sockets_tcp() 430 if (listen_fd == -1) { in create_sockets_tcp() 441 server_fd = accept_server(listen_fd); in create_sockets_tcp() 451 close(listen_fd); in create_sockets_tcp() 455 if (listen_fd != -1) { in create_sockets_tcp() 456 close(listen_fd); in create_sockets_tcp()
|
/external/google-breakpad/src/client/linux/crash_generation/ |
D | crash_generation_server.cc | 57 const int listen_fd, in CrashGenerationServer() argument 64 server_fd_(listen_fd), in CrashGenerationServer()
|
D | crash_generation_server.h | 68 CrashGenerationServer(const int listen_fd,
|
/external/blktrace/ |
D | blktrace.c | 232 int listen_fd, connects, nchs; member 2382 fd = my_accept(ns->listen_fd, (struct sockaddr *)&ns->addr, &socklen); in net_add_connection() 2584 ns->pfds[0].fd = ns->listen_fd; in net_setup_pfds() 2667 ns->listen_fd = fd; in net_server()
|