#include "config.h"#include "system.h"#include <signal.h>#include "xregex.h"#include "libiberty.h"


Go to the source code of this file.
Data Types | |
| type | test_desc |
| type | fix_desc |
| type | t_gnu_type_map |
Defines | |
| #define | STDIN_FILENO 0 |
| #define | STDOUT_FILENO 1 |
| #define | SIGQUIT SIGTERM |
| #define | SIGIOT SIGTERM |
| #define | SIGPIPE SIGTERM |
| #define | SIGALRM SIGTERM |
| #define | SIGKILL SIGTERM |
| #define | FAILURE (-1) |
| #define | SUCCESS 0 |
| #define | PROBLEM 1 |
| #define | SUCCEEDED(p) ((p) == SUCCESS) |
| #define | SUCCESSFUL(p) SUCCEEDED (p) |
| #define | FAILED(p) ((p) < SUCCESS) |
| #define | HADGLITCH(p) ((p) > SUCCESS) |
| #define | STATIC static |
| #define | tSCC static const char |
| #define | tCC const char |
| #define | tSC static char |
| #define | MAXPATHLEN 4096 |
| #define | EXIT_SUCCESS 0 |
| #define | EXIT_FAILURE 1 |
| #define | EXIT_BROKEN 3 |
| #define | NUL '\0' |
| #define | NOPROCESS ((pid_t) -1) |
| #define | NULLPROCESS ((pid_t)0) |
| #define | EXIT_PANIC 99 |
| #define | IGNORE_ARG(a) ((void)(a)) |
| #define | APPLY_FIX 0 |
| #define | SKIP_FIX 1 |
| #define | ENV_TABLE |
| #define | _ENV_(v, m, n, t) extern tCC* v; |
| #define | FD_MACH_ONLY 0x0000 |
| #define | FD_MACH_IFNOT 0x0001 |
| #define | FD_SHELL_SCRIPT 0x0002 |
| #define | FD_SUBROUTINE 0x0004 |
| #define | FD_REPLACEMENT 0x0008 |
| #define | FD_SKIP_TEST 0x8000 |
| #define | UNLOAD_DATA() free ((void*)pz_curr_data) |
Typedefs | |
| typedef int | t_success |
| typedef int | apply_fix_p_t |
| typedef struct test_desc | tTestDesc |
| typedef struct patch_desc | tPatchDesc |
| typedef struct fix_desc | tFixDesc |
Enumerations | |
| enum | t_bool { BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, BOOL_TRUE, BOOL_FALSE, BOOL_TRUE, t_false, t_true, t_dont_know } |
| enum | te_test_type { TT_TEST, TT_EGREP, TT_NEGREP, TT_FUNCTION, TT_TEST, TT_EGREP, TT_NEGREP, TT_FUNCTION, TT_TEST, TT_EGREP, TT_NEGREP, TT_FUNCTION } |
Functions/Subroutines | |
| char * | load_file_data (FILE *fp) |
| void | compile_re (tCC *pat, regex_t *re, int match, tCC *e1, tCC *e2) |
| void | apply_fix (tFixDesc *p_fixd, tCC *filname) |
| apply_fix_p_t | run_test (tCC *t_name, tCC *f_name, tCC *text) |
| t_bool | mn_get_regexps (regex_t **label_re, regex_t **name_re, tCC *who) |
| void | initialize_opts (void) |
Variables | |
| int | gnu_type_map_ct |
| #define ENV_TABLE |
Value:
_ENV_( pz_machine, BOOL_TRUE, "TARGET_MACHINE", \ "output from config.guess" ) \ \ _ENV_( pz_orig_dir, BOOL_TRUE, "ORIGDIR", \ "directory of fixincl and applyfix" ) \ \ _ENV_( pz_src_dir, BOOL_TRUE, "SRCDIR", \ "directory of original files" ) \ \ _ENV_( pz_input_dir, BOOL_TRUE, "INPUT", \ "current directory for fixincl" ) \ \ _ENV_( pz_dest_dir, BOOL_TRUE, "DESTDIR", \ "output directory" ) \ \ _ENV_( pz_mn_name_pat, BOOL_FALSE, "MN_NAME_PAT", \ "regex matching forbidden identifiers" ) \ \ _ENV_( pz_verbose, BOOL_FALSE, "VERBOSE", \ "amount of user entertainment" ) \ \ _ENV_( pz_find_base, BOOL_TRUE, "FIND_BASE", \ "leader to trim from file names" )
| #define SIGALRM SIGTERM |
Definition at line 57 of file fixlib.h.
Referenced by alarm_(), initialize(), main(), and server_setup().
| #define SIGIOT SIGTERM |
Definition at line 51 of file fixlib.h.
Referenced by general_init(), Handle_Signals(), Init_Signal_Handlers(), initialize(), main(), Opt_Catch_Signals(), and sigdie().
| #define SIGKILL SIGTERM |
Definition at line 60 of file fixlib.h.
Referenced by close_server(), run_phase(), and run_simple_program().
| #define SIGPIPE SIGTERM |
Definition at line 54 of file fixlib.h.
Referenced by catch_signals(), execute(), initialize(), main(), server_setup(), and sig_handler().
| #define SIGQUIT SIGTERM |
Definition at line 48 of file fixlib.h.
Referenced by catch_signals(), Handle_Signals(), Init_Signal_Handlers(), initialize(), main(), Opt_Catch_Signals(), Perform_Interprocedural_Optimization(), run_phase(), run_simple_program(), and scan_prog_file().
| #define UNLOAD_DATA | ( | ) | free ((void*)pz_curr_data) |
| typedef int apply_fix_p_t |
| typedef struct patch_desc tPatchDesc |
| enum t_bool |
| enum te_test_type |
Definition at line 712 of file fixfixes.c.
| apply_fix_p_t run_test | ( | tCC * | t_name, | |
| tCC * | f_name, | |||
| tCC * | text | |||
| ) |
Definition at line 142 of file fixtests.c.
| int gnu_type_map_ct |
1.5.6