Sign in Join
FPDoc Onlineexperiment

BaseUnix unit

Basic Unix functionality.

The BaseUnix unit was implemented by Marco Van de Voort. It contains basic Unix functionality. It supersedes the Linux unit of version 1.0.X of the compiler, but only implements a cleaned up, portable subset of that unit.

For porting FPC to new Unix-like platforms, it should be sufficient to implement the functionality in this unit for the new platform.

Classes and records

cpu_set_trecord
DirrecordRecord used in and calls.
DirentrecordRecord used in the function to return files in a directory.
FLockrecordLock description type for lock call.
iovecrecordIO buffer structure.
kernel_timespecrecord
pollfdrecordPoll structure.
sigactionrecrecordRecord used in call.
StatrecordRecord describing an inode (file) in the call.
statx64_timestamprecord
tfpregrecordRecord describing floating point register in signal handler.
tfpstaterecordRecord describing floating point unit in signal handler.
tfpx_sw_bytesrecordExtended state information in signal handler.
tfpxregrecordRecord describing 16-byte floating point register in signal handler.
timezonerecordRecord describing a timezone.
tmsrecordRecord containing timings for call.
TRLimitrecordStructure to return RLimit data in.
tsigaltstackrecordProvide the location of an alternate signal handler stack.
TSigContextrecordRecord describing the CPU context when a signal occurs.
tsiginforecordRecord describing the signal when a signal occurs.
tstatx64record
TUcontextrecordContext description record.
txmmregrecordRecord describing 16-byte MMX register in signal handler.
UTimBufrecordRecord used in to set file access and modification times.
UtsNamerecordRecord used to return kernel information in function.

Procedures and functions

