2016-10-14 06:21:17 -05:00
|
|
|
#ifndef UTIL_LINUX_PWDUTILS_H
|
|
|
|
#define UTIL_LINUX_PWDUTILS_H
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <pwd.h>
|
2020-04-15 07:49:54 -05:00
|
|
|
#include <grp.h>
|
2016-10-14 06:21:17 -05:00
|
|
|
|
|
|
|
extern struct passwd *xgetpwnam(const char *username, char **pwdbuf);
|
2020-04-15 07:49:54 -05:00
|
|
|
extern struct group *xgetgrnam(const char *groupname, char **grpbuf);
|
2019-09-21 13:50:20 -05:00
|
|
|
extern struct passwd *xgetpwuid(uid_t uid, char **pwdbuf);
|
2016-10-14 08:02:01 -05:00
|
|
|
extern char *xgetlogin(void);
|
2016-10-14 06:21:17 -05:00
|
|
|
|
|
|
|
#endif /* UTIL_LINUX_PWDUTILS_H */
|
|
|
|
|