Annotation of researchv9/jerq/include/CC/jerqio.h, revision 1.1

1.1     ! root        1: #ifndef JERQIO_H
        !             2: #define JERQIO_H
        !             3: #define        BUFSIZ  100
        !             4: #define        _NFILE  8
        !             5: # ifndef FILE
        !             6: extern struct  _iobuf {
        !             7:        int     count;
        !             8:        char    *cp;
        !             9:        char    *base;
        !            10:        char    flag;
        !            11:        char    file;
        !            12: } _iob[_NFILE];
        !            13: # endif
        !            14: 
        !            15: #define jgetchar()     (wait(RCV),rcvchar())
        !            16: #undef exit
        !            17: 
        !            18: #define        _IOREAD 01
        !            19: #define        _IOWRT  02
        !            20: #define _IOTTY 04
        !            21: #define        _IOEOF  010
        !            22: #define        _IOERR  020
        !            23: #ifndef NULL
        !            24: #define        NULL    ((char *)0)
        !            25: #endif
        !            26: #define        FILE    struct _iobuf
        !            27: #define        EOF     (-1)
        !            28: 
        !            29: #define        stdin   (&_iob[0])
        !            30: #define        stdout  (&_iob[1])
        !            31: #define        stderr  (&_iob[2])
        !            32: #define        feof(p)         (((p)->flag & _IOEOF) != 0)
        !            33: #define        ferror(p)       (((p)->flag & _IOERR) != 0)
        !            34: #define isatty(p)      (((p)->flag & _IOTTY) != 0)
        !            35: #define        fileno(p)       ((p)->file)
        !            36: 
        !            37: FILE   *fopen(char *, char *);
        !            38: FILE   *popen(char *, char *);
        !            39: fprintf(FILE *, char * ...);
        !            40: char *sprintf(char *, char * ...);
        !            41: #endif

unix.superglobalmegacorp.com

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