summaryrefslogtreecommitdiff
path: root/LibC/grp.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-06 22:27:51 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-06 22:27:51 +0100
commit90bab5ea717682d819609e9238ab6785a450b696 (patch)
tree3351641a076ff2de7baeee33d1fc2ed4110bae24 /LibC/grp.h
parente5e0bffd769ed29c42dc07e70dc40639b6ba51c7 (diff)
downloadserenity-90bab5ea717682d819609e9238ab6785a450b696.zip
Add getgrent() family of functions.
Diffstat (limited to 'LibC/grp.h')
-rw-r--r--LibC/grp.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/LibC/grp.h b/LibC/grp.h
new file mode 100644
index 0000000000..e29d4b9545
--- /dev/null
+++ b/LibC/grp.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+
+__BEGIN_DECLS
+
+struct group {
+ char* gr_name;
+ char* gr_passwd;
+ gid_t gr_gid;
+ char** gr_mem;
+};
+
+struct group* getgrent();
+void setgrent();
+void endgrent();
+struct group* getgrnam(const char* name);
+struct group* getgrgid(gid_t);
+
+__END_DECLS