Standard byteorder functions across BSD / Linux

2008-06-04 Thread Nanno Langstraat
Hello, I think it would be nice to have standard byteorder conversion functions for user applications 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 cur

Re: Standard byteorder functions across BSD / Linux

2008-06-04 Thread Max Laier
On Thursday 05 June 2008 00:33:19 Nanno Langstraat wrote: > My question to FreeBSD: > I don't use FreeBSD myself, but I'll prepare a patch if you like the > idea and if you indicate what you'll accept: > > * or ? > I maintain that it should be for user applications: > IMHO is fo

Re: Standard byteorder functions across BSD / Linux

2008-06-05 Thread Nanno Langstraat
Max Laier wrote: > On Thursday 05 June 2008 00:33:19 Nanno Langstraat wrote: > >> * or ? >> I maintain that it should be for user applications: >> IMHO is for the user-kernel API, and byteorder belongs to >> libc not the kernel API. >> glibc apparently agrees, Ope