Home | History | Annotate | Download | only in base

Lines Matching refs:FILE

3 // found in the LICENSE file.
80 // We open the file in binary format even if they are text files because
89 // any unusable file yields a result of "false".
118 // any unusable file yields a result of "false".
154 FILE* file = OpenFile(path, "rb");
155 if (!file) {
161 while ((len = fread(buf, 1, sizeof(buf), file)) > 0) {
165 CloseFile(file);
179 FILE* CreateAndOpenTemporaryFile(FilePath* path) {
206 base::PlatformFile file =
211 if (file != base::kInvalidPlatformFileValue) {
212 bool result = base::TouchPlatformFile(file, last_accessed, last_modified);
213 base::ClosePlatformFile(file);
225 bool CloseFile(FILE* file) {
226 if (file == NULL)
228 return fclose(file) == 0;
231 bool TruncateFile(FILE* file) {
232 if (file == NULL)
234 long current_offset = ftell(file);
238 int fd = _fileno(file);
242 int fd = fileno(file);
330 bool MemoryMappedFile::Initialize(base::PlatformFile file) {
334 file_ = file;
389 FILE* OpenFile(const std::wstring& filename, const char* mode) {