Lines Matching refs:FILE
226 String::Utf8Value file(args[0]);
227 if (*file == NULL) {
228 return ThrowException(String::New("Error loading file"));
230 Handle<String> source = ReadFile(*file);
232 return ThrowException(String::New("Error loading file"));
271 String::Utf8Value file(args[i]);
272 if (*file == NULL) {
273 return ThrowException(String::New("Error loading file"));
275 Handle<String> source = ReadFile(*file);
277 return ThrowException(String::New("Error loading file"));
279 if (!ExecuteString(source, String::New(*file), false, true)) {
280 return ThrowException(String::New("Error executing file"));
662 printf("Could not map counters file %s\n", name);
986 static FILE* FOpen(const char* path, const char* mode) {
988 FILE* result;
995 FILE* file = fopen(path, mode);
996 if (file == NULL) return NULL;
998 if (fstat(fileno(file), &file_stat) != 0) return NULL;
1000 if (is_regular_file) return file;
1001 fclose(file);
1010 FILE* file = FOpen(name, "rb");
1011 if (file == NULL) return NULL;
1013 fseek(file, 0, SEEK_END);
1014 int size = ftell(file);
1015 rewind(file);
1020 int read = static_cast<int>(fread(&chars[i], 1, size - i, file));
1023 fclose(file);
1033 return ThrowException(String::New("Error loading file"));
1037 return ThrowException(String::New("Error reading file"));
1069 // Reads a file into a v8 string.
1147 printf("File '%s' not found\n", filename);
1368 printf("-p requires a file containing a list of files as parameter\n");
1406 printf("File list '%s' not found\n", options.parallel_files[i]);