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 gettimeofday(var tv:ttimeval);inline;
\r
32 fpgettimeofday(@tv,nil);
\r
34 function gettimeofdaysec : longint;
\r
39 result := tv.tv_sec;
\r
42 //a function is used here rather than a define to prevent issues with tlasio.dup
\r
43 function dup(const original:integer):integer;inline;
\r
45 result := fpdup(original);
\r
47 function octal(invalue:longint):longint;
\r
54 while invalue <> 0 do begin
\r
55 a := invalue mod 10;
\r
56 result := result + (a shl (i*3));
\r
58 invalue := invalue div 10;
\r
63 sys_eintr=esyseintr;
\r