Sign in Join
FPDoc Onlineexperiment

Unix unit

Extended Unix functionality.

Classes and records

TTZInforecord
TTZInfoExrecord

Procedures and functions

AssignPipefunctionCreate a set of pipe file handlers.
AssignStreamfunctionAssign stream for in and output to a program.
EpochToLocalprocedure
EpochToUniversalprocedure
FpExecLfunctionExecute process (using argument list, environment).
FpExecLEfunctionExecute process (using argument list, environment).
FpExecLPfunctionExecute process (using argument list, environment; search path).
FpExecLPEfunctionExecute a program in the path, and pass it an environment.
FpExecVfunctionExecute process.
FpExecVPfunctionExecute process, search path.
FpExecVPEfunctionExecute process, search path using environment.
fpFlockfunctionLock a file (advisory lock).
fpfStatFSfunctionRetrieve file system information.
fpfsyncfunctionSynchronize file's kernel data with disk.
fpgettimeofdayfunctionReturn kernel time of day in GMT.
fpStatFSfunctionRetrieve file system information.
fpSystemfunctionExecute and feed command to system shell.
FSearchfunctionSearch for file in search path.
GetDomainNamefunctionReturn current domain name.
GetHostNamefunctionReturn host name.
GetLocalTimezonefunctionReturn local timezone information.
GetTimezoneFilefunctionReturn name of timezone information file.
Gettzdaylightfunction
GetTZInfofunction
GetTZInfoExfunction
Gettznamefunction
GetTzsecondsfunction
GregorianToJulianfunction
JulianToGregorianprocedure
LocalToEpochfunction
PClosefunctionClose file opened with .
POpenfunctionPipe file to standard input/output of program.
ReadTimezoneFilefunctionRead the timezone file and initialize time routines.
RefreshTZInfoprocedure
ReReadLocalTimeprocedureRe-Read the local time files.
SeekDirprocedureSeek to position in directory.
SetTZInfoprocedure
TellDirfunctionReturn current location in a directory.
UniversalToEpochfunction
W_EXITCODEfunctionConstruct an exit status based on an return code and signal.
W_STOPCODEfunctionConstruct an exit status based on a signal.
WaitProcessfunctionWait for process to terminate.
WIFSTOPPEDfunctionCheck whether the process is currently stopped.

Types

