Lines Matching refs:connect_fd
95 int connect_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local
96 if (connect_fd < 0) in main()
98 unsigned long connect_inode = inode_of_sockfd(connect_fd); in main()
100 connect_fd, connect_inode); in main()
102 if (connect(connect_fd, listen_sa, *len)) in main()
106 connect_fd, connect_inode, TEST_SOCKET, (unsigned) *len); in main()
123 if (getpeername(connect_fd, listen_sa, len)) in main()
126 ", sun_path=\"%s\"}, [%d->%d]) = 0\n", connect_fd, connect_inode, in main()
130 assert(sendto(connect_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, 0) in main()
134 connect_fd, connect_inode, text, in main()
137 assert(close(connect_fd) == 0); in main()
138 printf("close(%d<socket:[%lu]>) = 0\n", connect_fd, connect_inode); in main()
150 connect_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main()
151 if (connect_fd < 0) in main()
153 connect_inode = inode_of_sockfd(connect_fd); in main()
155 connect_fd, connect_inode); in main()
159 if (setsockopt(connect_fd, SOL_SOCKET, SO_PASSCRED, optval, *len)) in main()
163 connect_fd, connect_inode, *optval, (unsigned) *len); in main()
174 if (connect(connect_fd, listen_sa, *len)) in main()
178 connect_fd, connect_inode, TEST_SOCKET, (unsigned) *len); in main()
196 if (getpeername(connect_fd, listen_sa, len)) in main()
200 connect_fd, connect_inode, TEST_SOCKET, in main()
205 if (getsockname(connect_fd, accept_sa, len)) in main()
209 connect_fd, connect_inode, sun_path1, in main()
212 assert(sendto(connect_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, 0) in main()
216 connect_fd, connect_inode, text, in main()
219 assert(close(connect_fd) == 0); in main()
220 printf("close(%d<socket:[%lu]>) = 0\n", connect_fd, connect_inode); in main()