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