Ticket #379 (closed RFC: wontfix)
Generate POSIX errno Constants
|Reported by:||chromatic||Owned by:||whiteknight|
There's no easy way in Parrot right now to refer to EPERM, EAGAIN, EINTR, and other POSIX errno constants as constants (see the err i, i opcode, for example). The ability to do so would help us write more portable code that doesn't rely on hard-coded magic numbers or the hope of matching against the output of strerror().
It would be trivial to write a short configuration-process file which runs a C program to generate a PASM file with these values. It's a quick task to do, but connecting it to the right place in the configuration process might be a little trickier.