Lines Matching refs:fd
50 int fd;
52 if ((fd = open(name, O_RDONLY | O_DIRECTORY | O_CLOEXEC)) == -1)
54 dirp = __fdopendir(fd);
56 close(fd);
65 fdopendir(int fd)
70 if ((flags = fcntl(fd, F_GETFL)) == -1)
76 dirp = __fdopendir(fd);
79 dirp->dd_bufpos = dirp->dd_curpos = lseek(fd, 0, SEEK_CUR);
85 (void)fcntl(fd, F_SETFD, FD_CLOEXEC);
92 __fdopendir(int fd)
98 if (fstat(fd, &sb))
117 dirp->dd_fd = fd;