Lines Matching defs:sockfd
78 int sockfd;
88 sockfd = xsocket(AF_UNIX, type, 0);
89 (out?xconnect:xbind)(sockfd, (struct sockaddr*)&sockaddr, sizeof(sockaddr));
91 return sockfd;
97 int sockfd = -1, in1 = 0, in2 = 0, out1 = 1, out2 = 1, family = AF_UNSPEC,
121 if (FLAG(U)) sockfd = usock(toys.optargs[0], type, 1);
122 else sockfd = xconnectany(xgetaddrinfo(toys.optargs[0], toys.optargs[1],
127 in1 = out2 = sockfd;
133 sockfd = usock(TT.s, type, 0);
136 sockfd = xbindany(xgetaddrinfo(TT.s, toybuf, family, type, 0, 0));
139 if (listen(sockfd, 5)) error_exit("listen");
145 getsockname(sockfd, address, &len);
160 in1 = out2 = accept(sockfd, 0, 0);
183 close(sockfd);
200 close(sockfd);