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_t | record | |
Dir | record | Record used in and calls. |
Dirent | record | Record used in the function to return files in a directory. |
FLock | record | Lock description type for lock call. |
iovec | record | IO buffer structure. |
kernel_timespec | record | |
pollfd | record | Poll structure. |
sigactionrec | record | Record used in call. |
Stat | record | Record describing an inode (file) in the call. |
statx64_timestamp | record | |
tfpreg | record | Record describing floating point register in signal handler. |
tfpstate | record | Record describing floating point unit in signal handler. |
tfpx_sw_bytes | record | Extended state information in signal handler. |
tfpxreg | record | Record describing 16-byte floating point register in signal handler. |
timezone | record | Record describing a timezone. |
tms | record | Record containing timings for call. |
TRLimit | record | Structure to return RLimit data in. |
tsigaltstack | record | Provide the location of an alternate signal handler stack. |
TSigContext | record | Record describing the CPU context when a signal occurs. |
tsiginfo | record | Record describing the signal when a signal occurs. |
tstatx64 | record | |
TUcontext | record | Context description record. |
txmmreg | record | Record describing 16-byte MMX register in signal handler. |
UTimBuf | record | Record used in to set file access and modification times. |
UtsName | record | Record used to return kernel information in function. |
Procedures and functions
CreateShellArgV | function | Create a null-terminated array of strings from a command-line string. |
FpAccess | function | Check file access. |
FpAlarm | function | Schedule an alarm signal to be delivered. |
FpChdir | function | Change current working directory. |
FpChmod | function | Change file permission bits. |
FpChown | function | Change owner of file. |
FpClose | function | Close file descriptor. |
FpClosedir | function | Close directory file descriptor. |
FpDup | function | Duplicate a file handle. |
FpDup2 | function | Duplicate one file handle to another. |
FpExecv | function | Execute process. |
FpExecve | function | Execute process using environment. |
FpExit | procedure | Exit the current process. |
FpFcntl | function | File control operations. |
fpFD_CLR | function | Clears a file descriptor in a set. |
fpFD_ISSET | function | Check whether a file descriptor is set. |
fpFD_SET | function | Set a file descriptor in a set. |
fpFD_ZERO | function | Clear all file descriptors in set. |
fpfdfillset | function | Set all file descriptors in the set. |
FpFork | function | Create child process. |
FPFStat | function | Retrieve file information about a file descriptor. |
FpFtruncate | function | Truncate file on certain size. |
FpFUtimens | function | |
FpGetcwd | function | Retrieve the current working directory. |
FpGetegid | function | Return effective group ID. |
FpGetEnv | function | Return value of environment variable. |
fpgeterrno | function | Retrieve extended error information. |
FpGeteuid | function | Return effective user ID. |
FpGetgid | function | Return real group ID. |
FpGetgroups | function | Get the list of supplementary groups. |
FpGetpgrp | function | Get process group ID. |
FpGetpid | function | Return current process ID. |
FpGetppid | function | Return parent process ID. |
fpGetPriority | function | Return process priority. |
FpGetRLimit | function | Get process resource limits. |
FpGetsid | function | Get current session ID. |
FpGetuid | function | Return current user ID. |
FpIOCtl | function | General kernel IOCTL call. |
FpKill | function | Send a signal to a process. |
FpLink | function | Create a hard link to a file. |
FpLseek | function | Set file pointer position. |
fpLstat | function | Return information about the symbolic link itself (doesn't follow the link). |
FpMkdir | function | Create a new directory. |
FpMkfifo | function | Create FIFO (named pipe) in file system. |
Fpmmap | function | Create memory map of a file. |
Fpmprotect | function | Set memory protection. |
Fpmunmap | function | Unmap previously mapped memory block. |
FpNanoSleep | function | Suspend process for a short time. |
fpNice | function | Set process priority. |
FpOpen | function | Open file and return file descriptor. |
FpOpendir | function | Open a directory for reading. |
FpPause | function | Wait for a signal to arrive. |
FpPipe | function | Create a set of pipe file handlers. |
FpPoll | function | Poll a file descriptor for events. |
FppRead | function | Positional read: read from file descriptor at a certain position. |
FppWrite | function | Positional write: write to file descriptor at a certain position. |
FpRead | function | Read data from file descriptor. |
FpReaddir | function | Read entry from directory. |
fpReadLink | function | Read destination of symbolic link. |
FpReadV | function | Vector read: Read into multiple buffers. |
FpRename | function | Rename file. |
FpRmdir | function | Remove a directory. |
fpS_ISBLK | function | Is file a block device. |
fpS_ISCHR | function | Is file a character device. |
fpS_ISDIR | function | Is file a directory. |
fpS_ISFIFO | function | Is file a FIFO. |
fpS_ISLNK | function | Is file a symbolic link. |
fpS_ISREG | function | Is file a regular file. |
fpS_ISSOCK | function | Is file a Unix socket. |
fpSelect | function | Wait for events on file descriptors. |
fpseterrno | procedure | Set extended error information. |
FpSetgid | function | Set the current group ID. |
fpSetPriority | function | Set process priority. |
FpSetRLimit | function | Set process resource limits. |
FpSetsid | function | Create a new session. |
fpsettimeofday | function | Set kernel time. |
FpSetuid | function | Set the current user ID. |
FPSigaction | function | Install signal handler. |
FpSigAddSet | function | Set a signal in a signal set. |
FpSigDelSet | function | Remove a signal from a signal set. |
FpsigEmptySet | function | Clear all signals from signal set. |
FpSigFillSet | function | Set all signals in signal set. |
FpSigIsMember | function | Check whether a signal appears in a signal set. |
FpSignal | function | Install signal handler (deprecated). |
FpSigPending | function | Return set of currently pending signals. |
FpSigProcMask | function | Set list of blocked signals. |
FpSigSuspend | function | Set signal mask and suspend process till signal is received. |
FpSigTimedWait | function | Wait for signal, with timeout. |
FpSleep | function | Suspend process for several seconds. |
FpStat | function | Retrieve file information about a file descriptor. |
fpSymlink | function | Create a symbolic link. |
fptime | function | Return the current Unix time. |
FpTimes | function | Return execution times for the current process. |
FpUmask | function | Set file creation mask. |
FpUname | function | Return system name. |
FpUnlink | function | Unlink (i.e. remove) a file. |
FpUtime | function | Set access and modification times of a file (touch). |
FpWait | function | Wait for a child to exit. |
FpWaitPid | function | Wait for a process to terminate. |
FpWrite | function | Write data to file descriptor. |
FpWriteV | function | Vector write: Write from multiple buffers to a file descriptor. |
FreeShellArgV | procedure | Free the result of a CreateShellArgV function. |
wexitStatus | function | Extract the exit status from the fpWaitPID result. |
wifexited | function | Check whether the process exited normally. |
wifsignaled | function | Check whether the process was exited by a signal. |
wstopsig | function | Return the exit code from the process. |
wtermsig | function | Return the signal that caused a process to exit. |
Types
Blkcnt_t | type | Block count type. |
Blkcnt64_t | type | 64-bit block count. |
Blksize_t | type | Block size type. |
cbool | type | Boolean type. |
cchar | type | Alias for . |
cdouble | type | Double precision real format. |
cfloat | type | Floating-point real format. |
cint | type | C type: integer (natural size). |
cint16 | type | C type: 16 bits sized, signed integer. |
cint32 | type | C type: 32 bits sized, signed integer. |
cint64 | type | C type: 64 bits sized, signed integer. |
cint8 | type | C type: 8 bits sized, signed integer. |
clock_t | type | Clock ticks type. |
clong | type | C type: long signed integer (double sized). |
clonglong | type | C type: 64-bit (double long) signed integer. |
coff_t | type | Character offset type. |
cschar | type | Signed character type. |
cshort | type | C type: short signed integer (half sized). |
csigned | type | Signed integer. |
csint | type | Signed integer. |
csize_t | type | Character size type. |
cslong | type | Signed long. |
cslonglong | type | Signed longlong type. |
csshort | type | Short signed integer type. |
cuchar | type | Alias for . |
cuint | type | C type: unsigned integer (natural size). |
cuint16 | type | C type: 16 bits sized, unsigned integer. |
cuint32 | type | C type: 32 bits sized, unsigned integer. |
cuint64 | type | C type: 64 bits sized, unsigned integer. |
cuint8 | type | C type: 8 bits sized, unsigned integer. |
culong | type | C type: long unsigned integer (double sized). |
culonglong | type | C type: 64-bit (double long) unsigned integer. |
cunsigned | type | Alias for . |
cushort | type | C type: short unsigned integer (half sized). |
dev_t | type | Device descriptor type. |
errno | property | Error code of last operation. |
gid_t | type | Group ID type. |
ino_t | type | Inode type. |
kernel_gid_t | type | Kernel group ID type. |
kernel_loff_t | type | Long kernel offset type. |
kernel_mode_t | type | Kernel mode type. |
kernel_off_t | type | Kernel offset type. |
kernel_time64_t | type | |
kernel_uid_t | type | Kernel user ID type. |
mode_t | type | Inode mode type. |
nlink_t | type | Number of links type. |
off_t | type | Offset type. |
PBlkCnt | type | pointer to type. |
PBlkSize | type | Pointer to type. |
pcbool | type | Pointer to boolean type. |
pcchar | type | Alias for . |
pcdouble | type | Pointer to cdouble type. |
pcfloat | type | Pointer to cfloat type. |
pcint | type | Pointer to type. |
pcint16 | type | Pointer to 16-bit signed integer type. |
pcint32 | type | Pointer to signed 32-bit integer type. |
pcint64 | type | Pointer to signed 64-bit integer type. |
pcint8 | type | Pointer to 8-bits signed integer type. |
pClock | type | Pointer to type. |
pclong | type | Pointer to type. |
pclonglong | type | Pointer to longlong type. |
pcpu_set_t | type | |
pcschar | type | Pointer to signed character type. |
pcshort | type | Pointer to type. |
pcsigned | type | Pointer to signed integer. |
pcsint | type | Pointer to signed integer. |
pcsize_t | type | Pointer to csize_t. |
pcslong | type | Pointer to signed long. |
pcslonglong | type | Pointer to Signed longlong type. |
pcsshort | type | Pointer to short signed integer type. |
pcuchar | type | Alias for . |
pcuint | type | Pointer to type. |
pcuint16 | type | Pointer to 16-bit unsigned integer type. |
pcuint32 | type | Pointer to unsigned 32-bit integer type. |
pcuint64 | type | Pointer to unsigned 64-bit integer type. |
pcuint8 | type | Pointer to 8-bits unsigned integer type. |
pculong | type | Pointer to type. |
pculonglong | type | Unsigned longlong type. |
pcunsigned | type | Alias for . |
pcushort | type | Pointer to type. |
pDev | type | Pointer to type. |
pDir | type | Pointer to record. |
pDirent | type | Pointer to record. |
pFDSet | type | Pointer to type. |
pFilDes | type | Pointer to type. |
pfpstate | type | Pointer to record. |
pGid | type | Pointer to type. |
pGrpArr | type | Pointer to array. |
pid_t | type | Process ID type. |
pIno | type | Pointer to type. |
piovec | type | pointer to a iovec record. |
pkernel_timespec | type | |
pMode | type | Pointer to type. |
pnLink | type | Pointer to type. |
pOff | type | Pointer to type. |
pPid | type | Pointer to type. |
ppollfd | type | Pointer to tpollfd. |
PRLimit | type | Pointer to TRLimit record. |
psigactionrec | type | Pointer to record type. |
PSigContext | type | Pointer to record type. |
psiginfo | type | Pointer to record type. |
psigset | type | Pointer to type. |
pSize | type | Pointer to type. |
pSize_t | type | Pointer to Size_t. |
pSocklen | type | Pointer to type. |
psSize | type | Pointer to type. |
PStat | type | Pointer to type. |
pstatfs | type | Pointer to statfs type. |
pstatx64 | type | |
pstatx64_timestamp | type | |
pthread_cond_t | type | Thread conditional variable type. |
pthread_mutex_t | type | Thread mutex type. |
pthread_t | type | POSIX thread type. |
pTime | type | Pointer to type. |
ptime_t | type | Pointer to type. |
ptimespec | type | Pointer to type. |
ptimeval | type | Pointer to type. |
ptimezone | type | Pointer to record. |
PTms | type | Pointer to type. |
Pucontext | type | Pointer to TUContext type. |
pUid | type | Pointer to type. |
pUtimBuf | type | Pointer to type. |
PUtsName | type | Pointer to type. |
rlim_t | type | TRLimit record field type. |
sigactionhandler | type | Callback prototype for a record. |
sigactionhandler_t | procedure type | Standard signal action handler prototype. |
signalhandler | type | Simple signal handler prototype. |
signalhandler_t | procedure type | Standard signal handler prototype. |
sigrestorerhandler | type | Alias for sigrestorerhandler_t type. |
sigrestorerhandler_t | procedure type | Standard signal action restorer prototype. |
sigset | type | Signal set type. |
sigset_t | type | Signal set type. |
size_t | type | Size specification type. |
socklen_t | type | Socket address length type. |
ssize_t | type | Small size type. |
TBlkCnt | type | Alias for type. |
TBlkSize | type | Alias for type. |
TClock | type | Alias for type. |
tcpu_set_t | type | |
TDev | type | Alias for type. |
TDir | type | Alias for type. |
TDirent | type | Alias for type. |
TFDSet | type | File descriptor set for call. |
TFDSetEl | type | Type alias for an element of the TFDSet. |
TFilDes | type | Array of file descriptors as used in call. |
TGid | type | Alias for type. |
TGrpArr | type | Array of IDs. |
time_t | type | Time span type. |
timespec | type | Short time specification type. |
timeval | type | Time specification type. |
TIno | type | Alias for type. |
TIOCtlRequest | type | Easy access alias for unixtype.TIOCtlRequest. |
tiovec | type | Alias for the iovec record type. |
tkernel_timespec | type | |
tkernel_timespecs | type | |
TMode | type | Alias for type. |
TnLink | type | Alias for type. |
TOff | type | Alias for type. |
TPid | type | Alias for type. |
tpollfd | type | Alias for pollfd type. |
tsigactionhandler | type | Alias for sigactionhandler_t type. |
tsignalhandler | type | Alias for signalhandler_t type. |
tsigrestorerhandler | type | Alias for sigrestorerhandler_t type. |
tsigset | type | Alias for type. |
TSize | type | Alias for type. |
TSocklen | type | Alias for type. |
TsSize | type | Alias for type. |
TStat | type | Alias for type. |
tstatfs | type | Record describing a file system in the call. |
TTime | type | Alias for type. |
Ttimespec | type | Alias for type. |
TTimespecArr | type | |
TTimeVal | type | Alias for type. |
TTimeZone | type | Alias for record. |
TTms | type | Alias for record type. |
TUid | type | Alias for type. |
TUtimBuf | type | Alias for type. |
TUtsName | type | Alias for type. |
uid_t | type | User ID type. |
Constants
ARG_MAX | constant | Maximum number of arguments to a program. |
AT_EMPTY_PATH | constant | Create a link to the old directory if a path is empty. |
AT_FDCWD | constant | Flag for various *at calls to indicate current working directory. |
AT_NO_AUTOMOUNT | constant | Do not auto mount filesystem if the base dir is a mount point. |
AT_RECURSIVE | constant | Recurse subdirectories when applying changes. |
AT_REMOVEDIR | constant | Unlink at: specify rmdir behaviour. |
AT_STATX_DONT_SYNC | constant | Do not synchronize the attributes with the server (if any). |
AT_STATX_FORCE_SYNC | constant | Force the attributes to be synchronized with the server (if any). |
AT_STATX_SYNC_AS_STAT | constant | Behave as fpStat. |
AT_STATX_SYNC_TYPE | constant | Type of synchronisation required from statx. |
AT_SYMLINK_FOLLOW | constant | Dereference symbolic links. |
AT_SYMLINK_NOFOLLOW | constant | Do not dereference symbolic links. |
BITSINWORD | constant | Number of bits in a word. |
BUS_ADRALN | constant | |
BUS_ADRERR | constant | |
BUS_OBJERR | constant | |
CLD_CONTINUED | constant | |
CLD_DUMPED | constant | |
CLD_EXITED | constant | |
CLD_KILLED | constant | |
CLD_STOPPED | constant | |
CLD_TRAPPED | constant | |
clone_flags_fork | constant | Request fork behaviour for clone call. |
ESysE2BIG | constant | System error: Argument list too long. |
ESysEACCES | constant | System error: Permission denied. |
ESysEADDRINUSE | constant | System error: Address already in use. |
ESysEADDRNOTAVAIL | constant | System error: Cannot assign requested address. |
ESysEADV | constant | System error: Advertise error. |
ESysEAFNOSUPPORT | constant | System error: Address family not supported by protocol. |
ESysEAGAIN | constant | System error: Try again. |
ESysEALREADY | constant | System error: Operation already in progress. |
ESysEBADE | constant | System error: Invalid exchange. |
ESysEBADF | constant | System error: Bad file number. |
ESysEBADFD | constant | System error: File descriptor in bad state. |
ESysEBADMSG | constant | System error: Not a data message. |
ESysEBADR | constant | System error: Invalid request descriptor. |
ESysEBADRQC | constant | System error: Invalid request code. |
ESysEBADSLT | constant | System error: Invalid slot. |
ESysEBFONT | constant | System error: Bad font file format. |
ESysEBUSY | constant | System error: Device or resource busy. |
ESysECANCELED | constant | Operation canceled. |
ESysECHILD | constant | System error: No child processes. |
ESysECHRNG | constant | System error: Channel number out of range. |
ESysECOMM | constant | System error: Communication error on send. |
ESysECONNABORTED | constant | System error: Software caused connection abort. |
ESysECONNREFUSED | constant | System error: Connection refused. |
ESysECONNRESET | constant | System error: Connection reset by peer. |
ESysEDEADLK | constant | System error: Resource deadlock would occur. |
ESysEDEADLOCK | constant | System error: File locking deadlock error. |
ESysEDESTADDRREQ | constant | System error: Destination address required. |
ESysEDOM | constant | System error: Math argument out of domain of func. |
ESysEDOTDOT | constant | System error: RFS specific error. |
ESysEDQUOT | constant | System error: Quota exceeded. |
ESysEEXIST | constant | System error: File exists. |
ESysEFAULT | constant | System error: Bad address. |
ESysEFBIG | constant | System error: File too large. |
ESysEHOSTDOWN | constant | System error: Host is down. |
ESysEHOSTUNREACH | constant | System error: No route to host. |
ESysEIDRM | constant | System error: Identifier removed. |
ESysEILSEQ | constant | System error: Illegal byte sequence. |
ESysEINPROGRESS | constant | System error: Operation now in progress. |
ESysEINTR | constant | System error: Interrupted system call. |
ESysEINVAL | constant | System error: Invalid argument. |
ESysEIO | constant | System error: I/O error. |
ESysEISCONN | constant | System error: Transport endpoint is already connected. |
ESysEISDIR | constant | System error: Is a directory. |
ESysEISNAM | constant | System error: Is a named type file. |
ESysEKEYEXPIRED | constant | Key has expired (Linux kernel module). |
ESysEKEYREJECTED | constant | Key was rejected by service (Linux kernel module). |
ESysEKEYREVOKED | constant | Key has been revoked (Linux kernel module). |
ESysEL2HLT | constant | System error: Level 2 halted. |
ESysEL2NSYNC | constant | System error: Level 2 not synchronized. |
ESysEL3HLT | constant | System error: Level 3 halted. |
ESysEL3RST | constant | System error: Level 3 reset. |
ESysELIBACC | constant | System error: Can not access a needed shared library. |
ESysELIBBAD | constant | System error: Accessing a corrupted shared library. |
ESysELIBEXEC | constant | System error: Cannot exec a shared library directly. |
ESysELIBMAX | constant | System error: Attempting to link in too many shared libraries. |
ESysELIBSCN | constant | System error: .lib section in a.out corrupted. |
ESysELNRNG | constant | System error: Link number out of range. |
ESysELOOP | constant | System error: Too many symbolic links encountered. |
ESysEMEDIUMTYPE | constant | Wrong medium type. |
ESysEMFILE | constant | System error: Too many open files. |
ESysEMLINK | constant | System error: Too many links. |
ESysEMSGSIZE | constant | System error: Message too long. |
ESysEMULTIHOP | constant | System error: Multihop attempted. |
ESysENAMETOOLONG | constant | System error: File name too long. |
ESysENAVAIL | constant | System error: No XENIX semaphores available. |
ESysENETDOWN | constant | System error: Network is down. |
ESysENETRESET | constant | System error: Network dropped connection because of reset. |
ESysENETUNREACH | constant | System error: Network is unreachable. |
ESysENFILE | constant | System error: File table overflow. |
ESysENOANO | constant | System error: No anode. |
ESysENOBUFS | constant | System error: No buffer space available. |
ESysENOCSI | constant | System error: No CSI structure available. |
ESysENODATA | constant | System error: No data available. |
ESysENODEV | constant | System error: No such device. |
ESysENOENT | constant | System error: No such file or directory. |
ESysENOEXEC | constant | System error: Exec format error. |
ESysENOKEY | constant | Required key not available (Linux kernel module). |
ESysENOLCK | constant | System error: No record locks available. |
ESysENOLINK | constant | System error: Link has been severed. |
ESysENOMEDIUM | constant | No medium present. |
ESysENOMEM | constant | System error: Out of memory. |
ESysENOMSG | constant | System error: No message of desired type. |
ESysENONET | constant | System error: Machine is not on the network. |
ESysENOPKG | constant | System error: Package not installed. |
ESysENOPROTOOPT | constant | System error: Protocol not available. |
ESysENOSPC | constant | System error: No space left on device. |
ESysENOSR | constant | System error: Out of streams resources. |
ESysENOSTR | constant | System error: Device not a stream. |
ESysENOSYS | constant | System error: Function not implemented. |
ESysENOTBLK | constant | System error: Block device required. |
ESysENOTCONN | constant | System error: Transport endpoint is not connected. |
ESysENOTDIR | constant | System error: Not a directory. |
ESysENOTEMPTY | constant | System error: Directory not empty. |
ESysENOTNAM | constant | System error: Not a XENIX named type file. |
ESysENOTRECOVERABLE | constant | State not recoverable (mutexes). |
ESysENOTSOCK | constant | System error: Socket operation on non-socket. |
ESysENOTTY | constant | System error: Not a typewriter. |
ESysENOTUNIQ | constant | System error: Name not unique on network. |
ESysENXIO | constant | System error: No such device or address. |
ESysEOPNOTSUPP | constant | System error: Operation not supported on transport endpoint. |
ESysEOVERFLOW | constant | System error: Value too large for defined data type. |
ESysEOWNERDEAD | constant | Owner died (mutexes). |
ESysEPERM | constant | System error: Operation not permitted. |
ESysEPFNOSUPPORT | constant | System error: Protocol family not supported. |
ESysEPIPE | constant | System error: Broken pipe. |
ESysEPROTO | constant | System error: Protocol error. |
ESysEPROTONOSUPPORT | constant | System error: Protocol not supported. |
ESysEPROTOTYPE | constant | System error: Protocol wrong type for socket. |
ESysERANGE | constant | System error: Math result not representable. |
ESysEREMCHG | constant | System error: Remote address changed. |
ESysEREMOTE | constant | System error: Object is remote. |
ESysEREMOTEIO | constant | System error: Remote I/O error. |
ESysERESTART | constant | System error: Interrupted system call should be restarted. |
ESysERFKILL | constant | Operation not possible due to RF-Kill (wireless). |
ESysEROFS | constant | System error: Read-only file system. |
ESysESHUTDOWN | constant | System error: Cannot send after transport endpoint shutdown. |
ESysESOCKTNOSUPPORT | constant | System error: Socket type not supported. |
ESysESPIPE | constant | System error: Illegal seek. |
ESysESRCH | constant | System error: No such process. |
ESysESRMNT | constant | System error: Srmount error. |
ESysESTALE | constant | System error: Stale NFS file handle. |
ESysESTRPIPE | constant | System error: Streams pipe error. |
ESysETIME | constant | System error: Timer expired. |
ESysETIMEDOUT | constant | System error: Connection timed out. |
ESysETOOMANYREFS | constant | System error: Too many references: cannot splice. |
ESysETXTBSY | constant | System error: Text (code segment) file busy. |
ESysEUCLEAN | constant | System error: Structure needs cleaning. |
ESysEUNATCH | constant | System error: Protocol driver not attached. |
ESysEUSERS | constant | System error: Too many users. |
ESysEWOULDBLOCK | constant | System error: Operation would block. |
ESysEXDEV | constant | System error: Cross-device link. |
ESysEXFULL | constant | System error: Exchange full. |
F_ADD_SEALS | constant | |
F_CANCELLK | constant | |
F_DUPFD_CLOEXEC | constant | |
F_GET_SEALS | constant | |
F_GetFd | constant | command: Get close-on-exec flag. |
F_GetFl | constant | command: Get file descriptor flags. |
F_GETLEASE | constant | |
F_GetLk | constant | command: Get lock. |
F_GetOwn | constant | command: get owner of file descriptor events. |
F_GETPIPE_SZ | constant | |
F_NOTIFY | constant | |
F_OK | constant | call test: file exists. |
F_SetFd | constant | command: Set close-on-exec flag. |
F_SetFl | constant | command: Set file descriptor flags. |
F_SETLEASE | constant | |
F_SetLk | constant | command: Set lock. |
F_SetLkW | constant | command: Test lock. |
F_SetOwn | constant | command: Set owner of file descriptor events. |
F_SETPIPE_SZ | constant | |
FD_MAXFDSET | constant | Maximum elements in a array. |
FPE_FLTDIV | constant | Value signalling floating point divide by zero in case of SIGFPE signal. |
FPE_FLTINV | constant | Value signalling floating point invalid operation in case of SIGFPE signal. |
FPE_FLTOVF | constant | Value signalling floating point overflow in case of SIGFPE signal. |
FPE_FLTRES | constant | Value signalling floating point inexact result in case of SIGFPE signal. |
FPE_FLTSUB | constant | Value signalling floating point subscript out of range in case of SIGFPE signal. |
FPE_FLTUND | constant | Value signalling floating point underflow in case of SIGFPE signal. |
FPE_INTDIV | constant | Value signalling integer divide in case of SIGFPE signal. |
FPE_INTOVF | constant | Value signalling integer overflow in case of SIGFPE signal. |
ILL_BADSTK | constant | |
ILL_COPROC | constant | |
ILL_ILLADR | constant | |
ILL_ILLOPC | constant | |
ILL_ILLOPN | constant | |
ILL_ILLTRP | constant | |
ILL_PRVOPC | constant | |
ILL_PRVREG | constant | |
ln2bitmask | constant | Last bit in word. |
ln2bitsinword | constant | Power of 2 number of bits in word. |
MAP_ANON | constant | Anonymous memory mapping (data private to application). |
MAP_ANONYMOUS | constant | map type: Don't use a file. |
MAP_DENYWRITE | constant | option: Ignored. |
MAP_EXECUTABLE | constant | option: Ignored. |
MAP_FAILED | constant | Memory mapping failed error code. |
MAP_FIXED | constant | map type: Interpret addr exactly. |
MAP_GROWSDOWN | constant | option: Memory grows downward (like a stack). |
MAP_LOCKED | constant | option: lock the pages in memory. |
MAP_NORESERVE | constant | option: Do not reserve swap pages for this memory. |
MAP_PRIVATE | constant | map type: Changes are private. |
MAP_SHARED | constant | map type: Share changes. |
MAP_TYPE | constant | map type: Bitmask for type of mapping. |
NAME_MAX | constant | Maximum filename length. |
O_APPEND | constant | file open mode: Append to file. |
O_CREAT | constant | file open mode: Create if file does not yet exist. |
O_DIRECT | constant | file open mode: Minimize caching effects. |
O_DIRECTORY | constant | file open mode: File must be directory. |
O_EXCL | constant | file open mode: Open exclusively. |
O_LARGEFILE | constant | file open mode: Open for 64-bit I/O. |
O_NDELAY | constant | file open mode: Alias for . |
O_NOCTTY | constant | file open mode: No TTY control. |
O_NOFOLLOW | constant | file open mode: Fail if file is symbolic link. |
O_NONBLOCK | constant | file open mode: Open in non-blocking mode. |
O_RDONLY | constant | file open mode: Read only. |
O_RDWR | constant | file open mode: Read/Write. |
O_SYNC | constant | file open mode: Write to disc at once. |
O_TRUNC | constant | file open mode: Truncate file to length 0. |
O_WRONLY | constant | file open mode: Write only. |
PATH_MAX | constant | Maximum pathname length. |
POLL_ERR | constant | |
POLL_HUP | constant | |
POLL_IN | constant | |
POLL_MSG | constant | |
POLL_OUT | constant | |
POLL_PRI | constant | |
POLLERR | constant | Error condition on output file descriptor. |
POLLHUP | constant | Hang up. |
POLLIN | constant | Data is available for reading. |
POLLNVAL | constant | Invalid request, file descriptor not open. |
POLLOUT | constant | Writing data will not block the write call. |
POLLPRI | constant | Urgent data is available for reading. |
POLLRDBAND | constant | Priority data ready for reading. |
POLLRDNORM | constant | Same as POLLIN. |
POLLWRBAND | constant | Priority data my be written. |
POLLWRNORM | constant | Equivalent to POLLOUT. |
PRIO_PGRP | constant | Easy access alias for unixtype.PRIO_PGRP. |
PRIO_PROCESS | constant | Easy access alias for unixtype.PRIO_PROCESS. |
PRIO_USER | constant | Easy access alias for unixtype.PRIO_USER. |
PROT_EXEC | constant | memory access: page can be executed. |
PROT_NONE | constant | memory access: page can not be accessed. |
PROT_READ | constant | memory access: page can be read. |
PROT_WRITE | constant | memory access: page can be written. |
R_OK | constant | call test: read allowed. |
RLIMIT_AS | constant | RLimit request address space limit. |
RLIMIT_CORE | constant | RLimit request max core file size. |
RLIMIT_CPU | constant | RLimit request CPU time in ms. |
RLIMIT_DATA | constant | RLimit request max data size. |
RLIMIT_FSIZE | constant | Rlimit request maximum file size. |
RLIMIT_LOCKS | constant | RLimit request maximum file locks held. |
RLIMIT_MEMLOCK | constant | RLimit request max locked-in-memory address space. |
RLIMIT_NOFILE | constant | RLimit request max number of open files. |
RLIMIT_NPROC | constant | RLimit request max number of processes. |
RLIMIT_RSS | constant | RLimit request max resident set size. |
RLIMIT_STACK | constant | RLimit request max stack size. |
S_IFBLK | constant | File ( record) mode: Block device. |
S_IFCHR | constant | File ( record) mode: Character device. |
S_IFDIR | constant | File ( record) mode: Directory. |
S_IFIFO | constant | File ( record) mode: FIFO. |
S_IFLNK | constant | File ( record) mode: Link. |
S_IFMT | constant | File ( record) mode: File type bit mask. |
S_IFREG | constant | File ( record) mode: Regular file. |
S_IFSOCK | constant | File ( record) mode: Socket. |
S_IRGRP | constant | Mode flag: Read by group. |
S_IROTH | constant | Mode flag: Read by others. |
S_IRUSR | constant | Mode flag: Read by owner. |
S_IRWXG | constant | Mode flag: Read, write, execute by groups. |
S_IRWXO | constant | Mode flag: Read, write, execute by others. |
S_IRWXU | constant | Mode flag: Read, write, execute by user. |
S_ISGID | constant | Mode flag: Set Group ID on execution. |
S_ISUID | constant | Mode flag: Set user ID on execution. |
S_ISVTX | constant | Mode flag: Set sticky bit. |
S_IWGRP | constant | Mode flag: Write by group. |
S_IWOTH | constant | Mode flag: Write by others. |
S_IWUSR | constant | Mode flag: Write by owner. |
S_IXGRP | constant | Mode flag: Execute by group. |
S_IXOTH | constant | Mode flag: Execute by others. |
S_IXUSR | constant | Mode flag: Execute by owner. |
SA_INTERRUPT | constant | Sigaction options: ? |
SA_NOCLDSTOP | constant | Sigaction options: Do not receive notification when child processes stop. |
SA_NOCLDWAIT | constant | Sigaction options: ? |
SA_NODEFER | constant | Sigaction options: Do not mask signal in its own signal handler. |
SA_NOMASK | constant | Sigaction options: Do not prevent the signal from being received when it is handled. |
SA_ONESHOT | constant | Sigaction options: Restore the signal action to the default state. |
SA_ONSTACK | constant | Call the signal handler on an alternate signal stack. |
SA_RESETHAND | constant | Sigaction options: Restore signal action to default state when signal handler exits. |
SA_RESTART | constant | Sigaction options: Provide behaviour compatible with BSD signal semantics. |
SA_RESTORER | constant | Signal restorer handler. |
SA_SIGINFO | constant | Sigaction options: The signal handler takes 3 arguments, not one. |
SEEK_CUR | constant | option: Set position relative to current position. |
SEEK_END | constant | option: Set position relative to end of file. |
SEEK_SET | constant | option: Set absolute position. |
SEGV_ACCERR | constant | |
SEGV_MAPERR | constant | |
SI_ASYNCIO | constant | |
SI_KERNEL | constant | |
SI_MESGQ | constant | |
SI_PAD_SIZE | constant | Signal information pad size. |
SI_QUEUE | constant | |
SI_SIGIO | constant | |
SI_TIMER | constant | |
SI_TKILL | constant | |
SI_USER | constant | |
SIG_BLOCK | constant | Sigprocmask flags: Add signals to the set of blocked signals. |
SIG_DFL | constant | Signal handler: Default signal handler. |
SIG_ERR | constant | Signal handler: error. |
SIG_IGN | constant | Signal handler: Ignore signal. |
SIG_MAXSIG | constant | Maximum system signal number. |
SIG_SETMASK | constant | Sigprocmask flags: Set of blocked signals is given. |
SIG_UNBLOCK | constant | Sigprocmask flags: Remove signals from the set set of blocked signals. |
SIGABRT | constant | Signal: ABRT (Abort). |
SIGALRM | constant | Signal: ALRM (Alarm clock). |
SIGBUS | constant | Signal: BUS (bus error). |
SIGCHLD | constant | Signal: CHLD (child status changed). |
SIGCONT | constant | Signal: CONT (Continue). |
SIGFPE | constant | Signal: FPE (Floating point error). |
SIGHUP | constant | Signal: HUP (Hangup). |
SIGILL | constant | Signal: ILL (Illegal instruction). |
SIGINT | constant | Signal: INT (Interrupt). |
SIGIO | constant | Signal: IO (I/O operation possible). |
SIGIOT | constant | Signal: IOT (IOT trap). |
SIGKILL | constant | Signal: KILL (unblockable). |
SIGPIPE | constant | Signal: PIPE (Broken pipe. |
SIGPOLL | constant | Signal: POLL (Pollable event). |
SIGPROF | constant | Signal: PROF (Profiling alarm). |
SIGPWR | constant | Signal: PWR (power failure restart). |
SIGQUIT | constant | Signal: QUIT. |
SIGSEGV | constant | Signal: SEGV (Segmentation violation). |
SIGSTKFLT | constant | Signal: STKFLT (Stack Fault). |
SIGSTOP | constant | Signal: STOP (Stop, unblockable). |
SIGTERM | constant | Signal: TERM (Terminate). |
SIGTRAP | constant | Signal: TRAP (Trace trap). |
SIGTSTP | constant | Signal: TSTP (keyboard stop). |
SIGTTIN | constant | Signal: TTIN (Terminal input, background). |
SIGTTOU | constant | Signal: TTOU (Terminal output, background). |
SIGUNUSED | constant | Signal: Unused. |
SIGURG | constant | Signal: URG (Socket urgent condition). |
SIGUSR1 | constant | Signal: USR1 (User-defined signal 1). |
SIGUSR2 | constant | Signal: USR2 (User-defined signal 2). |
SIGVTALRM | constant | Signal: VTALRM (Virtual alarm clock). |
SIGWINCH | constant | Signal: WINCH (Window/Terminal size change). |
SIGXCPU | constant | Signal: XCPU (CPU limit exceeded). |
SIGXFSZ | constant | Signal: XFSZ (File size limit exceeded). |
SYS_NMLN | constant | Max system name length. |
TRAP_BRKPT | constant | |
TRAP_TRACE | constant | |
UTSNAME_DOMAIN_LENGTH | constant | Max length of domain name. |
UTSNAME_LENGTH | constant | Max length of system name, release, version, machine. |
UTSNAME_NODENAME_LENGTH | constant | Max length of node name. |
W_OK | constant | call test: write allowed. |
WNOHANG | constant | option: Do not wait for processes to terminate. |
wordsinfdset | constant | Number of words in a array. |
wordsinsigset | constant | Number of words in a signal set. |
WUNTRACED | constant | option: Also report children which were stopped but not yet reported. |
X_OK | constant | call test: execute allowed. |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
