xref: /plan9-contrib/sys/src/cmd/rc/fns.h (revision 4446a870cd0cc88dde8a2b5b72feb64f4ae5b744)
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(void*, void*, long);
14 void	Noerror(void);
15 int	Opendir(char*);
16 long	Read(int, void*, long);
17 int	Readdir(int, void*, int);
18 void	Trapinit(void);
19 void	Unlink(char*);
20 void	Updenv(void);
21 void	Vinit(void);
22 int	Waitfor(int, int);
23 long	Write(int, void*, long);
24 void	addwaitpid(int);
25 Rune	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(void*);
33 void	delwaitpid(int);
34 void	dotrap(void);
35 void	freenodes(void);
36 void	freewords(word*);
37 void	globlist(void);
38 int	havewaitpid(int);
39 int	idchr(Rune);
40 void	inttoascii(char*, long);
41 void	kinit(void);
42 int	mapfd(int);
43 int	match(void*, void*, int);
44 int	matchfn(void*, void*);
45 char**	mkargv(word*);
46 void	clearwaitpids(void);
47 void	panic(char*, int);
48 void	pathinit(void);
49 void	poplist(void);
50 void	popword(void);
51 void	pprompt(void);
52 void	pushlist(void);
53 void	pushredir(int, int, int);
54 void	pushword(char*);
55 void	readhere(void);
56 word*	searchpath(char*);
57 void	setstatus(char*);
58 void	setvar(char*, word*);
59 void	shuffleredir(void);
60 void	skipnl(void);
61 void	start(code*, int, var*);
62 int	truestatus(void);
63 void	usage(void);
64 int	wordchr(Rune);
65 void	yyerror(char*);
66 int	yylex(void);
67 int	yyparse(void);
68