Annotation of mstools/posix/samples/psxarc/buf.h, revision 1.1

1.1     ! root        1: #ifndef _BUF_
        !             2: #define _BUF_
        !             3: 
        !             4: //
        !             5: // Extern declarations and so forth for buffer-management routines.
        !             6: //
        !             7: 
        !             8: typedef struct _BUF {
        !             9:        char data[512];                 // tar depends on this 512
        !            10:        int offset;                     // offset into data
        !            11:        int count;                      // how many bytes available?
        !            12:        int fd;
        !            13:        int mode;
        !            14: } BUF, *PBUF;
        !            15: 
        !            16: PBUF bopen(const char *file, int mode);
        !            17: PBUF bfdopen(int fd, int mode);
        !            18: void bclose(PBUF pb);
        !            19: int bread(PBUF pb, void *buf, int len);
        !            20: int bwrite(PBUF pb, void *buf, int len);
        !            21: void bfill(PBUF pb);
        !            22: void bflush(PBUF pb);
        !            23: void brewind(PBUF pb);
        !            24: int bgetc(PBUF pb);
        !            25: void bputc(PBUF pb, int c);
        !            26: 
        !            27: #endif // _BUF_

unix.superglobalmegacorp.com

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