Home | History | Annotate | Download | only in src

Lines Matching refs:FILE

230   PosixMemoryMappedFile(FILE* file, void* memory, int size)
231 : file_(file), memory_(memory), size_(size) { }
236 FILE* file_;
243 FILE* file = fopen(name, "r+");
244 if (file == NULL) return NULL;
246 fseek(file, 0, SEEK_END);
247 int size = ftell(file);
250 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0);
251 return new PosixMemoryMappedFile(file, memory, size);
257 FILE* file = fopen(name, "w+");
258 if (file == NULL) return NULL;
259 int result = fwrite(initial, size, 1, file);
261 fclose(file);
265 mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(file), 0);
266 return new PosixMemoryMappedFile(file, memory, size);
277 // This function assumes that the layout of the file is as follows:
280 FILE* fp = fopen("/proc/self/maps", "r");
283 // Allocate enough room to be able to store a full file name.
349 FILE* f = fopen(kGCFakeMmap, "w+");