xref: /original-bsd/usr.bin/mail/extern.h (revision 27393bdf)
1 /*-
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)extern.h	8.2 (Berkeley) 04/20/95
8  */
9 
10 struct name *cat __P((struct name *, struct name *));
11 struct name *delname __P((struct name *, char []));
12 struct name *elide __P((struct name *));
13 struct name *extract __P((char [], int));
14 struct name *gexpand __P((struct name *, struct grouphead *, int, int));
15 struct name *nalloc __P((char [], int));
16 struct name *outof __P((struct name *, FILE *, struct header *));
17 struct name *put __P((struct name *, struct name *));
18 struct name *tailof __P((struct name *));
19 struct name *usermap __P((struct name *));
20 FILE	*Fdopen __P((int, char *));
21 FILE	*Fopen __P((char *, char *));
22 FILE	*Popen __P((char *, char *));
23 FILE	*collect __P((struct header *, int));
24 char	*copy __P((char *, char *));
25 char	*copyin __P((char *, char **));
26 char	*detract __P((struct name *, int));
27 char	*expand __P((char *));
28 char	*getdeadletter __P((void));
29 char	*getname __P((int));
30 char	*hfield __P((char [], struct message *));
31 FILE	*infix __P((struct header *, FILE *));
32 char	*ishfield __P((char [], char[], char *));
33 char	*name1 __P((struct message *, int));
34 char	*nameof __P((struct message *, int));
35 char	*nextword __P((char *, char *));
36 char	*readtty __P((char [], char []));
37 char 	*reedit __P((char *));
38 FILE	*run_editor __P((FILE *, off_t, int, int));
39 char	*salloc __P((int));
40 char	*savestr __P((char *));
41 FILE	*setinput __P((struct message *));
42 char	*skin __P((char *));
43 char	*skip_comment __P((char *));
44 char	*snarf __P((char [], int *));
45 char	*username __P((void));
46 char	*value __P((char []));
47 char	*vcopy __P((char []));
48 char	*yankword __P((char *, char []));
49 int	 Fclose __P((FILE *));
50 int	 More __P((int *));
51 int	 Pclose __P((FILE *));
52 int	 Respond __P((int *));
53 int	 Type __P((int *));
54 int	 _Respond __P((int []));
55 int	 _respond __P((int *));
56 void	 alter __P((char *));
57 int	 alternates __P((char **));
58 void	 announce __P((void));
59 int	 anyof __P((char *, char *));
60 int	 append __P((struct message *, FILE *));
61 int	 argcount __P((char **));
62 void	 assign __P((char [], char []));
63 int	 bangexp __P((char *));
64 int	 blankline __P((char []));
65 void	 brokpipe __P((int));
66 int	 charcount __P((char *, int));
67 int	 check __P((int, int));
68 void	 clob1 __P((int));
69 int	 clobber __P((char **));
70 void	 close_all_files __P((void));
71 int	 cmatch __P((char *, char *));
72 void	 collhup __P((int));
73 void	 collint __P((int));
74 void	 collstop __P((int));
75 void	 commands __P((void));
76 int	 copycmd __P((char []));
77 int	 core __P((void));
78 int	 count __P((struct name *));
79 int	 delete __P((int []));
80 int	 delm __P((int []));
81 int	 deltype __P((int []));
82 void	 demail __P((void));
83 int	 diction __P((const void *, const void *));
84 int	 dosh __P((char *));
85 int	 echo __P((char **));
86 int	 edit1 __P((int *, int));
87 int	 editor __P((int *));
88 void	 edstop __P((void));
89 int	 elsecmd __P((void));
90 int	 endifcmd __P((void));
91 int	 evalcol __P((int));
92 int	 execute __P((char [], int));
93 int	 exwrite __P((char [], FILE *, int));
94 void	 fail __P((char [], char []));
95 int	 file __P((char **));
96 struct grouphead *
97 	 findgroup __P((char []));
98 void	 findmail __P((char *, char *));
99 int	 first __P((int, int));
100 void	 fixhead __P((struct header *, struct name *));
101 void	 fmt __P((char *, struct name *, FILE *, int));
102 int	 folders __P((void));
103 int	 forward __P((char [], FILE *, int));
104 void	 free_child __P((int));
105 int	 from __P((int *));
106 off_t	 fsize __P((FILE *));
107 int	 getfold __P((char *));
108 int	 gethfield __P((FILE *, char [], int, char **));
109 int	 getmsglist __P((char *, int *, int));
110 int	 getrawlist __P((char [], char **, int));
111 int	 getuserid __P((char []));
112 int	 grabh __P((struct header *, int));
113 int	 group __P((char **));
114 void	 hangup __P((int));
115 int	 hash __P((char *));
116 void	 hdrstop __P((int));
117 int	 headers __P((int *));
118 int	 help __P((void));
119 void	 holdsigs __P((void));
120 int	 ifcmd __P((char **));
121 int	 igcomp __P((const void *, const void *));
122 int	 igfield __P((char *[]));
123 int	 ignore1 __P((char *[], struct ignoretab *, char *));
124 int	 igshow __P((struct ignoretab *, char *));
125 void	 intr __P((int));
126 int	 inc __P((void));
127 int	 isdate __P((char []));
128 int	 isdir __P((char []));
129 int	 isfileaddr __P((char *));
130 int	 ishead __P((char []));
131 int	 isign __P((char *, struct ignoretab []));
132 int	 isprefix __P((char *, char *));
133 void	 istrcpy __P((char *, char *));
134 struct cmd *
135 	 lex __P((char []));
136 void	 load __P((char *));
137 struct var *
138 	 lookup __P((char []));
139 int	 mail __P((struct name *,
140 	    struct name *, struct name *, struct name *, char *));
141 void	 mail1 __P((struct header *, int));
142 void	 makemessage __P((FILE *, int));
143 void	 mark __P((int));
144 int	 markall __P((char [], int));
145 int	 matchsender __P((char *, int));
146 int	 matchsubj __P((char *, int));
147 int	 mboxit __P((int []));
148 int	 member __P((char *, struct ignoretab *));
149 void	 mesedit __P((FILE *, int));
150 void	 mespipe __P((FILE *, char []));
151 int	 messize __P((int *));
152 int	 metamess __P((int, int));
153 int	 more __P((int *));
154 int	 newfileinfo __P((int));
155 int	 next __P((int *));
156 int	 null __P((int));
157 void	 panic __P((const char *, ...));
158 void	 parse __P((char [], struct headline *, char []));
159 int	 pcmdlist __P((void));
160 int	 pdot __P((void));
161 void	 prepare_child __P((int, int, int));
162 int	 preserve __P((int *));
163 void	 prettyprint __P((struct name *));
164 void	 printgroup __P((char []));
165 void	 printhead __P((int));
166 int	 puthead __P((struct header *, FILE *, int));
167 int	 putline __P((FILE *, char *));
168 int	 pversion __P((int));
169 void	 quit __P((void));
170 int	 quitcmd __P((void));
171 int	 raise __P((int));
172 int	 readline __P((FILE *, char *, int));
173 void	 register_file __P((FILE *, int, int));
174 void	 regret __P((int));
175 void	 relsesigs __P((void));
176 int	 respond __P((int *));
177 int	 retfield __P((char *[]));
178 int	 rexit __P((int));
179 int	 rm __P((char *));
180 int	 run_command __P((char *, int, int, int, char *, char *, char *));
181 int	 save __P((char []));
182 int	 save1 __P((char [], int, char *, struct ignoretab *));
183 void	 savedeadletter __P((FILE *));
184 int	 saveigfield __P((char *[]));
185 int	 savemail __P((char [], FILE *));
186 int	 saveretfield __P((char *[]));
187 int	 scan __P((char **));
188 void	 scaninit __P((void));
189 int	 schdir __P((char **));
190 int	 screensize __P((void));
191 int	 scroll __P((char []));
192 int	 send __P((struct message *, FILE *, struct ignoretab *, char *));
193 int	 sendmail __P((char *));
194 int	 set __P((char **));
195 int	 setfile __P((char *));
196 void	 setmsize __P((int));
197 void	 setptr __P((FILE *, off_t));
198 void	 setscreensize __P((void));
199 int	 shell __P((char *));
200 void	 sigchild __P((int));
201 void	 sort __P((char **));
202 int	 source __P((char **));
203 void	 spreserve __P((void));
204 void	 sreset __P((void));
205 int	 start_command __P((char *, int, int, int, char *, char *, char *));
206 void	 statusput __P((struct message *, FILE *, char *));
207 void	 stop __P((int));
208 int	 stouch __P((int []));
209 int	 swrite __P((char []));
210 void	 tinit __P((void));
211 int	 top __P((int *));
212 void	 touch __P((struct message *));
213 void	 ttyint __P((int));
214 void	 ttystop __P((int));
215 int	 type __P((int *));
216 int	 type1 __P((int *, int, int));
217 int	 undelete __P((int *));
218 void	 unmark __P((int));
219 char	**unpack __P((struct name *));
220 int	 unread __P((int []));
221 void	 unregister_file __P((FILE *));
222 int	 unset __P((char **));
223 int	 unstack __P((void));
224 void	 vfree __P((char *));
225 int	 visual __P((int *));
226 int	 wait_child __P((int));
227 int	 wait_command __P((int));
228 int	 writeback __P((FILE *));
229