Lines Matching defs:fd
128 int fd;
130 if ((fd = open("/dev/null", O_RDWR)) != -1) {
131 (void) dup2(fd, fdstr->infd);
133 (void) dup2(fd, fdstr->outfd);
134 (void) close(fd);
173 adr_stream_create_fd(int fd)
175 return (adr_stream_create_fds(fd, fd));
228 int fd;
237 int fd;
239 if ((fd = open("/dev/null", O_RDWR)) != -1) {
240 (void) dup2(fd, sslstr->fd);
241 (void) close(fd);
254 pfd.fd = sslstr->fd;
352 (void) close(sslstr->fd);
357 adr_stream_create_ssl(SSL *ssl, int fd)
364 (void) close(fd);
368 sslstr->fd = fd;
372 int flags = fcntl(fd, F_GETFL, 0);
373 (void) fcntl(fd, F_SETFL, flags | O_NONBLOCK);