atom feed10 messages in org.freebsd.freebsd-auditRe: {get,set}progname functions
FromSent OnAttachments
Dima DorfmanMay 1, 2001 7:52 pm 
Will AndrewsMay 1, 2001 8:57 pm 
Dima DorfmanMay 1, 2001 9:37 pm 
Will AndrewsMay 1, 2001 9:40 pm 
Dima DorfmanMay 1, 2001 10:00 pm 
Bruce EvansMay 1, 2001 10:10 pm 
Bruce EvansMay 1, 2001 10:13 pm 
Dima DorfmanMay 1, 2001 11:09 pm 
Bruce EvansMay 4, 2001 4:42 am 
Dima DorfmanMay 5, 2001 12:32 am 
Subject:Re: {get,set}progname functions
From:Bruce Evans (bd@zeta.org.au)
Date:May 1, 2001 10:13:38 pm
List:org.freebsd.freebsd-audit

On Tue, 1 May 2001, Will Andrews wrote:

On Tue, May 01, 2001 at 07:53:21PM -0700, Dima Dorfman wrote:

Please review and, if acceptable, commit it.

style(9) says:

Only use the __P macro from the include file <sys/cdefs.h> if the source file in general is (to be) compilable with a K&R Old Testament compiler. Use of the __P macro in new code is discouraged, although modifications to existing files should be consistent with that file's conventions.

<stdlib.h> is to be compilable with a K&R Old Testament compiler, and follows the convention of using __P(()) for all functions, so this rule says (twice) that additions to <stdlib.h> must use __P(()).

Nuke __P() while you're at it.

Nothing to nuke.

Bruce

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