Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-09

GetLastOSError return values?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I'm using Linux. The online (html) help doesn't give any clue as to what the return values are for GetLastOSError(). Where can I find this information?

Running out of options in the FPC code, I looked at MSEgui code. I found MSEgui uses the value 4 as an error and anything else as success. Still this means nothing to me. Where does the magic value 4 come from? Where are the error numbers documented?

Any clues?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote
I'm using Linux. The online (html) help doesn't give any clue as to what the return values are for GetLastOSError(). Where can I find this information?

By definition, that error number is completely OS-specific. Under Linux, the error numbers are whatever the system calls or libc calls return. You can find the error numbers in e.g. /usr/include/asm- generic/errno.h on most recent Linux systems.

Jonas

Reply by email