[fpc-devel]Minor differences with Delphi

David Butler david at e.co.za
Fri Nov 7 12:55:37 CET 2003

On Fri, 7 Nov 2003 09:15:17 +0100 (CET), you wrote:

>> 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.

Sorry, I should have guessed. Yes, it basically takes the OS error and
raises some exception. The exception message is the OS error message
as returned by an OS function call.

More information about the fpc-devel mailing list