On Sat, Aug 25, 2007 at 04:21:58PM +0400, 12 12 wrote:
>  sr: SysCallRegs;
> begin
>  sr.reg2:=Handle;
>  sr.reg3:=Ndx;
>  sr.reg4:=Longint(Data);
>  IOCtl:=(SysCall(Syscall_nr_ioctl,sr)=0);
>  LinuxError:=Errno;
> end;"
> 
> In this implementation all positive results of SysCall will be interpretted 
> as errors!
> Who can answer: why do this?

Oldlinux is legacy for 1.0.x compability, and shouldn't be used. Use
baseunix.fpioctl

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to