[fpc-devel]fpStat() and LinuxError

Marco van de Voort marcov at stack.nl
Mon Dec 1 11:45:47 CET 2003


> > The libc.stat() function returns (-1) on failure, and sets errno.
> >
> > The baseunix.fpStat() function returns (-1) on failure,
> > but it does not set LinuxError.
> >
> > If I call fpStat() on a non-existing file, "strace" shows
> > the error is ENOENT, but LinuxError is still zero.
> >
> > ( I am using 1.9.0 [2003/11/05] for i386/Linux )
> 
> LinuxError is already removed. Use errno instead, just like C.

Internal Errno is only visible in implementation of system unit.

Use baseunix.geterrno/seterrno.




More information about the fpc-devel mailing list