home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GRIPS 2: Government Rast…rocessing Software & Data
/
GRIPS_2.cdr
/
dos
/
ncsa_tel
/
contribu
/
byu_tel2.hqx
/
tcpip
/
macbinary.h
< prev
next >
Wrap
Text File
|
1988-07-15
|
916b
|
39 lines
#define MB_READ 0
#define MB_WRITE 1
#define MB_DISABLE 0x80
typedef struct MBHead { /* MacBinary Header */
char zero1;
char nlen;
char name[63];
char type[4];
char creator[4];
char flags;
char zero2;
char location[6];
char protected;
char zero3;
char dflen[4];
char rflen[4];
char cdate[4];
char mdate[4];
} MBHead;
typedef struct MBFile {
char name[64]; /* The 'C' version of the name */
short
fd, /* Current File Descriptor */
mode, /* Are we reading or writing */
vrefnum, /* The volume reference number */
binary, /* MacBinary active ? */
sector1, /* Are we at the first sector of the file */
fork; /* 0 if we're writing the DF, 1 if were writing the RF */
long
bytes, /* Length of the current fork */
rlen, /* Length of Resource Fork (bytes) */
dlen; /* Length of Data Fork (bytes) */
MBHead
header; /* the first sector... */
} MBFile;