Chapter 2
The DOS unit.

This chapter describes the DOS unit for Free pascal. The DOS unit gives access to some operating system calls related to files, the file system, date and time. Except for the PALMOS target, this unit is available to all supported platforms.

The unit was first written for DOS by Florian Klämpfl. It was ported to LINUX by Mark May1, and enhanced by Michaël Van Canneyt. The AMIGA version was ported by Nils Sjoholm.

Under non-DOS systems, some of the functionality is lost, as it is either impossible or meaningless to implement it. Other than that, the functionality for all operating systems is the same.

This chapter is divided in three sections:


 2.1 Types, Variables, Constants
   Constants
   Types
   Variables
 2.2 Function list by category
   File handling
   Directory and disk handling
   Process handling
   System information
 2.3 Functions and Procedures
   AddDisk
   DiskFree
   DiskSize
   DosExitCode
   DosVersion
   EnvCount
   EnvStr
   Exec
   FExpand
   FindClose
   FindFirst
   FindNext
   FSearch
   FSplit
   GetCBreak
   GetDate
   GetEnv
   GetFAttr
   GetFTime
   GetIntVec
   GetLongName
   GetShortName
   GetTime
   GetVerify
   Intr
   Keep
   MSDos
   PackTime
   SetCBreak
   SetDate
   SetFAttr
   SetFTime
   SetIntVec
   SetTime
   SetVerify
   SwapVectors
   UnPackTime