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

### 12.2 Function list by category

What follows is a listing of the available functions, grouped by category. For each function there is a reference to the page where you can find the function.

#### File Input/Output routines

Functions for handling file input/output.

Name Description Page
____________________________________________________________________________

Dup
  Duplicate a file handle 368
Dup2
  Copy one file handle to another 369
Fcntl
  General file control 389
fdClose
  Close file descriptor 378
fdFlush
  Flush file descriptor 379
fdOpen
  Open new file descriptor 379
fdRead
  Read from file descriptor 381
fdSeek
  Position in file 382
fdTruncate
  Truncate file 382
fdWrite
  Write to file descriptor 383
GetFS
  Get file descriptor of pascal file 395
Select
  Wait for input from file descriptor 423
SelectText
  Wait for input from pascal file 424

#### General File handling routines

Functions for handling files on disk.

Name Description Page
____________________________________________________________________________

Access
  Check access rights on file 355
BaseName
  Return name part of file 359
Chown
  Change owner of file 361
Chmod
  Change access rights on file 362
DirName
  Return directory part of file 367
FSplit
  Split filename in parts 385
FExpand
  Return full-grown filename 383
FLock
  Set lock on a file 383
FNMatch
  Match filename to searchpattern 384
FSearch
  Search for a file in a path 385
FSStat
  Return filesystem information 386
FStat
  Return file information 387
FRename
  Rename file 390
LStat
  Return information on a link 407
Link
  Create a link 409
ReadLink
  Read contents of a symbolic link 419
SymLink
  Create a symbolic link 431
Umask
  Set the file creation mask 438
UnLink
  Remove a file 439
Utime
  Change file timestamps 440

#### Pipes, FIFOs and streams

Functions for creating and managing pipes.

Name Description Page
____________________________________________________________________________

AssignPipe
  Create a pipe 357
AssignStream
  Create pipes to program’s input and output 358
MkFifo
  Make a fifo 411
PClose
  Close a pipe 417
POpen
  Open a pipe for to program’s input or output 417

#### Directory handling routines

Functions for reading and searching directories.

Name Description Page
____________________________________________________________________________

CloseDir
  Close directory handle 366
Glob
  Return files matching a search expression 401
GlobFree
  Free result of Glob 402
OpenDir
  Open directory for reading 416
ReadDir
  Read directory entry 419
SeekDir
  Seek directory 422
TellDir
  Seek directory 438

#### Process handling

Functions for managing processes and programs.

Name Description Page
____________________________________________________________________________

Clone
  Create a thread 364
Execl
  Execute process with command-line list 371
Execle
  Execute process with command-line list and environment 372
Execlp
  Search in path and execute process with command list 373
Execv
  Execute process 374
Execve
  Execute process with environment 375
Execvp
  Search in path and execute process 376
Fork
  Spawn child process 390
GetEGid
  Get effective group id 393
GetEnv
  Get environment variable 394
GetEUid
  Get effective user id 394
GetGid
  Get group id 396
GetPid
  Get process id 397
GetPPid
  Get parent process id 398
GetPriority
  Get process priority 398
GetUid
  Get user id 401
Nice
  Change priority of process 414
SetPriority
  Change priority of process 424
Shell
  Execute shell command 425
WaitPid
  Wait for child process to terminate 441

#### Signals

Functions for managing and responding to signals.

Name Description Page
____________________________________________________________________________

Alarm
  Send alarm signal to self 356
Kill
  Send arbitrary signal to process 407
pause
  Wait for signal to arrive 417
SigAction
  Set signal action 425
Signal
  Set signal action 429
SigPending
  See if signals are waiting 427
SigProcMask
  Set signal processing mask 427
SigRaise
  Send signal to self 428
SigSuspend
  Sets signal mask and waits for signal 429
NanoSleep
  Waits for a specific amount of time 413

#### System information

Functions for retrieving system information such as date and time.

Name Description Page
____________________________________________________________________________

GetDate
  Return system date 391
GetDateTime
  Return system date and time 392
GetDomainName
  Return system domain name 392
GetEpochTime
  Return epoch time 395
GetHostName
  Return system host name 397
GetLocalTimezone
  Return system timezone 397
GetTime
  Return system time 399
GetTimeOfDay
  Return system time 400
GetTimezoneFile
  Return name of timezone file 400
ReadTimezoneFile
  Read timezone file contents 422
SysInfo
  Return general system information 433
Uname
  Return system information 439

#### Terminal functions

Functions for controlling the terminal to which the process is connected.

Name Description Page
____________________________________________________________________________

CFMakeRaw
  Set terminal to raw mode 360
CFSetISpeed
  Set terminal reading speed 360
CFSetOSpeed
  Set terminal writing speed 361
IOCtl
  General IO control call 403
IsATTY
  See if filedescriptor is a terminal 404
TCDrain
  Wait till all output was written 434
TCFlow
  Suspend transmission or receipt of data 434
TCFlush
  Discard data written to terminal 435
TCGetAttr
  Get terminal attributes 435
TCGetPGrp
  Return PID of foreground process 436
TCSendBreak
  Send data for specific time 436
TCSetAttr
  Set terminal attributes 437
TCSetPGrp
  Set foreground process 437
TTYName
  Name of tty file 437

#### Port input/output

Functions for reading and writing to the hardware ports.

Name Description Page
____________________________________________________________________________

IOperm
  Set permissions for port access 403
ReadPort
  Read data from port 420
ReadPortB
  Read 1 byte from port 421
ReadPortL
  Read 4 bytes from port 421
ReadPortW
  Read 2 bytes from port 421
WritePort
  Write data to port 441
WritePortB
  Write 1 byte to port 442
WritePortL
  Write 4 bytes to port 442
WritePortW
  Write 2 bytes to port 443

#### Utility routines

Auxiliary functions that are useful in connection with the other functions.

Name Description Page
____________________________________________________________________________

CreateShellArgV
  Create an array of pchars from string 366
EpochToLocal
  Convert epoch time to local time 370
FD__Clr
  Clear item of select filedescriptors 377
FD__IsSet
  Check item of select filedescriptors 378
FD__Set
  Set item of select filedescriptors 378
FD__ZERO
  Clear all items in select filedecriptors 377
LocalToEpoch
  Convert local time to epoch time 410
MMap
  Map a file into memory 411
MUnMap
  Unmap previously mapped memory file 413
Octal
  Convert octal to digital 415
S__ISBLK
  Check file mode for block device 404
S__ISCHR
  Check file mode for character device 404
S__ISDIR
  Check file mode for directory 405
S__ISFIFO
  Check file mode for FIFO 405
S__ISLNK
  Check file mode for symboloc link 405
S__ISREG
  Check file mode for regular file 406
S__ISSOCK
  Check file mode for socket 407
StringToPPchar
  Create an array of pchars from string 430

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