Lines Matching refs:cfd
30 int cfd = 0;
53 else if (ENABLE_NC_EXTRA && opt=='f') USE_NC_EXTRA( cfd = xopen(optarg, O_RDWR));
74 if (do_listen && cfd) bb_show_usage();
76 if (do_listen || cfd) {
92 if (!cfd) {
113 cfd = accept(sfd, NULL, 0);
114 if (cfd < 0)
119 cfd = create_and_connect_stream_or_die(argv[0],
137 // We check for cfd == 0 above.
145 if (cfd) {
146 dup2(cfd, 0);
147 close(cfd);
156 // Select loop copying stdin to cfd, and cfd to stdout.
159 FD_SET(cfd, &readfds);
176 if (fd == cfd) {
184 shutdown(cfd, 1);
187 ofd = cfd;