extern.h revision 1591
1/*-
2 * Copyright (c) 1992, 1993
3 *	The Regents of the University of California.  All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 *    notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 *    notice, this list of conditions and the following disclaimer in the
12 *    documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 *    must display the following acknowledgement:
15 *	This product includes software developed by the University of
16 *	California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 *    may be used to endorse or promote products derived from this software
19 *    without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 *	@(#)extern.h	8.1 (Berkeley) 6/6/93
34 */
35
36struct name *cat __P((struct name *, struct name *));
37struct name *delname __P((struct name *, char []));
38struct name *elide __P((struct name *));
39struct name *extract __P((char [], int));
40struct name *gexpand __P((struct name *, struct grouphead *, int, int));
41struct name *nalloc __P((char [], int));
42struct name *outof __P((struct name *, FILE *, struct header *));
43struct name *put __P((struct name *, struct name *));
44struct name *tailof __P((struct name *));
45struct name *usermap __P((struct name *));
46FILE	*Fdopen __P((int, char *));
47FILE	*Fopen __P((char *, char *));
48FILE	*Popen __P((char *, char *));
49FILE	*collect __P((struct header *, int));
50char	*copy __P((char *, char *));
51char	*copyin __P((char *, char **));
52char	*detract __P((struct name *, int));
53char	*expand __P((char *));
54char	*getdeadletter __P((void));
55char	*getname __P((int));
56char	*hfield __P((char [], struct message *));
57FILE	*infix __P((struct header *, FILE *));
58char	*ishfield __P((char [], char[], char *));
59char	*name1 __P((struct message *, int));
60char	*nameof __P((struct message *, int));
61char	*nextword __P((char *, char *));
62char	*readtty __P((char [], char []));
63char 	*reedit __P((char *));
64FILE	*run_editor __P((FILE *, off_t, int, int));
65char	*salloc __P((int));
66char	*savestr __P((char *));
67FILE	*setinput __P((struct message *));
68char	*skin __P((char *));
69char	*skip_comment __P((char *));
70char	*snarf __P((char [], int *));
71char	*username __P((void));
72char	*value __P((char []));
73char	*vcopy __P((char []));
74char	*yankword __P((char *, char []));
75int	 Fclose __P((FILE *));
76int	 More __P((int *));
77int	 Pclose __P((FILE *));
78int	 Respond __P((int *));
79int	 Type __P((int *));
80int	 _Respond __P((int []));
81int	 _respond __P((int *));
82void	 alter __P((char *));
83int	 alternates __P((char **));
84void	 announce __P((void));
85int	 anyof __P((char *, char *));
86int	 append __P((struct message *, FILE *));
87int	 argcount __P((char **));
88void	 assign __P((char [], char []));
89int	 bangexp __P((char *));
90int	 blankline __P((char []));
91void	 brokpipe __P((int));
92int	 charcount __P((char *, int));
93int	 check __P((int, int));
94void	 clob1 __P((int));
95int	 clobber __P((char **));
96void	 close_all_files __P((void));
97int	 cmatch __P((char *, char *));
98void	 collhup __P((int));
99void	 collint __P((int));
100void	 collstop __P((int));
101void	 commands __P((void));
102int	 copycmd __P((char []));
103int	 core __P((void));
104int	 count __P((struct name *));
105int	 delete __P((int []));
106int	 delm __P((int []));
107int	 deltype __P((int []));
108void	 demail __P((void));
109int	 diction __P((const void *, const void *));
110int	 dosh __P((char *));
111int	 echo __P((char **));
112int	 edit1 __P((int *, int));
113int	 editor __P((int *));
114void	 edstop __P((void));
115int	 elsecmd __P((void));
116int	 endifcmd __P((void));
117int	 evalcol __P((int));
118int	 execute __P((char [], int));
119int	 exwrite __P((char [], FILE *, int));
120void	 fail __P((char [], char []));
121int	 file __P((char **));
122struct grouphead *
123	 findgroup __P((char []));
124void	 findmail __P((char *, char *));
125int	 first __P((int, int));
126void	 fixhead __P((struct header *, struct name *));
127void	 fmt __P((char *, struct name *, FILE *, int));
128int	 folders __P((void));
129int	 forward __P((char [], FILE *, int));
130void	 free_child __P((int));
131int	 from __P((int *));
132off_t	 fsize __P((FILE *));
133int	 getfold __P((char *));
134int	 gethfield __P((FILE *, char [], int, char **));
135int	 getmsglist __P((char *, int *, int));
136int	 getrawlist __P((char [], char **, int));
137int	 getuserid __P((char []));
138int	 grabh __P((struct header *, int));
139int	 group __P((char **));
140void	 hangup __P((int));
141int	 hash __P((char *));
142void	 hdrstop __P((int));
143int	 headers __P((int *));
144int	 help __P((void));
145void	 holdsigs __P((void));
146int	 ifcmd __P((char **));
147int	 igcomp __P((const void *, const void *));
148int	 igfield __P((char *[]));
149int	 ignore1 __P((char *[], struct ignoretab *, char *));
150int	 igshow __P((struct ignoretab *, char *));
151void	 intr __P((int));
152int	 isdate __P((char []));
153int	 isdir __P((char []));
154int	 isfileaddr __P((char *));
155int	 ishead __P((char []));
156int	 isign __P((char *, struct ignoretab []));
157int	 isprefix __P((char *, char *));
158void	 istrcpy __P((char *, char *));
159struct cmd *
160	 lex __P((char []));
161void	 load __P((char *));
162struct var *
163	 lookup __P((char []));
164int	 mail __P((struct name *,
165	    struct name *, struct name *, struct name *, char *));
166void	 mail1 __P((struct header *, int));
167void	 makemessage __P((FILE *));
168void	 mark __P((int));
169int	 markall __P((char [], int));
170int	 matchsender __P((char *, int));
171int	 matchsubj __P((char *, int));
172int	 mboxit __P((int []));
173int	 member __P((char *, struct ignoretab *));
174void	 mesedit __P((FILE *, int));
175void	 mespipe __P((FILE *, char []));
176int	 messize __P((int *));
177int	 metamess __P((int, int));
178int	 more __P((int *));
179int	 newfileinfo __P((void));
180int	 next __P((int *));
181int	 null __P((int));
182void	 panic __P((const char *, ...));
183void	 parse __P((char [], struct headline *, char []));
184int	 pcmdlist __P((void));
185int	 pdot __P((void));
186void	 prepare_child __P((int, int, int));
187int	 preserve __P((int *));
188void	 prettyprint __P((struct name *));
189void	 printgroup __P((char []));
190void	 printhead __P((int));
191int	 puthead __P((struct header *, FILE *, int));
192int	 putline __P((FILE *, char *));
193int	 pversion __P((int));
194void	 quit __P((void));
195int	 quitcmd __P((void));
196int	 raise __P((int));
197int	 readline __P((FILE *, char *, int));
198void	 register_file __P((FILE *, int, int));
199void	 regret __P((int));
200void	 relsesigs __P((void));
201int	 respond __P((int *));
202int	 retfield __P((char *[]));
203int	 rexit __P((int));
204int	 rm __P((char *));
205int	 run_command __P((char *, int, int, int, char *, char *, char *));
206int	 save __P((char []));
207int	 save1 __P((char [], int, char *, struct ignoretab *));
208void	 savedeadletter __P((FILE *));
209int	 saveigfield __P((char *[]));
210int	 savemail __P((char [], FILE *));
211int	 saveretfield __P((char *[]));
212int	 scan __P((char **));
213void	 scaninit __P((void));
214int	 schdir __P((char **));
215int	 screensize __P((void));
216int	 scroll __P((char []));
217int	 send __P((struct message *, FILE *, struct ignoretab *, char *));
218int	 sendmail __P((char *));
219int	 set __P((char **));
220int	 setfile __P((char *));
221void	 setmsize __P((int));
222void	 setptr __P((FILE *));
223void	 setscreensize __P((void));
224int	 shell __P((char *));
225void	 sigchild __P((int));
226void	 sort __P((char **));
227int	 source __P((char **));
228void	 spreserve __P((void));
229void	 sreset __P((void));
230int	 start_command __P((char *, int, int, int, char *, char *, char *));
231void	 statusput __P((struct message *, FILE *, char *));
232void	 stop __P((int));
233int	 stouch __P((int []));
234int	 swrite __P((char []));
235void	 tinit __P((void));
236int	 top __P((int *));
237void	 touch __P((struct message *));
238void	 ttyint __P((int));
239void	 ttystop __P((int));
240int	 type __P((int *));
241int	 type1 __P((int *, int, int));
242int	 undelete __P((int *));
243void	 unmark __P((int));
244char	**unpack __P((struct name *));
245int	 unread __P((int []));
246void	 unregister_file __P((FILE *));
247int	 unset __P((char **));
248int	 unstack __P((void));
249void	 vfree __P((char *));
250int	 visual __P((int *));
251int	 wait_child __P((int));
252int	 wait_command __P((int));
253int	 writeback __P((FILE *));
254