Date: Sun, 6 Oct 2002 22:47:11 -0400 From: Mike Barcroft <mike@FreeBSD.org> To: Craig Rodrigues <rodrigc@attbi.com> Cc: freebsd-standards@freebsd.org Subject: Re: restrict qualifier task Message-ID: <20021006224711.C97120@espresso.q9media.com> In-Reply-To: <20021006223653.A7728@attbi.com>; from rodrigc@attbi.com on Sun, Oct 06, 2002 at 10:36:53PM -0400 References: <20021006214520.B97120@espresso.q9media.com> <20021006223653.A7728@attbi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Craig Rodrigues <rodrigc@attbi.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021006224711.C97120>