aboutsummaryrefslogtreecommitdiffstats
path: root/guts/getgrnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/getgrnam.c')
-rw-r--r--guts/getgrnam.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/guts/getgrnam.c b/guts/getgrnam.c
new file mode 100644
index 0000000..191fe25
--- /dev/null
+++ b/guts/getgrnam.c
@@ -0,0 +1,20 @@
+/*
+ * static struct group *
+ * wrap_getgrnam(const char *name) {
+ * struct group * rc = NULL;
+ */
+
+ static struct group grp;
+ static char grbuf[PSEUDO_PWD_MAX];
+ int r_rc;
+
+ r_rc = wrap_getgrnam_r(name, &grp, grbuf, PSEUDO_PWD_MAX, &rc);
+ /* different error return conventions */
+ if (r_rc != 0) {
+ errno = r_rc;
+ }
+
+
+/* return rc;
+ * }
+ */