remake
4.3+dbg-1.5
|
#include <config.h>
#include <alloca.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <stdio.h>
#include <ctype.h>
#include <sys/timeb.h>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
#include <unistd.h>
#include <limits.h>
#include <sys/param.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <locale.h>
#include <gettext.h>
#include <sys/resource.h>
Go to the source code of this file.
Macros | |
#define | HAVE_CONFIG_H 1 |
#define | _GNU_SOURCE 1 |
#define | isblank(c) ((c) == ' ' || (c) == '\t') |
#define | sigmask(sig) (1 << ((sig) - 1)) |
#define | PATH_MAX MAXPATHLEN |
#define | MAXPATHLEN 1024 |
#define | GET_PATH_MAX PATH_MAX |
#define | CHAR_BIT 8 |
#define | INTEGER_TYPE_MINIMUM(t) (! INTEGER_TYPE_SIGNED (t) ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)) |
#define | INTEGER_TYPE_MAXIMUM(t) (~ (t) 0 - INTEGER_TYPE_MINIMUM (t)) |
#define | CHAR_MAX INTEGER_TYPE_MAXIMUM (char) |
#define | S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) |
#define | S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) |
#define | __attribute__(x) |
#define | __format__ format |
#define | __printf__ printf |
#define | ANSI_STRING 1 |
#define | EXIT_SUCCESS 0 |
#define | EXIT_FAILURE 1 |
#define | FILE_TIMESTAMP uintmax_t |
#define | streq(a, b) |
#define | patheq(a, b) streq(a, b) |
#define | strneq(a, b, l) (strncmp ((a), (b), (l)) == 0) |
#define | ENUM_BITFIELD(bits) |
#define | _(msgid) gettext (msgid) |
#define | N_(msgid) gettext_noop (msgid) |
#define | S_(msg1, msg2, num) ngettext (msg1,msg2,num) |
#define | SET_STACK_SIZE |
#define | RECIPEPREFIX_NAME ".RECIPEPREFIX" |
#define | RECIPEPREFIX_DEFAULT '\t' |
#define | MIN(_a, _b) ((_a)<(_b)?(_a):(_b)) |
#define | MAX(_a, _b) ((_a)>(_b)?(_a):(_b)) |
#define | initialize_main(pargc, pargv) |
#define | EINTRLOOP(_v, _c) while (((_v)=_c)==-1 && errno==EINTR) |
Functions | |
void | die (int) |
void | pfatal_with_name (const char *) |
void | perror_with_name (const char *, const char *) |
void * | xmalloc (size_t) |
void * | xcalloc (size_t) |
void * | xrealloc (void *, size_t) |
char * | xstrdup (const char *) |
char * | xstrndup (const char *, size_t) |
char * | next_token (const char *) |
char * | end_of_token (const char *) |
void | collapse_continuations (char *) |
char * | lindex (const char *, const char *, int) |
int | alpha_compare (const void *, const void *) |
void | print_spaces (unsigned int) |
char * | find_percent (char *) |
const char * | find_percent_cached (const char **) |
FILE * | open_tmpfile (char **, const char *) |
int | ar_name (const char *) |
void | ar_parse_name (const char *, char **, char **) |
int | ar_touch (const char *) |
int | ar_member_date (const char *, time_t *) |
int | dir_file_exists_p (const char *, const char *) |
int | file_exists_p (const char *) |
int | file_impossible_p (const char *) |
void | file_impossible (const char *) |
const char * | dir_name (const char *) |
void | hash_init_directories (void) |
void | define_default_variables (void) |
void | set_default_suffixes (void) |
void | install_default_suffix_rules (void) |
void | install_default_implicit_rules (void) |
void | build_vpath_lists (void) |
void | construct_vpath_list (char *pattern, char *dirpath) |
const char * | vpath_search (const char *file, FILE_TIMESTAMP *mtime_ptr, unsigned int *vpath_index, unsigned int *path_index) |
int | gpath_search (const char *file, size_t len) |
void | construct_include_path (const char **arg_dirs) |
void | user_access (void) |
void | make_access (void) |
void | child_access (void) |
char * | strip_whitespace (const char **begpp, const char **endpp) |
void | strcache_init (void) |
void | strcache_print_stats (const char *prefix) |
int | strcache_iscached (const char *str) |
const char * | strcache_add (const char *str) |
long int | atol () |
long int | lseek () |
char * | getcwd () |
Variables | |
int | errno |
struct rlimit | stack_limit |
char ** | environ |
int | just_print_flag |
int | silent_flag |
int | ignore_errors_flag |
int | keep_going_flag |
int | print_data_base_flag |
int | question_flag |
int | touch_flag |
int | always_make_flag |
int | env_overrides |
int | no_builtin_rules_flag |
int | no_builtin_variables_flag |
int | print_version_flag |
int | print_directory_flag |
int | check_symlink_flag |
int | warn_undefined_variables_flag |
int | posix_pedantic |
int | not_parallel |
int | second_expansion |
int | clock_skew_detected |
int | rebuilding_makefiles |
int | one_shell |
int | batch_mode_shell |
char | cmd_prefix |
unsigned int | job_slots |
int | job_fds [2] |
int | job_rfd |
double | max_load_average |
char * | argv0 |
const char *const * | global_argv |
char * | starting_directory |
char * | directory_before_chdir |
unsigned int | makelevel |
char * | version_string |
char * | remote_description |
char * | make_host |
unsigned int | commands_started |
int | handling_fatal_signal |
#define _ | ( | msgid | ) | gettext (msgid) |
Referenced by dbg_cmd_info(), and dbg_cmd_info_program().
#define __attribute__ | ( | x | ) |
#define __format__ format |
#define __printf__ printf |
#define _GNU_SOURCE 1 |
#define ANSI_STRING 1 |
#define CHAR_BIT 8 |
#define CHAR_MAX INTEGER_TYPE_MAXIMUM (char) |
#define EINTRLOOP | ( | _v, | |
_c | |||
) | while (((_v)=_c)==-1 && errno==EINTR) |
#define ENUM_BITFIELD | ( | bits | ) |
#define EXIT_FAILURE 1 |
#define EXIT_SUCCESS 0 |
#define FILE_TIMESTAMP uintmax_t |
#define GET_PATH_MAX PATH_MAX |
#define HAVE_CONFIG_H 1 |
#define initialize_main | ( | pargc, | |
pargv | |||
) |
#define INTEGER_TYPE_MAXIMUM | ( | t | ) | (~ (t) 0 - INTEGER_TYPE_MINIMUM (t)) |
#define INTEGER_TYPE_MINIMUM | ( | t | ) | (! INTEGER_TYPE_SIGNED (t) ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)) |
#define isblank | ( | c | ) | ((c) == ' ' || (c) == '\t') |
#define MAX | ( | _a, | |
_b | |||
) | ((_a)>(_b)?(_a):(_b)) |
#define MAXPATHLEN 1024 |
#define MIN | ( | _a, | |
_b | |||
) | ((_a)<(_b)?(_a):(_b)) |
#define N_ | ( | msgid | ) | gettext_noop (msgid) |
#define PATH_MAX MAXPATHLEN |
#define patheq | ( | a, | |
b | |||
) | streq(a, b) |
#define RECIPEPREFIX_DEFAULT '\t' |
#define RECIPEPREFIX_NAME ".RECIPEPREFIX" |
#define S_ | ( | msg1, | |
msg2, | |||
num | |||
) | ngettext (msg1,msg2,num) |
#define S_ISDIR | ( | mode | ) | (((mode) & S_IFMT) == S_IFDIR) |
#define S_ISREG | ( | mode | ) | (((mode) & S_IFMT) == S_IFREG) |
#define SET_STACK_SIZE |
#define sigmask | ( | sig | ) | (1 << ((sig) - 1)) |
#define streq | ( | a, | |
b | |||
) |
#define strneq | ( | a, | |
b, | |||
l | |||
) | (strncmp ((a), (b), (l)) == 0) |
int alpha_compare | ( | const void * | , |
const void * | |||
) |
int ar_member_date | ( | const char * | , |
time_t * | |||
) |
int ar_name | ( | const char * | ) |
void ar_parse_name | ( | const char * | , |
char ** | , | ||
char ** | |||
) |
int ar_touch | ( | const char * | ) |
long int atol | ( | ) |
void build_vpath_lists | ( | void | ) |
void child_access | ( | void | ) |
void collapse_continuations | ( | char * | ) |
void construct_include_path | ( | const char ** | arg_dirs | ) |
Construct the list of include directories from the arguments and the default list.
void construct_vpath_list | ( | char * | pattern, |
char * | dirpath | ||
) |
void define_default_variables | ( | void | ) |
void die | ( | int | ) |
int dir_file_exists_p | ( | const char * | , |
const char * | |||
) |
const char* dir_name | ( | const char * | ) |
char* end_of_token | ( | const char * | ) |
int file_exists_p | ( | const char * | ) |
void file_impossible | ( | const char * | ) |
int file_impossible_p | ( | const char * | ) |
char* find_percent | ( | char * | ) |
const char* find_percent_cached | ( | const char ** | ) |
char* getcwd | ( | ) |
int gpath_search | ( | const char * | file, |
size_t | len | ||
) |
void hash_init_directories | ( | void | ) |
void install_default_implicit_rules | ( | void | ) |
void install_default_suffix_rules | ( | void | ) |
char* lindex | ( | const char * | , |
const char * | , | ||
int | |||
) |
long int lseek | ( | ) |
void make_access | ( | void | ) |
char* next_token | ( | const char * | ) |
FILE* open_tmpfile | ( | char ** | , |
const char * | |||
) |
void perror_with_name | ( | const char * | , |
const char * | |||
) |
void pfatal_with_name | ( | const char * | ) |
void print_spaces | ( | unsigned | int | ) |
void set_default_suffixes | ( | void | ) |
const char* strcache_add | ( | const char * | str | ) |
void strcache_init | ( | void | ) |
int strcache_iscached | ( | const char * | str | ) |
void strcache_print_stats | ( | const char * | prefix | ) |
char* strip_whitespace | ( | const char ** | begpp, |
const char ** | endpp | ||
) |
void user_access | ( | void | ) |
const char* vpath_search | ( | const char * | file, |
FILE_TIMESTAMP * | mtime_ptr, | ||
unsigned int * | vpath_index, | ||
unsigned int * | path_index | ||
) |
void* xcalloc | ( | size_t | ) |
void* xmalloc | ( | size_t | ) |
void* xrealloc | ( | void * | , |
size_t | |||
) |
char* xstrdup | ( | const char * | ) |
char* xstrndup | ( | const char * | , |
size_t | |||
) |
int always_make_flag |
char* argv0 |
Value of argv[0] which seems to get modified. Can we merge this with program below?
int batch_mode_shell |
int check_symlink_flag |
int clock_skew_detected |
char cmd_prefix |
unsigned int commands_started |
char* directory_before_chdir |
Our current directory before processing any -C options.
int env_overrides |
char** environ |
int errno |
const char* const* global_argv |
Our initial arguments – used for debugger restart execvp.
int handling_fatal_signal |
int ignore_errors_flag |
int job_fds[2] |
int job_rfd |
unsigned int job_slots |
int just_print_flag |
int keep_going_flag |
Referenced by dbg_cmd_show().
char * make_host |
unsigned int makelevel |
Value of the MAKELEVEL variable at startup (or 0).
double max_load_average |
int no_builtin_rules_flag |
int no_builtin_variables_flag |
int not_parallel |
int one_shell |
int posix_pedantic |
int print_data_base_flag |
int print_directory_flag |
int print_version_flag |
int question_flag |
int rebuilding_makefiles |
char * remote_description |
int second_expansion |
int silent_flag |
struct rlimit stack_limit |
char* starting_directory |
Referenced by dbg_cmd_info_line(), and dbg_cmd_info_program().
int touch_flag |
char* version_string |
Referenced by dbg_cmd_show().
int warn_undefined_variables_flag |