Annotation of researchv9/libc/stdio/stdio.h, revision 1.1.1.1

1.1       root        1: #define        BUFSIZ  4096
                      2: #define        _NFILE  120
                      3: # ifndef FILE
                      4: extern struct  _iobuf {
                      5:        int     _cnt;
                      6:        unsigned char   *_ptr;
                      7:        unsigned char   *_base;
                      8:        short   _flag;
                      9:        char    _file;
                     10: } _iob[_NFILE];
                     11: # endif
                     12: 
                     13: #define        _IOREAD 01
                     14: #define        _IOWRT  02
                     15: #define        _IONBF  04
                     16: #define        _IOMYBUF        010
                     17: #define        _IOEOF  020
                     18: #define        _IOERR  040
                     19: #define        _IOSTRG 0100
                     20: #define        _IOLBF  0200
                     21: #define        _IORW   0400
                     22: #define        NULL    0
                     23: #define        FILE    struct _iobuf
                     24: #define        EOF     (-1)
                     25: 
                     26: #define        stdin   (&_iob[0])
                     27: #define        stdout  (&_iob[1])
                     28: #define        stderr  (&_iob[2])
                     29: #define        getc(p)         (--(p)->_cnt>=0? (int)*(p)->_ptr++:_filbuf(p))
                     30: #define        getchar()       getc(stdin)
                     31: #define putc(x,p) (--(p)->_cnt>=0? ((int)(*(p)->_ptr++=(x))):_flsbuf((x),p))
                     32: #define        putchar(x)      putc(x,stdout)
                     33: #define        feof(p)         (((p)->_flag&_IOEOF)!=0)
                     34: #define        ferror(p)       (((p)->_flag&_IOERR)!=0)
                     35: #define        fileno(p)       ((p)->_file)
                     36: 
                     37: FILE   *fopen();
                     38: FILE   *fdopen();
                     39: FILE   *freopen();
                     40: long   ftell();
                     41: char   *fgets();
                     42: 
                     43: #define        P_tmpdir        "/tmp/"
                     44: #define        L_tmpnam        (sizeof(P_tmpdir) + 15)

unix.superglobalmegacorp.com

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