summaryrefslogtreecommitdiffstats
path: root/include/pwdutils.h
diff options
context:
space:
mode:
authorKarel Zak2016-10-14 13:21:17 +0200
committerKarel Zak2017-09-18 11:48:56 +0200
commit4f5f35fc83067b2c4874fce00ea0b53ef2488489 (patch)
tree78a973ea1f65700bdd1ce891e6ad83bbf43194ca /include/pwdutils.h
parentsu: consolidate tty name usage (diff)
downloadkernel-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/pwdutils.h')
-rw-r--r--include/pwdutils.h10
1 files changed, 10 insertions, 0 deletions
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 */
+