Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 1999 19:23:03 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        Nick Hibma <hibma@skylink.it>, FreeBSD hackers mailing list <hackers@FreeBSD.ORG>
Subject:   Re: names of globale variables 
Message-ID:  <199905040223.TAA09564@apollo.backplane.com>
References:   <199905040143.SAA01330@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

:> machine three times because of a typo (buf instead of buffer) in the
:> USB Communications Class Driver. 
:> 
:> Wouldn't some more elaborate names be more appropriate to avoid these
:> problems?
:
:"struct buf" is actually a very longstanding BSD tradition.  I don't 
:think we would easily be able to rename it, no.
:
:> sys/buf.h:
:> 
:> extern int      nbuf;         /* The number of buffer headers */
:> extern struct   buf *buf;     /* The buffer headers. */
:> extern char     *buffers;     /* The buffer contents. */
:> extern int      bufpages;     /* Number of memory pages in the buffer */

    We can't change the struct name, but we could change the name of the 
    globals... 'buf' and 'buffers' are only used in a couple of places.

    But... not now.  Maybe in a few months when things are more settled down.
	
					-Matt
					Matthew Dillon 
					<dillon@backplane.com>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905040223.TAA09564>