summaryrefslogtreecommitdiff
path: root/uidgid.h
diff options
context:
space:
mode:
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