xref: /plan9/sys/src/cmd/rc/fns.h (revision 9b943567965ba040fd275927fbe088656eb8ce4f)
1 void	Abort(void);
2 void	Closedir(int);
3 int	Creat(char*);
4 int	Dup(int, int);
5 int	Dup1(int);
6 int	Eintr(void);
7 int	Executable(char*);
8 void	Execute(word*,  word*);
9 void	Exit(char*);
10 int	ForkExecute(char*, char**, int, int, int);
11 int	Globsize(char*);
12 int	Isatty(int);
13 void	Memcpy(char*, char*, long);
14 void	Noerror(void);
15 int	Opendir(char*);
16 long	Read(int, char*, long);
17 int	Readdir(int, char*, int);
18 long	Seek(int, long, long);
19 void	Trapinit(void);
20 void	Unlink(char*);
21 void	Updenv(void);
22 void	Vinit(void);
23 int	Waitfor(int, int);
24 long	Write(int, char*, long);
25 int	advance(void);
26 int	back(int);
27 void	cleanhere(char*);
28 void	codefree(code*);
29 int	compile(tree*);
30 char *	list2str(word*);
31 int	count(word*);
32 void	deglob(char*);
33 void	dotrap(void);
34 void	freenodes(void);
35 void	freewords(word*);
36 void	globlist(void);
37 int	idchr(int);
38 void	inttoascii(char*, long);
39 void	kinit(void);
40 int	mapfd(int);
41 int	match(char*, char*, int);
42 int	matchfn(char*, char*);
43 char**	mkargv(word*);
44 void	panic(char*, int);
45 void	poplist(void);
46 void	popword(void);
47 void	pprompt(void);
48 void	pushlist(void);
49 void	pushredir(int, int, int);
50 void	pushword(char*);
51 void	readhere(void);
52 word*	searchpath(char*);
53 void	setstatus(char*);
54 void	setvar(char*, word*);
55 void	skipnl(void);
56 void	start(code*, int, var*);
57 int	truestatus(void);
58 void	usage(char*);
59 int	wordchr(int);
60 void	yyerror(char*);
61 int	yylex(void);
62 int	yyparse(void);
63