Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
back2root:ibm-pc-ms-dos:hardware:informations:file-system-format [2023/03/03 17:43] – [DOS 3.x System File Table and FCB Table Format] frater | back2root:ibm-pc-ms-dos:hardware:informations:file-system-format [2023/03/03 17:52] (Version actuelle) – [Tableau] frater |
---|
| |
| |
==== File Descriptor ==== | ==== File Descriptor Table ==== |
| |
{{tablelayout?rowsHeaderSource=Auto}} | {{tablelayout?rowsHeaderSource=Auto}} |
| 06 | nbytes | file descriptor table of the format (53 bytes each): | | | 06 | nbytes | file descriptor table of the format (53 bytes each): | |
| |
===== DOS 4.0+ System File Table and FCB Table ===== | ==== File Descriptor Table ==== |
| |
| ^ Offset ^ Size ^ Description ^ |
| | 00| word |count of handles referring to this file or zero if file is no longer open | |
| | 02| word |open mode, bit 15 set if file id opened via FCB | |
| | 04| byte |file attribute | |
| | 05| word |device info word | |
| | 07| dword |if char device pointer to device driver header if block device pointer to DOS Device Control Block | |
| | 0B| word |starting cluster of file | |
| | 0D| word |file time | |
| | 0F| word |file date | |
| | 11| dword |file size | |
| | 15| dword |current file position | |
| | 19| word |if block device, relative cluster within file of the last cluster read | |
| | 1B| word |absolute cluster number of last cluster read zero if file has never been read or written | |
| | 1D| word |sector number containing the directory entry | |
| | 1F| byte |number of dir entry within sector | |
| | 20| 11bytes |filename in FCB format | |
| | 2B| dword |SHARE pointer to previous SFT sharing same file | |
| | 2F| word |SHARE number of network machine opening file | |
| | 31| word |PSP segment of file owner | |
| | 33| word |offset within SHARE code segment of sharing record 0000h = none | |
| |
| ===== DOS 4.0+ System File Table and FCB Table ===== |
| |
Offset Size Description | ^ Offset ^ Size ^ Description ^ |
| | 00 | dword | pointer to next system file table; offset of ffffh indicates last table in chain | |
| | 04 | word | number of file descriptors in table | |
| | 06 | nbytes | file descriptor table of the format (59 bytes each): | |
| |
00 dword pointer to next system file table; offset of ffffh | ==== File Descriptor Table ==== |
indicates last table in chain | {{tablelayout?rowsHeaderSource=Auto}} |
04 word number of file descriptors in table | ^ Offset ^ Size ^ Description ^ |
06 nbytes file descriptor table of the format (59 bytes each): | | 00 | word | count of handles referring to this file or zero if file is no longer open | |
| | 02 | word | open mode, bit 15 set if file id opened via FCB | |
Offset Size Description | | 04 | byte | file attribute | |
| | 05 | word | device info word | |
00 word count of handles referring to this file or | | 07 | dword | if char device pointer to device driver header if block device pointer to DOS Device Control Block or REDIR data | |
zero if file is no longer open | | 0B | word | starting cluster of file | |
02 word open mode, bit 15 set if file id opened via FCB | | 0D | word | file time | |
04 byte file attribute | | 0F | word | file date | |
05 word device info word | | 11 | dword | file size | |
07 dword if char device pointer to device driver header | | 15 | dword | current file position | |
if block device pointer to DOS Device Control Block | | 19 | dword | if network redirector, pointer to REDIRIFS record word if local block dev, relative cluster within file of the last cluster read | |
or REDIR data | | 1B | dword | if local, sector number of directory entry | |
0B word starting cluster of file | | 1F | byte | if local, number of directory entry within sector | |
0D word file time | | 20 | 11bytes | filename in FCB format | |
0F word file date | | 2B | dword | SHARE pointer to previous SFT sharing same file | |
11 dword file size | | 2F | word | SHARE number of network machine opening file | |
15 dword current file position | | 31 | word | PSP segment of file owner | |
19 dword if network redirector, pointer to REDIRIFS record | | 33 | word | offset within SHARE code seg of sharing record 0000h = none | |
word if local block dev, relative cluster within file | | 35 | word | absolute cluster number of last cluster read zero if file has never been read or written | |
of the last cluster read | | 37 | dword | pointer to file IFS driver, NULL if native DOS | |
1B dword if local, sector number of directory entry | |
1F byte if local, number of directory entry within sector | |
20 11bytes filename in FCB format | |
2B dword SHARE pointer to previous SFT sharing same file | |
2F word SHARE number of network machine opening file | |
31 word PSP segment of file owner | |
33 word offset within SHARE code seg of sharing record | |
0000h = none | |
35 word absolute cluster number of last cluster read | |
zero if file has never been read or written | |
37 dword pointer to file IFS driver, NULL if native DOS | |
| |
| |