File:  [WindowsNT SDKs] / mstools / posix / samples / psxarc / buf.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:24:38 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993

#ifndef _BUF_
#define _BUF_

//
// Extern declarations and so forth for buffer-management routines.
//

typedef struct _BUF {
	char data[512];			// tar depends on this 512
	int offset;			// offset into data
	int count;			// how many bytes available?
	int fd;
	int mode;
} BUF, *PBUF;

PBUF bopen(const char *file, int mode);
PBUF bfdopen(int fd, int mode);
void bclose(PBUF pb);
int bread(PBUF pb, void *buf, int len);
int bwrite(PBUF pb, void *buf, int len);
void bfill(PBUF pb);
void bflush(PBUF pb);
void brewind(PBUF pb);
int bgetc(PBUF pb);
void bputc(PBUF pb, int c);

#endif // _BUF_

unix.superglobalmegacorp.com

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