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