CreateShellArgVfunctionCreate a null-terminated array of strings from a command-line string.
FpAccessfunctionCheck file access.
FpAlarmfunctionSchedule an alarm signal to be delivered.
FpChdirfunctionChange current working directory.
FpChmodfunctionChange file permission bits.
FpChownfunctionChange owner of file.
FpClosefunctionClose file descriptor.
FpClosedirfunctionClose directory file descriptor.
FpDupfunctionDuplicate a file handle.
FpDup2functionDuplicate one file handle to another.
FpExecvfunctionExecute process.
FpExecvefunctionExecute process using environment.
FpExitprocedureExit the current process.
FpFcntlfunctionFile control operations.
fpFD_CLRfunctionClears a file descriptor in a set.
fpFD_ISSETfunctionCheck whether a file descriptor is set.
fpFD_SETfunctionSet a file descriptor in a set.
fpFD_ZEROfunctionClear all file descriptors in set.
fpfdfillsetfunctionSet all file descriptors in the set.
FpForkfunctionCreate child process.
FPFStatfunctionRetrieve file information about a file descriptor.
FpFtruncatefunctionTruncate file on certain size.
FpFUtimensfunction
FpGetcwdfunctionRetrieve the current working directory.
FpGetegidfunctionReturn effective group ID.
FpGetEnvfunctionReturn value of environment variable.
fpgeterrnofunctionRetrieve extended error information.
FpGeteuidfunctionReturn effective user ID.
FpGetgidfunctionReturn real group ID.
FpGetgroupsfunctionGet the list of supplementary groups.
FpGetpgrpfunctionGet process group ID.
FpGetpidfunctionReturn current process ID.
FpGetppidfunctionReturn parent process ID.
fpGetPriorityfunctionReturn process priority.
FpGetRLimitfunctionGet process resource limits.
FpGetsidfunctionGet current session ID.
FpGetuidfunctionReturn current user ID.
FpIOCtlfunctionGeneral kernel IOCTL call.
FpKillfunctionSend a signal to a process.
FpLinkfunctionCreate a hard link to a file.
FpLseekfunctionSet file pointer position.
fpLstatfunctionReturn information about the symbolic link itself (doesn't follow the link).
FpMkdirfunctionCreate a new directory.
FpMkfifofunctionCreate FIFO (named pipe) in file system.
FpmmapfunctionCreate memory map of a file.
FpmprotectfunctionSet memory protection.
FpmunmapfunctionUnmap previously mapped memory block.
FpNanoSleepfunctionSuspend process for a short time.
fpNicefunctionSet process priority.
FpOpenfunctionOpen file and return file descriptor.
FpOpendirfunctionOpen a directory for reading.
FpPausefunctionWait for a signal to arrive.
FpPipefunctionCreate a set of pipe file handlers.
FpPollfunctionPoll a file descriptor for events.
FppReadfunctionPositional read: read from file descriptor at a certain position.
FppWritefunctionPositional write: write to file descriptor at a certain position.
FpReadfunctionRead data from file descriptor.
FpReaddirfunctionRead entry from directory.
fpReadLinkfunctionRead destination of symbolic link.
FpReadVfunctionVector read: Read into multiple buffers.
FpRenamefunctionRename file.
FpRmdirfunctionRemove a directory.
fpS_ISBLKfunctionIs file a block device.
fpS_ISCHRfunctionIs file a character device.
fpS_ISDIRfunctionIs file a directory.
fpS_ISFIFOfunctionIs file a FIFO.
fpS_ISLNKfunctionIs file a symbolic link.
fpS_ISREGfunctionIs file a regular file.
fpS_ISSOCKfunctionIs file a Unix socket.
fpSelectfunctionWait for events on file descriptors.
fpseterrnoprocedureSet extended error information.
FpSetgidfunctionSet the current group ID.
fpSetPriorityfunctionSet process priority.
FpSetRLimitfunctionSet process resource limits.
FpSetsidfunctionCreate a new session.
fpsettimeofdayfunctionSet kernel time.
FpSetuidfunctionSet the current user ID.
FPSigactionfunctionInstall signal handler.
FpSigAddSetfunctionSet a signal in a signal set.
FpSigDelSetfunctionRemove a signal from a signal set.
FpsigEmptySetfunctionClear all signals from signal set.
FpSigFillSetfunctionSet all signals in signal set.
FpSigIsMemberfunctionCheck whether a signal appears in a signal set.
FpSignalfunctionInstall signal handler (deprecated).
FpSigPendingfunctionReturn set of currently pending signals.
FpSigProcMaskfunctionSet list of blocked signals.
FpSigSuspendfunctionSet signal mask and suspend process till signal is received.
FpSigTimedWaitfunctionWait for signal, with timeout.
FpSleepfunctionSuspend process for several seconds.
FpStatfunctionRetrieve file information about a file descriptor.
fpSymlinkfunctionCreate a symbolic link.
fptimefunctionReturn the current Unix time.
FpTimesfunctionReturn execution times for the current process.
FpUmaskfunctionSet file creation mask.
FpUnamefunctionReturn system name.
FpUnlinkfunctionUnlink (i.e. remove) a file.
FpUtimefunctionSet access and modification times of a file (touch).
FpWaitfunctionWait for a child to exit.
FpWaitPidfunctionWait for a process to terminate.
FpWritefunctionWrite data to file descriptor.
FpWriteVfunctionVector write: Write from multiple buffers to a file descriptor.
FreeShellArgVprocedureFree the result of a CreateShellArgV function.
wexitStatusfunctionExtract the exit status from the fpWaitPID result.
wifexitedfunctionCheck whether the process exited normally.
wifsignaledfunctionCheck whether the process was exited by a signal.
wstopsigfunctionReturn the exit code from the process.
wtermsigfunctionReturn the signal that caused a process to exit.

Types

Blkcnt_ttypeBlock count type.
Blkcnt64_ttype64-bit block count.
Blksize_ttypeBlock size type.
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.
errnopropertyError code of last operation.
gid_ttypeGroup ID type.
ino_ttypeInode type.
kernel_gid_ttypeKernel group ID type.
kernel_loff_ttypeLong kernel offset type.
kernel_mode_ttypeKernel mode type.
kernel_off_ttypeKernel offset type.
kernel_time64_ttype
kernel_uid_ttypeKernel user ID type.
mode_ttypeInode mode type.
nlink_ttypeNumber of links type.
off_ttypeOffset type.
PBlkCnttypepointer to type.
PBlkSizetypePointer to 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.
pcpu_set_ttype
pcschartypePointer to signed character type.
pcshorttypePointer to type.
pcsignedtypePointer to signed integer.
pcsinttypePointer to signed integer.
pcsize_ttypePointer to csize_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.
pDirtypePointer to record.
pDirenttypePointer to record.
pFDSettypePointer to type.
pFilDestypePointer to type.
pfpstatetypePointer to record.
pGidtypePointer to type.
pGrpArrtypePointer to array.
pid_ttypeProcess ID type.
pInotypePointer to type.
piovectypepointer to a iovec record.
pkernel_timespectype
pModetypePointer to type.
pnLinktypePointer to type.
pOfftypePointer to type.
pPidtypePointer to type.
ppollfdtypePointer to tpollfd.
PRLimittypePointer to TRLimit record.
psigactionrectypePointer to record type.
PSigContexttypePointer to record type.
psiginfotypePointer to record type.
psigsettypePointer to type.
pSizetypePointer to type.
pSize_ttypePointer to Size_t.
pSocklentypePointer to type.
psSizetypePointer to type.
PStattypePointer to type.
pstatfstypePointer to statfs type.
pstatx64type
pstatx64_timestamptype
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.
ptimezonetypePointer to record.
PTmstypePointer to type.
PucontexttypePointer to TUContext type.
pUidtypePointer to type.
pUtimBuftypePointer to type.
PUtsNametypePointer to type.
rlim_ttypeTRLimit record field type.
sigactionhandlertypeCallback prototype for a record.
sigactionhandler_tprocedure typeStandard signal action handler prototype.
signalhandlertypeSimple signal handler prototype.
signalhandler_tprocedure typeStandard signal handler prototype.
sigrestorerhandlertypeAlias for sigrestorerhandler_t type.
sigrestorerhandler_tprocedure typeStandard signal action restorer prototype.
sigsettypeSignal set type.
sigset_ttypeSignal set type.
size_ttypeSize specification type.
socklen_ttypeSocket address length type.
ssize_ttypeSmall size type.
TBlkCnttypeAlias for type.
TBlkSizetypeAlias for type.
TClocktypeAlias for type.
tcpu_set_ttype
TDevtypeAlias for type.
TDirtypeAlias for type.
TDirenttypeAlias for type.
TFDSettypeFile descriptor set for call.
TFDSetEltypeType alias for an element of the TFDSet.
TFilDestypeArray of file descriptors as used in call.
TGidtypeAlias for type.
TGrpArrtypeArray of IDs.
time_ttypeTime span type.
timespectypeShort time specification type.
timevaltypeTime specification type.
TInotypeAlias for type.
TIOCtlRequesttypeEasy access alias for unixtype.TIOCtlRequest.
tiovectypeAlias for the iovec record type.
tkernel_timespectype
tkernel_timespecstype
TModetypeAlias for type.
TnLinktypeAlias for type.
TOfftypeAlias for type.
TPidtypeAlias for type.
tpollfdtypeAlias for pollfd type.
tsigactionhandlertypeAlias for sigactionhandler_t type.
tsignalhandlertypeAlias for signalhandler_t type.
tsigrestorerhandlertypeAlias for sigrestorerhandler_t type.
tsigsettypeAlias for type.
TSizetypeAlias for type.
TSocklentypeAlias for type.
TsSizetypeAlias for type.
TStattypeAlias for type.
tstatfstypeRecord describing a file system in the call.
TTimetypeAlias for type.
TtimespectypeAlias for type.
TTimespecArrtype
TTimeValtypeAlias for type.
TTimeZonetypeAlias for record.
TTmstypeAlias for record type.
TUidtypeAlias for type.
TUtimBuftypeAlias for type.
TUtsNametypeAlias for type.
uid_ttypeUser ID type.

Constants

ARG_MAXconstantMaximum number of arguments to a program.
AT_EMPTY_PATHconstantCreate a link to the old directory if a path is empty.
AT_FDCWDconstantFlag for various *at calls to indicate current working directory.
AT_NO_AUTOMOUNTconstantDo not auto mount filesystem if the base dir is a mount point.
AT_RECURSIVEconstantRecurse subdirectories when applying changes.
AT_REMOVEDIRconstantUnlink at: specify rmdir behaviour.
AT_STATX_DONT_SYNCconstantDo not synchronize the attributes with the server (if any).
AT_STATX_FORCE_SYNCconstantForce the attributes to be synchronized with the server (if any).
AT_STATX_SYNC_AS_STATconstantBehave as fpStat.
AT_STATX_SYNC_TYPEconstantType of synchronisation required from statx.
AT_SYMLINK_FOLLOWconstantDereference symbolic links.
AT_SYMLINK_NOFOLLOWconstantDo not dereference symbolic links.
BITSINWORDconstantNumber of bits in a word.
BUS_ADRALNconstant
BUS_ADRERRconstant
BUS_OBJERRconstant
CLD_CONTINUEDconstant
CLD_DUMPEDconstant
CLD_EXITEDconstant
CLD_KILLEDconstant
CLD_STOPPEDconstant
CLD_TRAPPEDconstant
clone_flags_forkconstantRequest fork behaviour for clone call.
ESysE2BIGconstantSystem error: Argument list too long.
ESysEACCESconstantSystem error: Permission denied.
ESysEADDRINUSEconstantSystem error: Address already in use.
ESysEADDRNOTAVAILconstantSystem error: Cannot assign requested address.
ESysEADVconstantSystem error: Advertise error.
ESysEAFNOSUPPORTconstantSystem error: Address family not supported by protocol.
ESysEAGAINconstantSystem error: Try again.
ESysEALREADYconstantSystem error: Operation already in progress.
ESysEBADEconstantSystem error: Invalid exchange.
ESysEBADFconstantSystem error: Bad file number.
ESysEBADFDconstantSystem error: File descriptor in bad state.
ESysEBADMSGconstantSystem error: Not a data message.
ESysEBADRconstantSystem error: Invalid request descriptor.
ESysEBADRQCconstantSystem error: Invalid request code.
ESysEBADSLTconstantSystem error: Invalid slot.
ESysEBFONTconstantSystem error: Bad font file format.
ESysEBUSYconstantSystem error: Device or resource busy.
ESysECANCELEDconstantOperation canceled.
ESysECHILDconstantSystem error: No child processes.
ESysECHRNGconstantSystem error: Channel number out of range.
ESysECOMMconstantSystem error: Communication error on send.
ESysECONNABORTEDconstantSystem error: Software caused connection abort.
ESysECONNREFUSEDconstantSystem error: Connection refused.
ESysECONNRESETconstantSystem error: Connection reset by peer.
ESysEDEADLKconstantSystem error: Resource deadlock would occur.
ESysEDEADLOCKconstantSystem error: File locking deadlock error.
ESysEDESTADDRREQconstantSystem error: Destination address required.
ESysEDOMconstantSystem error: Math argument out of domain of func.
ESysEDOTDOTconstantSystem error: RFS specific error.
ESysEDQUOTconstantSystem error: Quota exceeded.
ESysEEXISTconstantSystem error: File exists.
ESysEFAULTconstantSystem error: Bad address.
ESysEFBIGconstantSystem error: File too large.
ESysEHOSTDOWNconstantSystem error: Host is down.
ESysEHOSTUNREACHconstantSystem error: No route to host.
ESysEIDRMconstantSystem error: Identifier removed.
ESysEILSEQconstantSystem error: Illegal byte sequence.
ESysEINPROGRESSconstantSystem error: Operation now in progress.
ESysEINTRconstantSystem error: Interrupted system call.
ESysEINVALconstantSystem error: Invalid argument.
ESysEIOconstantSystem error: I/O error.
ESysEISCONNconstantSystem error: Transport endpoint is already connected.
ESysEISDIRconstantSystem error: Is a directory.
ESysEISNAMconstantSystem error: Is a named type file.
ESysEKEYEXPIREDconstantKey has expired (Linux kernel module).
ESysEKEYREJECTEDconstantKey was rejected by service (Linux kernel module).
ESysEKEYREVOKEDconstantKey has been revoked (Linux kernel module).
ESysEL2HLTconstantSystem error: Level 2 halted.
ESysEL2NSYNCconstantSystem error: Level 2 not synchronized.
ESysEL3HLTconstantSystem error: Level 3 halted.
ESysEL3RSTconstantSystem error: Level 3 reset.
ESysELIBACCconstantSystem error: Can not access a needed shared library.
ESysELIBBADconstantSystem error: Accessing a corrupted shared library.
ESysELIBEXECconstantSystem error: Cannot exec a shared library directly.
ESysELIBMAXconstantSystem error: Attempting to link in too many shared libraries.
ESysELIBSCNconstantSystem error: .lib section in a.out corrupted.
ESysELNRNGconstantSystem error: Link number out of range.
ESysELOOPconstantSystem error: Too many symbolic links encountered.
ESysEMEDIUMTYPEconstantWrong medium type.
ESysEMFILEconstantSystem error: Too many open files.
ESysEMLINKconstantSystem error: Too many links.
ESysEMSGSIZEconstantSystem error: Message too long.
ESysEMULTIHOPconstantSystem error: Multihop attempted.
ESysENAMETOOLONGconstantSystem error: File name too long.
ESysENAVAILconstantSystem error: No XENIX semaphores available.
ESysENETDOWNconstantSystem error: Network is down.
ESysENETRESETconstantSystem error: Network dropped connection because of reset.
ESysENETUNREACHconstantSystem error: Network is unreachable.
ESysENFILEconstantSystem error: File table overflow.
ESysENOANOconstantSystem error: No anode.
ESysENOBUFSconstantSystem error: No buffer space available.
ESysENOCSIconstantSystem error: No CSI structure available.
ESysENODATAconstantSystem error: No data available.
ESysENODEVconstantSystem error: No such device.
ESysENOENTconstantSystem error: No such file or directory.
ESysENOEXECconstantSystem error: Exec format error.
ESysENOKEYconstantRequired key not available (Linux kernel module).
ESysENOLCKconstantSystem error: No record locks available.
ESysENOLINKconstantSystem error: Link has been severed.
ESysENOMEDIUMconstantNo medium present.
ESysENOMEMconstantSystem error: Out of memory.
ESysENOMSGconstantSystem error: No message of desired type.
ESysENONETconstantSystem error: Machine is not on the network.
ESysENOPKGconstantSystem error: Package not installed.
ESysENOPROTOOPTconstantSystem error: Protocol not available.
ESysENOSPCconstantSystem error: No space left on device.
ESysENOSRconstantSystem error: Out of streams resources.
ESysENOSTRconstantSystem error: Device not a stream.
ESysENOSYSconstantSystem error: Function not implemented.
ESysENOTBLKconstantSystem error: Block device required.
ESysENOTCONNconstantSystem error: Transport endpoint is not connected.
ESysENOTDIRconstantSystem error: Not a directory.
ESysENOTEMPTYconstantSystem error: Directory not empty.
ESysENOTNAMconstantSystem error: Not a XENIX named type file.
ESysENOTRECOVERABLEconstantState not recoverable (mutexes).
ESysENOTSOCKconstantSystem error: Socket operation on non-socket.
ESysENOTTYconstantSystem error: Not a typewriter.
ESysENOTUNIQconstantSystem error: Name not unique on network.
ESysENXIOconstantSystem error: No such device or address.
ESysEOPNOTSUPPconstantSystem error: Operation not supported on transport endpoint.
ESysEOVERFLOWconstantSystem error: Value too large for defined data type.
ESysEOWNERDEADconstantOwner died (mutexes).
ESysEPERMconstantSystem error: Operation not permitted.
ESysEPFNOSUPPORTconstantSystem error: Protocol family not supported.
ESysEPIPEconstantSystem error: Broken pipe.
ESysEPROTOconstantSystem error: Protocol error.
ESysEPROTONOSUPPORTconstantSystem error: Protocol not supported.
ESysEPROTOTYPEconstantSystem error: Protocol wrong type for socket.
ESysERANGEconstantSystem error: Math result not representable.
ESysEREMCHGconstantSystem error: Remote address changed.
ESysEREMOTEconstantSystem error: Object is remote.
ESysEREMOTEIOconstantSystem error: Remote I/O error.
ESysERESTARTconstantSystem error: Interrupted system call should be restarted.
ESysERFKILLconstantOperation not possible due to RF-Kill (wireless).
ESysEROFSconstantSystem error: Read-only file system.
ESysESHUTDOWNconstantSystem error: Cannot send after transport endpoint shutdown.
ESysESOCKTNOSUPPORTconstantSystem error: Socket type not supported.
ESysESPIPEconstantSystem error: Illegal seek.
ESysESRCHconstantSystem error: No such process.
ESysESRMNTconstantSystem error: Srmount error.
ESysESTALEconstantSystem error: Stale NFS file handle.
ESysESTRPIPEconstantSystem error: Streams pipe error.
ESysETIMEconstantSystem error: Timer expired.
ESysETIMEDOUTconstantSystem error: Connection timed out.
ESysETOOMANYREFSconstantSystem error: Too many references: cannot splice.
ESysETXTBSYconstantSystem error: Text (code segment) file busy.
ESysEUCLEANconstantSystem error: Structure needs cleaning.
ESysEUNATCHconstantSystem error: Protocol driver not attached.
ESysEUSERSconstantSystem error: Too many users.
ESysEWOULDBLOCKconstantSystem error: Operation would block.
ESysEXDEVconstantSystem error: Cross-device link.
ESysEXFULLconstantSystem error: Exchange full.
F_ADD_SEALSconstant
F_CANCELLKconstant
F_DUPFD_CLOEXECconstant
F_GET_SEALSconstant
F_GetFdconstantcommand: Get close-on-exec flag.
F_GetFlconstantcommand: Get file descriptor flags.
F_GETLEASEconstant
F_GetLkconstantcommand: Get lock.
F_GetOwnconstantcommand: get owner of file descriptor events.
F_GETPIPE_SZconstant
F_NOTIFYconstant
F_OKconstantcall test: file exists.
F_SetFdconstantcommand: Set close-on-exec flag.
F_SetFlconstantcommand: Set file descriptor flags.
F_SETLEASEconstant
F_SetLkconstantcommand: Set lock.
F_SetLkWconstantcommand: Test lock.
F_SetOwnconstantcommand: Set owner of file descriptor events.
F_SETPIPE_SZconstant
FD_MAXFDSETconstantMaximum elements in a array.
FPE_FLTDIVconstantValue signalling floating point divide by zero in case of SIGFPE signal.
FPE_FLTINVconstantValue signalling floating point invalid operation in case of SIGFPE signal.
FPE_FLTOVFconstantValue signalling floating point overflow in case of SIGFPE signal.
FPE_FLTRESconstantValue signalling floating point inexact result in case of SIGFPE signal.
FPE_FLTSUBconstantValue signalling floating point subscript out of range in case of SIGFPE signal.
FPE_FLTUNDconstantValue signalling floating point underflow in case of SIGFPE signal.
FPE_INTDIVconstantValue signalling integer divide in case of SIGFPE signal.
FPE_INTOVFconstantValue signalling integer overflow in case of SIGFPE signal.
ILL_BADSTKconstant
ILL_COPROCconstant
ILL_ILLADRconstant
ILL_ILLOPCconstant
ILL_ILLOPNconstant
ILL_ILLTRPconstant
ILL_PRVOPCconstant
ILL_PRVREGconstant
ln2bitmaskconstantLast bit in word.
ln2bitsinwordconstantPower of 2 number of bits in word.
MAP_ANONconstantAnonymous memory mapping (data private to application).
MAP_ANONYMOUSconstantmap type: Don't use a file.
MAP_DENYWRITEconstantoption: Ignored.
MAP_EXECUTABLEconstantoption: Ignored.
MAP_FAILEDconstantMemory mapping failed error code.
MAP_FIXEDconstantmap type: Interpret addr exactly.
MAP_GROWSDOWNconstantoption: Memory grows downward (like a stack).
MAP_LOCKEDconstantoption: lock the pages in memory.
MAP_NORESERVEconstantoption: Do not reserve swap pages for this memory.
MAP_PRIVATEconstantmap type: Changes are private.
MAP_SHAREDconstantmap type: Share changes.
MAP_TYPEconstantmap type: Bitmask for type of mapping.
NAME_MAXconstantMaximum filename length.
O_APPENDconstantfile open mode: Append to file.
O_CREATconstantfile open mode: Create if file does not yet exist.
O_DIRECTconstantfile open mode: Minimize caching effects.
O_DIRECTORYconstantfile open mode: File must be directory.
O_EXCLconstantfile open mode: Open exclusively.
O_LARGEFILEconstantfile open mode: Open for 64-bit I/O.
O_NDELAYconstantfile open mode: Alias for .
O_NOCTTYconstantfile open mode: No TTY control.
O_NOFOLLOWconstantfile open mode: Fail if file is symbolic link.
O_NONBLOCKconstantfile open mode: Open in non-blocking mode.
O_RDONLYconstantfile open mode: Read only.
O_RDWRconstantfile open mode: Read/Write.
O_SYNCconstantfile open mode: Write to disc at once.
O_TRUNCconstantfile open mode: Truncate file to length 0.
O_WRONLYconstantfile open mode: Write only.
PATH_MAXconstantMaximum pathname length.
POLL_ERRconstant
POLL_HUPconstant
POLL_INconstant
POLL_MSGconstant
POLL_OUTconstant
POLL_PRIconstant
POLLERRconstantError condition on output file descriptor.
POLLHUPconstantHang up.
POLLINconstantData is available for reading.
POLLNVALconstantInvalid request, file descriptor not open.
POLLOUTconstantWriting data will not block the write call.
POLLPRIconstantUrgent data is available for reading.
POLLRDBANDconstantPriority data ready for reading.
POLLRDNORMconstantSame as POLLIN.
POLLWRBANDconstantPriority data my be written.
POLLWRNORMconstantEquivalent to POLLOUT.
PRIO_PGRPconstantEasy access alias for unixtype.PRIO_PGRP.
PRIO_PROCESSconstantEasy access alias for unixtype.PRIO_PROCESS.
PRIO_USERconstantEasy access alias for unixtype.PRIO_USER.
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.
R_OKconstantcall test: read allowed.
RLIMIT_ASconstantRLimit request address space limit.
RLIMIT_COREconstantRLimit request max core file size.
RLIMIT_CPUconstantRLimit request CPU time in ms.
RLIMIT_DATAconstantRLimit request max data size.
RLIMIT_FSIZEconstantRlimit request maximum file size.
RLIMIT_LOCKSconstantRLimit request maximum file locks held.
RLIMIT_MEMLOCKconstantRLimit request max locked-in-memory address space.
RLIMIT_NOFILEconstantRLimit request max number of open files.
RLIMIT_NPROCconstantRLimit request max number of processes.
RLIMIT_RSSconstantRLimit request max resident set size.
RLIMIT_STACKconstantRLimit request max stack size.
S_IFBLKconstantFile ( record) mode: Block device.
S_IFCHRconstantFile ( record) mode: Character device.
S_IFDIRconstantFile ( record) mode: Directory.
S_IFIFOconstantFile ( record) mode: FIFO.
S_IFLNKconstantFile ( record) mode: Link.
S_IFMTconstantFile ( record) mode: File type bit mask.
S_IFREGconstantFile ( record) mode: Regular file.
S_IFSOCKconstantFile ( record) mode: Socket.
S_IRGRPconstantMode flag: Read by group.
S_IROTHconstantMode flag: Read by others.
S_IRUSRconstantMode flag: Read by owner.
S_IRWXGconstantMode flag: Read, write, execute by groups.
S_IRWXOconstantMode flag: Read, write, execute by others.
S_IRWXUconstantMode flag: Read, write, execute by user.
S_ISGIDconstantMode flag: Set Group ID on execution.
S_ISUIDconstantMode flag: Set user ID on execution.
S_ISVTXconstantMode flag: Set sticky bit.
S_IWGRPconstantMode flag: Write by group.
S_IWOTHconstantMode flag: Write by others.
S_IWUSRconstantMode flag: Write by owner.
S_IXGRPconstantMode flag: Execute by group.
S_IXOTHconstantMode flag: Execute by others.
S_IXUSRconstantMode flag: Execute by owner.
SA_INTERRUPTconstantSigaction options: ?
SA_NOCLDSTOPconstantSigaction options: Do not receive notification when child processes stop.
SA_NOCLDWAITconstantSigaction options: ?
SA_NODEFERconstantSigaction options: Do not mask signal in its own signal handler.
SA_NOMASKconstantSigaction options: Do not prevent the signal from being received when it is handled.
SA_ONESHOTconstantSigaction options: Restore the signal action to the default state.
SA_ONSTACKconstantCall the signal handler on an alternate signal stack.
SA_RESETHANDconstantSigaction options: Restore signal action to default state when signal handler exits.
SA_RESTARTconstantSigaction options: Provide behaviour compatible with BSD signal semantics.
SA_RESTORERconstantSignal restorer handler.
SA_SIGINFOconstantSigaction options: The signal handler takes 3 arguments, not one.
SEEK_CURconstantoption: Set position relative to current position.
SEEK_ENDconstantoption: Set position relative to end of file.
SEEK_SETconstantoption: Set absolute position.
SEGV_ACCERRconstant
SEGV_MAPERRconstant
SI_ASYNCIOconstant
SI_KERNELconstant
SI_MESGQconstant
SI_PAD_SIZEconstantSignal information pad size.
SI_QUEUEconstant
SI_SIGIOconstant
SI_TIMERconstant
SI_TKILLconstant
SI_USERconstant
SIG_BLOCKconstantSigprocmask flags: Add signals to the set of blocked signals.
SIG_DFLconstantSignal handler: Default signal handler.
SIG_ERRconstantSignal handler: error.
SIG_IGNconstantSignal handler: Ignore signal.
SIG_MAXSIGconstantMaximum system signal number.
SIG_SETMASKconstantSigprocmask flags: Set of blocked signals is given.
SIG_UNBLOCKconstantSigprocmask flags: Remove signals from the set set of blocked signals.
SIGABRTconstantSignal: ABRT (Abort).
SIGALRMconstantSignal: ALRM (Alarm clock).
SIGBUSconstantSignal: BUS (bus error).
SIGCHLDconstantSignal: CHLD (child status changed).
SIGCONTconstantSignal: CONT (Continue).
SIGFPEconstantSignal: FPE (Floating point error).
SIGHUPconstantSignal: HUP (Hangup).
SIGILLconstantSignal: ILL (Illegal instruction).
SIGINTconstantSignal: INT (Interrupt).
SIGIOconstantSignal: IO (I/O operation possible).
SIGIOTconstantSignal: IOT (IOT trap).
SIGKILLconstantSignal: KILL (unblockable).
SIGPIPEconstantSignal: PIPE (Broken pipe.
SIGPOLLconstantSignal: POLL (Pollable event).
SIGPROFconstantSignal: PROF (Profiling alarm).
SIGPWRconstantSignal: PWR (power failure restart).
SIGQUITconstantSignal: QUIT.
SIGSEGVconstantSignal: SEGV (Segmentation violation).
SIGSTKFLTconstantSignal: STKFLT (Stack Fault).
SIGSTOPconstantSignal: STOP (Stop, unblockable).
SIGTERMconstantSignal: TERM (Terminate).
SIGTRAPconstantSignal: TRAP (Trace trap).
SIGTSTPconstantSignal: TSTP (keyboard stop).
SIGTTINconstantSignal: TTIN (Terminal input, background).
SIGTTOUconstantSignal: TTOU (Terminal output, background).
SIGUNUSEDconstantSignal: Unused.
SIGURGconstantSignal: URG (Socket urgent condition).
SIGUSR1constantSignal: USR1 (User-defined signal 1).
SIGUSR2constantSignal: USR2 (User-defined signal 2).
SIGVTALRMconstantSignal: VTALRM (Virtual alarm clock).
SIGWINCHconstantSignal: WINCH (Window/Terminal size change).
SIGXCPUconstantSignal: XCPU (CPU limit exceeded).
SIGXFSZconstantSignal: XFSZ (File size limit exceeded).
SYS_NMLNconstantMax system name length.
TRAP_BRKPTconstant
TRAP_TRACEconstant
UTSNAME_DOMAIN_LENGTHconstantMax length of domain name.
UTSNAME_LENGTHconstantMax length of system name, release, version, machine.
UTSNAME_NODENAME_LENGTHconstantMax length of node name.
W_OKconstantcall test: write allowed.
WNOHANGconstantoption: Do not wait for processes to terminate.
wordsinfdsetconstantNumber of words in a array.
wordsinsigsetconstantNumber of words in a signal set.
WUNTRACEDconstantoption: Also report children which were stopped but not yet reported.
X_OKconstantcall test: execute allowed.

Uses

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