From owner-freebsd-net Wed Feb 7 1:35:40 2001 Delivered-To: freebsd-net@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id BE07737B699; Wed, 7 Feb 2001 01:35:18 -0800 (PST) Received: by relay.butya.kz (Postfix, from userid 1000) id CCF6A28648; Wed, 7 Feb 2001 15:35:16 +0600 (ALMT) Received: from localhost (localhost [127.0.0.1]) by relay.butya.kz (Postfix) with ESMTP id C394528647; Wed, 7 Feb 2001 15:35:16 +0600 (ALMT) Date: Wed, 7 Feb 2001 15:35:16 +0600 (ALMT) From: Boris Popov To: Harti Brandt Cc: freebsd-arch@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: CFR: Sequential mbuf read/write extensions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 7 Feb 2001, Harti Brandt wrote: > But, I would recommend to stick with the ususal naming of size dependend > things, by appending a numeric suffix. Something like: > > int mb_get8(struct mbdata *mbp, u_int8_t *x); > int mb_get16(struct mbdata *mbp, u_int16_t *x); > int mb_get16le(struct mbdata *mbp, u_int16_t *x); > int mb_get16be(struct mbdata *mbp, u_int16_t *x); > int mb_get32(struct mbdata *mbp, u_int32_t *x); > ... > > Using 'word' and 'doubleword' is rather confusing (when speeking of words > I would think of 32 bit nowadays). Well, it depends. For me 'word', 'dword' and 'qword' are clear from the good old 8bit days :) If numbers in the function names looks good I can live with it. Opinions ? -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message