From owner-freebsd-chat Tue May 4 2:19:58 1999 Delivered-To: freebsd-chat@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 1B86314DF1 for ; Tue, 4 May 1999 02:19:54 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id SAA10466; Tue, 4 May 1999 18:49:52 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id SAA47993; Tue, 4 May 1999 18:49:52 +0930 (CST) Date: Tue, 4 May 1999 18:49:51 +0930 From: Greg Lehey To: Soren Schmidt Cc: mike@smith.net.au, hibma@skylink.it, chat@FreeBSD.ORG Subject: Re: Hysterical names (was: names of globale variables) Message-ID: <19990504184951.C40359@freebie.lemis.com> References: <19990504154225.S10134@freebie.lemis.com> <199905040841.KAA21824@freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199905040841.KAA21824@freebsd.dk>; from Soren Schmidt on Tue, May 04, 1999 at 10:41:03AM +0200 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tuesday, 4 May 1999 at 10:41:03 +0200, Soren Schmidt wrote: > It seems Greg Lehey wrote: >> >> It goes back further than BSD. Here's the definition from a pre-BSD >> /usr/src/buf.h, probably some of the oldest C code in existence: >> >> -rw-r--r-- 1 root wheel 592 Jan 22 1973 buf.h >> >> struct buf { >> int b_flags; >> struct buf *b_forw; >> struct buf *b_back; >> struct buf *av_forw; >> struct buf *av_back; >> int b_dev; >> int b_wcount; >> char *b_addr; >> char *b_blkno; >> } buf[NBUF]; > > I LOVE the simplicity of that though, our one is bloated beyond > recognition... Ah, the good old days. Note, of course, that here the struct bufs are statically allocated. But it did have its advantages: $ BLOCKSIZE=1024 du -s /S/pdp11/Third-Edition/ /usr/src/sys/dev/vinum/ 220 /S/pdp11/Third-Edition/ 375 /usr/src/sys/dev/vinum/ Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message