2016-11-25 17:18:40 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the UCB release of Plan 9. It is subject to the license
|
|
|
|
* terms in the LICENSE file found in the top-level directory of this
|
|
|
|
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
|
|
|
|
* part of the UCB release of Plan 9, including this file, may be copied,
|
|
|
|
* modified, propagated, or distributed except according to the terms contained
|
|
|
|
* in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
void Abort(void);
|
|
|
|
void Closedir(int);
|
|
|
|
int Creat(char*);
|
|
|
|
int Dup(int, int);
|
|
|
|
int Dup1(int);
|
|
|
|
int Eintr(void);
|
|
|
|
int Executable(char*);
|
|
|
|
void Execute(word*, word*);
|
|
|
|
void Exit(char*);
|
|
|
|
int ForkExecute(char*, char**, int, int, int);
|
|
|
|
int Globsize(char*);
|
|
|
|
int Isatty(int);
|
|
|
|
void Noerror(void);
|
|
|
|
int Opendir(char*);
|
2017-10-18 01:10:06 +02:00
|
|
|
int Read(int, void*, int);
|
2016-11-25 17:18:40 +01:00
|
|
|
int Readdir(int, void*, int);
|
2017-10-18 01:10:06 +02:00
|
|
|
int Seek(int, int, int);
|
2016-11-25 17:18:40 +01:00
|
|
|
void Trapinit(void);
|
|
|
|
void Unlink(char*);
|
|
|
|
void Updenv(void);
|
|
|
|
void Vinit(void);
|
|
|
|
int Waitfor(int, int);
|
2017-10-18 01:10:06 +02:00
|
|
|
int Write(int, void*, int);
|
2016-11-25 17:18:40 +01:00
|
|
|
void addwaitpid(int);
|
|
|
|
int advance(void);
|
|
|
|
int back(int);
|
|
|
|
void cleanhere(char*);
|
|
|
|
void codefree(code*);
|
|
|
|
int compile(tree*);
|
|
|
|
char * list2str(word*);
|
|
|
|
int count(word*);
|
2017-10-18 01:10:06 +02:00
|
|
|
char* deglob(char*);
|
2016-11-25 17:18:40 +01:00
|
|
|
void delwaitpid(int);
|
|
|
|
void dotrap(void);
|
|
|
|
void freenodes(void);
|
|
|
|
void freewords(word*);
|
2017-10-18 01:10:06 +02:00
|
|
|
word* globlist(word*);
|
2016-11-25 17:18:40 +01:00
|
|
|
int havewaitpid(int);
|
|
|
|
int idchr(int);
|
2017-10-18 01:10:06 +02:00
|
|
|
void inttoascii(char*, int);
|
2016-11-25 17:18:40 +01:00
|
|
|
void kinit(void);
|
|
|
|
int mapfd(int);
|
2017-10-18 01:10:06 +02:00
|
|
|
int match(char*, char*, int);
|
2016-11-25 17:18:40 +01:00
|
|
|
char** mkargv(word*);
|
|
|
|
void clearwaitpids(void);
|
|
|
|
void panic(char*, int);
|
|
|
|
void pathinit(void);
|
|
|
|
void poplist(void);
|
|
|
|
void popword(void);
|
|
|
|
void pprompt(void);
|
|
|
|
void pushlist(void);
|
|
|
|
void pushredir(int, int, int);
|
2017-10-18 01:10:06 +02:00
|
|
|
word* pushword(char*);
|
2016-11-25 17:18:40 +01:00
|
|
|
void readhere(void);
|
|
|
|
word* searchpath(char*);
|
|
|
|
void setstatus(char*);
|
|
|
|
void setvar(char*, word*);
|
|
|
|
void skipnl(void);
|
|
|
|
void start(code*, int, var*);
|
|
|
|
int truestatus(void);
|
|
|
|
void usage(char*);
|
|
|
|
int wordchr(int);
|
|
|
|
void yyerror(char*);
|
|
|
|
int yylex(void);
|
|
|
|
int yyparse(void);
|