|
|
1.1 ! root 1: /* Copyright (c) 1987 AT&T */ ! 2: /* All Rights Reserved */ ! 3: ! 4: /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */ ! 5: /* The copyright notice above does not evidence any */ ! 6: /* actual or intended publication of such source code. */ ! 7: ! 8: #include <sccsid.h> ! 9: HVERSION(_dmdio, @(#)dmdio.h 1.1.1.2 (5/10/87)); ! 10: ! 11: #define BUFSIZ 100 ! 12: #define _NFILE 8 ! 13: # ifndef FILE ! 14: extern struct _iobuf { ! 15: int count; ! 16: char *cp; ! 17: char *base; ! 18: char flag; ! 19: char file; ! 20: } _iob[_NFILE]; ! 21: # endif ! 22: ! 23: #define jgetchar() (wait(RCV),rcvchar()) ! 24: #define exit() fstx_exit() ! 25: ! 26: #define _IOREAD 01 ! 27: #define _IOWRT 02 ! 28: #define _IOTTY 04 ! 29: #define _IOEOF 010 ! 30: #define _IOERR 020 ! 31: #ifndef NULL ! 32: #define NULL ((char *)0) ! 33: #endif ! 34: #define FILE struct _iobuf ! 35: #define EOF (-1) ! 36: ! 37: #define stdin (&_iob[0]) ! 38: #define stdout (&_iob[1]) ! 39: #define stderr (&_iob[2]) ! 40: #define feof(p) (((p)->flag & _IOEOF) != 0) ! 41: #define ferror(p) (((p)->flag & _IOERR) != 0) ! 42: #define isatty(p) (((p)->flag & _IOTTY) != 0) ! 43: #define fileno(p) ((p)->file) ! 44: ! 45: FILE *fopen(); ! 46: FILE *popen(); ! 47: char *fgets(); ! 48: FILE *freopen(); ! 49:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.