Lines Matching refs:FILE
3 // found in the LICENSE file.
109 // File was created after or on comparison time
132 // Otherwise, it's a file, wildcard or non-existant. Try DeleteFile first
215 // Make sure that the target file exists.
577 FILE* CreateAndOpenTemporaryShmemFile(FilePath* path) {
582 // On POSIX we have semantics to create and open a temporary file
586 FILE* CreateAndOpenTemporaryFileInDir(const FilePath& dir, FilePath* path) {
591 // Open file in binary mode, to avoid problems with fwrite. On Windows
604 PLOG(WARNING) << "Failed to get temporary file name in " << dir.value();
669 << "conflicts with existing file.";
673 // Invariant: Path does not exist as file or directory.
691 // were racing with someone creating the same directory, or a file
728 FILE* OpenFile(const FilePath& filename, const char* mode) {
734 FILE* OpenFile(const std::string& filename, const char* mode) {
741 base::win::ScopedHandle file(CreateFile(filename.value().c_str(),
748 if (!file)
752 if (::ReadFile(file, data, size, &read, NULL) &&
760 base::win::ScopedHandle file(CreateFile(filename.value().c_str(),
767 if (!file) {
774 BOOL result = ::WriteFile(file, data, size, &written, NULL);
780 LOG(WARNING) << "writing file " << filename.value()
910 // Search for the next file/directory.
1053 // from a file handle. If we ever deprecate XP, consider changing the
1068 // Create a file mapping object. Can't easily use MemoryMappedFile, because
1070 // not map an empty file, this call fails in that case.
1081 // Use a view of the file to get the path to the file.
1110 // slows warm starts. The solution is to sequentially read file contents
1112 base::win::ScopedHandle file(
1121 if (!file.IsValid())
1137 while (::ReadFile(file, buffer, actual_step_size, &len, NULL) &&