1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef UIDGID_H #define UIDGID_H #include <sys/types.h> struct uidgid { uid_t uid; gid_t gid[61]; int gids; }; /* user */ extern unsigned int uidgid_get(struct uidgid *, char *); /* [:]user[:group[:group]...] */ extern unsigned int uidgids_get(struct uidgid *, char *); #endif