37 lines
951 B
C
37 lines
951 B
C
/*
|
|
* 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.
|
|
*/
|
|
|
|
#define EOF (-1)
|
|
#define NBUF 512
|
|
|
|
struct io{
|
|
int fd;
|
|
unsigned char *bufp, *ebuf, *strp;
|
|
unsigned char buf[NBUF];
|
|
};
|
|
io *err;
|
|
|
|
io *openfd(int), *openstr(void), *opencore(char *, int);
|
|
int emptybuf(io*);
|
|
void pchr(io*, int);
|
|
int rchr(io*);
|
|
void closeio(io*);
|
|
void flush(io*);
|
|
int fullbuf(io*, int);
|
|
void pdec(io*, int);
|
|
void poct(io*, unsigned);
|
|
void pptr(io*, void*);
|
|
void pquo(io*, char*);
|
|
void pwrd(io*, char*);
|
|
void pstr(io*, char*);
|
|
void pcmd(io*, tree*);
|
|
void pval(io*, word*);
|
|
void pfnc(io*, thread*);
|
|
void pfmt(io*, char*, ...);
|