9 date 92.05.12.22.03.31; author jromine; state Exp;
14 date 92.05.12.22.02.44; author jromine; state Exp;
28 @/* aliasbr.h - definitions for the aliasing system */
29 /* $Id: formatsbr.h,v 1.1 1992/01/23 23:14:54 jromine Exp $ */
32 extern char *AliasFile; /* mh-alias(5) */
34 #define PASSWD "/etc/passwd" /* passwd(5) */
36 #define GROUP "/etc/group" /* group(5) */
38 #define EVERYONE 200 /* lowest uid for everyone */
41 char *ak_name; /* name to match against */
42 struct adr *ak_addr; /* list of addresses that it maps to */
43 struct aka *ak_next; /* next aka in list */
44 char ak_visible; /* should be visible in headers */
48 char *ad_text; /* text of this address in list */
49 struct adr *ad_next; /* next adr in list */
50 char ad_local; /* text is local (check for expansion) */
53 struct home { /* incore version of /etc/passwd */
54 char *h_name; /* user name */
55 int h_uid; /* user id */
56 int h_gid; /* user's group */
57 char *h_home; /* user's home directory */
58 char *h_shell; /* user's shell */
60 int h_ngrps; /* number of groups this user belongs to */
62 struct home *h_next; /* next home in list */
66 struct home *seek_home ();
69 int alias (), akvisible (), init_pw ();
70 char *akresult (), *akvalue (), *akerror ();
72 /* codes returned by alias() */
74 #define AK_OK 0 /* file parsed ok */
75 #define AK_NOFILE 1 /* couldn't read file */
76 #define AK_ERROR 2 /* error parsing file */
77 #define AK_LIMIT 3 /* memory limit exceeded */
78 #define AK_NOGROUP 4 /* no such group */
81 /* should live here, not in mts.c */