Re: posix_spawn man page strangeness
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Mar 11, 2009, at 3:53 PM, Andrew Gallatin wrote: _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Stéphane Sudre wrote: Is it a bug that the __restrict option is written behind the name of every parameters of the posix_spawn and posix_spawnp prototypes in the man page? It might be better readable without the "restrict" word. "restrict" is a C99 keyword that specifies that the referenced pointers to the function must not be aliased (point to the same memory location). This enables additional compiler optimizations. See http://www.cellperformance.com/mike_acton/2006/05/ demystifying_the_restrict_keyw.html I think having that information in the man page is helpful. The issue (I see) is not with the restrict meaning, it's with the reading because restrict is not a very often used keyword (it's the first time I see it). Additionally, the real prototype in spawn.h uses '__restrict' not 'restrict'. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre