Unit mselibc

Description

 

Overview

Classes, Interfaces, Objects and Records

Name Description
Record __fsid_t  
Record timespec  
Record kevent_t  
Packed Record _stat  
Record __fd_set  
Record sched_param  
Record pthread_condattr_t  
Record _pthread_fastlock  
Record pthread_mutexattr_t  
Record __pthread_attr_s  
Record sigval  
Record _si_sigchld  
Record _si_kill  
Record _si_sigfault  
Record _si_sigpoll  
Record _si_timer  
Record _si_rt  
Record _siginfo  
Record __sigset_t  
Packed Record TSigActionEx  
Record _sigaction  
Record DIR  
Record timeval  
Record timezone  
Record passwd  
Record termios  
Record dirent64  
Record tm  
Record itimerval  
Record __mbstate_t  
Record pollfd  
Record TPipeDescriptors  
Record SunB  
Record SunW  
Record in_addr  
Record sockaddr  
Record in6_addr  
Record sockaddr_in6  
Record addrinfo  

Functions and Procedures

function kqueue(): cint; cdecl; external clib name 'kqueue';
function kevent(kq: cint; changelist: pkevent_t; nchanges: cint; eventlist: pkevent_t; nevents: cint; timeout: ptimespec): cint; cdecl; external clib name 'kevent';
function nl_langinfo(__item: nl_item):Pchar; cdecl; external clib name 'nl_langinfo';
function sigaction(__sig:longint; Const act: _sigaction; Var oldact: _sigaction):longint; cdecl; external clib name 'sigaction'; overload;
function sigaction(__sig: longint; Action: PSigAction; OldAction: PSigAction): Integer; cdecl; external clib name 'sigaction'; overload;
function getpid:__pid_t; cdecl; external clib name 'getpid';
function getuid(): uid_t cdecl; external clib name 'getuid';
function geteuid(): uid_t cdecl; external clib name 'geteuid';
function sscanf(__s:Pchar; __format:Pchar; args:array of const):longint; cdecl; external clib name 'sscanf';
function sched_yield:longint; cdecl; external clib name 'sched_yield';
function usleep(__useconds:__useconds_t):longint; cdecl; external clib name 'usleep';
function __errno_location: PInteger; cdecl; external clib name '__error';
function strerror_r(__errnum:longint; __buf:Pchar; __buflen:size_t):Pchar; cdecl; external clib name 'strerror_r';
function pthread_mutexattr_init(var __attr: pthread_mutexattr_t):longint; cdecl; external threadslib;
function pthread_mutexattr_settype(var __attr: pthread_mutexattr_t; Kind: Integer): Integer; cdecl; external threadslib;
function pthread_mutexattr_destroy(var __attr: pthread_mutexattr_t):longint; cdecl; external threadslib;
function __mkdir(__path:Pchar; __mode:__mode_t):longint; cdecl; external clib name 'mkdir';
function fcntl(__fd: cint; __cmd: cint; args: array of const): cint; cdecl; external clib name 'fcntl'; overload;
function fcntl(__fd: cint; __cmd: cint): cint; cdecl; varargs; external clib name 'fcntl'; overload;
function open(__file:Pchar; __oflag: cint; args:array of const): cint; cdecl; external clib name 'open'; overload;
function open(__file:Pchar; __oflag: cint): cint; cdecl; varargs; external clib name 'open'; overload;
function __close(Handle: cint): cint; cdecl; external clib name 'close';
function ftruncate64(handle: cint; size: cint64): cint; cdecl; external clib name 'ftruncate';
function access(__name: pchar; __type: cint): cint; cdecl; external clib name 'access';
function fsync(__fd: cint): cint; cdecl; external clib name 'fsync';
function dup(__fd: cint): cint; cdecl; external clib name 'dup';
function dup2(__fd: cint; __fd2: cint):longint; cdecl; external clib name 'dup2';
function __read(Handle: cint; var Buffer; Count: size_t): ssize_t; cdecl; external clib name 'read';
function __write(Handle: cint; const Buffer; Count: size_t): ssize_t; cdecl; external clib name 'write';
function chmod(__file: pchar;__mode: __mode_t): cint; cdecl; external clib name 'chmod';
function fchmod(__fd: cint;__mode: __mode_t): cint; cdecl; external clib name 'fchmod';
function sem_init(__sem:Psem_t; __pshared: cint; __value: cuint): cint; cdecl; external threadslib name 'sem_init'; overload;
function sem_init(var __sem: sem_t; __pshared: cint; __value: cuint): cint; cdecl; external threadslib name 'sem_init'; overload;
function sem_destroy(var __sem: sem_t): cint; cdecl; external threadslib name 'sem_destroy';
function sem_post(var __sem: sem_t): cint; cdecl; external threadslib name 'sem_post';
function sem_wait(var __sem: sem_t): cint; cdecl; external threadslib name 'sem_wait';
function sem_trywait(var __sem: sem_t): cint; cdecl; external threadslib name 'sem_trywait';
function sem_getvalue(var __sem: sem_t; __sval:Plongint):longint; cdecl; external threadslib name 'sem_getvalue';
function pthread_setcanceltype(__type:longint; var __oldtype:longint):longint; cdecl; external threadslib; overload;
function pthread_setcanceltype(__type:longint; __oldtype:Plongint):longint; cdecl; external threadslib name 'pthread_setcanceltype'; overload;
function pthread_setcancelstate(__state:longint;__oldstate:Plongint):longint; cdecl; external threadslib name 'pthread_setcancelstate';
function pthread_equal(__thread1:pthread_t; __thread2:pthread_t):longint; cdecl; external threadslib name 'pthread_equal';
function pthread_self:pthread_t; cdecl; external threadslib name 'pthread_self';
function stat(__file:Pchar; __buf:Pstat):longint; cdecl; external clib name 'stat';
function fstat(__fd:longint; __buf:Pstat):longint; cdecl; external clib name 'fstat';
function stat64(__file:Pchar; __buf:Pstat64):longint; cdecl; external clib name 'stat';
function fstat64(__fd:longint; __buf:Pstat64):longint; cdecl; external clib name 'fstat';
function lstat(__file:Pchar; __buf:Pstat):longint; cdecl; external clib name 'lstat';
function lstat64(__file:Pchar; __buf:Pstat64):longint; cdecl; external clib name 'lstat';
function flock(fd: cint; operation: cint): cint; cdecl; external clib name 'flock';
function S_ISDIR(mode : __mode_t) : boolean;
function __rename(__old: Pchar; __new:Pchar):longint; cdecl; external clib name 'rename';
function unlink(__name: Pchar): longint; cdecl; external clib name 'unlink';
function rmdir(__name: Pchar): longint; cdecl; external clib name 'rmdir';
function getcwd(__buf: Pchar; __size:size_t):Pchar; cdecl; external clib name 'getcwd';
function getenv(__name: Pchar): Pchar; cdecl; external clib name 'getenv';
function setenv(envname: pchar; envval: pchar; overwrite: cint): cint; cdecl; external clib name 'setenv';
function putenv(astring: Pchar): longint; cdecl; external clib name 'putenv';
function unsetenv(envname: pchar): cint; cdecl; external clib name 'unsetenv';
function __chdir(__path:Pchar):longint; cdecl; external clib name 'chdir';
function opendir(__name:Pchar):PDIR; cdecl; external clib name 'opendir';
function closedir(__dirp:PDIR):longint; cdecl; external clib name 'closedir';
function __time(var __timer : ttime_t):time_t; cdecl; external clib name 'time'; overload;
function __time(__timer:Ptime_t):time_t; cdecl; external clib name 'time'; overload;
function timelocal(var __tp: tm):time_t; cdecl; external clib name 'timelocal';
function setlocale(__category:longint; __locale:Pchar):Pchar; cdecl; external clib name 'setlocale';
function setitimer(__which: __itimer_which_t; __new:Pitimerval; __old:Pitimerval):longint; cdecl; external clib name 'setitimer';
function mbsnrtowcs(__dst:Pwchar_t; __src:PPchar; __nmc:size_t; __len:size_t; __ps:Pmbstate_t):size_t; cdecl; external clib name 'mbsnrtowcs';
function poll(__fds: Ppollfd; __nfds:nfds_t; __timeout:longint): cint; cdecl; external clib name 'poll';
function ppoll(__fds: ppollfd;__nfds: nfds_t; __timeout: ptimespec; __ss: p__sigset_t): cint; cdecl; external clib name 'ppoll';
function signal(__sig:longint; __handler:__sighandler_t):__sighandler_t; cdecl; external clib name 'signal';
function sigemptyset(var SigSet : TSigSet):longint; cdecl; external clib name 'sigemptyset';
function sigfillset(var SigSet : TSigSet):longint; cdecl; external clib name 'sigfillset';
function sigaddset(var SigSet : TSigSet; SigNum : Longint):longint; cdecl; external clib name 'sigaddset';
function sigdelset(var SigSet : TSigSet; SigNum : Longint):longint; cdecl; external clib name 'sigdelset';
function sigismember(var SigSet : TSigSet; SigNum : Longint):longint; cdecl; external clib name 'sigismember';
function sigprocmask(__how: cint; sigset: p__sigset_t; oldset: p__sigset_t):longint; cdecl; external clib name 'sigprocmask';
function pthread_sigmask(__how: cint; __newmask: p__sigset_t; __oldmask: p__sigset_t):longint; cdecl; external threadslib name 'pthread_sigmask';
function kill(__pid:__pid_t; __sig:longint):longint; cdecl; external clib name 'kill';
function posix_openpt(oflag: cint):longint; cdecl; external clib name 'posix_openpt';
function getpt(): longint;
function grantpt(__fd:longint):longint; cdecl; external clib name 'grantpt';
function unlockpt(__fd:longint):longint; cdecl; external clib name 'unlockpt';
function ptsname(fildes: cint): pchar; cdecl; external clib name 'ptsname';
function ptsname_r(__fd:longint; __buf:Pchar; __buflen:size_t):longint;
function SIGRTMIN(): cint; cdecl; external clib name '__libc_current_sigrtmin';
function SIGRTMAX(): cint; cdecl; external clib name '__libc_current_sigrtmax';
function ioctl(__fd: cint; __request:dword; args: array of const): cint; cdecl; external clib name 'ioctl'; overload;
function ioctl(__fd: cint; __request: cuint; args: pointer): cint; cdecl; external clib name 'ioctl'; overload;
function cfsetispeed(var __termios_p: termios; __speed:speed_t): cint; cdecl; external clib name 'cfsetispeed';
function cfsetospeed(var __termios_p: termios; __speed:speed_t): cint; cdecl; external clib name 'cfsetospeed';
function isatty(__fd: cint): cint; cdecl; external clib name 'isatty';
function ttyname(__fd: cint): pchar; cdecl; external clib name 'ttyname';
function ttyname_r(__fd: cint; buf: pchar; buflen: size_t): cint; cdecl; external clib name 'ttyname_r';
function gettimeofday(var __tv: timeval; var _tz: timezone):longint; cdecl; external clib name 'gettimeofday'; overload;
function gettimeofday(var __tv: timeval; __tz:__timezone_ptr_t):longint; cdecl; external clib name 'gettimeofday'; overload;
function pthread_kill(__thread:pthread_t; __signo:longint):longint; cdecl; external threadslib name 'pthread_kill';
function waitpid(__pid:__pid_t; __stat_loc:Plongint; __options:longint):__pid_t; cdecl; external clib name 'waitpid'; overload;
function waitpid(__pid:__pid_t; var __stat_loc:longint; __options:longint):__pid_t; cdecl; external clib name 'waitpid'; overload;
function WEXITSTATUS(status: cint): cint;
function WTERMSIG(status: cint): cint;
function WIFEXITED(status: cint): boolean;
function WIFSIGNALED(status: cint): boolean;
function __system(__command:Pchar):longint; cdecl; external clib name 'system';
function pipe(var __pipedes: TPipes):longint; cdecl; external clib name 'pipe'; overload;
function pipe(var PipeDes: TPipeDescriptors): Integer; cdecl; external clib name 'pipe'; overload;
function pipe2(var PipeDes: TPipeDescriptors; flags: cint): Integer; cdecl; external clib name 'pipe2';
function vfork: __pid_t; cdecl; external clib name 'vfork';
function fork: __pid_t; cdecl; external clib name 'fork';
function setsid: __pid_t; cdecl; external clib name 'setsid';
function getsid(pid: __pid_t): __pid_t; cdecl; external clib name 'getsid';
function setpgid(__pid:__pid_t; __pgid:__pid_t):longint; cdecl; external clib name 'setpgid';
function getpgid(pid: __pid_t): __pid_t; cdecl; external clib name 'getpgid';
procedure _exit(__status : longint); cdecl; external clib name '_exit';
function execl(__path:Pchar; __arg:Pchar):longint; cdecl; varargs; external clib name 'execl'; overload;
function execl(__path:Pchar; __arg:Pchar; args:array of const):longint; cdecl; external clib name 'execl'; overload;
function execv(__path: pcchar; __argv: ppchar): cint; cdecl; external clib name 'execv';
function execve(__path: pcchar; __argv: ppchar; __envp:ppchar): cint; cdecl; external clib name 'execve';
function errno: error_t;
procedure free(__ptr:pointer); cdecl; external clib name 'free';
function socket(__domain:longint; __type:longint; __protocol:longint):longint; cdecl; external clib name 'socket'; overload;
function shutdown(__fd:longint; __how:longint):longint; cdecl; external clib name 'shutdown';
function connect(__fd:longint; const __addr: sockaddr; __len:socklen_t):longint; cdecl; external clib name 'connect'; overload;
function connect(__fd:longint; __addr:Psockaddr; __len:socklen_t):longint; cdecl; external clib name 'connect'; overload;
function bind(__fd:longint; __addr:Psockaddr; __len:socklen_t):longint; cdecl; external clib name 'bind';
function listen(__fd:longint; __n:longint):longint; cdecl; external clib name 'listen';
function accept(__fd:longint; __addr:Psockaddr; __addr_len:Psocklen_t):longint; cdecl; external clib name 'accept';
function isfdtype(__fd:longint; __fdtype:longint):longint; cdecl; external clib name 'isfdtype';
function setsockopt(__fd:longint; __level:longint; __optname:longint; __optval:pointer; __optlen:socklen_t):longint; cdecl; external clib name 'setsockopt';
function getaddrinfo(__name:Pchar; __service:Pchar; __req:Paddrinfo; __pai:PPaddrinfo):longint; cdecl; external clib name 'getaddrinfo';
function htons(__hostshort:uint16_t):uint16_t; cdecl; external clib name 'htons';
procedure freeaddrinfo(__ai:Paddrinfo); cdecl; external clib name 'freeaddrinfo';
function ntohs(__netshort:uint16_t):uint16_t; cdecl; external clib name 'ntohs';
function gai_strerror(__ecode:longint):Pchar; cdecl; external clib name 'gai_strerror';
function syscall(SysNo: Longint): Integer; cdecl; varargs; external clib name 'syscall';
function gettimeofday(__tv:Ptimeval; __tz:ptimezone):longint; cdecl; external clib name 'gettimeofday'; overload;
function msetcgetattr(filedes: longint; var msetermios: termios): longint; cdecl; external clib name 'tcgetattr';
function msetcsetattr(filedes: longint; when: longint; var msetermios: termios): longint; cdecl; external clib name 'tcsetattr';
function tcdrain(filedes: longint): longint; cdecl; external clib name 'tcdrain';
function tcflush(filedes: longint; queue_selector: longint): longint; cdecl; external clib name 'tcflush';
function pthread_create(__thread:Ppthread_t; __attr:Ppthread_attr_t; __start_routine:TStartRoutine; __arg:pointer):longint; cdecl; external threadslib name 'pthread_create';
function pthread_join(__th:pthread_t; __thread_return:Ppointer):longint; cdecl; external threadslib name 'pthread_join';
function pthread_detach(__th:pthread_t):longint; cdecl; external threadslib name 'pthread_detach';
function pthread_cancel(__thread: pthread_t):longint; cdecl; external threadslib name 'pthread_cancel';
function pthread_attr_init(var __attr: pthread_attr_t):longint; cdecl; external threadslib name 'pthread_attr_init';
function pthread_cond_init(var Cond: TCondVar; CondAttr: PPthreadCondattr): Integer; cdecl; external threadslib name 'pthread_cond_init';
function pthread_cond_destroy(var Cond: TCondVar): Integer; cdecl; external threadslib name 'pthread_cond_destroy';
function pthread_cond_wait(var Cond: TCondVar; var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_cond_wait';
function pthread_cond_timedwait(var Cond: TCondVar; var Mutex: pthread_mutex_t; AbsTime: pTimeSpec): Integer; cdecl; external threadslib name 'pthread_cond_timedwait';
function pthread_cond_broadcast(var Cond: TCondVar): Integer; cdecl; external threadslib name 'pthread_cond_broadcast';
function pthread_cond_signal(var Cond: TCondVar): Integer; cdecl; external threadslib name 'pthread_cond_signal';
function sem_timedwait(var __sem: TSemaphore; __abstime: ptimespec): Integer; cdecl; external threadslib name 'sem_timedwait';
function pthread_mutex_init(__mutex: Ppthread_mutex_t; __mutex_attr: Ppthread_mutexattr_t): longint; cdecl; external threadslib name 'pthread_mutex_init';
function pthread_mutex_destroy(var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_mutex_destroy';
function pthread_mutex_lock(var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_mutex_lock';
function pthread_mutex_trylock(var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_mutex_trylock';
function pthread_mutex_unlock(var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_mutex_unlock';
function readdir64_r(__dirp:PDIR; __entry:Pdirent64; __result:PPdirent64):longint; cdecl; external clib name 'readdir_r';
function localtime_r(__timer:Ptime_t; __tp:Ptm):Ptm; cdecl; external clib name 'localtime_r';
function shm_open(name: pcchar; oflag: cint; mode: mode_t): cint; cdecl; external shmlib name 'shm_open';
function shm_unlink(name: pcchar): cint; cdecl; external shmlib name 'shm_unlink';
function mmap(addr: pointer; lengthint: size_t; prot: cint; flags: cint; fd: cint; offset: off_t): pointer; cdecl; external clib name 'mmap';
function munmap(addr: pointer; length: size_t): cint; cdecl; external clib name 'munmap';
procedure initlibc();

Types

__dev_t = cuint32;
__uid_t = __U32_TYPE;
__gid_t = __U32_TYPE;
__ino_t = __ULONGWORD_TYPE;
__ino64_t = __UQUAD_TYPE;
__mode_t = __U32_TYPE;
__nlink_t = __UWORD_TYPE;
__off_t = __SLONGWORD_TYPE;
__off64_t = __SQUAD_TYPE;
__pid_t = __S32_TYPE;
__rlim_t = __ULONGWORD_TYPE;
__rlim64_t = __UQUAD_TYPE;
__blkcnt_t = __SLONGWORD_TYPE;
__blkcnt64_t = __SQUAD_TYPE;
__fsblkcnt_t = __ULONGWORD_TYPE;
__fsblkcnt64_t = __UQUAD_TYPE;
__fsfilcnt_t = __ULONGWORD_TYPE;
__fsfilcnt64_t = __UQUAD_TYPE;
__id_t = __U32_TYPE;
__clock_t = __SLONGWORD_TYPE;
__time_t = cint32;
__useconds_t = __U32_TYPE;
__suseconds_t = __SLONGWORD_TYPE;
__daddr_t = __S32_TYPE;
__swblk_t = __SLONGWORD_TYPE;
__key_t = __S32_TYPE;
__clockid_t = __S32_TYPE;
__timer_t = pointer;
__blksize_t = __SLONGWORD_TYPE;
__ssize_t = __SWORD_TYPE;
__fd_mask = __ULONGWORD_TYPE;
__ipc_pid_t = word;
__caddr_t = ˆchar;
__ptr_t = Pointer;
P__ptr_t = ˆ__ptr_t;
ptrdiff_t = Integer;
__long_double_t = Extended;
P__long_double_t = ˆ__long_double_t;
Psize_t = ˆsize_t;
wchar_t = widechar;
Pwchar_t = ˆwchar_t;
PPwchar_t = ˆPwchar_t;
PPByte = ˆPByte;
PPPChar = ˆPPChar;
__u_char = byte;
__u_short = word;
__u_int = dword;
__u_long = dword;
__u_quad_t = qword;
__quad_t = int64;
__int8_t = char;
__uint8_t = byte;
__int16_t = smallint;
__uint16_t = word;
__int32_t = longint;
__uint32_t = dword;
__int64_t = Int64;
__uint64_t = Qword;
__qaddr_t = __quad_t;
__loff_t = __quad_t;
int64_t = Int64;
uint8_t = byte;
uint16_t = word;
uint32_t = dword;
uint64_t = qword;
int_least8_t = char;
int_least16_t = smallint;
int_least32_t = longint;
int_least64_t = int64;
uint_least8_t = byte;
uint_least16_t = word;
uint_least32_t = dword;
uint_least64_t = qword;
int_fast8_t = shortint;
int_fast16_t = longint;
int_fast32_t = longint;
int_fast64_t = int64;
uint_fast8_t = byte;
uint_fast16_t = dword;
uint_fast32_t = dword;
uint_fast64_t = qword;
intptr_t = ptrint;
uintptr_t = ptruint;
intmax_t = Int64;
uintmax_t = QWord;
TTimeSpec = timespec;
PTimeSpec = ˆTTimeSpec;
pkevent_t = ˆkevent_t;
__t_scalar_t = longint;
__t_uscalar_t = dword;
__intptr_t = longint;
__socklen_t = dword;
TFileDescriptor = integer;
P_stat = ˆ_stat;
PStat = ˆ_stat;
P_stat64 = ˆ_stat64;
Pstat64 = ˆ_stat64;
ino_t = cuint32;
mode_t = cuint16;
n_link_t = cuint16;
uid_t = cuint32;
gid_t = cuint32;
off_t = cint64;
blkcnt_t = cint64;
blksize_t = cuint32;
fflags_t = cuint32;
_stat64 = _stat;
TFdSet = __fd_set;
PFdSet = ˆTFdSet;
u_char = __u_char;
u_short = __u_short;
u_int = __u_int;
u_long = __u_long;
quad_t = __quad_t;
u_quad_t = __u_quad_t;
fsid_t = __fsid_t;
loff_t = __loff_t;
ino64_t = __ino64_t;
dev_t = __dev_t;
nlink_t = __nlink_t;
off64_t = __off64_t;
pid_t = __pid_t;
id_t = __id_t;
ssize_t = __ssize_t;
daddr_t = __daddr_t;
caddr_t = __caddr_t;
key_t = __key_t;
useconds_t = __useconds_t;
suseconds_t = __suseconds_t;
ulong = dword;
ushort = word;
uint = dword;
int8_t = char;
int16_t = smallint;
int32_t = longint;
u_int8_t = byte;
u_int16_t = word;
u_int32_t = dword;
register_t = longint;
fsblkcnt_t = __fsblkcnt_t;
fsfilcnt_t = __fsfilcnt_t;
blkcnt64_t = __blkcnt64_t;
fsblkcnt64_t = __fsblkcnt64_t;
fsfilcnt64_t = __fsfilcnt64_t;
P__key_t = ˆ__key_t;
P__ipc_pid_t = ˆ__ipc_pid_t;
P__blksize_t = ˆ__blksize_t;
P__blkcnt_t = ˆ__blkcnt_t;
P__blkcnt64_t = ˆ__blkcnt64_t;
P__fsblkcnt_t = ˆ__fsblkcnt_t;
P__fsblkcnt64_t = ˆ__fsblkcnt64_t;
P__fsfilcnt_t = ˆ__fsfilcnt_t;
P__fsfilcnt64_t = ˆ__fsfilcnt64_t;
P__ino64_t = ˆ__ino64_t;
P__off64_t = ˆ__off64_t;
P__t_scalar_t = ˆ__t_scalar_t;
P__t_uscalar_t = ˆ__t_uscalar_t;
P__intptr_t = ˆ__intptr_t;
P__socklen_t = ˆ__socklen_t;
Pu_char = ˆu_char;
Pu_short = ˆu_short;
Pu_int = ˆu_int;
Pu_long = ˆu_long;
Pquad_t = ˆquad_t;
Pu_quad_t = ˆu_quad_t;
Pfsid_t = ˆfsid_t;
Ploff_t = ˆloff_t;
Pino_t = ˆino_t;
Pino64_t = ˆino64_t;
Pdev_t = ˆdev_t;
Pgid_t = ˆgid_t;
Pmode_t = ˆmode_t;
Pnlink_t = ˆnlink_t;
Puid_t = ˆuid_t;
Poff_t = ˆoff_t;
Poff64_t = ˆoff64_t;
Ppid_t = ˆpid_t;
Pssize_t = ˆssize_t;
Pdaddr_t = ˆdaddr_t;
Pcaddr_t = ˆcaddr_t;
Pkey_t = ˆkey_t;
Puseconds_t = ˆuseconds_t;
Psuseconds_t = ˆsuseconds_t;
Pulong = ˆulong;
Pushort = ˆushort;
Puint = ˆuint;
Pint8_t = ˆint8_t;
Pint16_t = ˆint16_t;
Pint32_t = ˆint32_t;
Pu_int8_t = ˆu_int8_t;
Pu_int16_t = ˆu_int16_t;
Pu_int32_t = ˆu_int32_t;
Pregister_t = ˆregister_t;
Pblksize_t = ˆblksize_t;
Pblkcnt_t = ˆblkcnt_t;
Pfsblkcnt_t = ˆfsblkcnt_t;
Pfsfilcnt_t = ˆfsfilcnt_t;
Pblkcnt64_t = ˆblkcnt64_t;
Pfsblkcnt64_t = ˆfsblkcnt64_t;
Pfsfilcnt64_t = ˆfsfilcnt64_t;
P__qaddr_t = ˆ__qaddr_t;
P__dev_t = ˆ__dev_t;
P__uid_t = ˆ__uid_t;
P__gid_t = ˆ__gid_t;
P__ino_t = ˆ__ino_t;
P__mode_t = ˆ__mode_t;
P__nlink_t = ˆ__nlink_t;
P__off_t = ˆ__off_t;
P__loff_t = ˆ__loff_t;
P__pid_t = ˆ__pid_t;
P__ssize_t = ˆ__ssize_t;
P__rlim_t = ˆ__rlim_t;
P__rlim64_t = ˆ__rlim64_t;
P__id_t = ˆ__id_t;
P__fsid_t = ˆ__fsid_t;
P__daddr_t = ˆ__daddr_t;
P__caddr_t = ˆ__caddr_t;
P__time_t = ˆ__time_t;
P__useconds_t = ˆ__useconds_t;
P__suseconds_t = ˆ__suseconds_t;
P__swblk_t = ˆ__swblk_t;
P__clock_t = ˆ__clock_t;
P__clockid_t = ˆ__clockid_t;
P__timer_t = ˆ__timer_t;
Pnl_item = ˆnl_item;
nl_item = longint;
Psched_param = ˆsched_param;
__sched_param = sched_param;
P__sched_param = ˆ__sched_param;
TSchedParam = __sched_param;
PSchedParam = ˆTSchedParam;
TStartRoutine = function (_para1:pointer): integer; cdecl;
Ppthread_condattr_t = ˆpthread_condattr_t;
TPthreadCondattr = pthread_condattr_t;
PPthreadCondattr = ˆTPthreadCondattr;
P_pthread_fastlock = ˆ_pthread_fastlock;
Ppthread_mutexattr_t = ˆpthread_mutexattr_t;
Ppthread_t = ˆpthread_t;
pthread_t = culong;
P_pthread_descr = ˆ_pthread_descr;
_pthread_descr = pointer;
P__pthread_attr_s = ˆ__pthread_attr_s;
pthread_attr_t = __pthread_attr_s;
Ppthread_attr_t = ˆpthread_attr_t;
Psem_t = ˆsem_t;
sem_t = array[0..__SIZEOF_SEM_T-1] of byte;
TSemaphore = sem_t;
PSemaphore = ˆTSemaphore;
Psigval = ˆsigval;
sigval_t = sigval;
Psigval_t = ˆsigval_t;
_si_pad = packed array[0..__SI_PAD_SIZE-1] of cint;
Psiginfo = ˆ_siginfo;
siginfo_t = _siginfo;
Psiginfo_t = ˆsiginfo_t;
Tsiginfo_t = siginfo_t;
TSigActionHandlerEx = procedure(Signal: Integer; SignalInfo: PSigInfo; P: Pointer); cdecl;
TRestoreHandler = procedure; cdecl;
P__sig_atomic_t = ˆ__sig_atomic_t;
__sig_atomic_t = longint;
P__sigset_t = ˆ__sigset_t;
sigset_t = __sigset_t;
Psigset_t = ˆsigset_t;
TSigset = __sigset_t;
PSigset = ˆTSigset;
__sighandler_t = procedure(SigNum: Integer); cdecl;
TSignalHandler = __sighandler_t;
P_sigaction = ˆ_sigaction;
TSigAction = _sigaction;
PSigAction = ˆTSigAction;
__sigaction = _sigaction;
TSigActionHandler = procedure(Signal: Integer); cdecl;
Ppthread_mutex_t = ˆpthread_mutex_t;
pthread_mutex_t = array[0..__SIZEOF_PTHREAD_MUTEX_T-1] of byte;
__dirstream = DIR;
PDIR = ˆDIR;
TDirectoryStream = DIR;
PDirectoryStream = ˆTDirectoryStream;
Ptimeval = ˆtimeval;
TTimeVal = timeval;
ptimezone = ˆtimezone;
P__timezone_ptr_t = ˆ__timezone_ptr_t;
__timezone_ptr_t = ˆtimezone;
ppasswd = ˆpasswd;
pppasswd = ˆppasswd;
Pcc_t = ˆcc_t;
cc_t = char;
Pspeed_t = ˆspeed_t;
speed_t = dword;
Ptcflag_t = ˆtcflag_t;
tcflag_t = dword;
Ptermios = ˆtermios;
Pdirent64 = ˆdirent64;
PPDirEnt64 = ˆPDirEnt64;
time_t = __time_t;
Ptime_t = ˆtime_t;
Ptm = ˆtm;
TMutexAttribute = pthread_mutexattr_t;
PMutexAttribute = ˆTMutexAttribute;
TUnixTime = tm;
PUnixTime = ˆTUnixTime;
TTime_T = Time_t;
Psighandler_t = ˆsighandler_t;
sighandler_t = __sighandler_t;
__itimer_which = (...);
Pitimerval = ˆitimerval;
P__itimer_which_t = ˆ__itimer_which_t;
__itimer_which_t = __itimer_which;
wint_t = longword;
mbstate_t = __mbstate_t;
Pmbstate_t = ˆmbstate_t;
Pnfds_t = ˆnfds_t;
nfds_t = dword;
Ppollfd = ˆpollfd;
PPipeDescriptors = ˆTPipeDescriptors;
TPipes = Array[0..1] of longint;
PPipes = ˆTPipes;
error_t = Integer;
Psa_family_t = ˆsa_family_t;
sa_family_t = word;
TInAddr = in_addr;
PInAddr = ˆTInAddr;
TSockAddr = sockaddr;
PSockAddr = ˆTSockAddr;
sockaddr_in = sockaddr;
Psockaddr_in = ˆsockaddr;
TSockAddrIn = sockaddr_in;
PSockAddrIn = ˆTSockAddrIn;
Pin_port_t = ˆin_port_t;
in_port_t = uint16_t;
Pin6_addr = ˆin6_addr;
Psockaddr_in6 = ˆsockaddr_in6;
__socket_type = type cenum;
TSocket = longint;
SOCKLEN_T = __socklen_t;
PSOCKLEN_T = ˆSOCKLEN_T;
Paddrinfo = ˆaddrinfo;
PPaddrinfo = ˆPaddrinfo;
tcondvar = array[0..__SIZEOF_PTHREAD_COND_T-1] of byte;

Constants

clib = 'libc.so.6';
threadslib = 'libpthread.so.0';
shmlib = clib;
TCGETS = $5401;
TCSETS = $5402;
TCSETSW = $5403;
TCSETSF = $5404;
TCGETA = $5405;
TCSETA = $5406;
TCSETAW = $5407;
TCSETAF = $5408;
TCSBRK = $5409;
TCXONC = $540A;
TCFLSH = $540B;
TIOCEXCL = $540C;
TIOCNXCL = $540D;
TIOCSCTTY = $540E;
TIOCGPGRP = $540F;
TIOCSPGRP = $5410;
TIOCOUTQ = $5411;
TIOCSTI = $5412;
TIOCGWINSZ = $5413;
TIOCSWINSZ = $5414;
TIOCMGET = $5415;
TIOCMBIS = $5416;
TIOCMBIC = $5417;
TIOCMSET = $5418;
TIOCGSOFTCAR = $5419;
TIOCSSOFTCAR = $541A;
FIONREAD = $541B;
TIOCINQ = FIONREAD;
TIOCLINUX = $541C;
TIOCCONS = $541D;
TIOCGSERIAL = $541E;
TIOCSSERIAL = $541F;
TIOCPKT = $5420;
FIONBIO = $5421;
TIOCNOTTY = $5422;
TIOCSETD = $5423;
TIOCGETD = $5424;
TCSBRKP = $5425;
TIOCTTYGSTRUCT = $5426;
TIOCSBRK = $5427;
TIOCCBRK = $5428;
TIOCGSID = $5429;
FIONCLEX = $5450;
FIOCLEX = $5451;
FIOASYNC = $5452;
TIOCSERCONFIG = $5453;
TIOCSERGWILD = $5454;
TIOCSERSWILD = $5455;
TIOCGLCKTRMIOS = $5456;
TIOCSLCKTRMIOS = $5457;
TIOCSERGSTRUCT = $5458;
TIOCSERGETLSR = $5459;
TIOCSERGETMULTI = $545A;
TIOCSERSETMULTI = $545B;
TIOCMIWAIT = $545C;
TIOCGICOUNT = $545D;
TIOCGHAYESESP = $545E;
TIOCSHAYESESP = $545F;
TIOCPKT_DATA = 0;
TIOCPKT_FLUSHREAD = 1;
TIOCPKT_FLUSHWRITE = 2;
TIOCPKT_STOP = 4;
TIOCPKT_START = 8;
TIOCPKT_NOSTOP = 16;
TIOCPKT_DOSTOP = 32;
TIOCSER_TEMT = $01;
EPERM = 1;
ENOENT = 2;
ESRCH = 3;
EINTR = 4;
EIO = 5;
ENXIO = 6;
E2BIG = 7;
ENOEXEC = 8;
EBADF = 9;
ECHILD = 10;
EDEADLK = 11;
ENOMEM = 12;
EACCES = 13;
EFAULT = 14;
ENOTBLK = 15;
EBUSY = 16;
EEXIST = 17;
EXDEV = 18;
ENODEV = 19;
ENOTDIR = 20;
EISDIR = 21;
EINVAL = 22;
ENFILE = 23;
EMFILE = 24;
ENOTTY = 25;
ETXTBSY = 26;
EFBIG = 27;
ENOSPC = 28;
ESPIPE = 29;
EROFS = 30;
EMLINK = 31;
EPIPE = 32;
EDOM = 33;
ERANGE = 34;
EAGAIN = 35;
EWOULDBLOCK = EAGAIN;
EINPROGRESS = 36;
EALREADY = 37;
ENOTSOCK = 38;
EDESTADDRREQ = 39;
EMSGSIZE = 40;
EPROTOTYPE = 41;
ENOPROTOOPT = 42;
EPROTONOSUPPORT = 43;
ESOCKTNOSUPPORT = 44;
EOPNOTSUPP = 45;
ENOTSUP = EOPNOTSUPP;
EPFNOSUPPORT = 46;
EAFNOSUPPORT = 47;
EADDRINUSE = 48;
EADDRNOTAVAIL = 49;
ENETDOWN = 50;
ENETUNREACH = 51;
ENETRESET = 52;
ECONNABORTED = 53;
ECONNRESET = 54;
ENOBUFS = 55;
EISCONN = 56;
ENOTCONN = 57;
ESHUTDOWN = 58;
ETOOMANYREFS = 59;
ETIMEDOUT = 60;
ECONNREFUSED = 61;
ELOOP = 62;
ENAMETOOLONG = 63;
EHOSTDOWN = 64;
EHOSTUNREACH = 65;
ENOTEMPTY = 66;
EPROCLIM = 67;
EUSERS = 68;
EDQUOT = 69;
ESTALE = 70;
EREMOTE = 71;
EBADRPC = 72;
ERPCMISMATCH = 73;
EPROGUNAVAIL = 74;
EPROGMISMATCH = 75;
EPROCUNAVAIL = 76;
ENOLCK = 77;
ENOSYS = 78;
EFTYPE = 79;
EAUTH = 80;
ENEEDAUTH = 81;
EIDRM = 82;
ENOMSG = 83;
EOVERFLOW = 84;
ECANCELED = 85;
EILSEQ = 86;
ENOATTR = 87;
EDOOFUS = 88;
EBADMSG = 89;
EMULTIHOP = 90;
ENOLINK = 91;
EPROTO = 92;
ENOTCAPABLE = 93;
ECAPMODE = 94;
ENOTRECOVERABLE = 95;
EOWNERDEAD = 96;
ELAST = 96;
O_RDONLY = $0000;
O_WRONLY = $0001;
O_RDWR = $0002;
O_ACCMODE = $0003;
O_NONBLOCK = $0004;
O_APPEND = $0008;
O_SHLOCK = $0010;
O_EXLOCK = $0020;
O_ASYNC = $0040;
O_FSYNC = $0080;
O_SYNC = $0080;
O_NOFOLLOW = $0100;
O_CREAT = $0200;
O_TRUNC = $0400;
O_EXCL = $0800;
O_NOCTTY = $8000;
O_DIRECT = $00010000;
O_DIRECTORY = $00020000;
O_EXEC = $00040000;
O_TTY_INIT = $00080000;
O_CLOEXEC = $00100000;
F_DUPFD = 0;
F_GETFD = 1;
F_SETFD = 2;
F_GETFL = 3;
F_SETFL = 4;
F_GETOWN = 5;
F_SETOWN = 6;
F_OGETLK = 7;
F_OSETLK = 8;
F_OSETLKW = 9;
F_DUP2FD = 10;
F_GETLK = 11;
F_SETLK = 12;
F_SETLKW = 13;
F_SETLK_REMOTE = 14;
F_READAHEAD = 15;
F_RDAHEAD = 16;
F_DUPFD_CLOEXEC = 17;
F_DUP2FD_CLOEXEC = 18;
FD_CLOEXEC = 1;
F_RDLCK = 1;
F_UNLCK = 2;
F_WRLCK = 3;
F_UNLCKSYS = 4;
F_CANCEL = 5;
F_WAIT = $010;
F_FLOCK = $020;
F_POSIX = $040;
F_REMOTE = $080;
F_NOINTR = $100;
EVFILT_READ = (-1);
EVFILT_WRITE = (-2);
EVFILT_AIO = (-3);
EVFILT_VNODE = (-4);
EVFILT_PROC = (-5);
EVFILT_SIGNAL = (-6);
EVFILT_TIMER = (-7);
EVFILT_FS = (-9);
EVFILT_LIO = (-10);
EVFILT_USER = (-11);
EVFILT_SYSCOUNT = 11;
EV_ADD = $0001;
EV_DELETE = $0002;
EV_ENABLE = $0004;
EV_DISABLE = $0008;
EV_ONESHOT = $0010;
EV_CLEAR = $0020;
EV_RECEIPT = $0040;
EV_DISPATCH = $0080;
EV_SYSFLAGS = $F000;
EV_DROP = $1000;
EV_FLAG1 = $2000;
EV_EOF = $8000;
EV_ERROR = $4000;
NOTE_FFNOP = $00000000;
NOTE_FFAND = $40000000;
NOTE_FFOR = $80000000;
NOTE_FFCOPY = $c0000000;
NOTE_FFCTRLMASK = $c0000000;
NOTE_FFLAGSMASK = $00ffffff;
NOTE_TRIGGER = $01000000;
NOTE_LOWAT = $0001;
NOTE_DELETE = $0001;
NOTE_WRITE = $0002;
NOTE_EXTEND = $0004;
NOTE_ATTRIB = $0008;
NOTE_LINK = $0010;
NOTE_RENAME = $0020;
NOTE_REVOKE = $0040;
NOTE_EXIT = $80000000;
NOTE_FORK = $40000000;
NOTE_EXEC = $20000000;
NOTE_PCTRLMASK = $f0000000;
NOTE_PDATAMASK = $000fffff;
NOTE_TRACK = $00000001;
NOTE_TRACKERR = $00000002;
NOTE_CHILD = $00000004;
LOCK_SH = 1;
LOCK_EX = 2;
LOCK_NB = 4;
LOCK_UN = 8;
LOCK_MAND = 32;
LOCK_READ = 64;
LOCK_WRITE = 128;
LOCK_RW = 192;
DN_ACCESS = $00000001;
DN_MODIFY = $00000002;
DN_CREATE = $00000004;
DN_DELETE = $00000008;
DN_RENAME = $00000010;
DN_ATTRIB = $00000020;
DN_MULTISHOT = $80000000;
__S_ISUID = $800;
__S_ISGID = $400;
__S_ISVTX = $200;
__S_IREAD = $100;
__S_IWRITE = $80;
__S_IEXEC = $40;
S_ISUID = __S_ISUID;
S_ISGID = __S_ISGID;
S_ISVTX = __S_ISVTX;
S_IRUSR = __S_IREAD;
S_IWUSR = __S_IWRITE;
S_IXUSR = __S_IEXEC;
S_IRWXU = (__S_IREAD or __S_IWRITE) or __S_IEXEC;
S_IREAD = S_IRUSR;
S_IWRITE = S_IWUSR;
S_IEXEC = S_IXUSR;
S_IRGRP = S_IRUSR shr 3;
S_IWGRP = S_IWUSR shr 3;
S_IXGRP = S_IXUSR shr 3;
S_IRWXG = S_IRWXU shr 3;
S_IROTH = S_IRGRP shr 3;
S_IWOTH = S_IWGRP shr 3;
S_IXOTH = S_IXGRP shr 3;
S_IRWXO = S_IRWXG shr 3;
__FD_SETSIZE = 1024;
__NFDBITS = 8 * sizeof(__fd_mask);
stdin = 0;
stdout = 1;
stderr = 2;
LC_ALL = 0;
LC_COLLATE = 1;
LC_CTYPE = 2;
LC_MONETARY = 3;
LC_NUMERIC = 4;
LC_TIME = 5;
LC_MESSAGES = 6;
_LC_LAST = 7;
CODESET = 0;
D_T_FMT = 1;
D_FMT = 2;
T_FMT = 3;
T_FMT_AMPM = 4;
AM_STR = 5;
PM_STR = 6;
DAY_1 = 7;
DAY_2 = 8;
DAY_3 = 9;
DAY_4 = 10;
DAY_5 = 11;
DAY_6 = 12;
DAY_7 = 13;
ABDAY_1 = 14;
ABDAY_2 = 15;
ABDAY_3 = 16;
ABDAY_4 = 17;
ABDAY_5 = 18;
ABDAY_6 = 19;
ABDAY_7 = 20;
MON_1 = 21;
MON_2 = 22;
MON_3 = 23;
MON_4 = 24;
MON_5 = 25;
MON_6 = 26;
MON_7 = 27;
MON_8 = 28;
MON_9 = 29;
MON_10 = 30;
MON_11 = 31;
MON_12 = 32;
ABMON_1 = 33;
ABMON_2 = 34;
ABMON_3 = 35;
ABMON_4 = 36;
ABMON_5 = 37;
ABMON_6 = 38;
ABMON_7 = 39;
ABMON_8 = 40;
ABMON_9 = 41;
ABMON_10 = 42;
ABMON_11 = 43;
ABMON_12 = 44;
ERA = 45;
ERA_D_FMT = 46;
ERA_D_T_FMT = 47;
ERA_T_FMT = 48;
ALT_DIGITS = 49;
RADIXCHAR = 50;
DECIMAL_POINT = RADIXCHAR;
MON_DECIMAL_POINT = RADIXCHAR;
THOUSEP = 51;
THOUSANDS_SEP = THOUSEP;
MON_THOUSANDS_SEP = THOUSEP;
YESEXPR = 52;
NOEXPR = 53;
YESSTR = 54;
NOSTR = 55;
CRNCYSTR = 56;
CURRENCY_SYMBOL = CRNCYSTR;
D_MD_ORDER = 57;
ALTMON_1 = 58;
ALTMON_2 = 59;
ALTMON_3 = 60;
ALTMON_4 = 61;
ALTMON_5 = 62;
ALTMON_6 = 63;
ALTMON_7 = 64;
ALTMON_8 = 65;
ALTMON_9 = 66;
ALTMON_10 = 67;
ALTMON_11 = 68;
ALTMON_12 = 69;
PTHREAD_CREATE_JOINABLE = 0;
PTHREAD_CREATE_DETACHED = 1;
PTHREAD_INHERIT_SCHED = 0;
PTHREAD_EXPLICIT_SCHED = 1;
PTHREAD_SCOPE_SYSTEM = 0;
PTHREAD_SCOPE_PROCESS = 1;
PTHREAD_MUTEX_TIMED_NP = 0;
PTHREAD_MUTEX_RECURSIVE_NP = 1;
PTHREAD_MUTEX_ERRORCHECK_NP = 2;
PTHREAD_MUTEX_ADAPTIVE_NP = 3;
PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP;
PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP;
PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP;
PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL;
PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_ADAPTIVE_NP;
PTHREAD_PROCESS_PRIVATE = 0;
PTHREAD_PROCESS_SHARED = 1;
PTHREAD_RWLOCK_PREFER_READER_NP = 0;
PTHREAD_RWLOCK_PREFER_WRITER_NP = 1;
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP = 2;
PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_WRITER_NP;
PTHREAD_ONCE_INIT = 0;
__SIZEOF_SEM_T = 16;
__SI_MAX_SIZE = 128;
__SI_PAD_SIZE = ((__SI_MAX_SIZE div sizeof (cint)) - 3);
_SIGSET_NWORDS = 1024 div (8 * (sizeof(dword)));
SA_ONSTACK = $0001;
SA_RESTART = $0002;
SA_RESETHAND = $0004;
SA_NODEFER = $0010;
SA_NOCLDWAIT = $0020;
SA_SIGINFO = $0040;
__S_IFMT = $F000;
__S_IFDIR = $4000;
__S_IFCHR = $2000;
__S_IFBLK = $6000;
__S_IFREG = $8000;
__S_IFIFO = $1000;
__S_IFLNK = $A000;
__S_IFSOCK = $C000;
S_IFMT = __S_IFMT;
S_IFDIR = __S_IFDIR;
S_IFCHR = __S_IFCHR;
S_IFBLK = __S_IFBLK;
S_IFREG = __S_IFREG;
S_IFIFO = __S_IFIFO;
S_IFLNK = __S_IFLNK;
S_IFSOCK = __S_IFSOCK;
__SIZEOF_PTHREAD_MUTEX_T = 24;
NCCS = 32;
DT_UNKNOWN = 0;
DT_FIFO = 1;
DT_CHR = 2;
DT_DIR = 4;
DT_BLK = 6;
DT_REG = 8;
DT_LNK = 10;
DT_SOCK = 12;
DT_WHT = 14;
R_OK = 4;
W_OK = 2;
X_OK = 1;
F_OK = 0;
PTHREAD_CANCEL_ENABLE = 0;
PTHREAD_CANCEL_DISABLE = 1;
PTHREAD_CANCEL_DEFERRED = 0;
PTHREAD_CANCEL_ASYNCHRONOUS = 1;
PTHREAD_CANCELED = Pointer(-1);
PTHREAD_BARRIER_SERIAL_THREAD = -1;
NONRECURSIVE = 0;
RECURSIVE = 2;
_STAT_VER_LINUX_OLD = 1;
_STAT_VER_KERNEL = 1;
_STAT_VER_SVR4 = 2;
_STAT_VER_LINUX = 3;
_STAT_VER = _STAT_VER_LINUX;
CLOCK_REALTIME = 0;
CLOCK_VIRTUAL = 1;
CLOCK_PROF = 2;
CLOCK_MONOTONIC = 4;
CLOCK_UPTIME = 5;
CLOCK_UPTIME_PRECISE = 7;
CLOCK_UPTIME_FAST = 8;
CLOCK_REALTIME_PRECISE = 9;
CLOCK_REALTIME_FAST = 10;
CLOCK_MONOTONIC_PRECISE = 11;
CLOCK_MONOTONIC_FAST = 12;
CLOCK_SECOND = 13;
CLOCK_THREAD_CPUTIME_ID = 14;
CLOCK_PROCESS_CPUTIME_ID = 15;
TIMER_ABSTIME = 1;
SIG_ERR = (-1);
SIG_DFL = (0);
SIG_IGN = (1);
SIG_HOLD = (3);
SIGHUP = 1;
SIGINT = 2;
SIGQUIT = 3;
SIGILL = 4;
SIGTRAP = 5;
SIGABRT = 6;
SIGIOT = SIGABRT;
SIGEMT = 7;
SIGFPE = 8;
SIGKILL = 9;
SIGBUS = 10;
SIGSEGV = 11;
SIGSYS = 12;
SIGPIPE = 13;
SIGALRM = 14;
SIGTERM = 15;
SIGURG = 16;
SIGSTOP = 17;
SIGTSTP = 18;
SIGCONT = 19;
SIGCHLD = 20;
SIGTTIN = 21;
SIGTTOU = 22;
SIGIO = 23;
SIGXCPU = 24;
SIGXFSZ = 25;
SIGVTALRM = 26;
SIGPROF = 27;
SIGWINCH = 28;
SIGINFO = 29;
SIGUSR1 = 30;
SIGUSR2 = 31;
SIGTHR = 32;
SIGLWP = SIGTHR;
SIGLIBRT = 33;
POLLIN = $001;
POLLPRI = $002;
POLLOUT = $004;
POLLRDNORM = $040;
POLLRDBAND = $080;
POLLWRNORM = $100;
POLLWRBAND = $200;
POLLMSG = $400;
POLLERR = $008;
POLLHUP = $010;
POLLNVAL = $020;
SIG_BLOCK = 1;
SIG_UNBLOCK = 2;
SIG_SETMASK =3;
VINTR = 0;
VQUIT = 1;
VERASE = 2;
VKILL = 3;
VEOF = 4;
VTIME = 5;
VMIN = 6;
VSWTC = 7;
VSTART = 8;
VSTOP = 9;
VSUSP = 10;
VEOL = 11;
VREPRINT = 12;
VDISCARD = 13;
VWERASE = 14;
VLNEXT = 15;
VEOL2 = 16;
IGNBRK = $0000001;
BRKINT = $0000002;
IGNPAR = $0000004;
PARMRK = $0000008;
INPCK = $0000010;
ISTRIP = $0000020;
INLCR = $0000040;
IGNCR = $0000080;
ICRNL = $0000100;
IUCLC = $0000200;
IXON = $0000400;
IXANY = $0000800;
IXOFF = $0001000;
IMAXBEL = $0002000;
OPOST = $0000001;
OLCUC = $0000002;
ONLCR = $0000004;
OCRNL = $0000008;
ONOCR = $0000010;
ONLRET = $0000020;
OFILL = $0000040;
OFDEL = $0000080;
NLDLY = $0000040;
NL0 = $0000000;
NL1 = $0000100;
CRDLY = $0000600;
CR0 = $0000000;
CR1 = $0000200;
CR2 = $0000400;
CR3 = $0000600;
TABDLY = $0001800;
TAB0 = $0000000;
TAB1 = $0000800;
TAB2 = $0001000;
TAB3 = $0001800;
BSDLY = $0002000;
BS0 = $0000000;
BS1 = $0002000;
FFDLY = $0080000;
FF0 = $0000000;
FF1 = $0010000;
VTDLY = $0004000;
VT0 = $0000000;
VT1 = $0004000;
XTABS = $0001800;
CBAUD = $000100F;
B0 = $0000000;
B50 = $0000001;
B75 = $0000002;
B110 = $0000003;
B134 = $0000004;
B150 = $0000005;
B200 = $0000006;
B300 = $0000007;
B600 = $0000008;
B1200 = $0000009;
B1800 = $000000A;
B2400 = $000000B;
B4800 = $000000C;
B9600 = $000000D;
B19200 = $000000E;
B38400 = $000000F;
EXTA = B19200;
EXTB = B38400;
CSIZE = $0000030;
CS5 = $0000000;
CS6 = $0000010;
CS7 = $0000010;
CS8 = $0000030;
CSTOPB = $0000040;
CREAD = $0000080;
PARENB = $0000100;
PARODD = $0000200;
HUPCL = $0000400;
CLOCAL = $0000800;
CBAUDEX = $0001000;
B57600 = $0001001;
B115200 = $0001002;
B230400 = $0001003;
B460800 = $0001004;
B500000 = $0001005;
B576000 = $0001006;
B921600 = $0001007;
B1000000 = $0001008;
B1152000 = $0001009;
B1500000 = $000100A;
B2000000 = $000100B;
B2500000 = $000100C;
B3000000 = $000100D;
B3500000 = $000100E;
B4000000 = $000100F;
CIBAUD = $100F0000;
CRTSCTS = $80000000;
ISIG = $0000001;
ICANON = $0000002;
XCASE = $0000004;
ECHO = $0000008;
ECHOE = $0000010;
ECHOK = $0000020;
ECHONL = $0000040;
NOFLSH = $0000080;
TOSTOP = $0000100;
ECHOCTL = $0000200;
ECHOPRT = $0000400;
ECHOKE = $0000800;
FLUSHO = $0001000;
PENDIN = $0004000;
IEXTEN = $0010000;
TCOOFF = 0;
TCOON = 1;
TCIOFF = 2;
TCION = 3;
TCIFLUSH = 0;
TCOFLUSH = 1;
TCIOFLUSH = 2;
TCSANOW = 0;
TCSADRAIN = 1;
TCSAFLUSH = 2;
TIOCM_LE = $001;
TIOCM_DTR = $002;
TIOCM_RTS = $004;
TIOCM_ST = $008;
TIOCM_SR = $010;
TIOCM_CTS = $020;
TIOCM_CAR = $040;
TIOCM_RNG = $080;
TIOCM_DSR = $100;
TIOCM_CD = TIOCM_CAR;
TIOCM_RI = TIOCM_RNG;
N_TTY = 0;
N_SLIP = 1;
N_MOUSE = 2;
N_PPP = 3;
N_STRIP = 4;
N_AX25 = 5;
N_X25 = 6;
N_6PACK = 7;
N_MASC = 8;
N_R3964 = 9;
N_PROFIBUS_FDL = 10;
N_IRDA = 11;
N_SMSBLOCK = 12;
N_HDLC = 13;
N_SYNC_PPP = 14;
N_HCI = 15;
WNOHANG = 1;
WUNTRACED = 2;
__WALL = $40000000;
__WCLONE = $80000000;
EXIT_FAILURE = 1;
EXIT_SUCCESS = 0;
PF_UNSPEC = 0;
PF_LOCAL = 1;
PF_UNIX = PF_LOCAL;
PF_FILE = PF_LOCAL;
PF_INET = 2;
PF_AX25 = 3;
PF_IPX = 4;
PF_APPLETALK = 5;
PF_NETROM = 6;
PF_BRIDGE = 7;
PF_ATMPVC = 8;
PF_X25 = 9;
PF_INET6 = 10;
PF_ROSE = 11;
PF_DECnet = 12;
PF_NETBEUI = 13;
PF_SECURITY = 14;
PF_KEY = 15;
PF_NETLINK = 16;
PF_ROUTE = PF_NETLINK;
PF_PACKET = 17;
PF_ASH = 18;
PF_ECONET = 19;
PF_ATMSVC = 20;
PF_SNA = 22;
PF_IRDA = 23;
PF_PPPOX = 24;
PF_WANPIPE = 25;
PF_BLUETOOTH = 31;
PF_MAX = 32;
AF_UNSPEC = PF_UNSPEC;
AF_LOCAL = PF_LOCAL;
AF_UNIX = PF_UNIX;
AF_FILE = PF_FILE;
AF_INET = PF_INET;
AF_AX25 = PF_AX25;
AF_IPX = PF_IPX;
AF_APPLETALK = PF_APPLETALK;
AF_NETROM = PF_NETROM;
AF_BRIDGE = PF_BRIDGE;
AF_ATMPVC = PF_ATMPVC;
AF_X25 = PF_X25;
AF_INET6 = PF_INET6;
AF_ROSE = PF_ROSE;
AF_DECnet = PF_DECnet;
AF_NETBEUI = PF_NETBEUI;
AF_SECURITY = PF_SECURITY;
AF_KEY = PF_KEY;
AF_NETLINK = PF_NETLINK;
AF_ROUTE = PF_ROUTE;
AF_PACKET = PF_PACKET;
AF_ASH = PF_ASH;
AF_ECONET = PF_ECONET;
AF_ATMSVC = PF_ATMSVC;
AF_SNA = PF_SNA;
AF_IRDA = PF_IRDA;
AF_PPPOX = PF_PPPOX;
AF_WANPIPE = PF_WANPIPE;
AF_BLUETOOTH = PF_BLUETOOTH;
AF_MAX = PF_MAX;
SOL_RAW = 255;
SOL_DECNET = 261;
SOL_X25 = 262;
SOL_PACKET = 263;
SOL_ATM = 264;
SOL_AAL = 265;
SOL_IRDA = 266;
SOMAXCONN = 128;
SOCK_STREAM = 1;
SOCK_DGRAM = 2;
SOCK_RAW = 3;
SOCK_RDM = 4;
SOCK_SEQPACKET = 5;
SOCK_PACKET = 10;
SOL_SOCKET = 1;
SO_DEBUG = 1;
SO_REUSEADDR = 2;
SO_TYPE = 3;
SO_ERROR = 4;
SO_DONTROUTE = 5;
SO_BROADCAST = 6;
SO_SNDBUF = 7;
SO_RCVBUF = 8;
SO_KEEPALIVE = 9;
SO_OOBINLINE = 10;
SO_NO_CHECK = 11;
SO_PRIORITY = 12;
SO_LINGER = 13;
SO_BSDCOMPAT = 14;
SO_PASSCRED = 16;
SO_PEERCRED = 17;
SO_RCVLOWAT = 18;
SO_SNDLOWAT = 19;
SO_RCVTIMEO = 20;
SO_SNDTIMEO = 21;
SO_SECURITY_AUTHENTICATION = 22;
SO_SECURITY_ENCRYPTION_TRANSPORT = 23;
SO_SECURITY_ENCRYPTION_NETWORK = 24;
SO_BINDTODEVICE = 25;
SO_ATTACH_FILTER = 26;
SO_DETACH_FILTER = 27;
SO_PEERNAME = 28;
SO_TIMESTAMP = 29;
SCM_TIMESTAMP = SO_TIMESTAMP;
SO_ACCEPTCONN = 30;
recursiveconst = PTHREAD_MUTEX_RECURSIVE;
NR_sendfile = 187;
__SIZEOF_PTHREAD_COND_T = 48;
PROT_READ = $1;
PROT_WRITE = $2;
PROT_EXEC = $4;
PROT_NONE = $0;
PROT_GROWSDOWN = $01000000;
PROT_GROWSUP = $02000000;
MAP_SHARED = $01;
MAP_PRIVATE = $02;
MAP_TYPE = $0f;
MAP_FIXED = $10;
MAP_FILE = 0;
MAP_ANONYMOUS = $20;
MAP_HUGE_SHIFT = 26;
MAP_HUGE_MASK = $3f;
MAP_FAILED = pointer(ptrint(-1));

Variables

getpwuid_r: function(uid: uid_t; pwd: ppasswd; buffer: pchar; bufsize: size_t; _result: pppasswd): cint cdecl;
cuserid: function(_string: pcchar): pcchar cdecl;
environ: ppchar; cvar; external;
clock_gettime: function(clk_id: cint; tp: ptimespec): cint; cdecl;

Description

Functions and Procedures

function kqueue(): cint; cdecl; external clib name 'kqueue';
 
function kevent(kq: cint; changelist: pkevent_t; nchanges: cint; eventlist: pkevent_t; nevents: cint; timeout: ptimespec): cint; cdecl; external clib name 'kevent';
 
function nl_langinfo(__item: nl_item):Pchar; cdecl; external clib name 'nl_langinfo';
 
function sigaction(__sig:longint; Const act: _sigaction; Var oldact: _sigaction):longint; cdecl; external clib name 'sigaction'; overload;
 
function sigaction(__sig: longint; Action: PSigAction; OldAction: PSigAction): Integer; cdecl; external clib name 'sigaction'; overload;
 
function getpid:__pid_t; cdecl; external clib name 'getpid';
 
function getuid(): uid_t cdecl; external clib name 'getuid';
 
function geteuid(): uid_t cdecl; external clib name 'geteuid';
 
function sscanf(__s:Pchar; __format:Pchar; args:array of const):longint; cdecl; external clib name 'sscanf';
 
function sched_yield:longint; cdecl; external clib name 'sched_yield';
 
function usleep(__useconds:__useconds_t):longint; cdecl; external clib name 'usleep';
 
function __errno_location: PInteger; cdecl; external clib name '__error';
 
function strerror_r(__errnum:longint; __buf:Pchar; __buflen:size_t):Pchar; cdecl; external clib name 'strerror_r';
 
function pthread_mutexattr_init(var __attr: pthread_mutexattr_t):longint; cdecl; external threadslib;
 
function pthread_mutexattr_settype(var __attr: pthread_mutexattr_t; Kind: Integer): Integer; cdecl; external threadslib;
 
function pthread_mutexattr_destroy(var __attr: pthread_mutexattr_t):longint; cdecl; external threadslib;
 
function __mkdir(__path:Pchar; __mode:__mode_t):longint; cdecl; external clib name 'mkdir';
 
function fcntl(__fd: cint; __cmd: cint; args: array of const): cint; cdecl; external clib name 'fcntl'; overload;
 
function fcntl(__fd: cint; __cmd: cint): cint; cdecl; varargs; external clib name 'fcntl'; overload;
 
function open(__file:Pchar; __oflag: cint; args:array of const): cint; cdecl; external clib name 'open'; overload;
 
function open(__file:Pchar; __oflag: cint): cint; cdecl; varargs; external clib name 'open'; overload;
 
function __close(Handle: cint): cint; cdecl; external clib name 'close';
 
function ftruncate64(handle: cint; size: cint64): cint; cdecl; external clib name 'ftruncate';
 
function access(__name: pchar; __type: cint): cint; cdecl; external clib name 'access';
 
function fsync(__fd: cint): cint; cdecl; external clib name 'fsync';
 
function dup(__fd: cint): cint; cdecl; external clib name 'dup';
 
function dup2(__fd: cint; __fd2: cint):longint; cdecl; external clib name 'dup2';
 
function __read(Handle: cint; var Buffer; Count: size_t): ssize_t; cdecl; external clib name 'read';
 
function __write(Handle: cint; const Buffer; Count: size_t): ssize_t; cdecl; external clib name 'write';
 
function chmod(__file: pchar;__mode: __mode_t): cint; cdecl; external clib name 'chmod';
 
function fchmod(__fd: cint;__mode: __mode_t): cint; cdecl; external clib name 'fchmod';
 
function sem_init(__sem:Psem_t; __pshared: cint; __value: cuint): cint; cdecl; external threadslib name 'sem_init'; overload;
 
function sem_init(var __sem: sem_t; __pshared: cint; __value: cuint): cint; cdecl; external threadslib name 'sem_init'; overload;
 
function sem_destroy(var __sem: sem_t): cint; cdecl; external threadslib name 'sem_destroy';
 
function sem_post(var __sem: sem_t): cint; cdecl; external threadslib name 'sem_post';
 
function sem_wait(var __sem: sem_t): cint; cdecl; external threadslib name 'sem_wait';
 
function sem_trywait(var __sem: sem_t): cint; cdecl; external threadslib name 'sem_trywait';
 
function sem_getvalue(var __sem: sem_t; __sval:Plongint):longint; cdecl; external threadslib name 'sem_getvalue';
 
function pthread_setcanceltype(__type:longint; var __oldtype:longint):longint; cdecl; external threadslib; overload;
 
function pthread_setcanceltype(__type:longint; __oldtype:Plongint):longint; cdecl; external threadslib name 'pthread_setcanceltype'; overload;
 
function pthread_setcancelstate(__state:longint;__oldstate:Plongint):longint; cdecl; external threadslib name 'pthread_setcancelstate';
 
function pthread_equal(__thread1:pthread_t; __thread2:pthread_t):longint; cdecl; external threadslib name 'pthread_equal';
 
function pthread_self:pthread_t; cdecl; external threadslib name 'pthread_self';
 
function stat(__file:Pchar; __buf:Pstat):longint; cdecl; external clib name 'stat';
 
function fstat(__fd:longint; __buf:Pstat):longint; cdecl; external clib name 'fstat';
 
function stat64(__file:Pchar; __buf:Pstat64):longint; cdecl; external clib name 'stat';
 
function fstat64(__fd:longint; __buf:Pstat64):longint; cdecl; external clib name 'fstat';
 
function lstat(__file:Pchar; __buf:Pstat):longint; cdecl; external clib name 'lstat';
 
function lstat64(__file:Pchar; __buf:Pstat64):longint; cdecl; external clib name 'lstat';
 
function flock(fd: cint; operation: cint): cint; cdecl; external clib name 'flock';
 
function S_ISDIR(mode : __mode_t) : boolean;
 
function __rename(__old: Pchar; __new:Pchar):longint; cdecl; external clib name 'rename';
 
function unlink(__name: Pchar): longint; cdecl; external clib name 'unlink';
 
function rmdir(__name: Pchar): longint; cdecl; external clib name 'rmdir';
 
function getcwd(__buf: Pchar; __size:size_t):Pchar; cdecl; external clib name 'getcwd';
 
function getenv(__name: Pchar): Pchar; cdecl; external clib name 'getenv';
 
function setenv(envname: pchar; envval: pchar; overwrite: cint): cint; cdecl; external clib name 'setenv';
 
function putenv(astring: Pchar): longint; cdecl; external clib name 'putenv';
 
function unsetenv(envname: pchar): cint; cdecl; external clib name 'unsetenv';
 
function __chdir(__path:Pchar):longint; cdecl; external clib name 'chdir';
 
function opendir(__name:Pchar):PDIR; cdecl; external clib name 'opendir';
 
function closedir(__dirp:PDIR):longint; cdecl; external clib name 'closedir';
 
function __time(var __timer : ttime_t):time_t; cdecl; external clib name 'time'; overload;
 
function __time(__timer:Ptime_t):time_t; cdecl; external clib name 'time'; overload;
 
function timelocal(var __tp: tm):time_t; cdecl; external clib name 'timelocal';
 
function setlocale(__category:longint; __locale:Pchar):Pchar; cdecl; external clib name 'setlocale';
 
function setitimer(__which: __itimer_which_t; __new:Pitimerval; __old:Pitimerval):longint; cdecl; external clib name 'setitimer';
 
function mbsnrtowcs(__dst:Pwchar_t; __src:PPchar; __nmc:size_t; __len:size_t; __ps:Pmbstate_t):size_t; cdecl; external clib name 'mbsnrtowcs';
 
function poll(__fds: Ppollfd; __nfds:nfds_t; __timeout:longint): cint; cdecl; external clib name 'poll';
 
function ppoll(__fds: ppollfd;__nfds: nfds_t; __timeout: ptimespec; __ss: p__sigset_t): cint; cdecl; external clib name 'ppoll';
 
function signal(__sig:longint; __handler:__sighandler_t):__sighandler_t; cdecl; external clib name 'signal';
 
function sigemptyset(var SigSet : TSigSet):longint; cdecl; external clib name 'sigemptyset';
 
function sigfillset(var SigSet : TSigSet):longint; cdecl; external clib name 'sigfillset';
 
function sigaddset(var SigSet : TSigSet; SigNum : Longint):longint; cdecl; external clib name 'sigaddset';
 
function sigdelset(var SigSet : TSigSet; SigNum : Longint):longint; cdecl; external clib name 'sigdelset';
 
function sigismember(var SigSet : TSigSet; SigNum : Longint):longint; cdecl; external clib name 'sigismember';
 
function sigprocmask(__how: cint; sigset: p__sigset_t; oldset: p__sigset_t):longint; cdecl; external clib name 'sigprocmask';
 
function pthread_sigmask(__how: cint; __newmask: p__sigset_t; __oldmask: p__sigset_t):longint; cdecl; external threadslib name 'pthread_sigmask';
 
function kill(__pid:__pid_t; __sig:longint):longint; cdecl; external clib name 'kill';
 
function posix_openpt(oflag: cint):longint; cdecl; external clib name 'posix_openpt';
 
function getpt(): longint;
 
function grantpt(__fd:longint):longint; cdecl; external clib name 'grantpt';
 
function unlockpt(__fd:longint):longint; cdecl; external clib name 'unlockpt';
 
function ptsname(fildes: cint): pchar; cdecl; external clib name 'ptsname';
 
function ptsname_r(__fd:longint; __buf:Pchar; __buflen:size_t):longint;
 
function SIGRTMIN(): cint; cdecl; external clib name '__libc_current_sigrtmin';
 
function SIGRTMAX(): cint; cdecl; external clib name '__libc_current_sigrtmax';
 
function ioctl(__fd: cint; __request:dword; args: array of const): cint; cdecl; external clib name 'ioctl'; overload;
 
function ioctl(__fd: cint; __request: cuint; args: pointer): cint; cdecl; external clib name 'ioctl'; overload;
 
function cfsetispeed(var __termios_p: termios; __speed:speed_t): cint; cdecl; external clib name 'cfsetispeed';
 
function cfsetospeed(var __termios_p: termios; __speed:speed_t): cint; cdecl; external clib name 'cfsetospeed';
 
function isatty(__fd: cint): cint; cdecl; external clib name 'isatty';
 
function ttyname(__fd: cint): pchar; cdecl; external clib name 'ttyname';
 
function ttyname_r(__fd: cint; buf: pchar; buflen: size_t): cint; cdecl; external clib name 'ttyname_r';
 
function gettimeofday(var __tv: timeval; var _tz: timezone):longint; cdecl; external clib name 'gettimeofday'; overload;
 
function gettimeofday(var __tv: timeval; __tz:__timezone_ptr_t):longint; cdecl; external clib name 'gettimeofday'; overload;
 
function pthread_kill(__thread:pthread_t; __signo:longint):longint; cdecl; external threadslib name 'pthread_kill';
 
function waitpid(__pid:__pid_t; __stat_loc:Plongint; __options:longint):__pid_t; cdecl; external clib name 'waitpid'; overload;
 
function waitpid(__pid:__pid_t; var __stat_loc:longint; __options:longint):__pid_t; cdecl; external clib name 'waitpid'; overload;
 
function WEXITSTATUS(status: cint): cint;
 
function WTERMSIG(status: cint): cint;
 
function WIFEXITED(status: cint): boolean;
 
function WIFSIGNALED(status: cint): boolean;
 
function __system(__command:Pchar):longint; cdecl; external clib name 'system';
 
function pipe(var __pipedes: TPipes):longint; cdecl; external clib name 'pipe'; overload;
 
function pipe(var PipeDes: TPipeDescriptors): Integer; cdecl; external clib name 'pipe'; overload;
 
function pipe2(var PipeDes: TPipeDescriptors; flags: cint): Integer; cdecl; external clib name 'pipe2';
 
function vfork: __pid_t; cdecl; external clib name 'vfork';
 
function fork: __pid_t; cdecl; external clib name 'fork';
 
function setsid: __pid_t; cdecl; external clib name 'setsid';
 
function getsid(pid: __pid_t): __pid_t; cdecl; external clib name 'getsid';
 
function setpgid(__pid:__pid_t; __pgid:__pid_t):longint; cdecl; external clib name 'setpgid';
 
function getpgid(pid: __pid_t): __pid_t; cdecl; external clib name 'getpgid';
 
procedure _exit(__status : longint); cdecl; external clib name '_exit';
 
function execl(__path:Pchar; __arg:Pchar):longint; cdecl; varargs; external clib name 'execl'; overload;
 
function execl(__path:Pchar; __arg:Pchar; args:array of const):longint; cdecl; external clib name 'execl'; overload;
 
function execv(__path: pcchar; __argv: ppchar): cint; cdecl; external clib name 'execv';
 
function execve(__path: pcchar; __argv: ppchar; __envp:ppchar): cint; cdecl; external clib name 'execve';
 
function errno: error_t;
 
procedure free(__ptr:pointer); cdecl; external clib name 'free';
 
function socket(__domain:longint; __type:longint; __protocol:longint):longint; cdecl; external clib name 'socket'; overload;
 
function shutdown(__fd:longint; __how:longint):longint; cdecl; external clib name 'shutdown';
 
function connect(__fd:longint; const __addr: sockaddr; __len:socklen_t):longint; cdecl; external clib name 'connect'; overload;
 
function connect(__fd:longint; __addr:Psockaddr; __len:socklen_t):longint; cdecl; external clib name 'connect'; overload;
 
function bind(__fd:longint; __addr:Psockaddr; __len:socklen_t):longint; cdecl; external clib name 'bind';
 
function listen(__fd:longint; __n:longint):longint; cdecl; external clib name 'listen';
 
function accept(__fd:longint; __addr:Psockaddr; __addr_len:Psocklen_t):longint; cdecl; external clib name 'accept';
 
function isfdtype(__fd:longint; __fdtype:longint):longint; cdecl; external clib name 'isfdtype';
 
function setsockopt(__fd:longint; __level:longint; __optname:longint; __optval:pointer; __optlen:socklen_t):longint; cdecl; external clib name 'setsockopt';
 
function getaddrinfo(__name:Pchar; __service:Pchar; __req:Paddrinfo; __pai:PPaddrinfo):longint; cdecl; external clib name 'getaddrinfo';
 
function htons(__hostshort:uint16_t):uint16_t; cdecl; external clib name 'htons';
 
procedure freeaddrinfo(__ai:Paddrinfo); cdecl; external clib name 'freeaddrinfo';
 
function ntohs(__netshort:uint16_t):uint16_t; cdecl; external clib name 'ntohs';
 
function gai_strerror(__ecode:longint):Pchar; cdecl; external clib name 'gai_strerror';
 
function syscall(SysNo: Longint): Integer; cdecl; varargs; external clib name 'syscall';
 
function gettimeofday(__tv:Ptimeval; __tz:ptimezone):longint; cdecl; external clib name 'gettimeofday'; overload;
 
function msetcgetattr(filedes: longint; var msetermios: termios): longint; cdecl; external clib name 'tcgetattr';
 
function msetcsetattr(filedes: longint; when: longint; var msetermios: termios): longint; cdecl; external clib name 'tcsetattr';
 
function tcdrain(filedes: longint): longint; cdecl; external clib name 'tcdrain';
 
function tcflush(filedes: longint; queue_selector: longint): longint; cdecl; external clib name 'tcflush';
 
function pthread_create(__thread:Ppthread_t; __attr:Ppthread_attr_t; __start_routine:TStartRoutine; __arg:pointer):longint; cdecl; external threadslib name 'pthread_create';
 
function pthread_join(__th:pthread_t; __thread_return:Ppointer):longint; cdecl; external threadslib name 'pthread_join';
 
function pthread_detach(__th:pthread_t):longint; cdecl; external threadslib name 'pthread_detach';
 
function pthread_cancel(__thread: pthread_t):longint; cdecl; external threadslib name 'pthread_cancel';
 
function pthread_attr_init(var __attr: pthread_attr_t):longint; cdecl; external threadslib name 'pthread_attr_init';
 
function pthread_cond_init(var Cond: TCondVar; CondAttr: PPthreadCondattr): Integer; cdecl; external threadslib name 'pthread_cond_init';
 
function pthread_cond_destroy(var Cond: TCondVar): Integer; cdecl; external threadslib name 'pthread_cond_destroy';
 
function pthread_cond_wait(var Cond: TCondVar; var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_cond_wait';
 
function pthread_cond_timedwait(var Cond: TCondVar; var Mutex: pthread_mutex_t; AbsTime: pTimeSpec): Integer; cdecl; external threadslib name 'pthread_cond_timedwait';
 
function pthread_cond_broadcast(var Cond: TCondVar): Integer; cdecl; external threadslib name 'pthread_cond_broadcast';
 
function pthread_cond_signal(var Cond: TCondVar): Integer; cdecl; external threadslib name 'pthread_cond_signal';
 
function sem_timedwait(var __sem: TSemaphore; __abstime: ptimespec): Integer; cdecl; external threadslib name 'sem_timedwait';
 
function pthread_mutex_init(__mutex: Ppthread_mutex_t; __mutex_attr: Ppthread_mutexattr_t): longint; cdecl; external threadslib name 'pthread_mutex_init';
 
function pthread_mutex_destroy(var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_mutex_destroy';
 
function pthread_mutex_lock(var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_mutex_lock';
 
function pthread_mutex_trylock(var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_mutex_trylock';
 
function pthread_mutex_unlock(var Mutex: pthread_mutex_t): Integer; cdecl; external threadslib name 'pthread_mutex_unlock';
 
function readdir64_r(__dirp:PDIR; __entry:Pdirent64; __result:PPdirent64):longint; cdecl; external clib name 'readdir_r';
 
function localtime_r(__timer:Ptime_t; __tp:Ptm):Ptm; cdecl; external clib name 'localtime_r';
 
function shm_open(name: pcchar; oflag: cint; mode: mode_t): cint; cdecl; external shmlib name 'shm_open';
 
function shm_unlink(name: pcchar): cint; cdecl; external shmlib name 'shm_unlink';
 
function mmap(addr: pointer; lengthint: size_t; prot: cint; flags: cint; fd: cint; offset: off_t): pointer; cdecl; external clib name 'mmap';
 
function munmap(addr: pointer; length: size_t): cint; cdecl; external clib name 'munmap';
 
procedure initlibc();
 

Types

__dev_t = cuint32;
 
__uid_t = __U32_TYPE;
 
__gid_t = __U32_TYPE;
 
__ino_t = __ULONGWORD_TYPE;
 
__ino64_t = __UQUAD_TYPE;
 
__mode_t = __U32_TYPE;
 
__nlink_t = __UWORD_TYPE;
 
__off_t = __SLONGWORD_TYPE;
 
__off64_t = __SQUAD_TYPE;
 
__pid_t = __S32_TYPE;
 
__rlim_t = __ULONGWORD_TYPE;
 
__rlim64_t = __UQUAD_TYPE;
 
__blkcnt_t = __SLONGWORD_TYPE;
 
__blkcnt64_t = __SQUAD_TYPE;
 
__fsblkcnt_t = __ULONGWORD_TYPE;
 
__fsblkcnt64_t = __UQUAD_TYPE;
 
__fsfilcnt_t = __ULONGWORD_TYPE;
 
__fsfilcnt64_t = __UQUAD_TYPE;
 
__id_t = __U32_TYPE;
 
__clock_t = __SLONGWORD_TYPE;
 
__time_t = cint32;
 
__useconds_t = __U32_TYPE;
 
__suseconds_t = __SLONGWORD_TYPE;
 
__daddr_t = __S32_TYPE;
 
__swblk_t = __SLONGWORD_TYPE;
 
__key_t = __S32_TYPE;
 
__clockid_t = __S32_TYPE;
 
__timer_t = pointer;
 
__blksize_t = __SLONGWORD_TYPE;
 
__ssize_t = __SWORD_TYPE;
 
__fd_mask = __ULONGWORD_TYPE;
 
__ipc_pid_t = word;
 
__caddr_t = ˆchar;
 
__ptr_t = Pointer;
 
P__ptr_t = ˆ__ptr_t;
 
ptrdiff_t = Integer;
 
__long_double_t = Extended;
 
P__long_double_t = ˆ__long_double_t;
 
Psize_t = ˆsize_t;
 
wchar_t = widechar;
 
Pwchar_t = ˆwchar_t;
 
PPwchar_t = ˆPwchar_t;
 
PPByte = ˆPByte;
 
PPPChar = ˆPPChar;
 
__u_char = byte;
 
__u_short = word;
 
__u_int = dword;
 
__u_long = dword;
 
__u_quad_t = qword;
 
__quad_t = int64;
 
__int8_t = char;
 
__uint8_t = byte;
 
__int16_t = smallint;
 
__uint16_t = word;
 
__int32_t = longint;
 
__uint32_t = dword;
 
__int64_t = Int64;
 
__uint64_t = Qword;
 
__qaddr_t = __quad_t;
 
__loff_t = __quad_t;
 
int64_t = Int64;
 
uint8_t = byte;
 
uint16_t = word;
 
uint32_t = dword;
 
uint64_t = qword;
 
int_least8_t = char;
 
int_least16_t = smallint;
 
int_least32_t = longint;
 
int_least64_t = int64;
 
uint_least8_t = byte;
 
uint_least16_t = word;
 
uint_least32_t = dword;
 
uint_least64_t = qword;
 
int_fast8_t = shortint;
 
int_fast16_t = longint;
 
int_fast32_t = longint;
 
int_fast64_t = int64;
 
uint_fast8_t = byte;
 
uint_fast16_t = dword;
 
uint_fast32_t = dword;
 
uint_fast64_t = qword;
 
intptr_t = ptrint;
 
uintptr_t = ptruint;
 
intmax_t = Int64;
 
uintmax_t = QWord;
 
TTimeSpec = timespec;
 
PTimeSpec = ˆTTimeSpec;
 
pkevent_t = ˆkevent_t;
 
__t_scalar_t = longint;
 
__t_uscalar_t = dword;
 
__intptr_t = longint;
 
__socklen_t = dword;
 
TFileDescriptor = integer;
 
P_stat = ˆ_stat;
 
PStat = ˆ_stat;
 
P_stat64 = ˆ_stat64;
 
Pstat64 = ˆ_stat64;
 
ino_t = cuint32;
 
mode_t = cuint16;
 
n_link_t = cuint16;
 
uid_t = cuint32;
 
gid_t = cuint32;
 
off_t = cint64;
 
blkcnt_t = cint64;
 
blksize_t = cuint32;
 
fflags_t = cuint32;
 
_stat64 = _stat;
 
TFdSet = __fd_set;
 
PFdSet = ˆTFdSet;
 
u_char = __u_char;
 
u_short = __u_short;
 
u_int = __u_int;
 
u_long = __u_long;
 
quad_t = __quad_t;
 
u_quad_t = __u_quad_t;
 
fsid_t = __fsid_t;
 
loff_t = __loff_t;
 
ino64_t = __ino64_t;
 
dev_t = __dev_t;
 
nlink_t = __nlink_t;
 
off64_t = __off64_t;
 
pid_t = __pid_t;
 
id_t = __id_t;
 
ssize_t = __ssize_t;
 
daddr_t = __daddr_t;
 
caddr_t = __caddr_t;
 
key_t = __key_t;
 
useconds_t = __useconds_t;
 
suseconds_t = __suseconds_t;
 
ulong = dword;
 
ushort = word;
 
uint = dword;
 
int8_t = char;
 
int16_t = smallint;
 
int32_t = longint;
 
u_int8_t = byte;
 
u_int16_t = word;
 
u_int32_t = dword;
 
register_t = longint;
 
fsblkcnt_t = __fsblkcnt_t;
 
fsfilcnt_t = __fsfilcnt_t;
 
blkcnt64_t = __blkcnt64_t;
 
fsblkcnt64_t = __fsblkcnt64_t;
 
fsfilcnt64_t = __fsfilcnt64_t;
 
P__key_t = ˆ__key_t;
 
P__ipc_pid_t = ˆ__ipc_pid_t;
 
P__blksize_t = ˆ__blksize_t;
 
P__blkcnt_t = ˆ__blkcnt_t;
 
P__blkcnt64_t = ˆ__blkcnt64_t;
 
P__fsblkcnt_t = ˆ__fsblkcnt_t;
 
P__fsblkcnt64_t = ˆ__fsblkcnt64_t;
 
P__fsfilcnt_t = ˆ__fsfilcnt_t;
 
P__fsfilcnt64_t = ˆ__fsfilcnt64_t;
 
P__ino64_t = ˆ__ino64_t;
 
P__off64_t = ˆ__off64_t;
 
P__t_scalar_t = ˆ__t_scalar_t;
 
P__t_uscalar_t = ˆ__t_uscalar_t;
 
P__intptr_t = ˆ__intptr_t;
 
P__socklen_t = ˆ__socklen_t;
 
Pu_char = ˆu_char;
 
Pu_short = ˆu_short;
 
Pu_int = ˆu_int;
 
Pu_long = ˆu_long;
 
Pquad_t = ˆquad_t;
 
Pu_quad_t = ˆu_quad_t;
 
Pfsid_t = ˆfsid_t;
 
Ploff_t = ˆloff_t;
 
Pino_t = ˆino_t;
 
Pino64_t = ˆino64_t;
 
Pdev_t = ˆdev_t;
 
Pgid_t = ˆgid_t;
 
Pmode_t = ˆmode_t;
 
Pnlink_t = ˆnlink_t;
 
Puid_t = ˆuid_t;
 
Poff_t = ˆoff_t;
 
Poff64_t = ˆoff64_t;
 
Ppid_t = ˆpid_t;
 
Pssize_t = ˆssize_t;
 
Pdaddr_t = ˆdaddr_t;
 
Pcaddr_t = ˆcaddr_t;
 
Pkey_t = ˆkey_t;
 
Puseconds_t = ˆuseconds_t;
 
Psuseconds_t = ˆsuseconds_t;
 
Pulong = ˆulong;
 
Pushort = ˆushort;
 
Puint = ˆuint;
 
Pint8_t = ˆint8_t;
 
Pint16_t = ˆint16_t;
 
Pint32_t = ˆint32_t;
 
Pu_int8_t = ˆu_int8_t;
 
Pu_int16_t = ˆu_int16_t;
 
Pu_int32_t = ˆu_int32_t;
 
Pregister_t = ˆregister_t;
 
Pblksize_t = ˆblksize_t;
 
Pblkcnt_t = ˆblkcnt_t;
 
Pfsblkcnt_t = ˆfsblkcnt_t;
 
Pfsfilcnt_t = ˆfsfilcnt_t;
 
Pblkcnt64_t = ˆblkcnt64_t;
 
Pfsblkcnt64_t = ˆfsblkcnt64_t;
 
Pfsfilcnt64_t = ˆfsfilcnt64_t;
 
P__qaddr_t = ˆ__qaddr_t;
 
P__dev_t = ˆ__dev_t;
 
P__uid_t = ˆ__uid_t;
 
P__gid_t = ˆ__gid_t;
 
P__ino_t = ˆ__ino_t;
 
P__mode_t = ˆ__mode_t;
 
P__nlink_t = ˆ__nlink_t;
 
P__off_t = ˆ__off_t;
 
P__loff_t = ˆ__loff_t;
 
P__pid_t = ˆ__pid_t;
 
P__ssize_t = ˆ__ssize_t;
 
P__rlim_t = ˆ__rlim_t;
 
P__rlim64_t = ˆ__rlim64_t;
 
P__id_t = ˆ__id_t;
 
P__fsid_t = ˆ__fsid_t;
 
P__daddr_t = ˆ__daddr_t;
 
P__caddr_t = ˆ__caddr_t;
 
P__time_t = ˆ__time_t;
 
P__useconds_t = ˆ__useconds_t;
 
P__suseconds_t = ˆ__suseconds_t;
 
P__swblk_t = ˆ__swblk_t;
 
P__clock_t = ˆ__clock_t;
 
P__clockid_t = ˆ__clockid_t;
 
P__timer_t = ˆ__timer_t;
 
Pnl_item = ˆnl_item;
 
nl_item = longint;
 
Psched_param = ˆsched_param;
 
__sched_param = sched_param;
 
P__sched_param = ˆ__sched_param;
 
TSchedParam = __sched_param;
 
PSchedParam = ˆTSchedParam;
 
TStartRoutine = function (_para1:pointer): integer; cdecl;
 
Ppthread_condattr_t = ˆpthread_condattr_t;
 
TPthreadCondattr = pthread_condattr_t;
 
PPthreadCondattr = ˆTPthreadCondattr;
 
P_pthread_fastlock = ˆ_pthread_fastlock;
 
Ppthread_mutexattr_t = ˆpthread_mutexattr_t;
 
Ppthread_t = ˆpthread_t;
 
pthread_t = culong;
 
P_pthread_descr = ˆ_pthread_descr;
 
_pthread_descr = pointer;
 
P__pthread_attr_s = ˆ__pthread_attr_s;
 
pthread_attr_t = __pthread_attr_s;
 
Ppthread_attr_t = ˆpthread_attr_t;
 
Psem_t = ˆsem_t;
 
sem_t = array[0..__SIZEOF_SEM_T-1] of byte;
 
TSemaphore = sem_t;
 
PSemaphore = ˆTSemaphore;
 
Psigval = ˆsigval;
 
sigval_t = sigval;
 
Psigval_t = ˆsigval_t;
 
_si_pad = packed array[0..__SI_PAD_SIZE-1] of cint;
 
Psiginfo = ˆ_siginfo;
 
siginfo_t = _siginfo;
 
Psiginfo_t = ˆsiginfo_t;
 
Tsiginfo_t = siginfo_t;
 
TSigActionHandlerEx = procedure(Signal: Integer; SignalInfo: PSigInfo; P: Pointer); cdecl;
 
TRestoreHandler = procedure; cdecl;
 
P__sig_atomic_t = ˆ__sig_atomic_t;
 
__sig_atomic_t = longint;
 
P__sigset_t = ˆ__sigset_t;
 
sigset_t = __sigset_t;
 
Psigset_t = ˆsigset_t;
 
TSigset = __sigset_t;
 
PSigset = ˆTSigset;
 
__sighandler_t = procedure(SigNum: Integer); cdecl;
 
TSignalHandler = __sighandler_t;
 
P_sigaction = ˆ_sigaction;
 
TSigAction = _sigaction;
 
PSigAction = ˆTSigAction;
 
__sigaction = _sigaction;
 
TSigActionHandler = procedure(Signal: Integer); cdecl;
 
Ppthread_mutex_t = ˆpthread_mutex_t;
 
pthread_mutex_t = array[0..__SIZEOF_PTHREAD_MUTEX_T-1] of byte;
 
__dirstream = DIR;
 
PDIR = ˆDIR;
 
TDirectoryStream = DIR;
 
PDirectoryStream = ˆTDirectoryStream;
 
Ptimeval = ˆtimeval;
 
TTimeVal = timeval;
 
ptimezone = ˆtimezone;
 
P__timezone_ptr_t = ˆ__timezone_ptr_t;
 
__timezone_ptr_t = ˆtimezone;
 
ppasswd = ˆpasswd;
 
pppasswd = ˆppasswd;
 
Pcc_t = ˆcc_t;
 
cc_t = char;
 
Pspeed_t = ˆspeed_t;
 
speed_t = dword;
 
Ptcflag_t = ˆtcflag_t;
 
tcflag_t = dword;
 
Ptermios = ˆtermios;
 
Pdirent64 = ˆdirent64;
 
PPDirEnt64 = ˆPDirEnt64;
 
time_t = __time_t;
 
Ptime_t = ˆtime_t;
 
Ptm = ˆtm;
 
TMutexAttribute = pthread_mutexattr_t;
 
PMutexAttribute = ˆTMutexAttribute;
 
TUnixTime = tm;
 
PUnixTime = ˆTUnixTime;
 
TTime_T = Time_t;
 
Psighandler_t = ˆsighandler_t;
 
sighandler_t = __sighandler_t;
 
__itimer_which = (...);
 
Values
  • ITIMER_REAL
  • ITIMER_VIRTUAL
  • ITIMER_PROF
Pitimerval = ˆitimerval;
 
P__itimer_which_t = ˆ__itimer_which_t;
 
__itimer_which_t = __itimer_which;
 
wint_t = longword;
 
mbstate_t = __mbstate_t;
 
Pmbstate_t = ˆmbstate_t;
 
Pnfds_t = ˆnfds_t;
 
nfds_t = dword;
 
Ppollfd = ˆpollfd;
 
PPipeDescriptors = ˆTPipeDescriptors;
 
TPipes = Array[0..1] of longint;
 
PPipes = ˆTPipes;
 
error_t = Integer;
 
Psa_family_t = ˆsa_family_t;
 
sa_family_t = word;
 
TInAddr = in_addr;
 
PInAddr = ˆTInAddr;
 
TSockAddr = sockaddr;
 
PSockAddr = ˆTSockAddr;
 
sockaddr_in = sockaddr;
 
Psockaddr_in = ˆsockaddr;
 
TSockAddrIn = sockaddr_in;
 
PSockAddrIn = ˆTSockAddrIn;
 
Pin_port_t = ˆin_port_t;
 
in_port_t = uint16_t;
 
Pin6_addr = ˆin6_addr;
 
Psockaddr_in6 = ˆsockaddr_in6;
 
__socket_type = type cenum;
 
TSocket = longint;
 
SOCKLEN_T = __socklen_t;
 
PSOCKLEN_T = ˆSOCKLEN_T;
 
Paddrinfo = ˆaddrinfo;
 
PPaddrinfo = ˆPaddrinfo;
 
tcondvar = array[0..__SIZEOF_PTHREAD_COND_T-1] of byte;
 

Constants

clib = 'libc.so.6';
 
threadslib = 'libpthread.so.0';
 
shmlib = clib;
 
TCGETS = $5401;
 
TCSETS = $5402;
 
TCSETSW = $5403;
 
TCSETSF = $5404;
 
TCGETA = $5405;
 
TCSETA = $5406;
 
TCSETAW = $5407;
 
TCSETAF = $5408;
 
TCSBRK = $5409;
 
TCXONC = $540A;
 
TCFLSH = $540B;
 
TIOCEXCL = $540C;
 
TIOCNXCL = $540D;
 
TIOCSCTTY = $540E;
 
TIOCGPGRP = $540F;
 
TIOCSPGRP = $5410;
 
TIOCOUTQ = $5411;
 
TIOCSTI = $5412;
 
TIOCGWINSZ = $5413;
 
TIOCSWINSZ = $5414;
 
TIOCMGET = $5415;
 
TIOCMBIS = $5416;
 
TIOCMBIC = $5417;
 
TIOCMSET = $5418;
 
TIOCGSOFTCAR = $5419;
 
TIOCSSOFTCAR = $541A;
 
FIONREAD = $541B;
 
TIOCINQ = FIONREAD;
 
TIOCLINUX = $541C;
 
TIOCCONS = $541D;
 
TIOCGSERIAL = $541E;
 
TIOCSSERIAL = $541F;
 
TIOCPKT = $5420;
 
FIONBIO = $5421;
 
TIOCNOTTY = $5422;
 
TIOCSETD = $5423;
 
TIOCGETD = $5424;
 
TCSBRKP = $5425;
 
TIOCTTYGSTRUCT = $5426;
 
TIOCSBRK = $5427;
 
TIOCCBRK = $5428;
 
TIOCGSID = $5429;
 
FIONCLEX = $5450;
 
FIOCLEX = $5451;
 
FIOASYNC = $5452;
 
TIOCSERCONFIG = $5453;
 
TIOCSERGWILD = $5454;
 
TIOCSERSWILD = $5455;
 
TIOCGLCKTRMIOS = $5456;
 
TIOCSLCKTRMIOS = $5457;
 
TIOCSERGSTRUCT = $5458;
 
TIOCSERGETLSR = $5459;
 
TIOCSERGETMULTI = $545A;
 
TIOCSERSETMULTI = $545B;
 
TIOCMIWAIT = $545C;
 
TIOCGICOUNT = $545D;
 
TIOCGHAYESESP = $545E;
 
TIOCSHAYESESP = $545F;
 
TIOCPKT_DATA = 0;
 
TIOCPKT_FLUSHREAD = 1;
 
TIOCPKT_FLUSHWRITE = 2;
 
TIOCPKT_STOP = 4;
 
TIOCPKT_START = 8;
 
TIOCPKT_NOSTOP = 16;
 
TIOCPKT_DOSTOP = 32;
 
TIOCSER_TEMT = $01;
 
EPERM = 1;
 
ENOENT = 2;
 
ESRCH = 3;
 
EINTR = 4;
 
EIO = 5;
 
ENXIO = 6;
 
E2BIG = 7;
 
ENOEXEC = 8;
 
EBADF = 9;
 
ECHILD = 10;
 
EDEADLK = 11;
 
ENOMEM = 12;
 
EACCES = 13;
 
EFAULT = 14;
 
ENOTBLK = 15;
 
EBUSY = 16;
 
EEXIST = 17;
 
EXDEV = 18;
 
ENODEV = 19;
 
ENOTDIR = 20;
 
EISDIR = 21;
 
EINVAL = 22;
 
ENFILE = 23;
 
EMFILE = 24;
 
ENOTTY = 25;
 
ETXTBSY = 26;
 
EFBIG = 27;
 
ENOSPC = 28;
 
ESPIPE = 29;
 
EROFS = 30;
 
EMLINK = 31;
 
EPIPE = 32;
 
EDOM = 33;
 
ERANGE = 34;
 
EAGAIN = 35;
 
EWOULDBLOCK = EAGAIN;
 
EINPROGRESS = 36;
 
EALREADY = 37;
 
ENOTSOCK = 38;
 
EDESTADDRREQ = 39;
 
EMSGSIZE = 40;
 
EPROTOTYPE = 41;
 
ENOPROTOOPT = 42;
 
EPROTONOSUPPORT = 43;
 
ESOCKTNOSUPPORT = 44;
 
EOPNOTSUPP = 45;
 
ENOTSUP = EOPNOTSUPP;
 
EPFNOSUPPORT = 46;
 
EAFNOSUPPORT = 47;
 
EADDRINUSE = 48;
 
EADDRNOTAVAIL = 49;
 
ENETDOWN = 50;
 
ENETUNREACH = 51;
 
ENETRESET = 52;
 
ECONNABORTED = 53;
 
ECONNRESET = 54;
 
ENOBUFS = 55;
 
EISCONN = 56;
 
ENOTCONN = 57;
 
ESHUTDOWN = 58;
 
ETOOMANYREFS = 59;
 
ETIMEDOUT = 60;
 
ECONNREFUSED = 61;
 
ELOOP = 62;
 
ENAMETOOLONG = 63;
 
EHOSTDOWN = 64;
 
EHOSTUNREACH = 65;
 
ENOTEMPTY = 66;
 
EPROCLIM = 67;
 
EUSERS = 68;
 
EDQUOT = 69;
 
ESTALE = 70;
 
EREMOTE = 71;
 
EBADRPC = 72;
 
ERPCMISMATCH = 73;
 
EPROGUNAVAIL = 74;
 
EPROGMISMATCH = 75;
 
EPROCUNAVAIL = 76;
 
ENOLCK = 77;
 
ENOSYS = 78;
 
EFTYPE = 79;
 
EAUTH = 80;
 
ENEEDAUTH = 81;
 
EIDRM = 82;
 
ENOMSG = 83;
 
EOVERFLOW = 84;
 
ECANCELED = 85;
 
EILSEQ = 86;
 
ENOATTR = 87;
 
EDOOFUS = 88;
 
EBADMSG = 89;
 
EMULTIHOP = 90;
 
ENOLINK = 91;
 
EPROTO = 92;
 
ENOTCAPABLE = 93;
 
ECAPMODE = 94;
 
ENOTRECOVERABLE = 95;
 
EOWNERDEAD = 96;
 
ELAST = 96;
 
O_RDONLY = $0000;
 
O_WRONLY = $0001;
 
O_RDWR = $0002;
 
O_ACCMODE = $0003;
 
O_NONBLOCK = $0004;
 
O_APPEND = $0008;
 
O_SHLOCK = $0010;
 
O_EXLOCK = $0020;
 
O_ASYNC = $0040;
 
O_FSYNC = $0080;
 
O_SYNC = $0080;
 
O_NOFOLLOW = $0100;
 
O_CREAT = $0200;
 
O_TRUNC = $0400;
 
O_EXCL = $0800;
 
O_NOCTTY = $8000;
 
O_DIRECT = $00010000;
 
O_DIRECTORY = $00020000;
 
O_EXEC = $00040000;
 
O_TTY_INIT = $00080000;
 
O_CLOEXEC = $00100000;
 
F_DUPFD = 0;
 
F_GETFD = 1;
 
F_SETFD = 2;
 
F_GETFL = 3;
 
F_SETFL = 4;
 
F_GETOWN = 5;
 
F_SETOWN = 6;
 
F_OGETLK = 7;
 
F_OSETLK = 8;
 
F_OSETLKW = 9;
 
F_DUP2FD = 10;
 
F_GETLK = 11;
 
F_SETLK = 12;
 
F_SETLKW = 13;
 
F_SETLK_REMOTE = 14;
 
F_READAHEAD = 15;
 
F_RDAHEAD = 16;
 
F_DUPFD_CLOEXEC = 17;
 
F_DUP2FD_CLOEXEC = 18;
 
FD_CLOEXEC = 1;
 
F_RDLCK = 1;
 
F_UNLCK = 2;
 
F_WRLCK = 3;
 
F_UNLCKSYS = 4;
 
F_CANCEL = 5;
 
F_WAIT = $010;
 
F_FLOCK = $020;
 
F_POSIX = $040;
 
F_REMOTE = $080;
 
F_NOINTR = $100;
 
EVFILT_READ = (-1);
 
EVFILT_WRITE = (-2);
 
EVFILT_AIO = (-3);
 
EVFILT_VNODE = (-4);
 
EVFILT_PROC = (-5);
 
EVFILT_SIGNAL = (-6);
 
EVFILT_TIMER = (-7);
 
EVFILT_FS = (-9);
 
EVFILT_LIO = (-10);
 
EVFILT_USER = (-11);
 
EVFILT_SYSCOUNT = 11;
 
EV_ADD = $0001;
 
EV_DELETE = $0002;
 
EV_ENABLE = $0004;
 
EV_DISABLE = $0008;
 
EV_ONESHOT = $0010;
 
EV_CLEAR = $0020;
 
EV_RECEIPT = $0040;
 
EV_DISPATCH = $0080;
 
EV_SYSFLAGS = $F000;
 
EV_DROP = $1000;
 
EV_FLAG1 = $2000;
 
EV_EOF = $8000;
 
EV_ERROR = $4000;
 
NOTE_FFNOP = $00000000;
 
NOTE_FFAND = $40000000;
 
NOTE_FFOR = $80000000;
 
NOTE_FFCOPY = $c0000000;
 
NOTE_FFCTRLMASK = $c0000000;
 
NOTE_FFLAGSMASK = $00ffffff;
 
NOTE_TRIGGER = $01000000;
 
NOTE_LOWAT = $0001;
 
NOTE_DELETE = $0001;
 
NOTE_WRITE = $0002;
 
NOTE_EXTEND = $0004;
 
NOTE_ATTRIB = $0008;
 
NOTE_LINK = $0010;
 
NOTE_RENAME = $0020;
 
NOTE_REVOKE = $0040;
 
NOTE_EXIT = $80000000;
 
NOTE_FORK = $40000000;
 
NOTE_EXEC = $20000000;
 
NOTE_PCTRLMASK = $f0000000;
 
NOTE_PDATAMASK = $000fffff;
 
NOTE_TRACK = $00000001;
 
NOTE_TRACKERR = $00000002;
 
NOTE_CHILD = $00000004;
 
LOCK_SH = 1;
 
LOCK_EX = 2;
 
LOCK_NB = 4;
 
LOCK_UN = 8;
 
LOCK_MAND = 32;
 
LOCK_READ = 64;
 
LOCK_WRITE = 128;
 
LOCK_RW = 192;
 
DN_ACCESS = $00000001;
 
DN_MODIFY = $00000002;
 
DN_CREATE = $00000004;
 
DN_DELETE = $00000008;
 
DN_RENAME = $00000010;
 
DN_ATTRIB = $00000020;
 
DN_MULTISHOT = $80000000;
 
__S_ISUID = $800;
 
__S_ISGID = $400;
 
__S_ISVTX = $200;
 
__S_IREAD = $100;
 
__S_IWRITE = $80;
 
__S_IEXEC = $40;
 
S_ISUID = __S_ISUID;
 
S_ISGID = __S_ISGID;
 
S_ISVTX = __S_ISVTX;
 
S_IRUSR = __S_IREAD;
 
S_IWUSR = __S_IWRITE;
 
S_IXUSR = __S_IEXEC;
 
S_IRWXU = (__S_IREAD or __S_IWRITE) or __S_IEXEC;
 
S_IREAD = S_IRUSR;
 
S_IWRITE = S_IWUSR;
 
S_IEXEC = S_IXUSR;
 
S_IRGRP = S_IRUSR shr 3;
 
S_IWGRP = S_IWUSR shr 3;
 
S_IXGRP = S_IXUSR shr 3;
 
S_IRWXG = S_IRWXU shr 3;
 
S_IROTH = S_IRGRP shr 3;
 
S_IWOTH = S_IWGRP shr 3;
 
S_IXOTH = S_IXGRP shr 3;
 
S_IRWXO = S_IRWXG shr 3;
 
__FD_SETSIZE = 1024;
 
__NFDBITS = 8 * sizeof(__fd_mask);
 
stdin = 0;
 
stdout = 1;
 
stderr = 2;
 
LC_ALL = 0;
 
LC_COLLATE = 1;
 
LC_CTYPE = 2;
 
LC_MONETARY = 3;
 
LC_NUMERIC = 4;
 
LC_TIME = 5;
 
LC_MESSAGES = 6;
 
_LC_LAST = 7;
 
CODESET = 0;
 
D_T_FMT = 1;
 
D_FMT = 2;
 
T_FMT = 3;
 
T_FMT_AMPM = 4;
 
AM_STR = 5;
 
PM_STR = 6;
 
DAY_1 = 7;
 
DAY_2 = 8;
 
DAY_3 = 9;
 
DAY_4 = 10;
 
DAY_5 = 11;
 
DAY_6 = 12;
 
DAY_7 = 13;
 
ABDAY_1 = 14;
 
ABDAY_2 = 15;
 
ABDAY_3 = 16;
 
ABDAY_4 = 17;
 
ABDAY_5 = 18;
 
ABDAY_6 = 19;
 
ABDAY_7 = 20;
 
MON_1 = 21;
 
MON_2 = 22;
 
MON_3 = 23;
 
MON_4 = 24;
 
MON_5 = 25;
 
MON_6 = 26;
 
MON_7 = 27;
 
MON_8 = 28;
 
MON_9 = 29;
 
MON_10 = 30;
 
MON_11 = 31;
 
MON_12 = 32;
 
ABMON_1 = 33;
 
ABMON_2 = 34;
 
ABMON_3 = 35;
 
ABMON_4 = 36;
 
ABMON_5 = 37;
 
ABMON_6 = 38;
 
ABMON_7 = 39;
 
ABMON_8 = 40;
 
ABMON_9 = 41;
 
ABMON_10 = 42;
 
ABMON_11 = 43;
 
ABMON_12 = 44;
 
ERA = 45;
 
ERA_D_FMT = 46;
 
ERA_D_T_FMT = 47;
 
ERA_T_FMT = 48;
 
ALT_DIGITS = 49;
 
RADIXCHAR = 50;
 
DECIMAL_POINT = RADIXCHAR;
 
MON_DECIMAL_POINT = RADIXCHAR;
 
THOUSEP = 51;
 
THOUSANDS_SEP = THOUSEP;
 
MON_THOUSANDS_SEP = THOUSEP;
 
YESEXPR = 52;
 
NOEXPR = 53;
 
YESSTR = 54;
 
NOSTR = 55;
 
CRNCYSTR = 56;
 
CURRENCY_SYMBOL = CRNCYSTR;
 
D_MD_ORDER = 57;
 
ALTMON_1 = 58;
 
ALTMON_2 = 59;
 
ALTMON_3 = 60;
 
ALTMON_4 = 61;
 
ALTMON_5 = 62;
 
ALTMON_6 = 63;
 
ALTMON_7 = 64;
 
ALTMON_8 = 65;
 
ALTMON_9 = 66;
 
ALTMON_10 = 67;
 
ALTMON_11 = 68;
 
ALTMON_12 = 69;
 
PTHREAD_CREATE_JOINABLE = 0;
 
PTHREAD_CREATE_DETACHED = 1;
 
PTHREAD_INHERIT_SCHED = 0;
 
PTHREAD_EXPLICIT_SCHED = 1;
 
PTHREAD_SCOPE_SYSTEM = 0;
 
PTHREAD_SCOPE_PROCESS = 1;
 
PTHREAD_MUTEX_TIMED_NP = 0;
 
PTHREAD_MUTEX_RECURSIVE_NP = 1;
 
PTHREAD_MUTEX_ERRORCHECK_NP = 2;
 
PTHREAD_MUTEX_ADAPTIVE_NP = 3;
 
PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP;
 
PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP;
 
PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP;
 
PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL;
 
PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_ADAPTIVE_NP;
 
PTHREAD_PROCESS_PRIVATE = 0;
 
PTHREAD_PROCESS_SHARED = 1;
 
PTHREAD_RWLOCK_PREFER_READER_NP = 0;
 
PTHREAD_RWLOCK_PREFER_WRITER_NP = 1;
 
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP = 2;
 
PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_WRITER_NP;
 
PTHREAD_ONCE_INIT = 0;
 
__SIZEOF_SEM_T = 16;
 
__SI_MAX_SIZE = 128;
 
__SI_PAD_SIZE = ((__SI_MAX_SIZE div sizeof (cint)) - 3);
 
_SIGSET_NWORDS = 1024 div (8 * (sizeof(dword)));
 
SA_ONSTACK = $0001;
 
SA_RESTART = $0002;
 
SA_RESETHAND = $0004;
 
SA_NODEFER = $0010;
 
SA_NOCLDWAIT = $0020;
 
SA_SIGINFO = $0040;
 
__S_IFMT = $F000;
 
__S_IFDIR = $4000;
 
__S_IFCHR = $2000;
 
__S_IFBLK = $6000;
 
__S_IFREG = $8000;
 
__S_IFIFO = $1000;
 
__S_IFLNK = $A000;
 
__S_IFSOCK = $C000;
 
S_IFMT = __S_IFMT;
 
S_IFDIR = __S_IFDIR;
 
S_IFCHR = __S_IFCHR;
 
S_IFBLK = __S_IFBLK;
 
S_IFREG = __S_IFREG;
 
S_IFIFO = __S_IFIFO;
 
S_IFLNK = __S_IFLNK;
 
S_IFSOCK = __S_IFSOCK;
 
__SIZEOF_PTHREAD_MUTEX_T = 24;
 
NCCS = 32;
 
DT_UNKNOWN = 0;
 
DT_FIFO = 1;
 
DT_CHR = 2;
 
DT_DIR = 4;
 
DT_BLK = 6;
 
DT_REG = 8;
 
DT_LNK = 10;
 
DT_SOCK = 12;
 
DT_WHT = 14;
 
R_OK = 4;
 
W_OK = 2;
 
X_OK = 1;
 
F_OK = 0;
 
PTHREAD_CANCEL_ENABLE = 0;
 
PTHREAD_CANCEL_DISABLE = 1;
 
PTHREAD_CANCEL_DEFERRED = 0;
 
PTHREAD_CANCEL_ASYNCHRONOUS = 1;
 
PTHREAD_CANCELED = Pointer(-1);
 
PTHREAD_BARRIER_SERIAL_THREAD = -1;
 
NONRECURSIVE = 0;
 
RECURSIVE = 2;
 
_STAT_VER_LINUX_OLD = 1;
 
_STAT_VER_KERNEL = 1;
 
_STAT_VER_SVR4 = 2;
 
_STAT_VER_LINUX = 3;
 
_STAT_VER = _STAT_VER_LINUX;
 
CLOCK_REALTIME = 0;
 
CLOCK_VIRTUAL = 1;
 
CLOCK_PROF = 2;
 
CLOCK_MONOTONIC = 4;
 
CLOCK_UPTIME = 5;
 
CLOCK_UPTIME_PRECISE = 7;
 
CLOCK_UPTIME_FAST = 8;
 
CLOCK_REALTIME_PRECISE = 9;
 
CLOCK_REALTIME_FAST = 10;
 
CLOCK_MONOTONIC_PRECISE = 11;
 
CLOCK_MONOTONIC_FAST = 12;
 
CLOCK_SECOND = 13;
 
CLOCK_THREAD_CPUTIME_ID = 14;
 
CLOCK_PROCESS_CPUTIME_ID = 15;
 
TIMER_ABSTIME = 1;
 
SIG_ERR = (-1);
 
SIG_DFL = (0);
 
SIG_IGN = (1);
 
SIG_HOLD = (3);
 
SIGHUP = 1;
 
SIGINT = 2;
 
SIGQUIT = 3;
 
SIGILL = 4;
 
SIGTRAP = 5;
 
SIGABRT = 6;
 
SIGIOT = SIGABRT;
 
SIGEMT = 7;
 
SIGFPE = 8;
 
SIGKILL = 9;
 
SIGBUS = 10;
 
SIGSEGV = 11;
 
SIGSYS = 12;
 
SIGPIPE = 13;
 
SIGALRM = 14;
 
SIGTERM = 15;
 
SIGURG = 16;
 
SIGSTOP = 17;
 
SIGTSTP = 18;
 
SIGCONT = 19;
 
SIGCHLD = 20;
 
SIGTTIN = 21;
 
SIGTTOU = 22;
 
SIGIO = 23;
 
SIGXCPU = 24;
 
SIGXFSZ = 25;
 
SIGVTALRM = 26;
 
SIGPROF = 27;
 
SIGWINCH = 28;
 
SIGINFO = 29;
 
SIGUSR1 = 30;
 
SIGUSR2 = 31;
 
SIGTHR = 32;
 
SIGLWP = SIGTHR;
 
SIGLIBRT = 33;
 
POLLIN = $001;
 
POLLPRI = $002;
 
POLLOUT = $004;
 
POLLRDNORM = $040;
 
POLLRDBAND = $080;
 
POLLWRNORM = $100;
 
POLLWRBAND = $200;
 
POLLMSG = $400;
 
POLLERR = $008;
 
POLLHUP = $010;
 
POLLNVAL = $020;
 
SIG_BLOCK = 1;
 
SIG_UNBLOCK = 2;
 
SIG_SETMASK =3;
 
VINTR = 0;
 
VQUIT = 1;
 
VERASE = 2;
 
VKILL = 3;
 
VEOF = 4;
 
VTIME = 5;
 
VMIN = 6;
 
VSWTC = 7;
 
VSTART = 8;
 
VSTOP = 9;
 
VSUSP = 10;
 
VEOL = 11;
 
VREPRINT = 12;
 
VDISCARD = 13;
 
VWERASE = 14;
 
VLNEXT = 15;
 
VEOL2 = 16;
 
IGNBRK = $0000001;
 
BRKINT = $0000002;
 
IGNPAR = $0000004;
 
PARMRK = $0000008;
 
INPCK = $0000010;
 
ISTRIP = $0000020;
 
INLCR = $0000040;
 
IGNCR = $0000080;
 
ICRNL = $0000100;
 
IUCLC = $0000200;
 
IXON = $0000400;
 
IXANY = $0000800;
 
IXOFF = $0001000;
 
IMAXBEL = $0002000;
 
OPOST = $0000001;
 
OLCUC = $0000002;
 
ONLCR = $0000004;
 
OCRNL = $0000008;
 
ONOCR = $0000010;
 
ONLRET = $0000020;
 
OFILL = $0000040;
 
OFDEL = $0000080;
 
NLDLY = $0000040;
 
NL0 = $0000000;
 
NL1 = $0000100;
 
CRDLY = $0000600;
 
CR0 = $0000000;
 
CR1 = $0000200;
 
CR2 = $0000400;
 
CR3 = $0000600;
 
TABDLY = $0001800;
 
TAB0 = $0000000;
 
TAB1 = $0000800;
 
TAB2 = $0001000;
 
TAB3 = $0001800;
 
BSDLY = $0002000;
 
BS0 = $0000000;
 
BS1 = $0002000;
 
FFDLY = $0080000;
 
FF0 = $0000000;
 
FF1 = $0010000;
 
VTDLY = $0004000;
 
VT0 = $0000000;
 
VT1 = $0004000;
 
XTABS = $0001800;
 
CBAUD = $000100F;
 
B0 = $0000000;
 
B50 = $0000001;
 
B75 = $0000002;
 
B110 = $0000003;
 
B134 = $0000004;
 
B150 = $0000005;
 
B200 = $0000006;
 
B300 = $0000007;
 
B600 = $0000008;
 
B1200 = $0000009;
 
B1800 = $000000A;
 
B2400 = $000000B;
 
B4800 = $000000C;
 
B9600 = $000000D;
 
B19200 = $000000E;
 
B38400 = $000000F;
 
EXTA = B19200;
 
EXTB = B38400;
 
CSIZE = $0000030;
 
CS5 = $0000000;
 
CS6 = $0000010;
 
CS7 = $0000010;
 
CS8 = $0000030;
 
CSTOPB = $0000040;
 
CREAD = $0000080;
 
PARENB = $0000100;
 
PARODD = $0000200;
 
HUPCL = $0000400;
 
CLOCAL = $0000800;
 
CBAUDEX = $0001000;
 
B57600 = $0001001;
 
B115200 = $0001002;
 
B230400 = $0001003;
 
B460800 = $0001004;
 
B500000 = $0001005;
 
B576000 = $0001006;
 
B921600 = $0001007;
 
B1000000 = $0001008;
 
B1152000 = $0001009;
 
B1500000 = $000100A;
 
B2000000 = $000100B;
 
B2500000 = $000100C;
 
B3000000 = $000100D;
 
B3500000 = $000100E;
 
B4000000 = $000100F;
 
CIBAUD = $100F0000;
 
CRTSCTS = $80000000;
 
ISIG = $0000001;
 
ICANON = $0000002;
 
XCASE = $0000004;
 
ECHO = $0000008;
 
ECHOE = $0000010;
 
ECHOK = $0000020;
 
ECHONL = $0000040;
 
NOFLSH = $0000080;
 
TOSTOP = $0000100;
 
ECHOCTL = $0000200;
 
ECHOPRT = $0000400;
 
ECHOKE = $0000800;
 
FLUSHO = $0001000;
 
PENDIN = $0004000;
 
IEXTEN = $0010000;
 
TCOOFF = 0;
 
TCOON = 1;
 
TCIOFF = 2;
 
TCION = 3;
 
TCIFLUSH = 0;
 
TCOFLUSH = 1;
 
TCIOFLUSH = 2;
 
TCSANOW = 0;
 
TCSADRAIN = 1;
 
TCSAFLUSH = 2;
 
TIOCM_LE = $001;
 
TIOCM_DTR = $002;
 
TIOCM_RTS = $004;
 
TIOCM_ST = $008;
 
TIOCM_SR = $010;
 
TIOCM_CTS = $020;
 
TIOCM_CAR = $040;
 
TIOCM_RNG = $080;
 
TIOCM_DSR = $100;
 
TIOCM_CD = TIOCM_CAR;
 
TIOCM_RI = TIOCM_RNG;
 
N_TTY = 0;
 
N_SLIP = 1;
 
N_MOUSE = 2;
 
N_PPP = 3;
 
N_STRIP = 4;
 
N_AX25 = 5;
 
N_X25 = 6;
 
N_6PACK = 7;
 
N_MASC = 8;
 
N_R3964 = 9;
 
N_PROFIBUS_FDL = 10;
 
N_IRDA = 11;
 
N_SMSBLOCK = 12;
 
N_HDLC = 13;
 
N_SYNC_PPP = 14;
 
N_HCI = 15;
 
WNOHANG = 1;
 
WUNTRACED = 2;
 
__WALL = $40000000;
 
__WCLONE = $80000000;
 
EXIT_FAILURE = 1;
 
EXIT_SUCCESS = 0;
 
PF_UNSPEC = 0;
 
PF_LOCAL = 1;
 
PF_UNIX = PF_LOCAL;
 
PF_FILE = PF_LOCAL;
 
PF_INET = 2;
 
PF_AX25 = 3;
 
PF_IPX = 4;
 
PF_APPLETALK = 5;
 
PF_NETROM = 6;
 
PF_BRIDGE = 7;
 
PF_ATMPVC = 8;
 
PF_X25 = 9;
 
PF_INET6 = 10;
 
PF_ROSE = 11;
 
PF_DECnet = 12;
 
PF_NETBEUI = 13;
 
PF_SECURITY = 14;
 
PF_KEY = 15;
 
PF_NETLINK = 16;
 
PF_ROUTE = PF_NETLINK;
 
PF_PACKET = 17;
 
PF_ASH = 18;
 
PF_ECONET = 19;
 
PF_ATMSVC = 20;
 
PF_SNA = 22;
 
PF_IRDA = 23;
 
PF_PPPOX = 24;
 
PF_WANPIPE = 25;
 
PF_BLUETOOTH = 31;
 
PF_MAX = 32;
 
AF_UNSPEC = PF_UNSPEC;
 
AF_LOCAL = PF_LOCAL;
 
AF_UNIX = PF_UNIX;
 
AF_FILE = PF_FILE;
 
AF_INET = PF_INET;
 
AF_AX25 = PF_AX25;
 
AF_IPX = PF_IPX;
 
AF_APPLETALK = PF_APPLETALK;
 
AF_NETROM = PF_NETROM;
 
AF_BRIDGE = PF_BRIDGE;
 
AF_ATMPVC = PF_ATMPVC;
 
AF_X25 = PF_X25;
 
AF_INET6 = PF_INET6;
 
AF_ROSE = PF_ROSE;
 
AF_DECnet = PF_DECnet;
 
AF_NETBEUI = PF_NETBEUI;
 
AF_SECURITY = PF_SECURITY;
 
AF_KEY = PF_KEY;
 
AF_NETLINK = PF_NETLINK;
 
AF_ROUTE = PF_ROUTE;
 
AF_PACKET = PF_PACKET;
 
AF_ASH = PF_ASH;
 
AF_ECONET = PF_ECONET;
 
AF_ATMSVC = PF_ATMSVC;
 
AF_SNA = PF_SNA;
 
AF_IRDA = PF_IRDA;
 
AF_PPPOX = PF_PPPOX;
 
AF_WANPIPE = PF_WANPIPE;
 
AF_BLUETOOTH = PF_BLUETOOTH;
 
AF_MAX = PF_MAX;
 
SOL_RAW = 255;
 
SOL_DECNET = 261;
 
SOL_X25 = 262;
 
SOL_PACKET = 263;
 
SOL_ATM = 264;
 
SOL_AAL = 265;
 
SOL_IRDA = 266;
 
SOMAXCONN = 128;
 
SOCK_STREAM = 1;
 
SOCK_DGRAM = 2;
 
SOCK_RAW = 3;
 
SOCK_RDM = 4;
 
SOCK_SEQPACKET = 5;
 
SOCK_PACKET = 10;
 
SOL_SOCKET = 1;
 
SO_DEBUG = 1;
 
SO_REUSEADDR = 2;
 
SO_TYPE = 3;
 
SO_ERROR = 4;
 
SO_DONTROUTE = 5;
 
SO_BROADCAST = 6;
 
SO_SNDBUF = 7;
 
SO_RCVBUF = 8;
 
SO_KEEPALIVE = 9;
 
SO_OOBINLINE = 10;
 
SO_NO_CHECK = 11;
 
SO_PRIORITY = 12;
 
SO_LINGER = 13;
 
SO_BSDCOMPAT = 14;
 
SO_PASSCRED = 16;
 
SO_PEERCRED = 17;
 
SO_RCVLOWAT = 18;
 
SO_SNDLOWAT = 19;
 
SO_RCVTIMEO = 20;
 
SO_SNDTIMEO = 21;
 
SO_SECURITY_AUTHENTICATION = 22;
 
SO_SECURITY_ENCRYPTION_TRANSPORT = 23;
 
SO_SECURITY_ENCRYPTION_NETWORK = 24;
 
SO_BINDTODEVICE = 25;
 
SO_ATTACH_FILTER = 26;
 
SO_DETACH_FILTER = 27;
 
SO_PEERNAME = 28;
 
SO_TIMESTAMP = 29;
 
SCM_TIMESTAMP = SO_TIMESTAMP;
 
SO_ACCEPTCONN = 30;
 
recursiveconst = PTHREAD_MUTEX_RECURSIVE;
 
NR_sendfile = 187;
 
__SIZEOF_PTHREAD_COND_T = 48;
 
PROT_READ = $1;
 
PROT_WRITE = $2;
 
PROT_EXEC = $4;
 
PROT_NONE = $0;
 
PROT_GROWSDOWN = $01000000;
 
PROT_GROWSUP = $02000000;
 
MAP_SHARED = $01;
 
MAP_PRIVATE = $02;
 
MAP_TYPE = $0f;
 
MAP_FIXED = $10;
 
MAP_FILE = 0;
 
MAP_ANONYMOUS = $20;
 
MAP_HUGE_SHIFT = 26;
 
MAP_HUGE_MASK = $3f;
 
MAP_FAILED = pointer(ptrint(-1));
 

Variables

getpwuid_r: function(uid: uid_t; pwd: ppasswd; buffer: pchar; bufsize: size_t; _result: pppasswd): cint cdecl;
 
cuserid: function(_string: pcchar): pcchar cdecl;
 
environ: ppchar; cvar; external;
 
clock_gettime: function(clk_id: cint; tp: ptimespec): cint; cdecl;
 

Generated by PasDoc 0.16.0.