[next] [prev] [prev-tail] [tail] [up]

## 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 PA L MOS target, this unit is available to all supported platforms.

The unit was first written for D O S by Florian Klämpfl. It was ported to L I N U X by Mark May1, and enhanced by Michaël Van Canneyt. The AM I G A version was ported by Nils Sjoholm.

Under non-D O S 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:

- The first section lists the pre-defined constants, types and variables.
- The second section gives an overview of all functions available, grouped by category.
- The third section describes the functions which appear in the interface part of the DOS unit.

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

[next] [prev] [prev-tail] [front] [up]