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