aboutsummaryrefslogtreecommitdiffstats
path: root/guts/getpwnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/getpwnam.c')
-rw-r--r--guts/getpwnam.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/guts/getpwnam.c b/guts/getpwnam.c
new file mode 100644
index 0000000..04aed89
--- /dev/null
+++ b/guts/getpwnam.c
@@ -0,0 +1,18 @@
+/*
+ * static struct passwd *
+ * wrap_getpwnam(const char *name) {
+ * struct passwd * rc = NULL;
+ */
+ static struct passwd pwd;
+ static char pwbuf[PSEUDO_PWD_MAX];
+ int r_rc;
+
+ r_rc = wrap_getpwnam_r(name, &pwd, pwbuf, PSEUDO_PWD_MAX, &rc);
+ /* different error return conventions */
+ if (r_rc != 0) {
+ errno = r_rc;
+ }
+
+/* return rc;
+ * }
+ */