Re: errno groveler in C hga@xxxxxx 27 Jun 2020 12:21 UTC

Looks useful.

For my current implementation, I started from the opposite direction,
capturing only the official POSIX errnos from its documentation, then
conditionally compiling out ones that are not supported by a
particular operating system, like System V STREAMS for OpenBSD.  This
of course requires more work, and more cond-expands for every
supported system that doesn't implement the full set.  In reference to
the strerr_r mess I came across someone who aptly described
conditional compilation as leaving skid marks in your code.

- Harold

----- Original message -----
From: Lassi Kortela <xxxxxx@lassi.io>
Date: Saturday, June 27, 2020 7:03 AM

I have a list of all errno values in Linux, Solaris and *BSD. I plugged
that list into this C program that writes out a listing of all the
available ones on the host OS. The program is in the below PR in case
you want to add it the to the SRFI's repo. Feel free to suggest
improvements.

https://github.com/scheme-requests-for-implementation/srfi-198/pull/2