[fpc-devel]Minor differences with Delphi

Marco van de Voort marcov at stack.nl
Fri Nov 7 09:15:17 CET 2003


> On Thu, 6 Nov 2003 23:31:27 +0100 (CET), you wrote:
> 
> >> * Minor difference with Delphi units: 
> >>     * RaiseLastOSError is not defined in SysUtils.
> >
> >What is it supposed to do, specifically on non windows, or should it
> >be windows only? 
> 
> I had a look at Kylix's RaiseLastOSError function. It uses
> GetLastError which calls '__errno_location' from 'libc.so.6'. On
> Windows this uses the GetLastError WinAPI call.
> 
> This is Delphi's implementation for RaiseLastOSError:

[/me pinches his eyes. Doesn't want to see Delphi code out of cleanroom reasons]

The __errno_location (threadsafe errno) is a bit of a problem for various reasons.

But anyway, essentially it takes the OS error, and raises some exception.
 





More information about the fpc-devel mailing list