DOS File Control Blocks: Record I/O and Legacy Compatibility
Understand the DOS FCB layout, DTA hazards, sequential and random records, extended attributes, and when FreeDOS programs should use handles instead.
tag
6 posts
Understand the DOS FCB layout, DTA hazards, sequential and random records, extended attributes, and when FreeDOS programs should use handles instead.
Use DOS function 68h to request a file-handle commit, check carry and AX errors, and understand why it is not a power-loss guarantee.
Use DOS INT 21h AH=42h safely by handling signed CX:DX offsets, carry-flag errors, past-EOF writes, and version-dependent large-file boundaries.
Understand VERIFY ON and OFF in FreeDOS, how DOS write verification differs from checksums, and when to use FC or an independent backup.
Process compressed data with Apple's Compression framework using bounded buffers, explicit finalization, algorithm metadata, and decompression limits.
Stream files and pipes with FileHandle using bounded reads, explicit descriptor ownership, partial-input parsing, and deterministic error cleanup.