cbooltypeBoolean type.
cchartypeAlias for .
cdoubletypeDouble precision real format.
cfloattypeFloating-point real format.
cinttypeC type: integer (natural size).
cint16typeC type: 16 bits sized, signed integer.
cint32typeC type: 32 bits sized, signed integer.
cint64typeC type: 64 bits sized, signed integer.
cint8typeC type: 8 bits sized, signed integer.
clock_ttypeClock ticks type.
clongtypeC type: long signed integer (double sized).
clonglongtypeC type: 64-bit (double long) signed integer.
coff_ttypecharacter offset type.
cschartypeSigned character type.
cshorttypeC type: short signed integer (half sized).
csignedtypeSigned integer.
csinttypeSigned integer.
csize_ttypeCharacter size type.
cslongtypeSigned long.
cslonglongtypeSigned longlong type.
csshorttypeShort signed integer type.
cuchartypeAlias for .
cuinttypeC type: unsigned integer (natural size).
cuint16typeC type: 16 bits sized, unsigned integer.
cuint32typeC type: 32 bits sized, unsigned integer.
cuint64typeC type: 64 bits sized, unsigned integer.
cuint8typeC type: 8 bits sized, unsigned integer.
culongtypeC type: long unsigned integer (double sized).
culonglongtypeC type: 64-bit (double long) unsigned integer.
cunsignedtypeAlias for .
cushorttypeC type: short unsigned integer (half sized).
dev_ttypeDevice descriptor type.
gid_ttypeGroup ID type.
ino_ttypeInode type.
mode_ttypeInode mode type.
nlink_ttypeNumber of links type.
off_ttypeOffset type.
pcbooltypePointer to boolean type.
pcchartypeAlias for .
pcdoubletypePointer to cdouble type.
pcfloattypePointer to cfloat type.
pcinttypePointer to type.
pcint16typePointer to 16-bit signed integer type.
pcint32typePointer to signed 32-bit integer type.
pcint64typePointer to signed 64-bit integer type.
pcint8typePointer to 8-bits signed integer type.
pClocktypePointer to type.
pclongtypePointer to type.
pclonglongtypePointer to longlong type.
pcschartypePointer to signed character type.
pcshorttypePointer to type.
pcsignedtypePointer to signed integer.
pcsinttypePointer to signed integer.
pcsize_ttypePointer to character size type pcsize_t.
pcslongtypePointer to signed long.
pcslonglongtypePointer to Signed longlong type.
pcsshorttypePointer to short signed integer type.
pcuchartypeAlias for .
pcuinttypePointer to type.
pcuint16typePointer to 16-bit unsigned integer type.
pcuint32typePointer to unsigned 32-bit integer type.
pcuint64typePointer to unsigned 64-bit integer type.
pcuint8typePointer to 8-bits unsigned integer type.
pculongtypePointer to type.
pculonglongtypeUnsigned longlong type.
pcunsignedtypeAlias for .
pcushorttypePointer to type.
pDevtypePointer to type.
pGidtypePointer to type.
pid_ttypeProcess ID type.
pInotypePointer to type.
pModetypePointer to type.
pnLinktypePointer to type.
pOfftypePointer to type.
pPidtypePointer to type.
pSizetypePointer to type.
pSize_ttypePointer to type Size_t.
pSocklentypePointer to type.
psSizetypePointer to type.
pstatfstypePointer to statfs type.
pthread_cond_ttypeThread conditional variable type.
pthread_mutex_ttypeThread mutex type.
pthread_ttypePOSIX thread type.
pTimetypePointer to type.
ptime_ttypePointer to type.
ptimespectypePointer to type.
ptimevaltypePointer to type.
pUidtypePointer to type.
size_ttypeSize specification type.
socklen_ttypeSocket address length type.
ssize_ttypeSmall size type.
TClocktypeAlias for type.
TDevtypeAlias for type.
TFSearchOptionenumerationDescribes the search strategy used by .
TGidtypeAlias for type.
time_ttypeTime span type.
timespectypeShort time specification type.
timevaltypeTime specification type.
TInotypeAlias for type.
TIOCtlRequesttypeAlias for the TIOCtlRequest type in unixtypes.
TModetypeAlias for type.
TnLinktypeAlias for type.
TOfftypeAlias for type.
TPidtypeAlias for type.
TSizetypeAlias for type.
TSocklentypeAlias for type.
TsSizetypeAlias for type.
tstatfstypeRecord describing a file system in the call.
TTimetypeAlias for type.
TtimespectypeAlias for type.
TTimeValtypeAlias for type.
TUidtypeAlias for type.
tzdaylightpropertyIndicates whether daylight savings time is active.
TZInfoproperty
TZInfoExproperty
tznamepropertyTimezone name.
TzsecondspropertyTimezone offset in seconds.
uid_ttypeUser ID type.

Constants

