Lines Matching defs:file

3 // found in the LICENSE file.
115 // These file descriptors are being opened when Fuzzilli uses fork & execve to
117 #define REPRL_CRFD 100 // Control read file decriptor
118 #define REPRL_CWFD 101 // Control write file decriptor
119 #define REPRL_DRFD 102 // Data read file decriptor
120 #define REPRL_DWFD 103 // Data write file decriptor
448 std::unique_ptr<base::OS::MemoryMappedFile> file)
449 : file_(std::move(file)) {}
1372 // Shell::ReportException, because some errors (such as file errors) are
1444 isolate->ThrowError("Could not read the web snapshot file");
2069 isolate->ThrowError("Log file does not exist.");
2078 isolate->ThrowError("Unable to read log file.");
2261 void WriteToFile(FILE* file, const v8::FunctionCallbackInfo<v8::Value>& args) {
2265 fprintf(file, " ");
2283 int n = static_cast<int>(fwrite(*str, sizeof(**str), str.length(), file));
2291 void WriteAndFlush(FILE* file,
2293 WriteToFile(file, args);
2294 fprintf(file, "\n");
2295 fflush(file);
2372 oss << "Cannot convert file[" << i << "] name to string.";
2386 oss << "Error executing file: \"" << *file_name << '"';
2841 printf("Could not map counters file %s\n", name);
3126 d8_template->Set(isolate, "file", file_template);
3397 void Shell::WriteLcovData(v8::Isolate* isolate, const char* file) {
3398 if (!file) return;
3401 std::ofstream sink(file, std::ofstream::app);
3409 // Skip scripts not backed by a file.
3468 // minimum file size for fuzzing was executed.
3613 FILE* file = base::OS::FOpen(name, "rb");
3614 if (file == nullptr) return nullptr;
3616 fseek(file, 0, SEEK_END);
3617 size_t size = ftell(file);
3618 rewind(file);
3623 i += fread(&chars[i], 1, size - i, file);
3624 if (ferror(file)) {
3625 base::Fclose(file);
3630 base::Fclose(file);
3672 isolate->ThrowError("Error loading file");
3678 isolate->ThrowError("Error reading file");
3688 // Reads a file into a v8 string.
3691 std::unique_ptr<base::OS::MemoryMappedFile> file(
3694 if (!file) {
3697 oss << "Error loading file: " << name;
3706 int size = static_cast<int>(file->size());
3707 char* chars = static_cast<char*>(file->memory());
3710 new ExternalOwningOneByteStringResource(std::move(file));
3717 FILE* file = base::Fopen(name, "w");
3718 if (file == nullptr) return;
3719 fwrite(buffer, 1, buffer_size, file);
3720 base::Fclose(file);
3972 // Treat the next file as a module.
3981 // Treat the next file as a web snapshot.
3990 // Treat the next file as a JSON file.
4498 } else if (strncmp(argv[i], "--icu-data-file=", 16) == 0) {
4609 } else if (strcmp(argv[i], "--no-fuzzy-module-file-extensions") == 0) {
4650 " shell [options] [--shell] [<file>...]\n"
4652 " <file>...]\n\n"
4655 " --module execute a file as a JavaScript module\n"
4656 " --web-snapshot execute a file as a web snapshot\n\n";
5307 printf("Cannot open trace file '%s' for writing: %s.\n", trace_path,
5360 V8::SetFlagsFromString("--trace-turbo-cfg-file=turbo.cfg");
5620 // tracing file.