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