Marking select(2) as restrict
kostikbel at gmail.com
Wed Feb 21 18:59:44 UTC 2018
On Wed, Feb 21, 2018 at 01:07:23PM -0500, Garrett Wollman wrote:
> <<On Wed, 21 Feb 2018 12:44:00 +0200, Konstantin Belousov <kostikbel at gmail.com> said:
> > I fail to find an explanation of the supposed benefit of the change
> > you proposing. Please point it out.
> Compliance with the 2001 POSIX standard (and subsequent versions).
> After C99, all POSIX interfaces that use pointers were updated to
> include the restrict qualifier where applicable.
Restrict barely puts any requirements on the implementation, but does on
the consumers. Which is the cause of this discussion.
Also, what incompliance consequences are ? I am not even sure that the
prototype mismatch can be detected by means other than parsing the headers.
More information about the freebsd-standards