Home
last modified time | relevance | path

Searched refs:listen_fd (Results 1 – 15 of 15) sorted by relevance

/external/strace/tests/
Dnet-yy-unix.c61 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 …]
Dnet-y-unix.c61 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 …]
Dnet-yy-inet.c71 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/
Dnet-yy-unix.c61 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 …]
Dnet-y-unix.c61 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 …]
Dnet-yy-inet.c71 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/
Dnet-yy-unix.c61 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 …]
Dnet-y-unix.c61 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 …]
Dnet-yy-inet.c71 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/
Dtest_sock_fields.c310 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/
Dasapi_01.c336 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/
Dlow_level_ping_pong.cc408 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/
Dcrash_generation_server.cc57 const int listen_fd, in CrashGenerationServer() argument
64 server_fd_(listen_fd), in CrashGenerationServer()
Dcrash_generation_server.h68 CrashGenerationServer(const int listen_fd,
/external/blktrace/
Dblktrace.c232 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()