summary refs log tree commit diff
path: root/src/uidgid.h
blob: 13cacbc4286e453e7fdf22cc335345d6ac7357b0 (plain) (blame)
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