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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to