From owner-freebsd-current Sat Feb 1 15:59:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2586037B401; Sat, 1 Feb 2003 15:59:46 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id A63A743F3F; Sat, 1 Feb 2003 15:59:45 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id h11NxiXv066479; Sat, 1 Feb 2003 15:59:44 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id h11Nxhn9066478; Sat, 1 Feb 2003 15:59:43 -0800 (PST) Date: Sat, 1 Feb 2003 15:59:43 -0800 From: Steve Kargl To: Julian Elischer Cc: Mark Murray , julian@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Style fixups for proc.h Message-ID: <20030201235943.GA66200@troutmask.apl.washington.edu> References: <200302012246.h11MkEaX028068@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 01, 2003 at 03:04:32PM -0800, Julian Elischer wrote: > I don't know about the protection with a '_'. > > It's not standard and usually the name matches that used in the actual > function. > > It's certainly not part of style(9) that I've ever noticed > and it's generally noy done that way.. is there a move to do this on all > the other files? > man 9 style In header files visible to userland applications, prototypes that are visible must use either ``protected'' names (ones beginning with an underscore) or no names with the types. It is preferable to use pro- tected names. E.g., use: void function(int); or: void function(int _fd); -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message