]> diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/h/RCS/aliasbr.h,v
Try using -man instead of -mandoc in test-manpages on OpenBSD
[nmh] / docs / historical / mh-6.8.5 / h / RCS / aliasbr.h,v
1 head 1.2;
2 access;
3 symbols;
4 locks; strict;
5 comment @ * @;
6
7
8 1.2
9 date 92.05.12.22.03.31; author jromine; state Exp;
10 branches;
11 next 1.1;
12
13 1.1
14 date 92.05.12.22.02.44; author jromine; state Exp;
15 branches;
16 next ;
17
18
19 desc
20 @@
21
22
23 1.2
24 log
25 @fix ifdefs
26 @
27 text
28 @/* aliasbr.h - definitions for the aliasing system */
29 /* $Id: formatsbr.h,v 1.1 1992/01/23 23:14:54 jromine Exp $ */
30
31
32 extern char *AliasFile; /* mh-alias(5) */
33
34 #define PASSWD "/etc/passwd" /* passwd(5) */
35
36 #define GROUP "/etc/group" /* group(5) */
37
38 #define EVERYONE 200 /* lowest uid for everyone */
39
40 struct aka {
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 */
45 };
46
47 struct adr {
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) */
51 };
52
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 */
59 #ifdef BSD42
60 int h_ngrps; /* number of groups this user belongs to */
61 #endif /* BSD42 */
62 struct home *h_next; /* next home in list */
63 };
64
65 #ifndef MMDFMTS
66 struct home *seek_home ();
67 #endif /* MMDFMTS */
68
69 int alias (), akvisible (), init_pw ();
70 char *akresult (), *akvalue (), *akerror ();
71
72 /* codes returned by alias() */
73
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 */
79
80
81 /* should live here, not in mts.c */
82
83 extern int Everyone;
84 extern char *NoShell;
85 @
86
87
88 1.1
89 log
90 @Initial revision
91 @
92 text
93 @d2 1
94 d34 1
95 a34 1
96 #endif BSD42
97 d40 1
98 a40 1
99 #endif MMDFMTS
100 @