[PATCH] manual: document getsubopt standardization.

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Mon Jun 30 19:03:29 GMT 2025



On 28/06/25 03:13, Collin Funk wrote:
> 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.

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
>  manual/startup.texi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/manual/startup.texi b/manual/startup.texi
> index 6f29ddd8cf..c444750479 100644
> --- a/manual/startup.texi
> +++ b/manual/startup.texi
> @@ -219,8 +219,8 @@ @node Suboptions, Suboptions Example, Argp, Parsing Program Arguments
>  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



More information about the Libc-alpha mailing list