#include <setjmp.h>
int dcc_getcurrentload(void);
void dcc_getloadavg(double loadavg[3]);
int argv_contains(char **argv, const char *s);
int dcc_redirect_fd(int, const char *fname, int);
int str_startswith(const char *head, const char *worm);
char *dcc_gethostname(void);
void dcc_exit(int exitcode) NORETURN;
int dcc_getenv_bool(const char *name, int def_value);
int set_cloexec_flag (int desc, int value);
int dcc_ignore_sigpipe(int val);
int dcc_remove_if_exists(const char *fname);
int dcc_trim_path(const char *compiler_name);
int dcc_set_path(const char *newpath);
char *dcc_abspath(const char *path, int path_len);
int dcc_get_dns_domain(const char **domain_name);
#define str_equal(a, b) (!strcmp((a), (b)))
void dcc_get_proc_stats(int *num_D, int *max_RSS, char **max_RSS_name);
void dcc_get_disk_io_stats(int *n_reads, int *n_writes);
int dcc_dup_part(const char **psrc, char **pdst, const char *sep);
#ifndef HAVE_STRLCPY
size_t strlcpy(char *d, const char *s, size_t bufsize);
#endif
int dcc_tokenize_string(const char *in, char ***argv_ptr);
char *dcc_replace_substring(const char *s,
const char *find, const char *replace);