byteswap.h and endian.h could be provided
Illumos could provide byteswap.h and endian.h headers for better source compatibility with Linux. The attached patch does this but I'm not sure what Illumos policy is. Do we only care about implementing XOPEN standards or is better compatibility with Linux a goal too?
Updated patch which uses sys/isa_info.h to determine endianness.
Any reason why this was not pushed yet?
Is there any hope for this issue being resolved?
Note, I filed 6790 to cover the fuller set of endian interfaces, but have not addressed the issue of a byteorder.h header there. I wasn't sure if that satisfied what folks were looking for and thus did not want to dup it out or take over the bug.
- Related to Feature #6790: want suite of endian(3C) functions added
Also available in: Atom