Lines Matching refs:name
30 File* OS::OpenFileForReading(const char* name) { in OpenFileForReading() argument
31 return OpenFileWithFlags(name, O_RDONLY); in OpenFileForReading()
34 File* OS::OpenFileReadWrite(const char* name) { in OpenFileReadWrite() argument
35 return OpenFileWithFlags(name, O_RDWR); in OpenFileReadWrite()
38 File* OS::CreateEmptyFile(const char* name) { in CreateEmptyFile() argument
39 return OpenFileWithFlags(name, O_RDWR | O_CREAT | O_TRUNC); in CreateEmptyFile()
42 File* OS::OpenFileWithFlags(const char* name, int flags) { in OpenFileWithFlags() argument
43 CHECK(name != nullptr); in OpenFileWithFlags()
45 if (!file->Open(name, flags, 0666)) { in OpenFileWithFlags()
51 bool OS::FileExists(const char* name) { in FileExists() argument
53 if (stat(name, &st) == 0) { in FileExists()
60 bool OS::DirectoryExists(const char* name) { in DirectoryExists() argument
62 if (stat(name, &st) == 0) { in DirectoryExists()