doas/compat/compat.h
Jesse Smith 705dd9ce24 Reorganized compatibility code and Makefile.
- amalleo25
Provided cleaner fix for crash when user/command has
no valid match in the doas.conf file.
- amalleo25
Removed option to match UID with -u flag. Provided
usernames must now match a username, not UID. This was
ambigious if a user had a numeric username.
- Jesse
2019-09-10 13:56:32 -03:00

31 lines
727 B
C

#include <sys/types.h>
#include <stdarg.h>
#if !defined(__NetBSD__)
void closefrom(int lowfd);
#endif
void errc(int eval, int code, const char *fmt, ...);
int execvpe(const char *file, char * const *argv, char * const *envp);
extern const char *__progname;
const char *getprogname(void);
void *reallocarray(void *optr, size_t nmemb, size_t size);
void setprogname(const char *progname);
int setresuid(uid_t ruid, uid_t euid, uid_t suid);
size_t strlcat(char *dst, const char *src, size_t dsize);
size_t strlcpy(char *dst, const char *src, size_t dsize);
long long strtonum(const char *numstr, long long minval, long long maxval,
const char **errstrp);
void verrc(int eval, int code, const char *fmt, va_list ap);