Re: [fpc-devel]fpStat() and LinuxError

2003-12-01 Thread Marco van de Voort
> > 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. > > > >

Re: [fpc-devel]fpStat() and LinuxError

2003-12-01 Thread Marco van de Voort
> How do I get the error code for fpStat() ? > > The oldlinux.stat() function returns FALSE on failure, and sets LinuxError. > > 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. Linu

Re: [fpc-devel]fpStat() and LinuxError

2003-12-01 Thread Peter Vreman
> How do I get the error code for fpStat() ? > > The oldlinux.stat() function returns FALSE on failure, and sets > LinuxError. > > 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

[fpc-devel]fpStat() and LinuxError

2003-12-01 Thread Jeff Pohlmeyer
How do I get the error code for fpStat() ? The oldlinux.stat() function returns FALSE on failure, and sets LinuxError. 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() o