Content deleted Content added
No edit summary |
m Reverted edits by Amran_Uddin (talk) (HG) (3.4.13) |
||
(20 intermediate revisions by 20 users not shown) | |||
Line 1:
{{More references|date=December 2009}}
The '''Job File Table''' (JFT) is a [[DOS]] data structure in the [[Program Segment Prefix]] (PSP). It starts at PSP offset 0x18 and is 20 bytes long. For each open file handle,
When a program starts, the first 5 entries in the JFT are preconnected to the standard devices. All other handles are marked as closed by setting the value of the entry to 0xFF. The standard devices are initialised as follows:
Handle Description▼
Handles 0-2 are connected to the console device. During programm execution they can get modified (closed, redirected) like any other handle.▼
{| class="wikitable"
Because the size of the JFT in the PSP is 20 bytes, you could originally only open 15 files (20-5 standard devices). As of MS-DOS 3.3 the Extended Job File Table was introduced, which allowed to open up to 255 files.▼
! Handle
|-
| 0
| [[stdin|Standard input]]
|-
| 1
| [[stdout|Standard output]]
|-
| 2
| [[stderr|Standard error]]
|-
| 3
| [[COM1]]
|-
| 4
| [[LPT1]]
|}<ref>{{Cite web|url=https://en.wikibooks.org/wiki/First_steps_towards_system_programming_under_MS-DOS_7/Appendix#A.01-4_System_File_Table_structure|title = First steps towards system programming under MS-DOS 7/Appendix - Wikibooks, open books for an open world}}</ref>
▲Handles 0-2 are connected to the console device. During
▲Because the size of the JFT in the PSP is limited to 20 bytes,
As of MS-DOS 3.30, the size of the JFT can be modified with a call to <code>INT 21h, 67h</code>.
==References==
<references />
[[Category:DOS technology]]
|