summaryrefslogtreecommitdiff
path: root/uidgid.h
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2015-05-08 23:07:47 -0400
committerjoe <joe@jerkface.net>2015-05-08 23:07:47 -0400
commit220534453eecc2c07ad710d72268aafd20b83138 (patch)
tree469bd5db135e31b7ea908152aa3389b9b1e06d5b /uidgid.h
initial commit
Diffstat (limited to 'uidgid.h')
-rw-r--r--uidgid.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/uidgid.h b/uidgid.h
new file mode 100644
index 0000000..13cacbc
--- /dev/null
+++ b/uidgid.h
@@ -0,0 +1,18 @@
1#ifndef UIDGID_H
2#define UIDGID_H
3
4#include <sys/types.h>
5
6struct uidgid {
7 uid_t uid;
8 gid_t gid[61];
9 int gids;
10};
11
12/* user */
13extern unsigned int uidgid_get(struct uidgid *, char *);
14
15/* [:]user[:group[:group]...] */
16extern unsigned int uidgids_get(struct uidgid *, char *);
17
18#endif