minix.fst/records.equ

152 lines
2.3 KiB
Plaintext
Raw Normal View History

2015-08-12 00:04:47 +00:00
2015-08-13 18:05:19 +00:00
;
; n.b. -- __sizeof only works for the record. It does not
; work when actually instantiated. MPW sucks for some reason.
; perhaps it blindly adds the current * to all relative equates....
;
macro
&n begin_struct
&n record 0
__begin equ *
mend
2015-08-12 00:04:47 +00:00
2015-08-13 18:05:19 +00:00
macro
&n end_struct
&n
__end equ *
__sizeof equ __end - __begin
endr
mend
2015-08-12 00:04:47 +00:00
2015-08-13 18:05:19 +00:00
TimeRec begin_struct
2015-08-12 00:04:47 +00:00
second DS.B 1
minute DS.B 1
hour DS.B 1
year DS.B 1
day DS.B 1
month DS.B 1
extra DS.B 1
weekDay DS.B 1
2015-08-13 18:05:19 +00:00
end_struct
DirEntryRecGS begin_struct
pCount DS.W 1
refNum DS.W 1
flags DS.W 1
base DS.W 1
displacement DS.W 1
name DS.L 1
entryNum DS.W 1
fileType DS.W 1
eof DS.L 1
blockCount DS.L 1
createDateTime DS TimeRec
modDateTime DS TimeRec
access DS.W 1
auxType DS.L 1
fileSysID DS.W 1
optionList DS.L 1
resourceEOF DS.L 1
resourceBlocks DS.L 1
end_struct
DirEntryRec begin_struct
refNum DS.B 2
flags DS.B 2
base DS.B 2
displacement DS.B 2
nameBuffer DS.B 4
entryNum DS.B 2
fileType DS.B 2
endOfFile DS.B 4
blockCount DS.B 4
createTime DS TimeRec
modTime DS TimeRec
access DS.B 2
auxType DS.B 4
fileSysID DS.B 2
end_struct
2015-08-12 00:04:47 +00:00
2015-08-13 18:05:19 +00:00
FileInfoRecGS begin_struct
2015-08-12 00:04:47 +00:00
pCount DS.W 1
pathname DS.L 1
access DS.W 1
fileType DS.W 1
auxType DS.L 1
storageType DS.W 1
createDateTime DS TimeRec
modDateTime DS TimeRec
optionList DS.L 1
eof DS.L 1
blocksUsed DS.L 1
resourceEOF DS.L 1
resourceBlocks DS.L 1
2015-08-13 18:05:19 +00:00
end_struct
2015-08-12 00:04:47 +00:00
2015-08-13 18:05:19 +00:00
FileRec begin_struct
2015-08-12 00:04:47 +00:00
pathname DS.B 4
fAccess DS.B 2
fileType DS.B 2
auxType DS.B 4
storageType DS.B 2
createDate DS.B 2
createTime DS.B 2
modDate DS.B 2
modTime DS.B 2
blocksUsed DS.B 4
2015-08-13 18:05:19 +00:00
end_struct
2015-08-12 00:04:47 +00:00
2015-08-13 18:05:19 +00:00
OpenRecGS begin_struct
2015-08-12 00:04:47 +00:00
pCount DS.W 1
refNum DS.W 1
pathname DS.L 1
requestAccess DS.W 1
resourceNumber DS.W 1
access DS.W 1
fileType DS.W 1
auxType DS.L 1
storageType DS.W 1
createDateTime DS TimeRec
modDateTime DS TimeRec
optionList DS.L 1
eof DS.L 1
blocksUsed DS.L 1
resourceEOF DS.L 1
resourceBlocks DS.L 1
2015-08-13 18:05:19 +00:00
end_struct
2015-08-12 00:04:47 +00:00
2015-08-13 18:05:19 +00:00
OpenRec begin_struct
2015-08-12 00:04:47 +00:00
openRefNum DS.B 2
openPathname DS.B 4
ioBuffer DS.B 4
2015-08-13 18:05:19 +00:00
end_struct
2015-08-12 00:04:47 +00:00
2015-08-13 18:05:19 +00:00
VolumeRecGS begin_struct
2015-08-12 00:04:47 +00:00
pCount DS.W 1
devName DS.L 1
volName DS.L 1
totalBlocks DS.L 1
freeBlocks DS.L 1
fileSysID DS.W 1
blockSize DS.W 1
characteristics ds.w 1
deviceID ds.w 1
sizeof equ *
2015-08-13 18:05:19 +00:00
end_struct
2015-08-12 00:04:47 +00:00
2015-08-13 18:05:19 +00:00
VolumeRec begin_struct
2015-08-12 00:04:47 +00:00
deviceName DS.B 4
volName DS.B 4
totalBlocks DS.B 4
freeBlocks DS.B 4
fileSysID DS.B 2
sizeof equ *
2015-08-13 18:05:19 +00:00
end_struct