mirror of
https://github.com/ksherlock/minix.fst.git
synced 2024-12-28 13:30:31 +00:00
152 lines
2.3 KiB
Plaintext
152 lines
2.3 KiB
Plaintext
|
|
;
|
|
; 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
|
|
|
|
macro
|
|
&n end_struct
|
|
&n
|
|
__end equ *
|
|
__sizeof equ __end - __begin
|
|
endr
|
|
mend
|
|
|
|
|
|
|
|
TimeRec begin_struct
|
|
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
|
|
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
|
|
|
|
|
|
|
|
FileInfoRecGS begin_struct
|
|
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
|
|
end_struct
|
|
|
|
|
|
FileRec begin_struct
|
|
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
|
|
end_struct
|
|
|
|
OpenRecGS begin_struct
|
|
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
|
|
end_struct
|
|
|
|
OpenRec begin_struct
|
|
openRefNum DS.B 2
|
|
openPathname DS.B 4
|
|
ioBuffer DS.B 4
|
|
end_struct
|
|
|
|
|
|
VolumeRecGS begin_struct
|
|
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 *
|
|
end_struct
|
|
|
|
|
|
VolumeRec begin_struct
|
|
deviceName DS.B 4
|
|
volName DS.B 4
|
|
totalBlocks DS.B 4
|
|
freeBlocks DS.B 4
|
|
fileSysID DS.B 2
|
|
sizeof equ *
|
|
end_struct
|