1: /* aliasbr.h - definitions for the aliasing system */
2:
3:
4: extern char *AliasFile; /* mh-alias(5) */
5:
6: #define PASSWD "/etc/passwd" /* passwd(5) */
7:
8: #define GROUP "/etc/group" /* group(5) */
9:
10: #define EVERYONE 200 /* lowest uid for everyone */
11:
12: struct aka {
13: char *ak_name; /* name to match against */
14: struct adr *ak_addr; /* list of addresses that it maps to */
15: struct aka *ak_next; /* next aka in list */
16: char ak_visible; /* should be visible in headers */
17: };
18:
19: struct adr {
20: char *ad_text; /* text of this address in list */
21: struct adr *ad_next; /* next adr in list */
22: char ad_local; /* text is local (check for expansion) */
23: };
24:
25: struct home { /* incore version of /etc/passwd */
26: char *h_name; /* user name */
27: int h_uid; /* user id */
28: int h_gid; /* user's group */
29: char *h_home; /* user's home directory */
30: char *h_shell; /* user's shell */
31: #ifdef BSD42
32: int h_ngrps; /* number of groups this user belongs to */
33: #endif BSD42
34: struct home *h_next; /* next home in list */
35: };
36:
37: #ifndef MMDFMTS
38: struct home *seek_home ();
39: #endif MMDFMTS
40:
41: int alias (), akvisible (), init_pw ();
42: char *akresult (), *akvalue (), *akerror ();
43:
44: /* codes returned by alias() */
45:
46: #define AK_OK 0 /* file parsed ok */
47: #define AK_NOFILE 1 /* couldn't read file */
48: #define AK_ERROR 2 /* error parsing file */
49: #define AK_LIMIT 3 /* memory limit exceeded */
50: #define AK_NOGROUP 4 /* no such group */
51:
52:
53: /* should live here, not in mts.c */
54:
55: extern int Everyone;
56: extern char *NoShell;
Defined struct's
adr
defined in line
19; used 9 times
aka
defined in line
12; used 38 times
- in line 15(2)
- in /usr/src/new/mh/uip/ali.c line
44(2),
66(2),
208(2)
- in /usr/src/new/mh/uip/aliasbr.c line
14-15(4),
21(2),
53(2),
80(2),
120(2),
303(2),
326(2),
356(2),
387(2),
441(2),
478-481(6)
- in /usr/src/new/mh/uip/conflict.c line
49(2)
home
defined in line
25; used 40 times
- in line 34-38(4)
- in /usr/src/new/mh/uip/aliasbr.c line
17-22(6),
331(2),
361(2),
390(2),
500-503(6),
529-532(4)
- in /usr/src/new/mh/uip/conflict.c line
50(2),
156(2),
218(2),
264(2),
326(2)
- in /usr/src/new/mh/uip/post.c line
2228(2),
2298(2)
Defined macros
AK_OK
defined in line
46; used 6 times
GROUP
defined in line
8;
never used
PASSWD
defined in line
6;
never used
Usage of this include