[fpc-devel] Linux errors units

Michael Van Canneyt michael at freepascal.org
Thu Jan 18 10:10:19 CET 2018



On Thu, 18 Jan 2018, Desmond Coertzen wrote:

> Hi guys,
>
> I'm porting some old code away from libc. I'm looking for the unit that
> contains the linux error code enums, like EBADFD, EAGAIN, EINTR, etc
>
> Which non-libc unit do I use for these? Platform: ppcarm
>
> I already have BaseUnix, Linux, termio, errors, but the linux Exxx
> constants are not in these.

They are in baseunix:
https://www.freepascal.org/docs-html/current/rtl/baseunix/index-2.html

You just need ESysBADFD ect. Put 'Sys' after the 'E'.

Michael.



More information about the fpc-devel mailing list