]> git.ipfire.org Git - thirdparty/util-linux.git/blob - include/pwdutils.h
Merge branch 'ci/meson-werror' of https://github.com/t-8ch/util-linux
[thirdparty/util-linux.git] / include / pwdutils.h
1 /*
2 * No copyright is claimed. This code is in the public domain; do with
3 * it what you wish.
4 */
5 #ifndef UTIL_LINUX_PWDUTILS_H
6 #define UTIL_LINUX_PWDUTILS_H
7
8 #include <sys/types.h>
9 #include <pwd.h>
10 #include <grp.h>
11
12 extern struct passwd *xgetpwnam(const char *username, char **pwdbuf);
13 extern struct group *xgetgrnam(const char *groupname, char **grpbuf);
14 extern struct passwd *xgetpwuid(uid_t uid, char **pwdbuf);
15 extern char *xgetlogin(void);
16
17 #endif /* UTIL_LINUX_PWDUTILS_H */
18