Lines Matching defs:fd
60 int fd;
91 fd = openat(dirfd(be->dir), LOCALFILE, O_RDONLY);
92 if (fd >= 0) {
93 be->f = fdopen(fd, "rF");
96 (void) close(fd);
113 fd = openat(dirfd(be->dir), dp->d_name, O_RDONLY);
115 if (fd < 0)
118 be->f = fdopen(fd, "rF");
123 (void) close(fd);
139 int fd;
145 fd = open(filename, O_SEARCH | O_DIRECTORY);
147 if (fd == -1)
150 ret = fstatat64(fd, LOCALFILE, &statf, 0);
151 (void) close(fd);