Lines Matching defs:fd
283 int fd, cfd;
290 * Traverse the path using openat() to get the fd for
298 if ((fd = openat(AT_FDCWD, dirp,
305 if ((cfd = openat(fd, token,
307 (void) close(fd);
312 (void) close(fd);
313 fd = cfd;
316 return (fdopendir(fd));
332 int fd, cfd;
341 /* Traverse path using openat() to get fd for fstatat(). */
347 if ((fd = openat(AT_FDCWD, dirp, O_RDONLY)) < 0) {
355 if ((cfd = openat(fd, token, O_RDONLY)) < 0) {
356 (void) close(fd);
361 (void) close(fd);
362 fd = cfd;
365 rc = fstatat(fd, unrootp, statp, sym);
367 (void) close(fd);