Searched refs:fd_dir (Results 1 – 2 of 2) sorted by relevance
43 static int fd_dir; variable70 {&fd_dir, 0, EISDIR, CONTSIZE, "directory", 0},154 if (fd_dir > 0) in cleanup()155 SAFE_CLOSE(fd_dir); in cleanup()204 fd_dir = SAFE_OPEN(FILE_DIR_PATH, O_DIRECTORY); in setup()
243 DirReaderPosix fd_dir(kFDDir); in CloseSuperfluousFds() local244 if (!fd_dir.IsValid()) { in CloseSuperfluousFds()266 const int dir_fd = fd_dir.fd(); in CloseSuperfluousFds()268 for ( ; fd_dir.Next(); ) { in CloseSuperfluousFds()270 if (fd_dir.name()[0] == '.') in CloseSuperfluousFds()275 const long int fd = strtol(fd_dir.name(), &endptr, 10); in CloseSuperfluousFds()276 if (fd_dir.name()[0] == 0 || *endptr || fd < 0 || errno) in CloseSuperfluousFds()