File:  [Research Unix] / researchv8dc / cmd / p / pad.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv8, HEAD
researchv8 Dan Cross

typedef struct _PCBL{
	struct _PCBL *Pnextp;
	struct _PCBL *Pprevp;
	char *Pbase;		/* Pointer to head of character buffer */
	char *Pptr;		/* Pointer to current read position */
	char *Phiwat;		/* Pointer to high water mark for this buffer */
}_PCBL;		/* Pad circular buffer list */
typedef struct _PAD{
	_PCBL	*Pcbl;		/* Circular list for this file descriptor */
	FILE	*Pfile;		/* Stdio file structure */
}PAD;
#define	Pgetc(p)	(--(p)->Pfile->_cnt>=0? *(p)->Pfile->_ptr++&0377:_Pfilbuf(p))
#define	Pgetchar()	Pgetc(Pstdin)
PAD *Popen();
PAD *Pfopen();
PAD *Pfdopen();

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.