aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2025-06-27 23:13:48 -0700
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-08-04 11:15:08 -0300
commit0f8c3c4329cf08aced4b0c074bf33f74cbd0f564 (patch)
tree54fd3f7da1cc9c4f401e335a338e1f86f72e63bc
parentd7da87980cdb72812b71cc32e735cf87d7169f11 (diff)
downloadglibc-0f8c3c4329cf08aced4b0c074bf33f74cbd0f564.zip
glibc-0f8c3c4329cf08aced4b0c074bf33f74cbd0f564.tar.gz
glibc-0f8c3c4329cf08aced4b0c074bf33f74cbd0f564.tar.bz2
manual: document getsubopt standardization.
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>
-rw-r--r--manual/startup.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/startup.texi b/manual/startup.texi
index 6f29ddd..c444750 100644
--- a/manual/startup.texi
+++ b/manual/startup.texi
@@ -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