diff options
author | Karel Zak | 2016-10-14 13:21:17 +0200 |
---|---|---|
committer | Karel Zak | 2017-09-18 11:48:56 +0200 |
commit | 4f5f35fc83067b2c4874fce00ea0b53ef2488489 (patch) | |
tree | 78a973ea1f65700bdd1ce891e6ad83bbf43194ca /include | |
parent | su: consolidate tty name usage (diff) | |
download | kernel-qcow2-util-linux-4f5f35fc83067b2c4874fce00ea0b53ef2488489.tar.gz kernel-qcow2-util-linux-4f5f35fc83067b2c4874fce00ea0b53ef2488489.tar.xz kernel-qcow2-util-linux-4f5f35fc83067b2c4874fce00ea0b53ef2488489.zip |
login: add xgetpwnam()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/Makemodule.am | 1 | ||||
-rw-r--r-- | include/pwdutils.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/Makemodule.am b/include/Makemodule.am index bed548908..2415b0ed8 100644 --- a/include/Makemodule.am +++ b/include/Makemodule.am @@ -19,6 +19,7 @@ dist_noinst_HEADERS += \ include/fileutils.h \ include/idcache.h \ include/ismounted.h \ + include/pwdutils.h \ include/linux_version.h \ include/list.h \ include/loopdev.h \ diff --git a/include/pwdutils.h b/include/pwdutils.h new file mode 100644 index 000000000..c2967d315 --- /dev/null +++ b/include/pwdutils.h @@ -0,0 +1,10 @@ +#ifndef UTIL_LINUX_PWDUTILS_H +#define UTIL_LINUX_PWDUTILS_H + +#include <sys/types.h> +#include <pwd.h> + +extern struct passwd *xgetpwnam(const char *username, char **pwdbuf); + +#endif /* UTIL_LINUX_PWDUTILS_H */ + |