Add tests for unistd.h constants
This adds tests for the constants specified in https://pubs.opengroup.org/onlinepubs/7908799/xsh/unistd.h.html (apart from those relevant for pathconf()
and sysconf()
. Currently, many constants are not yet implemented and thus commented out.
For many of these constants, POSIX does not specify a particular value, though I guess it is ok to lock in their value with an expected-value test. For the constants that relibc does provide, the values are the same as in glibc. On my machine, glibc provides all of the constants commented out, except:
_POSIX2_FORT_DEV
_POSIX2_FORT_RUN
_POSIX2_UPE
_XOPEN_CRYPT
_XBS5_ILP32_OFF32
_XBS5_ILP32_OFFBIG
_POSIX_PRIO_IO
_POSIX_SYNC_IO