Test errno constant macros, make ENOTSUP available in Rust
Recent versions of POSIX require that the errno
constant values (E2BIG
, EACCESS
etc.) are provided as macros. This MR adds (script-generated) #ifdef
tests for each value; the constants are already defined as macros in the autogenerated headers.
The ENOTSUP
constant, which is set to the same value as EOPNOTSUPP
, has been moved into the Rust source.