ARG_MAXconstantMaximum number of arguments to a program.
fs_extconstantFile system type ( ): (ext) Extended.
fs_ext2constantFile system type ( ): (ext2) Second extended.
fs_isoconstantFile system type ( ): ISO 9660.
fs_minixconstantFile system type ( ): Minix.
fs_minix_30constantFile system type ( ): Minix 3.0.
fs_minux_V2constantFile system type ( ): Minix V2.
fs_msdosconstantFile system type ( ): MSDOS (FAT).
fs_nfsconstantFile system type ( ): NFS.
fs_old_ext2constantFile system type ( ): (ext2) Old second extended.
fs_procconstantFile system type ( ): PROC fs.
fs_xiaconstantFile system type ( ): XIA.
IOCtl_TCGETSconstantIOCTL call number: get Terminal Control settings.
LOCK_EXconstantExclusive lock.
LOCK_NBconstantNon-blocking operation.
LOCK_SHconstantShared lock.
LOCK_UNconstantunlock.
MAP_FAILEDconstantError return value for mmap: mmap operation failed.
MAP_FIXEDconstantmap type: Interpret addr exactly.
MAP_PRIVATEconstantmap type: Changes are private.
MAP_SHAREDconstantmap type: Share changes.
MAP_TYPEconstantmap type: Bitmask for type of mapping.
NAME_MAXconstantMaximum filename length.
Open_AccmodeconstantBitmask to determine access mode in open flags.
Open_AppendconstantFile open mode: Append to file.
Open_CreatconstantFile open mode: Create if file does not yet exist.
Open_DirectconstantFile open mode: Minimize caching effects.
Open_DirectoryconstantFile open mode: File must be directory.
Open_ExclconstantFile open mode: Open exclusively.
Open_LargeFileconstantFile open mode: Open for 64-bit I/O.
Open_NDelayconstantFile open mode: Alias for .
Open_NoCttyconstantFile open mode: No TTY control.
Open_NoFollowconstantFile open mode: Fail if file is symbolic link.
Open_NonBlockconstantFile open mode: Open in non-blocking mode.
Open_RdOnlyconstantFile open mode: Read only.
Open_RdWrconstantFile open mode: Read/Write.
Open_SyncconstantFile open mode: Write to disc at once.
Open_TruncconstantFile open mode: Truncate file to length 0.
Open_WrOnlyconstantFile open mode: Write only.
P_INconstantInput file descriptor of pipe pair.
P_OUTconstantOutput file descriptor of pipe pair.
PATH_MAXconstantMaximum pathname length.
PRIO_PGRPconstantoption: Get process group priority.
PRIO_PROCESSconstantoption: Get process priority.
PRIO_USERconstantoption: Get user priority.
PROT_EXECconstantmemory access: page can be executed.
PROT_NONEconstantmemory access: page can not be accessed.
PROT_READconstantmemory access: page can be read.
PROT_WRITEconstantmemory access: page can be written.
SIG_MAXSIGconstantMaximum system signal number.
STAT_IFBLKconstantFile ( record) mode: Block device.
STAT_IFCHRconstantFile ( record) mode: Character device.
STAT_IFDIRconstantFile ( record) mode: Directory.
STAT_IFIFOconstantFile ( record) mode: FIFO.
STAT_IFLNKconstantFile ( record) mode: Link.
STAT_IFMTconstantFile ( record) mode: File type bit mask.
STAT_IFREGconstantFile ( record) mode: Regular file.
STAT_IFSOCKconstantFile ( record) mode: Socket.
STAT_IRGRPconstantFile ( record) mode: Group read permission.
STAT_IROTHconstantFile ( record) mode: Other read permission.
STAT_IRUSRconstantFile ( record) mode: Owner read permission.
STAT_IRWXGconstantFile ( record) mode: Group permission bits mask.
STAT_IRWXOconstantFile ( record) mode: Other permission bits mask.
STAT_IRWXUconstantFile ( record) mode: Owner permission bits mask.
STAT_ISGIDconstantFile ( record) mode: GID bit set.
STAT_ISUIDconstantFile ( record) mode: UID bit set.
STAT_ISVTXconstantFile ( record) mode: Sticky bit set.
STAT_IWGRPconstantFile ( record) mode: Group write permission.
STAT_IWOTHconstantFile ( record) mode: Other write permission.
STAT_IWUSRconstantFile ( record) mode: Owner write permission.
STAT_IXGRPconstantFile ( record) mode: Others execute permission.
STAT_IXOTHconstantFile ( record) mode: Others execute permission.
STAT_IXUSRconstantFile ( record) mode: Others execute permission.
SYS_NMLNconstantMax system name length.
Wait_Anyconstant: Wait on any process.
Wait_Cloneconstant: Wait on clone processes only.
Wait_MyPGRPconstant: Wait processes from current process group.
Wait_NoHangconstant: Do not wait.
Wait_UnTracedconstant: Also report stopped but untraced processes.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.