Add new closefrom() function

Code taken from sudo, man page from FreeBSD.
This commit is contained in:
Guillem Jover
2011-12-31 08:39:44 +01:00
parent 3d614131b5
commit 943939d0e5
8 changed files with 222 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ int bsd_getopt(int argc, char * const argv[], const char *shortopts);
mode_t getmode(const void *set, mode_t mode);
void *setmode(const char *mode_str);
void closefrom(int lowfd);
void setproctitle(const char *fmt, ...);
int getpeereid(int s, uid_t *euid, gid_t *egid);