|
|
1.1 ! root 1: #define BUFSIZ 256 ! 2: #define _NFILE 15 ! 3: # ifndef FILE ! 4: extern struct _iobuf { ! 5: int count; ! 6: char *cp; ! 7: char *base; ! 8: char flag; ! 9: char file; ! 10: } _iob[_NFILE]; ! 11: # endif ! 12: ! 13: #define jgetchar() (wait(RCV),rcvchar()) ! 14: #undef exit ! 15: ! 16: #define _IOREAD 01 ! 17: #define _IOWRT 02 ! 18: #define _IOTTY 04 ! 19: #define _IOEOF 010 ! 20: #define _IOERR 020 ! 21: #ifndef NULL ! 22: #define NULL ((char *)0) ! 23: #endif ! 24: #define FILE struct _iobuf ! 25: #define EOF (-1) ! 26: ! 27: #define stdin (&_iob[0]) ! 28: #define stdout (&_iob[1]) ! 29: #define stderr (&_iob[2]) ! 30: #define feof(p) (((p)->flag & _IOEOF) != 0) ! 31: #define ferror(p) (((p)->flag & _IOERR) != 0) ! 32: #define isatty(p) (((p)->flag & _IOTTY) != 0) ! 33: #define fileno(p) ((p)->file) ! 34: ! 35: FILE *fopen(); ! 36: FILE *popen();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.