mirror of
https://github.com/slicer69/doas
synced 2024-09-06 08:32:00 +00:00
![Kimmo Suominen](/assets/img/avatar_default.png)
Calling setusercontext(3) makes per-user temporary storage work (see per_user_tmp in security(7) and rc.conf(5)). May as well also use reallocarray(3) from libc instead of the bundled compat code.
33 lines
759 B
C
33 lines
759 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);
|
|
|
|
#if !defined(__NetBSD__)
|
|
void *reallocarray(void *optr, size_t nmemb, size_t size);
|
|
#endif
|
|
|
|
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);
|
|
|