4 {$define tv_sec := sec}
\r
5 {$define tv_usec := usec}
\r
6 function dup(const original:integer):integer;inline;
\r
8 linux.dup(original,result);
\r
10 {$define gettimeofdaysec := gettimeofday}
\r
13 {$define sigprocmask := fpsigprocmask}
\r
14 {$define sigaction := fpsigaction}
\r
15 {$define fdclose := fpclose}
\r
16 {$define fcntl := fpfcntl}
\r
17 {$define fdwrite := fpwrite}
\r
18 {$define fdread := fpread}
\r
19 {$define fdopen := fpopen}
\r
20 {$define select := fpselect}
\r
21 {$define linuxerror := fpgeterrno}
\r
22 {$define fork := fpfork}
\r
23 {$define getpid := fpgetpid}
\r
24 {$define getenv := fpgetenv}
\r
25 {$define chmod := fpchmod}
\r
26 {$define dup2 := fpdup2}
\r
28 {$define flock := fpflock}
\r
30 procedure Execl(Todo:string);inline;
\r
34 p := unixutil.StringToPPChar(Todo,1);
\r
35 if (p=nil) or (p^=nil) then exit;
\r
40 procedure gettimeofday(var tv:ttimeval);inline;
\r
42 fpgettimeofday(@tv,nil);
\r
44 function gettimeofdaysec : longint;
\r
49 result := tv.tv_sec;
\r
52 //a function is used here rather than a define to prevent issues with tlasio.dup
\r
53 function dup(const original:integer):integer;inline;
\r
55 result := fpdup(original);
\r
57 function octal(invalue:longint):longint;
\r
64 while invalue <> 0 do begin
\r
65 a := invalue mod 10;
\r
66 result := result + (a shl (i*3));
\r
68 invalue := invalue div 10;
\r
73 sys_eintr=esyseintr;
\r