Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Job File Table
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{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, DOS stores the index into the [[System File Table]] (SFT). A file handle that is returned by <code>open</code>, <code>_open</code>, and other similar functions is simply an index into the JFT where DOS stored the SFT entry index for the file or device that the program opened. 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: {| class="wikitable" ! Handle ! Description |- | 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 program execution they can get modified (closed, redirected) like any other handle. Because the size of the JFT in the PSP is limited to 20 bytes, originally only 15 files (20 minus the 5 standard devices) could be open at a time. In MS-DOS 2.0, the Extended Job File Table was introduced, which allowed up to 254 files to be opened. 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]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite web
(
edit
)
Template:More references
(
edit
)