diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-01-12 19:46:24 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-01-12 19:46:24 +0000 |
| commit | 47a1e7e424a014d3a9eaf6d9dab4593d9af7a40b (patch) | |
| tree | f97ce948ff2bc611d5a297e5170ba66f9834581d /man3 | |
| parent | afcaf646af80a743a7bd442f4bece96f37f4a4a5 (diff) | |
| download | man-pages-47a1e7e424a014d3a9eaf6d9dab4593d9af7a40b.tar.gz | |
Noted historical use of <stdio.h> to declare getopt().
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/getopt.3 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/man3/getopt.3 b/man3/getopt.3 index 00794646cd..7e922fc33d 100644 --- a/man3/getopt.3 +++ b/man3/getopt.3 @@ -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> . |
