Lines Matching refs:connect_fd
96 int connect_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local
97 if (connect_fd < 0) in main()
99 unsigned long connect_inode = inode_of_sockfd(connect_fd); in main()
101 connect_fd, connect_inode); in main()
103 if (connect(connect_fd, listen_sa, *len)) in main()
107 connect_fd, connect_inode, TEST_SOCKET, (unsigned) *len); in main()
124 if (getpeername(connect_fd, listen_sa, len)) in main()
128 connect_fd, connect_inode, in main()
132 assert(sendto(connect_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, 0) in main()
136 connect_fd, connect_inode, accept_inode, text, in main()
146 assert(close(connect_fd) == 0); in main()
148 connect_fd, connect_inode, accept_inode); in main()
154 connect_fd = socket(AF_UNIX, SOCK_STREAM, 0); in main()
155 if (connect_fd < 0) in main()
157 connect_inode = inode_of_sockfd(connect_fd); in main()
159 connect_fd, connect_inode); in main()
163 if (setsockopt(connect_fd, SOL_SOCKET, SO_PASSCRED, optval, *len)) in main()
167 connect_fd, connect_inode, *optval, (unsigned) *len); in main()
177 if (connect(connect_fd, listen_sa, *len)) in main()
181 connect_fd, connect_inode, TEST_SOCKET, (unsigned) *len); in main()
199 if (getpeername(connect_fd, listen_sa, len)) in main()
202 ", sun_path=\"%s\"}, [%d->%d]) = 0\n", connect_fd, connect_inode, in main()
205 assert(sendto(connect_fd, text, sizeof(text) - 1, MSG_DONTWAIT, NULL, 0) in main()
209 connect_fd, connect_inode, accept_inode, sun_path1, text, in main()
219 assert(close(connect_fd) == 0); in main()
221 connect_fd, connect_inode, accept_inode, sun_path1); in main()