Lines Matching refs:file

34 	"Given the (preprocessed) header file that defines the syscall prototypes "
36 "command generates a source file consisting of syscall infos, which is "
41 " <header> - Input: The preprocessed header file with the\n"
43 " <syscall infos> - Output: The syscall infos source file needed "
46 " <syscall types sizes> - Output: A source file that will by another "
48 " step turned into a header file included by\n"
317 // open the input file
318 ifstream file(filename, ifstream::in);
319 if (!file.is_open())
322 Tokenizer tokenizer(file);
348 // open the syscall info file
349 ofstream file(filename, ofstream::out | ofstream::trunc);
350 if (!file.is_open())
354 file << "#include \"gensyscalls.h\"" << endl;
355 file << "#include \"syscall_types_sizes.h\"" << endl;
356 file << endl;
358 file << "const char* const kReturnTypeAlignmentType = \""
361 file << "const char* const kParameterAlignmentType = \""
364 file << "const char* const kLongParameterAlignmentType = \""
367 file << "const int kReturnTypeAlignmentSize = "
369 file << "const int kParameterAlignmentSize = "
371 file << "const int kLongParameterAlignmentSize = "
373 file << endl;
375 file << "SyscallVector* create_syscall_vector() {" << endl;
376 file << "\tSyscallVector* syscallVector = SyscallVector::Create();"
378 file << "\tSyscall* syscall;" << endl;
386 file << "\tsyscall = syscallVector->CreateSyscall(\""
394 file << "\tsyscall->SetReturnType("
404 file << "\tsyscall->AddParameter("
409 file << endl;
413 file << "\treturn syscallVector;" << endl;
414 file << "}" << endl;
419 // open the syscall info file
420 ofstream file(filename, ofstream::out | ofstream::trunc);
421 if (!file.is_open())
425 file << "#include <computed_asm_macros.h>" << endl;
426 file << "#include <syscalls.h>" << endl;
427 file << endl;
428 file << "#include \"arch_gensyscalls.h\"" << endl;
429 file << endl;
430 file << "#ifndef SYSCALL_LONG_PARAMETER_ALIGNMENT_TYPE" << endl;
431 file << "#define SYSCALL_LONG_PARAMETER_ALIGNMENT_TYPE SYSCALL_PARAMETER_ALIGNMENT_TYPE"
433 file << "#endif" << endl;
434 file << "void dummy() {" << endl;
436 file << "DEFINE_COMPUTED_ASM_MACRO(SYSCALL_RETURN_TYPE_ALIGNMENT_SIZE, "
438 file << "DEFINE_COMPUTED_ASM_MACRO(SYSCALL_PARAMETER_ALIGNMENT_SIZE, "
440 file << "DEFINE_COMPUTED_ASM_MACRO(SYSCALL_LONG_PARAMETER_ALIGNMENT_SIZE, "
442 file << endl;
450 file << "DEFINE_COMPUTED_ASM_MACRO(SYSCALL_RETURN_TYPE_SIZE_"
453 file << "DEFINE_COMPUTED_ASM_MACRO(SYSCALL_RETURN_TYPE_SIZE_"
461 file << "DEFINE_COMPUTED_ASM_MACRO(SYSCALL_PARAMETER_SIZE_" << i
464 file << endl;
468 file << "}" << endl;