Lines Matching defs:fd
640 int fd, retval;
653 fd = socket(af, SOCK_STREAM, 0);
654 if (fd < 0) {
664 retval = fcntl(fd, F_SETFL, O_NONBLOCK);
669 (void) close(fd);
685 retval = connect(fd, (struct sockaddr *)v4dest,
696 retval = connect(fd, (struct sockaddr *)v6dest,
704 (void) close(fd);
713 (void) close(fd);
718 * for all other cases, we poll on the fd
720 pollfd.fd = fd;
741 retval = getsockopt(fd, SOL_SOCKET, SO_ERROR,
774 (void) close(fd);