Lines Matching defs:fd
135 DIR *fd;
307 this->fd = 0;
337 if ((this->fd = (*vp->opendirf)(comp)) == 0) {
339 (this->fd = (*vp->opendirf)(comp)) != 0) {
342 * are OPEN_MAX fd in the calling
344 * fd, and another opendirf doesn't
439 (fstat(dirfd(this->fd), &statb2) < 0 ||
447 if ((cdval = fchdir(dirfd(this->fd))) >= 0) {
486 while (dir = readdir(this->fd)) {
542 if (this->fd == 0) {
545 this->fd = opendir(".");
547 this->fd = (*vp->opendirf)(comp);
549 if (this->fd == 0) {
553 seekdir(this->fd, this->here);
573 if (last->fd != NULL) {
574 if (fchdir(dirfd(last->fd)) < 0) {
603 if (this->fd)
604 (void) closedir(this->fd);
755 int fd;
758 if (lp && lp->fd) {
762 fd = dirfd(lp->fd);
766 fd = AT_FDCWD;
769 return (fstatat(fd, basepath, statp, flags));
778 int fd;
781 if (lp && lp->fd) {
785 fd = dirfd(lp->fd);
789 fd = AT_FDCWD;
792 return (fstatat(fd, basepath, statp, flags | AT_SYMLINK_NOFOLLOW));
811 int fd, cfd;
821 if ((fd = openat(AT_FDCWD, dirp,
828 if ((cfd = openat(fd, token,
830 (void) close(fd);
835 (void) close(fd);
836 fd = cfd;
839 return (fdopendir(fd));
886 if (spnext == 0 || spnext->fd == 0)
890 if (sp == 0 || sp->fd == 0)
892 sp->here = telldir(sp->fd);
893 (void) closedir(sp->fd);
894 sp->fd = 0;