|
|
1.1 root 1: typedef struct _PCBL{
2: struct _PCBL *Pnextp;
3: struct _PCBL *Pprevp;
4: char *Pbase; /* Pointer to head of character buffer */
5: char *Pptr; /* Pointer to current read position */
6: char *Phiwat; /* Pointer to high water mark for this buffer */
7: }_PCBL; /* Pad circular buffer list */
8: typedef struct _PAD{
9: _PCBL *Pcbl; /* Circular list for this file descriptor */
10: FILE *Pfile; /* Stdio file structure */
11: }PAD;
12: #define Pgetc(p) (--(p)->Pfile->_cnt>=0? *(p)->Pfile->_ptr++&0377:_Pfilbuf(p))
13: #define Pgetchar() Pgetc(Pstdin)
14: PAD *Popen();
15: PAD *Pfopen();
16: PAD *Pfdopen();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.