Date: Fri, 13 Sep 2002 18:43:51 -0700 From: "Sam Leffler" <sam@errno.com> To: "Greg 'groggy' Lehey" <grog@FreeBSD.org>, "Poul-Henning Kamp" <phk@FreeBSD.org> Cc: <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/sys/geom geom.h geom_enc.c Message-ID: <319501c25b90$2df2cba0$52557f42@errno.com> References: <200209131033.g8DAXA0q006395@freefall.freebsd.org> <20020914013012.GU25003@wantadilla.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Friday, 13 September 2002 at 3:33:10 -0700, Poul-Henning Kamp wrote: > > phk 2002/09/13 03:33:10 PDT > > > > Modified files: > > sys/geom geom.h geom_enc.c > > Log: > > Add a couple more of the big/little-endian conversion routines and make > > them visible from userland, if need be. > > > > I wish that the C language contained this as part of struct definintions, > > but failing that, I would settle for an agreed upon set of functions for > > packing/unpacking integers in various sizes from byte-streams which may > > have unfriendly alignment. > > Is there any reason not to use the Linux function names (be32_to_cpu, > cpu_to_le16, etc.)? > netbsd+openbsd define macros in <sys/endian.h> that would be useful to have for driver portability. Sam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?319501c25b90$2df2cba0$52557f42>