]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: document getsubopt standardization.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 28 Jun 2025 06:13:48 +0000 (23:13 -0700)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 4 Aug 2025 14:15:08 +0000 (11:15 -0300)
The getsubopt function was an XSI extension since POSIX issue 4 until it
was added to Base in POSIX Issue 7.  This also adds the 'restrict'
qualifier to the arguments as done in POSIX.1-2024, and has been the
case in glibc.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
manual/startup.texi

index 6f29ddd8cffd94644ed8752b822e53c6bec21e15..c444750479c01004ae8a7cc9be2533198bb627a9 100644 (file)
@@ -219,8 +219,8 @@ argument which itself is a comma separated list of options.  To ease the
 programming of code like this the function @code{getsubopt} is
 available.
 
-@deftypefun int getsubopt (char **@var{optionp}, char *const *@var{tokens}, char **@var{valuep})
-@standards{???, stdlib.h}
+@deftypefun int getsubopt (char **restrict @var{optionp}, char *const *restrict @var{tokens}, char **restrict @var{valuep})
+@standards{POSIX, stdlib.h}
 @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
 @c getsubopt ok
 @c  strchrnul dup ok