Lines Matching refs:si_fd
232 if ((fd = accept(s->si_fd, (struct sockaddr *)&sun,
241 close(s->si_fd);
249 fd, s->si_fd);
257 close(s->si_fd);
266 if (s->si_fd == -1) {
270 if (listen(s->si_fd, SOCK_BACKLOG) == -1) {
292 if ((s->si_fd = socket(PF_UNIX, SOCK_STREAM, 0)) == -1) {
306 close(s->si_fd);
310 if (bind(s->si_fd, (struct sockaddr *)&sun, sizeof(sun)) == -1) {
313 close(s->si_fd);
323 if ((flags = fcntl(s->si_fd, F_GETFL, 0)) == -1) {
328 if ((flags = fcntl(s->si_fd, F_SETFL, flags | O_NONBLOCK)) == -1) {
334 return (s->si_fd);
337 close(s->si_fd);