#include <stdio.h>#include <ctype.h>#include <errno.h>#include <fcntl.h>#include <ioctl.h>#include <sys/stat.h>#include <spin.h>


Go to the source code of this file.
Defines | |
| #define | HAVE_TIME_T_IN_TIME_H 1 |
| #define | HAVE_STDLIB_H 1 |
| #define | HAVE_ERRNO_H 1 |
| #define | HAVE_STDDEF_H 1 |
| #define | HAVE_STRING_H 1 |
| #define | HAVE_STDARG_H 1 |
| #define | HAVE_VPRINTF 1 |
| #define | HAVE_FCNTL_H 1 |
| #define | O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
| #define | fileno(fp) ((fp)->_file) |
| #define | EIO 96 |
| #define | ENOENT 97 |
| #define | EACCES 98 |
| #define | ENOSYS 99 |
| #define | R_OK 4 |
| #define | W_OK 2 |
| #define | X_OK 1 |
| #define | USE_BINARY_FOPEN |
| #define | NO_FCNTL |
| #define | fopen mpw_fopen |
| #define | fseek mpw_fseek |
| #define | fread mpw_fread |
| #define | fwrite mpw_fwrite |
| #define | open mpw_open |
| #define | access mpw_access |
| #define | creat mpw_creat |
| #define | abort mpw_abort |
| #define | POSIX_UTIME |
| #define | LOSING_TOTALLY |
| #define | CLOSE_BEFORE_UNLINK |
Functions/Subroutines | |
| int | fstat () |
| FILE * | mpw_fopen () |
| int | mpw_fseek () |
| int | mpw_fread () |
| int | mpw_fwrite () |
| int | mpw_access () |
| int | mpw_open () |
| int | mpw_creat () |
| void | mpw_abort (void) |
| #define access mpw_access |
Definition at line 118 of file mpw.h.
Referenced by _PXFACCESS(), absent(), access_(), access_check(), accessible_p(), LOOP_MULTIVER::Annotate_alias_group_helper(), cif_convert_to_cifconv(), cif_convert_to_lines(), cif_VerifyCanWrite(), cp_parser_base_specifier(), dequeue_and_dump(), dfs_access_in_type(), dfs_accessible_p(), do_spec_1(), edit_file(), file_exists(), find_a_file(), handle_using_decl(), if_exists_else_spec_function(), if_exists_spec_function(), instantiate_class_template(), main(), make_relative_prefix(), make_temp_file(), munge_compile_params(), parse_access_stmt(), parse_derived_type_stmt(), process(), process_aux_info_file(), process_command(), prof_lib_exists(), protected_accessible_p(), try(), try_dir(), update_path(), update_rii_file(), WFE_Expand_Expr(), WGEN_Expand_Expr(), and xref_basetypes().
| #define creat mpw_creat |
Definition at line 119 of file mpw.h.
Referenced by _mcleanup(), _PXFCREAT(), create_unique_file(), edit_file(), mpw_creat(), run_phase(), and run_simple_program().
| #define EACCES 98 |
Definition at line 72 of file mpw.h.
Referenced by _do_open(), _f_opn(), ffecom_open_include_(), mpw_access(), and utime().
| #define EIO 96 |
| #define ENOENT 97 |
Definition at line 69 of file mpw.h.
Referenced by ANL_FILE_MNGR::_Exists(), _f_open(), _PXFGETGRGID(), _PXFGETGRNAM(), _stat(), _unit_scratch(), access_(), cgt_fini(), chmod_(), cleanup(), cleanup_temp_objects(), create_file(), edit_file(), file_exists(), find_file_in_dir(), if(), is_executable(), main(), open_file(), open_file_failed(), pex_win32_exec_child(), process(), process_aux_info_file(), remove_duplicates(), run_phase(), run_prof(), s(), utime(), WN_inline_open_file(), and WN_open_input().
| #define ENOSYS 99 |
Definition at line 52 of file mpw.h.
Referenced by _do_open(), _f_open(), _f_opn(), _PAUSE(), _pr_echomsg(), _unit_trunc(), abort_(), cache_bread(), cache_bstat(), cal_wch(), Cif_Open(), cwh_dst_get_command_line_options(), Emit_Loop_Note(), f77canseek(), f_init(), f_open_com(), fnum_(), get_fd(), gt_pch_restore(), gt_pch_save(), main(), open_files(), output_line_info(), output_lines(), pr_msg(), Print_Scheduling_Note(), riscix_some_aout_object_p(), run_phase(), run_simple_program(), s_paus(), s_rsfe_com(), Same_File(), sco5_core_file_p(), and trad_unix_core_file_p().
| #define fopen mpw_fopen |
Definition at line 113 of file mpw.h.
Referenced by __profile_finish(), Instr::__profile_finish(), __stride_profile_pu_init(), __value_profile_pu_init(), ABI_Properties_End(), add_command_line_arg(), add_keepsyms_file(), append_default_options(), assertCanWriteDir(), begin_file(), bfd_fdopenr(), bfd_fill_in_gnu_debuglink_section(), bfd_open_file(), Build_Call_Graph(), c_common_finish(), c_common_post_options(), CG_Init_Gcov(), Cif_Make_Cifconv(), Cif_Open(), cif_VerifyCanWrite(), clean_graph_dump_file(), close_output_files(), KEY_SCH::Collect_Sched_Info(), convtest128a(), convtest128b(), convtest128c(), convtest64(), craytest128_1(), craytest128_1t(), craytest128_2t(), craytest128_64(), craytest128_i(), craytest64_1(), craytest64_1t(), craytest64_2(), craytest64_2t(), craytest64_c(), craytest64_i(), craytest64_i2(), create_mod_info_file(), create_tmp_file(), cwh_dst_get_command_line_options(), DaVinci::DaVinci(), DEFUN(), delete_rii_file(), Diag_Set_File(), directory_is_writable(), dosum(), dotest128_1(), dotest128_2(), dotest128_i(), dotest128_r(), dotest32_1s(), dotest32_2(), dotest32_2c(), dotest64_1(), dotest64_1s(), dotest64_2(), dotest64_2c(), dotest64_c(), dotest64_i(), dotest64_i2(), DST_dump(), dump_begin(), dump_file(), dump_file_to_stdout(), dump_instruction_fus(), dV_view_whirl(), emit_lkcord(), KEY_SCH::Emit_Src_DDG(), EMT_Emit_PU(), Evaluate_RSE_Cost(), expandargv(), F90_Lower_Prompf_Finish(), f_open_com(), ffe_init(), find_full_path_of_gcc_file(), finish_graph_dump_file(), flushout(), fopen_unlocked(), gcov_open(), Generate_MM(), get_auto_cpu_name(), get_charset_aliases(), get_temp_file(), ieeetest32_1t(), ieeetest32_2c(), ieeetest32_2cmp(), ieeetest32_2t(), ieeetest64_1t(), ieeetest64_2c(), ieeetest64_2cmp(), ieeetest64_2t(), init_asm_output(), init_branch_prob(), init_cif(), Init_Crash_Report(), init_debug_file(), Init_Error_File(), init_ggc(), init_md_reader(), init_md_reader_args_cb(), Init_Module_Files(), init_release_level(), init_src_input(), DIPA_Phase_Manager::Init_Trace_File(), WB_BROWSER::Initialize_Keymap(), Initialize_Keymap(), CG_BROWSER::Initialize_Keymap(), Inline_Call(), Inliner(), ipa_compile_init(), ipacom_doit(), IR_open(), IR_open_output(), ISA_Bundle_End(), ISA_Create(), ISA_Decode_End(), ISA_Enums_End(), ISA_Hazards_End(), ISA_Lits_Begin(), ISA_Operands_End(), ISA_Pack_End(), ISA_Print_End(), ISA_Properties_End(), ISA_Pseudo_End(), ISA_Registers_End(), ISA_Subset_End(), java_get_line_col(), jcf_dependency_set_dep_file(), KAPI_Initialize(), KAPI_Initialize2(), lang_specific_driver(), linux_gt_pch_get_address(), load_depfile(), load_insn_classes(), Machine_Done(), main(), mpw_fopen(), objc_init(), OMP_Prompf_Finish(), ANL_FILE_MNGR::Open_Append(), Open_Append_File(), ANL_FILE_MNGR::Open_Create(), Open_Create_File(), open_dump_file(), open_files(), open_include_file(), open_module_file(), ANL_FILE_MNGR::Open_Read(), Open_Read_File(), open_repo_file(), output_data(), output_deps(), output_line_info(), output_lines(), output_mod_info_file(), Parse_inline_script(), pch_init(), PDGCS_initialize(), pe_dll_generate_def_file(), Perform_Inline_Analysis(), Perform_Interprocedural_Analysis(), pex_input_file(), pex_msdos_exec_child(), pex_read_output(), pexecute(), Prepare_Listing_File(), Prepare_Source(), preprocess_file(), print_buffered_messages(), Print_inline_decision(), Print_Prompf_Doacross_Log(), Print_Prompf_Nest_Log(), Print_Prompf_Parallel_Region_Log(), Print_Prompf_Parallelization_Log(), Print_Prompf_Preopt_Transaction_Log(), Print_Prompf_Transaction_Log(), Print_Prompl_Msgs(), print_rtl_graph_with_bb(), print_source(), Print_Src_Line(), PRINTMSG(), PROC_Create(), PROC_Properties_End(), Process_Command_Line(), Process_Feedback_File(), process_file(), Process_GDAR(), process_include(), Process_IPA_Options(), process_options(), read_alias_file(), read_call_graph(), read_class(), read_derived(), read_name_map(), read_obj_list(), read_repo_file(), read_table(), read_ucnid(), recompile_files(), reopen_repo_file_for_write(), resolve_used_modules(), save_cpp_output(), scan_linker_output(), Set_Trace_File(), tmpnam(), try_open(), unwind_get_obj_phdr(), update_instantiation_info_file(), update_rii_file(), Verify_Inline_Script(), write_automata(), write_classfile(), and write_implicits().
| #define fread mpw_fread |
Definition at line 115 of file mpw.h.
Referenced by __f77_f_back_com(), __read_gcov_string(), __read_gcov_type(), __read_long(), _Cif_binread(), _cpp_read_file_entries(), _dump_File_Header(), _dump_pu_data(), _dump_Pu_Headers(), _dump_Str_Header(), _frwd(), _unit_bksp(), bfd_fill_in_gnu_debuglink_section(), binary_record(), c_common_read_pch(), c_common_write_pch(), cache_bread(), cal_rwd(), Cif_Getfiledir(), Cif_Getunitdir(), Cif_Open(), Cif_Recgroup(), copy_file_data(), create_program_flow_graph(), DEFUN(), deps_restore(), do_us(), dump_file_to_stdout(), e_rsue_mp(), Evaluate_RSE_Cost(), expandargv(), f_rew_com(), gcov_read_words(), get_gcc_version(), ggc_pch_read(), gt_pch_restore(), IR_open(), java_read_char(), KDumpBin_LoadBitVector(), KDumpBin_LoadString(), linux_gt_pch_get_address(), load_file_data(), main(), md5_stream(), mpw_fread(), read_files(), read_in(), read_in_module_tbl(), read_module_tbl_header(), read_strlist(), read_sytb_from_module_file(), s_rsue_com(), save_cpp_output(), srch_ar_file_for_module_tbl(), srch_for_module_tbl(), unf_position(), while(), xrd_SL(), and yy_input().
| #define fseek mpw_fseek |
Definition at line 114 of file mpw.h.
Referenced by __f77_f_back_com(), __read_gcov_string(), __setpos64(), _dump_pu_data(), _dump_Pu_Headers(), _dump_Str_Header(), _frch(), _fwch(), _fwwd(), _realign_for_whirl_fb_file(), _REWF(), _setpos(), c_common_read_pch(), c_common_write_pch(), Cif_Getfiledir(), Cif_Getunitdir(), Cif_Recgroup(), Cif_Setpos(), create_program_flow_graph(), do_us(), dosum(), e_rsue_mp(), expandargv(), f77nowreading(), f77nowwriting(), f_open_com(), f_rew_com(), fseek_(), gcov_sync(), get_exec_counts(), ggc_pch_finish(), ggc_pch_write_object(), gt_pch_restore(), gt_pch_save(), l_read(), mpw_fseek(), open_module_file(), Print_Src_Line(), Process_Command_Line(), read_profile(), real_fseek(), t_runc(), unf_position(), y_putc(), and y_ungetc().
| #define fwrite mpw_fwrite |
Definition at line 116 of file mpw.h.
Referenced by __write_gcov_string(), __write_gcov_type(), __write_long(), _bfd_coff_generic_relocate_section(), _bfd_vms_output_flush(), _cpp_save_file_entries(), _fwch(), _FWU(), _fwwd(), _WUF(), arm_emit_base_file_entry(), c_common_read_pch(), c_common_write_pch(), cache_bwrite(), cal_wwd(), Cif_Open(), Cif_Putrecord(), close_output_files(), coff_ppc_relocate_section(), copy_file_data(), cpp_output_token(), cpp_write_pch_deps(), deps_save(), do_us(), DST_write_line(), dump_defn_1(), dump_instruction_fus(), e_wsue_mp(), emit_gnu_type(), f_end_com(), FIX_PROC_HEAD(), format_write(), gcov_write_block(), ggc_pch_finish(), ggc_pch_write_object(), gt_pch_save(), KAPI_save_as_header_BitVector_struct(), KAPI_save_as_header_Enum(), KAPI_save_as_header_int(), KAPI_save_as_header_MachineDescription_saver(), KAPI_save_as_header_name(), KAPI_save_as_header_String(), KAPI_save_as_header_String_always(), KAPI_save_as_header_uint(), KDumpBin_DumpBitVector(), KDumpBin_DumpBundleInfo(), KDumpBin_DumpClusterInfo(), KDumpBin_DumpFunctionalUnitInfo(), KDumpBin_DumpInstructionInfo(), KDumpBin_DumpInstructionTypeInfo(), KDumpBin_DumpInterClusterBypassInfo(), KDumpBin_DumpIntraClusterBypassInfo(), KDumpBin_DumpMachineDescription(), KDumpBin_DumpPortInfo(), KDumpBin_DumpString(), KDumpBin_DumpSyllableInfo(), KDumpBin_DumpSymbolTableNodeInfo(), kmapi_save_as_header_allinfo_saver(), main(), mcore_emit_base_file_entry(), mpw_fseek(), mpw_fwrite(), output_ascii(), output_gcov_string(), output_mod_info_file(), pch_init(), save_cpp_output(), scan_translation_unit_trad(), test_for_changes(), write_buffer(), write_chunks(), write_macdef(), write_pch_globals(), write_replacement(), write_strlist(), and write_unitdir().
| #define open mpw_open |
Definition at line 117 of file mpw.h.
Referenced by _do_open(), _fio_du_open(), _nl_load_domain(), _PXFOPEN(), bfd_openr_iovec(), c_common_pch_pragma(), cgt_fini(), check_for_whirl(), collect_execute(), compile_resource_file(), create_file(), create_go32_stub(), create_temp_file(), IPA_LNO_WRITE_FILE::Create_Temp_File(), DEFUN(), DRA_Open_And_Map_File(), DRA_Set_Write_Location(), Dump_Rta_Scns(), edit_file(), ELF_object::ELF_object(), ELF_object64::ELF_object64(), elfmap(), Em_Begin_File(), f77_map_datapool_(), f77_map_datapool_pad_(), File_Info::File_Info(), gcov_open(), gs_read(), gs_write(), init_ggc(), ipa_process_whirl_in_archive(), load_file(), load_specs(), load_symbols(), main(), MDclose(), mkstemps(), mpw_open(), nlist(), open_arith_file(), open_counts_file(), open_file(), open_intrinsics_file(), IPA_LNO_WRITE_FILE::Open_Write_File(), pex_djgpp_open_read(), pex_djgpp_open_write(), pex_unix_open_read(), pex_unix_open_write(), process(), process_aux_info_file(), process_include(), Process_Option_File(), read_file(), run_phase(), separate_debug_file_exists(), unwind_init(), and unwind_state_stack_push().
| #define R_OK 4 |
Definition at line 79 of file mpw.h.
Referenced by cif_convert_to_cifconv(), cif_convert_to_lines(), file_exists(), find_file(), if_exists_else_spec_function(), if_exists_spec_function(), include_spec_function(), main(), mpw_access(), process(), process_aux_info_file(), prof_lib_exists(), read_specs(), try(), and try_dir().
| #define W_OK 2 |
Definition at line 80 of file mpw.h.
Referenced by cif_VerifyCanWrite(), do_spec_1(), mpw_access(), munge_compile_params(), try(), try_dir(), and update_rii_file().
| #define X_OK 1 |
Definition at line 81 of file mpw.h.
Referenced by access_check(), execute(), find_a_file(), main(), make_relative_prefix(), mpw_access(), try(), try_dir(), and update_path().
| int fstat | ( | ) |
| int mpw_access | ( | ) |
| int mpw_creat | ( | ) |
| FILE* mpw_fopen | ( | ) |
| int mpw_fread | ( | ) |
| int mpw_fseek | ( | ) |
| int mpw_fwrite | ( | ) |
| int mpw_open | ( | ) |
1.5.6