]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/uid.h
half of FORCE_UIDGID commits for afpd (STILL HORRENDOUSLY BROKEN, PROBABLY)
[netatalk.git] / etc / afpd / uid.h
1 /*
2  * $Id: uid.h,v 1.1 2001-01-02 23:00:35 rufustfirefly Exp $
3  * code: jeff@univrel.pr.uconn.edu
4  */
5
6 #ifndef AFPD_UID_H
7 #define AFPD_UID_H 1
8
9 /* have to make sure struct vol is defined */
10 #include "volume.h"
11
12 /* set up a structure for this */
13 typedef struct uidgidset_t {
14         int uid;
15         int gid;
16 } uidgidset;
17
18 /* functions to save and restore uid/gid pairs */
19 extern void save_uidgid    ( uidgidset * );
20 extern void restore_uidgid ( uidgidset * );
21 extern void set_uidgid     ( struct vol * );
22
23 /* internal functions to convert user and group names to ids */
24 extern int  user_to_uid  ( char * );
25 extern int  group_to_gid ( char * );
26
27 #endif