Home | History | Annotate | Download | only in src

Lines Matching refs:FILE

62 int fopen_s(FILE** pFile, const char* filename, const char* mode) {
677 // because this would fail if output is redirected to a file. Therefore we
679 // standard output handle is invalid or its file type is unknown.
690 static void VPrintHelper(FILE* stream, const char* format, va_list args) {
704 FILE* OS::FOpen(const char* path, const char* mode) {
705 FILE* result;
719 FILE* OS::OpenTemporaryFile() {
729 FILE* result = FOpen(tempNameBuffer, "w+"); // Same mode as tmpfile uses.
737 // Open log file in binary mode to avoid /n -> /r/n conversion.
755 void OS::FPrint(FILE* out, const char* format, ...) {
763 void OS::VFPrint(FILE* out, const char* format, va_list args) {
998 Win32MemoryMappedFile(HANDLE file,
1002 : file_(file),
1018 // Open a physical file
1019 HANDLE file = CreateFileA(name, GENERIC_READ | GENERIC_WRITE,
1021 if (file == INVALID_HANDLE_VALUE) return NULL;
1023 int size = static_cast<int>(GetFileSize(file, NULL));
1025 // Create a file mapping for the physical file
1026 HANDLE file_mapping = CreateFileMapping(file, NULL,
1030 // Map a view of the file into memory
1032 return new Win32MemoryMappedFile(file, file_mapping, memory, size);
1038 // Open a physical file
1039 HANDLE file = CreateFileA(name, GENERIC_READ | GENERIC_WRITE,
1041 if (file == NULL) return NULL;
1042 // Create a file mapping for the physical file
1043 HANDLE file_mapping = CreateFileMapping(file, NULL,
1046 // Map a view of the file into memory
1049 return new Win32MemoryMappedFile(file, file_mapping, memory, size);