summaryrefslogtreecommitdiffstats
path: root/usr/klibc/userdb/getgrgid.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/userdb/getgrgid.c')
-rw-r--r--usr/klibc/userdb/getgrgid.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/usr/klibc/userdb/getgrgid.c b/usr/klibc/userdb/getgrgid.c
new file mode 100644
index 0000000..549aec3
--- /dev/null
+++ b/usr/klibc/userdb/getgrgid.c
@@ -0,0 +1,18 @@
+/*
+ * getgrgid.c
+ *
+ * Dummy getgrgid() to support udev
+ */
+
+#include <grp.h>
+
+#include "userdb.h"
+
+struct group *getgrgid(gid_t gid)
+{
+ if (!gid)
+ return (struct group *)&__root_group;
+
+ errno = ENOENT;
+ return NULL;
+}