Lines Matching refs:path
47 FdFile::FdFile(int fd, const std::string& path, bool check_usage) in FdFile() argument
48 : FdFile(fd, path, check_usage, false) { in FdFile()
51 FdFile::FdFile(int fd, const std::string& path, bool check_usage, bool read_only_mode) in FdFile() argument
53 fd_(fd), file_path_(path), auto_close_(true), read_only_mode_(read_only_mode) { in FdFile()
56 FdFile::FdFile(const std::string& path, int flags, mode_t mode, bool check_usage) in FdFile() argument
58 Open(path, flags, mode); in FdFile()
131 bool FdFile::Open(const std::string& path, int flags) { in Open() argument
132 return Open(path, flags, 0640); in Open()
135 bool FdFile::Open(const std::string& path, int flags, mode_t mode) { in Open() argument
137 DCHECK_EQ(fd_, -1) << path; in Open()
139 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)); in Open()
143 file_path_ = path; in Open()