|
| #define | basename basename_cannot_be_used_without_a_prototype |
| |
| #define | ACONCAT(ACONCAT_PARAMS) |
| |
| #define | XALLOCA(T) ((T *)alloca(sizeof(T))) |
| |
| #define | XNEW(T) ((T *)xmalloc(sizeof(T))) |
| |
| #define | XCNEW(T) ((T *)xcalloc(1, sizeof(T))) |
| |
| #define | XALLOCA(T) ((T *)alloca(sizeof(T))) |
| |
| #define | XNEW(T) ((T *)xmalloc(sizeof(T))) |
| |
| #define | XCNEW(T) ((T *)xcalloc(1, sizeof(T))) |
| |
| #define | XDUP(T, P) ((T *)xmemdup((P), sizeof(T), sizeof(T))) |
| |
| #define | XDELETE(P) free((void *)(P)) |
| |
| #define | XALLOCAVEC(T, N) ((T *)alloca(sizeof(T) * (N))) |
| |
| #define | XNEWVEC(T, N) ((T *)xmalloc(sizeof(T) * (N))) |
| |
| #define | XCNEWVEC(T, N) ((T *)xcalloc((N), sizeof(T))) |
| |
| #define | XDUPVEC(T, P, N) ((T *)xmemdup((P), sizeof(T) * (N), sizeof(T) * (N))) |
| |
| #define | XRESIZEVEC(T, P, N) ((T *)xrealloc((void *)(P), sizeof(T) * (N))) |
| |
| #define | XDELETEVEC(P) free((void *)(P)) |
| |
| #define | XALLOCAVAR(T, S) ((T *)alloca((S))) |
| |
| #define | XNEWVAR(T, S) ((T *)xmalloc((S))) |
| |
| #define | XCNEWVAR(T, S) ((T *)xcalloc(1, (S))) |
| |
| #define | XDUPVAR(T, P, S1, S2) ((T *)xmemdup((P), (S1), (S2))) |
| |
| #define | XRESIZEVAR(T, P, S) ((T *)xrealloc((P), (S))) |
| |
| #define | XOBNEW(O, T) ((T *)obstack_alloc((O), sizeof(T))) |
| |
| #define | XOBNEWVEC(O, T, N) ((T *)obstack_alloc((O), sizeof(T) * (N))) |
| |
| #define | XOBNEWVAR(O, T, S) ((T *)obstack_alloc((O), (S))) |
| |
| #define | XOBFINISH(O, T) ((T)obstack_finish((O))) |
| |
| #define | _hex_array_size 256 |
| |
| #define | _hex_bad 99 |
| |
| #define | hex_p(c) (hex_value(c) != _hex_bad) |
| |
| #define | hex_value(c) ((unsigned int)_hex_value[(unsigned char)(c)]) |
| |
| #define | PEX_RECORD_TIMES 0x1 |
| |
| #define | PEX_USE_PIPES 0x2 |
| |
| #define | PEX_SAVE_TEMPS 0x4 |
| |
| #define | PEX_LAST 0x1 |
| |
| #define | PEX_SEARCH 0x2 |
| |
| #define | PEX_SUFFIX 0x4 |
| |
| #define | PEX_STDERR_TO_STDOUT 0x8 |
| |
| #define | PEX_BINARY_INPUT 0x10 |
| |
| #define | PEX_BINARY_OUTPUT 0x20 |
| |
| #define | PEX_STDERR_TO_PIPE 0x40 |
| |
| #define | PEX_BINARY_ERROR 0x80 |
| |
| #define | PEXECUTE_FIRST 1 |
| |
| #define | PEXECUTE_LAST 2 |
| |
| #define | PEXECUTE_ONE (PEXECUTE_FIRST + PEXECUTE_LAST) |
| |
| #define | PEXECUTE_SEARCH 4 |
| |
| #define | PEXECUTE_VERBOSE 8 |
| |
| #define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
| |
| #define | alloca(x) _alloca(x) |
| |
| #define | USE_C_ALLOCA 1 |
| |
| #define | C_ALLOCA 1 |
| |
| #define | ASTRDUP(X) |
| |
|
| void | unlock_stream (FILE *) |
| |
| void | unlock_std_streams (void) |
| |
| FILE * | fopen_unlocked (const char *, const char *) |
| |
| FILE * | fdopen_unlocked (int, const char *) |
| |
| FILE * | freopen_unlocked (const char *, const char *, FILE *) |
| |
| char ** | buildargv (const char *) ATTRIBUTE_MALLOC |
| |
| void | freeargv (char **) |
| |
| char ** | dupargv (char **) ATTRIBUTE_MALLOC |
| |
| void expandargv | PARAMS ((int *, char ***)) |
| |
| int writeargv | PARAMS ((char **, FILE *)) |
| |
| const char * | lbasename (const char *) |
| |
| const char * | dos_lbasename (const char *) |
| |
| const char * | unix_lbasename (const char *) |
| |
| char * | lrealpath (const char *) |
| |
| char * | concat (const char *,...) ATTRIBUTE_MALLOC ATTRIBUTE_SENTINEL |
| |
| char * | reconcat (char *, const char *,...) ATTRIBUTE_MALLOC ATTRIBUTE_SENTINEL |
| |
| unsigned long | concat_length (const char *,...) ATTRIBUTE_SENTINEL |
| |
| char * | concat_copy (char *, const char *,...) ATTRIBUTE_SENTINEL |
| |
| char * | concat_copy2 (const char *,...) ATTRIBUTE_SENTINEL |
| |
| int | fdmatch (int fd1, int fd2) |
| |
| char * | getpwd (void) |
| |
| long | get_run_time (void) |
| |
| char * | make_relative_prefix (const char *, const char *, const char *) ATTRIBUTE_MALLOC |
| |
| char * | make_relative_prefix_ignore_links (const char *, const char *, const char *) ATTRIBUTE_MALLOC |
| |
| char * | choose_temp_base (void) ATTRIBUTE_MALLOC |
| |
| char * | make_temp_file (const char *) ATTRIBUTE_MALLOC |
| |
| int | unlink_if_ordinary (const char *) |
| |
| const char * | spaces (int count) |
| |
| int | errno_max (void) |
| |
| const char * | strerrno (int) |
| |
| int | strtoerrno (const char *) |
| |
| char * | xstrerror (int) |
| |
| int | signo_max (void) |
| |
| const char * | strsigno (int) |
| |
| int | strtosigno (const char *) |
| |
| int | xatexit (void(*fn)(void)) |
| |
| void | xexit (int status) ATTRIBUTE_NORETURN |
| |
| void | xmalloc_set_program_name (const char *) |
| |
| void | xmalloc_failed (size_t) ATTRIBUTE_NORETURN |
| |
| void * | xmalloc (size_t) ATTRIBUTE_MALLOC |
| |
| void * | xrealloc (void *, size_t) |
| |
| void * | xcalloc (size_t, size_t) ATTRIBUTE_MALLOC |
| |
| char * | xstrdup (const char *) ATTRIBUTE_MALLOC |
| |
| char * | xstrndup (const char *, size_t) ATTRIBUTE_MALLOC |
| |
| void * | xmemdup (const void *, size_t, size_t) ATTRIBUTE_MALLOC |
| |
| double | physmem_total (void) |
| |
| double | physmem_available (void) |
| |
| unsigned int | xcrc32 (const unsigned char *, int, unsigned int) |
| |
| void | hex_init (void) |
| |
| struct pex_obj * | pex_init (int flags, const char *pname, const char *tempbase) |
| |
| const char * | pex_run (struct pex_obj *obj, int flags, const char *executable, char *const *argv, const char *outname, const char *errname, int *err) |
| |
| const char * | pex_run_in_environment (struct pex_obj *obj, int flags, const char *executable, char *const *argv, char *const *env, const char *outname, const char *errname, int *err) |
| |
| FILE * | pex_input_file (struct pex_obj *obj, int flags, const char *in_name) |
| |
| FILE * | pex_input_pipe (struct pex_obj *obj, int binary) |
| |
| FILE * | pex_read_output (struct pex_obj *, int binary) |
| |
| FILE * | pex_read_err (struct pex_obj *, int binary) |
| |
| int | pex_get_status (struct pex_obj *, int count, int *vector) |
| |
| int | pex_get_times (struct pex_obj *, int count, struct pex_time *vector) |
| |
| void | pex_free (struct pex_obj *) |
| |
| const char * | pex_one (int flags, const char *executable, char *const *argv, const char *pname, const char *outname, const char *errname, int *status, int *err) |
| |
| int | pexecute (const char *, char *const *, const char *, const char *, char **, char **, int) |
| |
| int | pwait (int, int *, int) |
| |
| int | asprintf (char **, const char *,...) ATTRIBUTE_PRINTF_2 |
| |
| int | vasprintf (char **, const char *, va_list) ATTRIBUTE_PRINTF(2 |
| |
| int void | setproctitle (const char *name,...) |
| |
| void * | _alloca (size_t) ATTRIBUTE_MALLOC |
| |