From owner-cvs-all Fri Sep 13 18:43:59 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2D6B37B400; Fri, 13 Sep 2002 18:43:52 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8636243E72; Fri, 13 Sep 2002 18:43:52 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.5/8.12.1) with ESMTP id g8E1hp1H027582 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 13 Sep 2002 18:43:52 -0700 (PDT)?g (envelope-from sam@errno.com)œ X-Authentication-Warning: ebb.errno.com: Host melange.errno.com [66.127.85.82] claimed to be melange Message-ID: <319501c25b90$2df2cba0$52557f42@errno.com> From: "Sam Leffler" To: "Greg 'groggy' Lehey" , "Poul-Henning Kamp" Cc: , References: <200209131033.g8DAXA0q006395@freefall.freebsd.org> <20020914013012.GU25003@wantadilla.lemis.com> Subject: Re: cvs commit: src/sys/geom geom.h geom_enc.c Date: Fri, 13 Sep 2002 18:43:51 -0700 Organization: Errno Consulting MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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 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