Lines Matching refs:ufd
74 static int ufd; /* shared between do_child and start_server */
196 maybe_run_child(&do_child, "dd", &sfd, &ufd);
344 close(ufd);
351 close(ufd);
389 ufd = socket(PF_UNIX, SOCK_STREAM, 0);
390 if (ufd < 0) {
394 if (bind(ufd, (struct sockaddr *)ssun, sizeof(*ssun))) {
398 if (listen(ufd, 10) < 0) {
406 if (self_exec(argv0, "dd", sfd, ufd) < 0)
418 (void)close(ufd);
433 FD_SET(ufd, &afds);
435 nfds = MAX(sfd + 1, ufd + 1);
463 if (FD_ISSET(ufd, &rfds)) {
467 newfd = accept(ufd, (struct sockaddr *)&fsun, &fromlen);
474 if (fd != sfd && fd != ufd && FD_ISSET(fd, &rfds)) {