Lines Matching refs:file

33 		"  <calls>                - Output: The assembly source file "
36 " <dispatcher> - Output: The C source file to be included by "
38 " syscall dispatcher source file.\n"
42 " <table> - Output: A C source file containing an array "
45 " <strace> - Output: A C source file for strace "
323 // open the syscalls output file
324 ofstream file(filename, ofstream::out | ofstream::trunc);
325 if (!file.is_open())
340 file << "SYSCALL" << (paramSize / 4) << "("
347 // open the dispatcher output file
348 ofstream file(filename, ofstream::out | ofstream::trunc);
349 if (!file.is_open())
355 file << "case " << i << ":" << endl;
356 file << "\t";
358 file << "*_returnValue = ";
359 file << syscall->KernelName() << "(";
364 file << "(" << parameter->TypeName() << ")*("
368 file << "*(" << _GetPointerType(parameter->TypeName())
374 file << ", (" << parameter->TypeName() << ")*("
379 file << ", *(" << _GetPointerType(parameter->TypeName())
385 file << ");" << endl;
386 file << "\tbreak;" << endl;
392 // open the syscall numbers output file
393 ofstream file(filename, ofstream::out | ofstream::trunc);
394 if (!file.is_open())
413 file << "#define SYSCALL_" << defineName << " " << i << endl;
419 // open the syscall table output file
420 ofstream file(filename, ofstream::out | ofstream::trunc);
421 if (!file.is_open())
425 file << "#define SYSCALL_COUNT " << fSyscallCount << endl;
426 file << endl;
429 file << "#ifndef _ASSEMBLER" << endl;
430 file << endl;
433 file << "#include <TypeConstants.h>" << endl;
434 file << endl;
437 file << "const int kSyscallCount = SYSCALL_COUNT;" << endl;
438 file << endl;
441 file << "const syscall_info kSyscallInfos[] = {" << endl;
453 file << "\t{ (void *)" << syscall->KernelName() << ", "
458 file << "};" << endl;
459 file << endl;
462 file << "const extended_syscall_info kExtendedSyscallInfos[] = {"
470 file << "\t{" << endl;
471 file << "\t\t\"" << syscall->Name() << "\", " << paramCount << ","
476 file << "\t\t{ " << returnType->Size() << ", "
481 file << "\t\t{" << endl;
485 file << "\t\t\t{ " << parameter->Offset() << ", "
491 file << "\t\t}" << endl;
492 file << "\t}," << endl;
496 file << "};" << endl;
499 file << "#endif // _ASSEMBLER" << endl;
504 // open the syscall table output file
505 ofstream file(filename, ofstream::out | ofstream::trunc);
506 if (!file.is_open())
509 // the file defines a single function get_syscalls
510 file << "void" << endl
526 file << endl;
528 file << "#endif" << endl;
530 file << "#ifdef SYSCALLS_CHUNK_" << (i / chunkSize) << endl;
534 file << endl;
535 file << "\t// " << syscall->Name() << endl;
539 file << "\thandler = TypeHandlerFactory<"
544 file << "\tsyscall = new Syscall(\"" << syscall->Name() << "\", "
546 file << "\tsyscalls.push_back(syscall);" << endl;
554 file << "\thandler = TypeHandlerFactory<"
558 file << "\tsyscall->AddParameter(\""
566 file << "#endif" << endl;
569 file << "}" << endl;