mirror of https://github.com/mkerrisk/man-pages
Noted historical use of <stdio.h> to declare getopt().
This commit is contained in:
parent
afcaf646af
commit
47a1e7e424
|
@ -341,3 +341,17 @@ POSIX.2, provided the environment variable POSIXLY_CORRECT is set.
|
|||
Otherwise, the elements of \fIargv\fP aren't really const, because we
|
||||
permute them. We pretend they're const in the prototype to be
|
||||
compatible with other systems.
|
||||
.sp
|
||||
On some older implementations,
|
||||
.BR getopt ()
|
||||
was declared in
|
||||
.IR <stdio.h> .
|
||||
SUSv1 permitted the declaration to appear in either
|
||||
.I <unistd.h>
|
||||
or
|
||||
.IR <stdio.h> .
|
||||
SUSv3 marked the use if
|
||||
.I <stdio.h>
|
||||
for this purpose as LEGACY.
|
||||
SUSv3 (POSIX.1-2001) does not allow the declaration to appear in
|
||||
.IR <stdio.h> .
|
||||
|
|
Loading…
Reference in New Issue