Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Oct 2002 22:36:53 -0400
From:      Craig Rodrigues <rodrigc@attbi.com>
To:        freebsd-standards@freebsd.org
Subject:   Re: restrict qualifier task
Message-ID:  <20021006223653.A7728@attbi.com>
In-Reply-To: <20021006214520.B97120@espresso.q9media.com>; from mike@FreeBSD.org on Sun, Oct 06, 2002 at 09:45:20PM -0400
References:  <20021006214520.B97120@espresso.q9media.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?

Is there a ISO C99 standard (or draft) that is available online?
I don't have the full standard.

For the SUSv3 standard (sigwait), what do you specify in the STANDARDS 
section of the man page?  
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:


--- sys/sys/cdefs.h.orig	Sun Oct  6 22:20:44 2002
+++ sys/sys/cdefs.h	Sun Oct  6 22:20:53 2002
@@ -139,7 +139,7 @@
 #endif
 
 /*
- * GCC 2.95 provides `__restrict' as an extention to C90 to support the
+ * GCC 2.95 provides `__restrict' as an extension to C90 to support the
  * C99-specific `restrict' type qualifier.  We happen to use `__restrict' as a
  * way to define the `restrict' type qualifier without disturbing older software
  * that is unaware of C99 keywords.

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@attbi.com

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?20021006223653.A7728>