]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/uid.h
Changed the datatypes in uidgidset to be uid_t and gid_t rather than int.
[netatalk.git] / etc / afpd / uid.h
1 /*
2  * $Id: uid.h,v 1.4 2001-08-15 01:13:25 samnoble Exp $
3  * code: jeff@univrel.pr.uconn.edu
4  */
5
6 #ifndef AFPD_UID_H
7 #define AFPD_UID_H 1
8
9 #ifdef FORCE_UIDGID
10
11 /* have to make sure struct vol is defined */
12 #include "volume.h"
13
14 /* set up a structure for this */
15 typedef struct uidgidset_t {
16         uid_t uid;
17         gid_t gid;
18 } uidgidset;
19
20 /* functions to save and restore uid/gid pairs */
21 extern void save_uidgid    ( uidgidset ** );
22 extern void restore_uidgid ( uidgidset ** );
23 extern void set_uidgid     ( const struct vol * );
24
25 /* internal functions to convert user and group names to ids */
26 extern int  user_to_uid  ( char * );
27 extern int  group_to_gid ( char * );
28
29 #endif /* FORCE_UIDGID */
30
31 #endif