diff options
Diffstat (limited to 'bsd-misc.c')
-rw-r--r-- | bsd-misc.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -212,3 +212,25 @@ int setenv(const char *name, const char *value, int overwrite) return(result); } #endif /* !HAVE_SETENV */ + +#ifndef HAVE_SETLOGIN +int setlogin(const char *name) +{ + return(0); +} +#endif /* !HAVE_SETLOGIN */ + +#ifndef HAVE_INNETGR +int innetgr(const char *netgroup, const char *host, + const char *user, const char *domain) +{ + return(0); +} +#endif /* HAVE_INNETGR */ + +#if !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) +int seteuid(uid_t euid) +{ + return(setreuid(-1,euid)); +} +#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */ |