page breaks for 4.4BSD manuals
[unix-history] / usr / src / bin / csh / extern.h
CommitLineData
a0553bd8 1/*-
ed72f0a0
KB
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
a0553bd8
CZ
4 *
5 * %sccs.include.redist.c%
6 *
ed72f0a0 7 * @(#)extern.h 8.1 (Berkeley) %G%
a0553bd8
CZ
8 */
9
4d7b2685
KB
10#include <sys/cdefs.h>
11
a0553bd8 12/*
4d7b2685 13 * csh.c
a0553bd8 14 */
4d7b2685 15int gethdir __P((Char *));
454c2aa3 16void dosource __P((Char **, struct command *));
4d7b2685
KB
17void exitstat __P((void));
18void goodbye __P((void));
19void importpath __P((Char *));
20void initdesc __P((void));
21void pintr __P((int));
22void pintr1 __P((bool));
23void printprompt __P((void));
24void process __P((bool));
25void rechist __P((void));
26void untty __P((void));
abf583a4 27int vis_fputc __P((int, FILE *));
4d7b2685
KB
28
29#ifdef PROF
30void done __P((int));
a0553bd8 31#else
4d7b2685 32void xexit __P((int));
a0553bd8 33#endif
a0553bd8
CZ
34
35/*
4d7b2685 36 * dir.c
a0553bd8 37 */
4d7b2685 38void dinit __P((Char *));
454c2aa3 39void dodirs __P((Char **, struct command *));
4d7b2685
KB
40Char *dcanon __P((Char *, Char *));
41void dtildepr __P((Char *, Char *));
42void dtilde __P((void));
454c2aa3 43void dochngd __P((Char **, struct command *));
4d7b2685 44Char *dnormalize __P((Char *));
454c2aa3
CZ
45void dopushd __P((Char **, struct command *));
46void dopopd __P((Char **, struct command *));
4d7b2685
KB
47struct directory;
48void dfree __P((struct directory *));
a0553bd8
CZ
49
50/*
4d7b2685 51 * dol.c
a0553bd8 52 */
4d7b2685
KB
53void Dfix __P((struct command *));
54Char *Dfix1 __P((Char *));
55void heredoc __P((Char *));
a0553bd8
CZ
56
57/*
4d7b2685 58 * err.c
a0553bd8 59 */
4d7b2685
KB
60void seterror __P((int, ...));
61void stderror __P((int, ...));
a0553bd8
CZ
62
63/*
4d7b2685 64 * exec.c
a0553bd8 65 */
454c2aa3
CZ
66void doexec __P((Char **, struct command *));
67void dohash __P((Char **, struct command *));
68void dounhash __P((Char **, struct command *));
17b1f379 69void dowhich __P((Char **, struct command *));
454c2aa3
CZ
70void execash __P((Char **, struct command *));
71void hashstat __P((Char **, struct command *));
4d7b2685 72void xechoit __P((Char **));
a0553bd8
CZ
73
74/*
4d7b2685 75 * exp.c
a0553bd8 76 */
c96f7f99 77int expr __P((Char ***));
4d7b2685 78int exp0 __P((Char ***, bool));
a0553bd8
CZ
79
80/*
4d7b2685 81 * file.c
a0553bd8
CZ
82 */
83#ifdef FILEC
4d7b2685 84int tenex __P((Char *, int));
a0553bd8
CZ
85#endif
86
87/*
4d7b2685 88 * func.c
a0553bd8 89 */
4d7b2685 90void Setenv __P((Char *, Char *));
454c2aa3
CZ
91void doalias __P((Char **, struct command *));
92void dobreak __P((Char **, struct command *));
93void docontin __P((Char **, struct command *));
94void doecho __P((Char **, struct command *));
95void doelse __P((Char **, struct command *));
96void doend __P((Char **, struct command *));
97void doeval __P((Char **, struct command *));
98void doexit __P((Char **, struct command *));
99void doforeach __P((Char **, struct command *));
100void doglob __P((Char **, struct command *));
101void dogoto __P((Char **, struct command *));
4d7b2685 102void doif __P((Char **, struct command *));
454c2aa3
CZ
103void dolimit __P((Char **, struct command *));
104void dologin __P((Char **, struct command *));
105void dologout __P((Char **, struct command *));
106void donohup __P((Char **, struct command *));
107void doonintr __P((Char **, struct command *));
17b1f379 108void doprintf __P((Char **, struct command *));
4d7b2685 109void dorepeat __P((Char **, struct command *));
454c2aa3
CZ
110void dosetenv __P((Char **, struct command *));
111void dosuspend __P((Char **, struct command *));
112void doswbrk __P((Char **, struct command *));
113void doswitch __P((Char **, struct command *));
114void doumask __P((Char **, struct command *));
115void dounlimit __P((Char **, struct command *));
116void dounsetenv __P((Char **, struct command *));
117void dowhile __P((Char **, struct command *));
118void dozip __P((Char **, struct command *));
4d7b2685
KB
119void func __P((struct command *, struct biltins *));
120struct biltins *
121 isbfunc __P((struct command *));
122void prvars __P((void));
099eec43 123void gotolab __P((Char *));
4d7b2685 124int srchx __P((Char *));
454c2aa3 125void unalias __P((Char **, struct command *));
4d7b2685 126void wfree __P((void));
a0553bd8
CZ
127
128/*
4d7b2685 129 * glob.c
a0553bd8 130 */
4d7b2685
KB
131Char **dobackp __P((Char *, bool));
132void Gcat __P((Char *, Char *));
133Char *globone __P((Char *, int));
134int Gmatch __P((Char *, Char *));
135void ginit __P((void));
136Char **globall __P((Char **));
137void rscan __P((Char **, void (*)()));
138void tglob __P((Char **));
139void trim __P((Char **));
7226ee77 140#ifdef FILEC
2cc4d01b 141int sortscmp __P((const ptr_t, const ptr_t));
7226ee77 142#endif /* FILEC */
a0553bd8
CZ
143
144/*
4d7b2685 145 * hist.c
a0553bd8 146 */
454c2aa3 147void dohist __P((Char **, struct command *));
4d7b2685
KB
148struct Hist *
149 enthist __P((int, struct wordent *, bool));
150void savehist __P((struct wordent *));
a0553bd8
CZ
151
152/*
4d7b2685 153 * lex.c
a0553bd8 154 */
4d7b2685 155void addla __P((Char *));
c4a58397
CZ
156void bseek __P((struct Ain *));
157void btell __P((struct Ain *));
4d7b2685
KB
158void btoeof __P((void));
159void copylex __P((struct wordent *, struct wordent *));
160Char *domod __P((Char *, int));
161void freelex __P((struct wordent *));
162int lex __P((struct wordent *));
454c2aa3 163void prlex __P((FILE *, struct wordent *));
4d7b2685
KB
164int readc __P((bool));
165void settell __P((void));
166void unreadc __P((int));
a0553bd8
CZ
167
168/*
4d7b2685 169 * misc.c
a0553bd8 170 */
4d7b2685
KB
171int any __P((char *, int));
172Char **blkcat __P((Char **, Char **));
173Char **blkcpy __P((Char **, Char **));
174Char **blkend __P((Char **));
175void blkfree __P((Char **));
176int blklen __P((Char **));
454c2aa3 177void blkpr __P((FILE *, Char **));
4d7b2685
KB
178Char **blkspl __P((Char **, Char **));
179void closem __P((void));
180Char **copyblk __P((Char **));
181int dcopy __P((int, int));
182int dmove __P((int, int));
183void donefds __P((void));
184Char lastchr __P((Char *));
185void lshift __P((Char **, int));
186int number __P((Char *));
187int prefix __P((Char *, Char *));
188Char **saveblk __P((Char **));
189void setzero __P((char *, int));
190Char *strip __P((Char *));
191char *strsave __P((char *));
192char *strspl __P((char *, char *));
193void udvar __P((Char *));
194
4d7b2685 195#ifndef SHORT_STRINGS
4734a71b
CZ
196# ifdef NOTUSED
197char *strstr __P((const char *, const char *));
198# endif /* NOTUSED */
4d7b2685 199char *strend __P((char *));
a0553bd8 200#endif
a0553bd8
CZ
201
202/*
4d7b2685 203 * parse.c
a0553bd8 204 */
4d7b2685
KB
205void alias __P((struct wordent *));
206void freesyn __P((struct command *));
207struct command *
208 syntax __P((struct wordent *, struct wordent *, int));
a0553bd8 209
a0553bd8
CZ
210
211/*
4d7b2685 212 * proc.c
a0553bd8 213 */
454c2aa3
CZ
214void dobg __P((Char **, struct command *));
215void dobg1 __P((Char **, struct command *));
216void dofg __P((Char **, struct command *));
217void dofg1 __P((Char **, struct command *));
218void dojobs __P((Char **, struct command *));
219void dokill __P((Char **, struct command *));
220void donotify __P((Char **, struct command *));
221void dostop __P((Char **, struct command *));
222void dowait __P((Char **, struct command *));
4d7b2685
KB
223void palloc __P((int, struct command *));
224void panystop __P((bool));
225void pchild __P((int));
226void pendjob __P((void));
227struct process *
228 pfind __P((Char *));
229int pfork __P((struct command *, int));
230void pgetty __P((int, int));
231void pjwait __P((struct process *));
232void pnote __P((void));
233void prestjob __P((void));
234void psavejob __P((void));
235void pstart __P((struct process *, int));
236void pwait __P((void));
a0553bd8
CZ
237
238/*
4d7b2685 239 * sem.c
a0553bd8 240 */
4d7b2685
KB
241void execute __P((struct command *, int, int *, int *));
242void mypipe __P((int *));
a0553bd8
CZ
243
244/*
4d7b2685 245 * set.c
a0553bd8 246 */
4d7b2685
KB
247struct varent
248 *adrof1 __P((Char *, struct varent *));
454c2aa3
CZ
249void doset __P((Char **, struct command *));
250void dolet __P((Char **, struct command *));
4d7b2685
KB
251Char *putn __P((int));
252int getn __P((Char *));
253Char *value1 __P((Char *, struct varent *));
254void set __P((Char *, Char *));
255void set1 __P((Char *, Char **, struct varent *));
256void setq __P((Char *, Char **, struct varent *));
454c2aa3 257void unset __P((Char **, struct command *));
4d7b2685
KB
258void unset1 __P((Char *[], struct varent *));
259void unsetv __P((Char *));
260void setNS __P((Char *));
454c2aa3 261void shift __P((Char **, struct command *));
4d7b2685 262void plist __P((struct varent *));
a0553bd8
CZ
263
264/*
4d7b2685 265 * time.c
a0553bd8 266 */
454c2aa3
CZ
267void donice __P((Char **, struct command *));
268void dotime __P((Char **, struct command *));
4d7b2685
KB
269void prusage __P((struct rusage *, struct rusage *,
270 struct timeval *, struct timeval *));
271void ruadd __P((struct rusage *, struct rusage *));
272void settimes __P((void));
273void tvadd __P((struct timeval *, struct timeval *));
274void tvsub __P((struct timeval *, struct timeval *, struct timeval *));
454c2aa3
CZ
275void pcsecs __P((long));
276void psecs __P((long));
a0553bd8
CZ
277
278/*
4df6491c 279 * alloc.c
a0553bd8 280 */
4df6491c
CZ
281void Free __P((ptr_t));
282ptr_t Malloc __P((size_t));
283ptr_t Realloc __P((ptr_t, size_t));
284ptr_t Calloc __P((size_t, size_t));
454c2aa3 285void showall __P((Char **, struct command *));
a0553bd8
CZ
286
287/*
4df6491c 288 * str.c:
a0553bd8
CZ
289 */
290#ifdef SHORT_STRINGS
4df6491c
CZ
291Char *s_strchr __P((Char *, int));
292Char *s_strrchr __P((Char *, int));
293Char *s_strcat __P((Char *, Char *));
a0553bd8 294#ifdef NOTUSED
4df6491c 295Char *s_strncat __P((Char *, Char *, size_t));
a0553bd8 296#endif
4df6491c
CZ
297Char *s_strcpy __P((Char *, Char *));
298Char *s_strncpy __P((Char *, Char *, size_t));
299Char *s_strspl __P((Char *, Char *));
300size_t s_strlen __P((Char *));
301int s_strcmp __P((Char *, Char *));
302int s_strncmp __P((Char *, Char *, size_t));
303Char *s_strsave __P((Char *));
304Char *s_strend __P((Char *));
4df6491c 305Char *s_strstr __P((Char *, Char *));
4df6491c
CZ
306Char *str2short __P((char *));
307Char **blk2short __P((char **));
308char *short2str __P((Char *));
4df6491c 309char **short2blk __P((Char **));
a0553bd8 310#endif
454c2aa3 311char *short2qstr __P((Char *));
abf583a4 312char *vis_str __P((Char *));