From owner-cvs-all@FreeBSD.ORG Thu Apr 3 15:49:08 2003 Return-Path: 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 F0C7537B407 for ; Thu, 3 Apr 2003 15:49:07 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 8ACF243FAF for ; Thu, 3 Apr 2003 15:49:06 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 15217 invoked by uid 1000); 3 Apr 2003 23:49:08 -0000 Date: Thu, 3 Apr 2003 15:49:08 -0800 (PST) From: Nate Lawson To: Poul-Henning Kamp In-Reply-To: <20030403085821.AD2A537B407@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys endian.h src/share/man/man9 byteorder.9 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 23:49:08 -0000 On Thu, 3 Apr 2003, Poul-Henning Kamp wrote: > Modified files: > sys/sys endian.h > share/man/man9 byteorder.9 > Log: > Add inline functions {be,le}{16,32,64}{enc,dec}() for encoding decoding > into byte strings of unknown alignment. > > Revision Changes Path > 1.3 +39 -1 src/share/man/man9/byteorder.9 > 1.3 +108 -0 src/sys/sys/endian.h This is really great! I have wanted this for a while. Just a few questions. Have the standards folks had a look at the API? Second, it appears the *enc functions have args in reverse order (void *, uint32_t for example). Any thoughts on bcopy vs. memcpy ordering of args? -Nate