Hello,
I'd like to establish standard endianness conversion functions across
the BSDs and Linux: betoh64(), htobe64(), etc.
(like OpenBSD's sys/endian.h)
Just small convenience functions/macros, but useful because it's such a
common requirement; applications currently have to roll their own
over&over with an annoying tangle of #ifdefs.
----
The details are here in my request to the GNU glibc maintainers:
* glibc Bugzilla 6442 - Adding cross-Unix endianness functions:
betoh() / htobe() 64,32,16
http://sources.redhat.com/bugzilla/show_bug.cgi?id=6442
* Pro/con:
http://sourceware.org/ml/libc-alpha/2008-05/msg00022.html
----
I planned to have a little coordination between glibc/FreeBSD/OpenBSD
beforehand; that didn't happen, the glibc maintainers created the basic
macros in /usr/include/endian.h without further discussion.