]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/uid.h
FORCE_UIDGID fixes (it compiles properly now with that enabled, but untested)
[netatalk.git] / etc / afpd / uid.h
1 /*
2  * $Id: uid.h,v 1.3 2001-06-27 14:53:16 rufustfirefly 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         int uid;
17         int 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