* [COMMITTED] manual: Fix strerrorname_np and strerrordesc_np return type (BZ #26343)
@ 2020-08-07 19:52 Adhemerval Zanella via Libc-alpha
2020-08-07 20:04 ` Florian Weimer
0 siblings, 1 reply; 5+ messages in thread
From: Adhemerval Zanella via Libc-alpha @ 2020-08-07 19:52 UTC (permalink / raw
To: libc-alpha
---
manual/errno.texi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/manual/errno.texi b/manual/errno.texi
index 6ca566522d..7ac1554bb1 100644
--- a/manual/errno.texi
+++ b/manual/errno.texi
@@ -1207,7 +1207,7 @@ to @code{errno}.
The function @code{perror} is declared in @file{stdio.h}.
@end deftypefun
-@deftypefun void strerrorname_np (int @var{errnum})
+@deftypefun const char * strerrorname_np (int @var{errnum})
@standards{GNU, string.h}
@safety{@mtsafe{}@assafe{}@acsafe{}}
This function returns the name describing the error @var{errnum} or
@@ -1218,7 +1218,7 @@ for @code{EINVAL}).
This function is a GNU extension, declared in the header file @file{string.h}.
@end deftypefun
-@deftypefun void strerrordesc_np (int @var{errnum})
+@deftypefun const char * strerrordesc_np (int @var{errnum})
@standards{GNU, string.h}
@safety{@mtsafe{}@assafe{}@acsafe{}}
This function returns the message describing the error @var{errnum} or
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [COMMITTED] manual: Fix strerrorname_np and strerrordesc_np return type (BZ #26343)
2020-08-07 19:52 [COMMITTED] manual: Fix strerrorname_np and strerrordesc_np return type (BZ #26343) Adhemerval Zanella via Libc-alpha
@ 2020-08-07 20:04 ` Florian Weimer
2020-08-07 20:17 ` Adhemerval Zanella via Libc-alpha
0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2020-08-07 20:04 UTC (permalink / raw
To: Adhemerval Zanella via Libc-alpha
* Adhemerval Zanella via Libc-alpha:
> ---
> manual/errno.texi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/manual/errno.texi b/manual/errno.texi
> index 6ca566522d..7ac1554bb1 100644
> --- a/manual/errno.texi
> +++ b/manual/errno.texi
> @@ -1207,7 +1207,7 @@ to @code{errno}.
> The function @code{perror} is declared in @file{stdio.h}.
> @end deftypefun
>
> -@deftypefun void strerrorname_np (int @var{errnum})
> +@deftypefun const char * strerrorname_np (int @var{errnum})
> @standards{GNU, string.h}
> @safety{@mtsafe{}@assafe{}@acsafe{}}
> This function returns the name describing the error @var{errnum} or
> @@ -1218,7 +1218,7 @@ for @code{EINVAL}).
> This function is a GNU extension, declared in the header file @file{string.h}.
> @end deftypefun
>
> -@deftypefun void strerrordesc_np (int @var{errnum})
> +@deftypefun const char * strerrordesc_np (int @var{errnum})
> @standards{GNU, string.h}
> @safety{@mtsafe{}@assafe{}@acsafe{}}
> This function returns the message describing the error @var{errnum} or
You need to put the return type in braces because it's not a single
identifier: {const char *}
Otherwise it's not rendered or indexed correctly.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [COMMITTED] manual: Fix strerrorname_np and strerrordesc_np return type (BZ #26343)
2020-08-07 20:04 ` Florian Weimer
@ 2020-08-07 20:17 ` Adhemerval Zanella via Libc-alpha
2020-08-07 20:31 ` Florian Weimer
0 siblings, 1 reply; 5+ messages in thread
From: Adhemerval Zanella via Libc-alpha @ 2020-08-07 20:17 UTC (permalink / raw
To: Florian Weimer, Adhemerval Zanella via Libc-alpha
On 07/08/2020 17:04, Florian Weimer wrote:
> * Adhemerval Zanella via Libc-alpha:
>
>> ---
>> manual/errno.texi | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/manual/errno.texi b/manual/errno.texi
>> index 6ca566522d..7ac1554bb1 100644
>> --- a/manual/errno.texi
>> +++ b/manual/errno.texi
>> @@ -1207,7 +1207,7 @@ to @code{errno}.
>> The function @code{perror} is declared in @file{stdio.h}.
>> @end deftypefun
>>
>> -@deftypefun void strerrorname_np (int @var{errnum})
>> +@deftypefun const char * strerrorname_np (int @var{errnum})
>> @standards{GNU, string.h}
>> @safety{@mtsafe{}@assafe{}@acsafe{}}
>> This function returns the name describing the error @var{errnum} or
>> @@ -1218,7 +1218,7 @@ for @code{EINVAL}).
>> This function is a GNU extension, declared in the header file @file{string.h}.
>> @end deftypefun
>>
>> -@deftypefun void strerrordesc_np (int @var{errnum})
>> +@deftypefun const char * strerrordesc_np (int @var{errnum})
>> @standards{GNU, string.h}
>> @safety{@mtsafe{}@assafe{}@acsafe{}}
>> This function returns the message describing the error @var{errnum} or
>
> You need to put the return type in braces because it's not a single
> identifier: {const char *}
>
> Otherwise it's not rendered or indexed correctly.
>
Right, I have fixed it. I couldn't noticed any different in PDF output,
but it does show wrong rendering in HTML.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [COMMITTED] manual: Fix strerrorname_np and strerrordesc_np return type (BZ #26343)
2020-08-07 20:17 ` Adhemerval Zanella via Libc-alpha
@ 2020-08-07 20:31 ` Florian Weimer
2020-08-08 19:53 ` Adhemerval Zanella via Libc-alpha
0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2020-08-07 20:31 UTC (permalink / raw
To: Adhemerval Zanella; +Cc: Adhemerval Zanella via Libc-alpha
* Adhemerval Zanella:
> Right, I have fixed it. I couldn't noticed any different in PDF output,
> but it does show wrong rendering in HTML.
Please also fix the new sig* functions in a similar way.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [COMMITTED] manual: Fix strerrorname_np and strerrordesc_np return type (BZ #26343)
2020-08-07 20:31 ` Florian Weimer
@ 2020-08-08 19:53 ` Adhemerval Zanella via Libc-alpha
0 siblings, 0 replies; 5+ messages in thread
From: Adhemerval Zanella via Libc-alpha @ 2020-08-08 19:53 UTC (permalink / raw
To: Florian Weimer; +Cc: Adhemerval Zanella via Libc-alpha
On 07/08/2020 17:31, Florian Weimer wrote:
> * Adhemerval Zanella:
>
>> Right, I have fixed it. I couldn't noticed any different in PDF output,
>> but it does show wrong rendering in HTML.
>
> Please also fix the new sig* functions in a similar way.
>
Done.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-08-08 19:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-07 19:52 [COMMITTED] manual: Fix strerrorname_np and strerrordesc_np return type (BZ #26343) Adhemerval Zanella via Libc-alpha
2020-08-07 20:04 ` Florian Weimer
2020-08-07 20:17 ` Adhemerval Zanella via Libc-alpha
2020-08-07 20:31 ` Florian Weimer
2020-08-08 19:53 ` Adhemerval Zanella via Libc-alpha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).