From owner-cvs-all@FreeBSD.ORG Mon Jul 21 20:42:53 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6817437B407 for ; Mon, 21 Jul 2003 20:42:53 -0700 (PDT) Received: from smtp.mho.com (smtp.mho.net [64.58.4.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 9A5E443FBD for ; Mon, 21 Jul 2003 20:42:51 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: (qmail 79140 invoked by uid 1002); 22 Jul 2003 03:42:50 -0000 Received: from adsl-64-58-12-196.mho.net (HELO freebsd.org) (64.58.12.196) by smtp.mho.net with SMTP; 22 Jul 2003 03:42:50 -0000 Message-ID: <3F1CB2C5.5060900@freebsd.org> Date: Mon, 21 Jul 2003 21:43:01 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Poul-Henning Kamp References: <200307211835.h6LIZpQu051797@repoman.freebsd.org> In-Reply-To: <200307211835.h6LIZpQu051797@repoman.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys cdefs.h systm.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2003 03:42:53 -0000 Poul-Henning Kamp wrote: > phk 2003/07/21 11:35:51 PDT > > FreeBSD src repository > > Modified files: > sys/sys cdefs.h systm.h > Log: > Add a new macro __nonnull(x) to use the new GCC33 attribute which checks > that an argument is not a NULL pointer. > > Apply various obvious places. > > I belive __printf*() implies __nonnull() so it is not needed on functions > already tagged that way. > > Revision Changes Path > 1.72 +6 -0 src/sys/sys/cdefs.h > 1.195 +16 -16 src/sys/sys/systm.h > strtoul and strtol are allowed to have their second argument be NULL. It's even expressly documented in the man page, and a casual look at libkern verifies it. Scott