83
88
size_t strlcpy(char *dst, const char *src, size_t size);
92
int setenv(const char* name, const char* value, int overwrite);
96
int daemon(int nochdir, int noclose);
100
ssize_t getline(char** lineptr, size_t* n, FILE* stream);
103
#ifndef HAVE_GETDELIM
104
ssize_t getdelim(char** lineptr, size_t* n, int delim, FILE* stream);
111
void err_set_file(void *fp);
112
void err_set_exit(void (*ef)(int));
113
void err(int eval, const char *fmt, ...);
114
void verr(int eval, const char *fmt, va_list ap);
115
void errc(int eval, int code, const char *fmt, ...);
116
void verrc(int eval, int code, const char *fmt, va_list ap);
117
void errx(int eval, const char *fmt, ...);
118
void verrx(int eval, const char *fmt, va_list ap);
119
void warn(const char *fmt, ...);
120
void vwarn(const char *fmt, va_list ap);
121
void warnc(int code, const char *fmt, ...);
122
void vwarnc(int code, const char *fmt, va_list ap);
123
void warnx(const char *fmt, ...);
124
void vwarnx(const char *fmt, va_list ap);
131
#ifndef _PATH_DEVNULL
132
#define _PATH_DEVNULL "/dev/null"
136
#define _PATH_TMP "/tmp"
86
139
#endif /* _COMPAT_H_ */