From owner-cvs-all Fri Sep 13 18:30:22 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 6AC2037B400; Fri, 13 Sep 2002 18:30:16 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2932D43E42; Fri, 13 Sep 2002 18:30:15 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id C2FDB812E5; Sat, 14 Sep 2002 11:00:12 +0930 (CST) Date: Sat, 14 Sep 2002 11:00:12 +0930 From: Greg 'groggy' Lehey To: Poul-Henning Kamp Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/geom geom.h geom_enc.c Message-ID: <20020914013012.GU25003@wantadilla.lemis.com> References: <200209131033.g8DAXA0q006395@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209131033.g8DAXA0q006395@freefall.freebsd.org> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 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.)? Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message