Sign in Join

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

Mailing lists / fpc-devel / 2018-01

Linux errors units

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Desmond Coertzen

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.

Thanks.

Reply by email

Michael Van Canneyt
to Desmond Coertzen
Desmond Coertzen wrote 9 lines
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.

Reply by email