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