From owner-freebsd-standards Sun Oct 6 19:54:34 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE93237B401 for ; Sun, 6 Oct 2002 19:54:32 -0700 (PDT) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AC2143E65 for ; Sun, 6 Oct 2002 19:54:32 -0700 (PDT) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id EA8D89BC3; Sun, 6 Oct 2002 22:47:11 -0400 (EDT) Date: Sun, 6 Oct 2002 22:47:11 -0400 From: Mike Barcroft To: Craig Rodrigues Cc: freebsd-standards@freebsd.org Subject: Re: restrict qualifier task Message-ID: <20021006224711.C97120@espresso.q9media.com> References: <20021006214520.B97120@espresso.q9media.com> <20021006223653.A7728@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021006223653.A7728@attbi.com>; from rodrigc@attbi.com on Sun, Oct 06, 2002 at 10:36:53PM -0400 Organization: The FreeBSD Project Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Craig Rodrigues writes: > On Sun, Oct 06, 2002 at 09:45:20PM -0400, Mike Barcroft wrote: > > > > If someone's looking for an easy task to do, the following functions > > are missing restrict type-qualifiers: > > > > signal.h: > > sigwait() > > > > stdio.h: > > fgetpos(), fgets(), fopen(), fputs(), fread(), freopen(), fscanf(), > > fwrite(), scanf(), sscanf(), vscanf(), vsscanf() > > Hi, > > I might be interested in this. What is required? > Is it just a matter of making the > prototypes of these functions the same as the ISO C99 standard (for stdio.h) > and the latest SUSv3 standard for sigwait? > Would this require modifying .h, .c, and man pages? Yes, you need to update the header in include, the libc .c files, and the libc man pages. > Is there a ISO C99 standard (or draft) that is available online? > I don't have the full standard. POSIX/SUSv3 covers C99 functions also. > For the SUSv3 standard (sigwait), what do you specify in the STANDARDS > section of the man page? If you change the STANDARDS section, you should verify that it does indeed conform to the specification and then use `.St -p1003.1-2001'. This isn't really part of the task, but you can do it if you like. Someone will need to go through each function and check conformance at some point anyway. > On, http://www.opengroup.org/onlinepubs/007904975/functions/sigwait.html, > it lists the standard as IEEE Std 1003.1-2001. > > ("The restrict keyword is added to the sigwait() prototype for > alignment with the ISO/IEC 9899:1999 standard. ") > > > > By the way, this isn't quite what you wanted, but here is a spelling fix: [...] Committed, thanks. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message