next up previous contents
Next: Debugging your Programs Up: Utilities and units that Previous: Supplied programs

Supplied units

Here we list the units that come with the Free Pascal distribution. Since there is a difference in the supplied units per operating system, we list them separately per system. They are documented in the Unit reference.

Under DOS

strings
This unit provides basic string handling routines for the pchar type, comparable to similar routines in standard C libraries.
objects
This unit provides basic routines for handling objects.
dos
This unit provides basic routines for accessing the operating system DOS. It provides almost the same functionality as the Turbo Pascal unit.
printer
This unit provides all you need for rudimentary access to the printer.
getopts
This unit gives you the gnu getopts command-line arguments handling mechanism. It also supports long options.
crt
This unit provides basic screen handling routines. It provides the same functionality as the Turbo Pascal CRT unit.
graph
This unit provides basic graphics handling, with routines to draw lines on the screen, display texts etc. It provides the same functions as the Turbo Pascal unit.
go32
This unit provides access to possibilities of the GO32 DOS extender.
emu387
This unit provides support for the coprocessor emulator.
mmx
This unit provides support for mmx extensions in your code.

Under Linux

strings
This unit provides basic string handling routines for the PChar type, comparable to similar routines in standard C libraries.
objects
This unit provides basic routines for handling objects.
crt
This unit provides basic screen handling routines. It provides the same functionality Turbo Pascal CRT unit. It works on any terminal which supports the vt100 escape sequences.
dos
This unit provides an emulation of the same unit under DOS. It is intended primarily for easy porting of Pascal programs from DOS to LINUX. For good performance, however, it is recommended to use the linux unit.
linux
This unit provides access to the LINUX operating system. It provides most file and I/O handling routines that you may need. It implements most of the standard C library constructs that you will find on a Unix system. If you do a lot of disk/file operations, the use of this unit is recommended over the one you use under Dos.
printer
This unit provides an interface to the standard Unix printing mechanism.
getopts
This unit gives you the gnu getopts command-line arguments handling mechanism. It also supports long options.
mmx
This unit provides support for mmx extensions in your code.
sockets
This unit gives you access to sockets and TCP/IP programming.
graph
Is an implementation of Borlands graph unit, which works on the Linux console. It's implementation is fairly complete, the only non-functional things are the fillpatterns and line styles. It uses the libvga and libvgagl graphics libraries, so you need these installed for this unit to work. Also, programs using this library need to be run as root, or setuid root, and hence are a potential security risk.
ports
This implements the various port[] constructs. These are provided for compatibility only, and it is not recommended to use them extensively. Programs using this construct must be run as ruit or setuid root, and are a serious security risk on your system.


next up previous contents
Next: Debugging your Programs Up: Utilities and units that Previous: Supplied programs

Michael Van Canneyt
Thu Sep 10 13:56:17 CEST 1998