Lines Matching refs:fd
855 int fd;857 fd = open("/dev/"NSMB_NAME, O_RDWR);858 if (fd < 0) {863 (void) fcntl(fd, F_SETFD, FD_CLOEXEC);865 return (fd);871 int fd, err;881 fd = smbfs_open_driver();882 if (fd < 0) {892 if (ioctl(fd, SMBIOC_GETVERS, &version) < 0)897 (void) close(fd);901 ctx->ct_dev_fd = fd;