* Re:
2010-06-21 20:30 (unknown), Bob Eggers
@ 2010-06-21 21:05 ` bill o gallmeister
[not found] ` <4C1FD431.6030505-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: bill o gallmeister @ 2010-06-21 21:05 UTC (permalink / raw)
To: Bob Eggers
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
I believe that's the correct result for a NULL-terminated string of length 1.
- bog
On 06/21/2010 01:30 PM, Bob Eggers wrote:
> I noticed an error in and example on the man page for strncpy(). The page is http://www.kernel.org/doc/man-pages/online/pages/man3/strncpy.3.html
>
> The error is in the section, "NOTES", specifically in the code example after the text:
>
> If there is no terminating null byte in the first n characters of src,
> strncpy() produces an unterminated string in dest. Programmers often prevent
> this mistake by forcing termination as follows:
>
> strncpy(buf, str, n);
> if (n > 0)
> buf[n - 1]= '\0';
>
> Substituting 1 for n and "123" for str, this would equate to:
>
> strncpy(buf, "123", 1); // buf is now "1"
> if (1 > 0)
> buf[1 - 1]= '\0'; // buf is now ""
>
> Bob Eggers--
> To unsubscribe from this list: send the line "unsubscribe linux-man" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Bill O. Gallmeister
bgallmeister-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
http://geekwhisperer.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re:
[not found] ` <4C1FD431.6030505-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2010-06-26 12:52 ` Michael Kerrisk
0 siblings, 0 replies; 14+ messages in thread
From: Michael Kerrisk @ 2010-06-26 12:52 UTC (permalink / raw)
To: bill o gallmeister
Cc: Bob Eggers, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On Mon, Jun 21, 2010 at 11:05 PM, bill o gallmeister
<bgallmeister-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> I believe that's the correct result for a NULL-terminated string of length 1.
And I agree.
Thanks,
Michael
> On 06/21/2010 01:30 PM, Bob Eggers wrote:
>> I noticed an error in and example on the man page for strncpy(). The page is http://www.kernel.org/doc/man-pages/online/pages/man3/strncpy.3.html
>>
>> The error is in the section, "NOTES", specifically in the code example after the text:
>>
>> If there is no terminating null byte in the first n characters of src,
>> strncpy() produces an unterminated string in dest. Programmers often prevent
>> this mistake by forcing termination as follows:
>>
>> strncpy(buf, str, n);
>> if (n > 0)
>> buf[n - 1]= '\0';
>>
>> Substituting 1 for n and "123" for str, this would equate to:
>>
>> strncpy(buf, "123", 1); // buf is now "1"
>> if (1 > 0)
>> buf[1 - 1]= '\0'; // buf is now ""
>>
>> Bob Eggers--
>> To unsubscribe from this list: send the line "unsubscribe linux-man" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
>
> --
> Bill O. Gallmeister
> bgallmeister-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
> http://geekwhisperer.blogspot.com
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE:
@ 2017-02-23 15:09 Qin's Yanjun
0 siblings, 0 replies; 14+ messages in thread
From: Qin's Yanjun @ 2017-02-23 15:09 UTC (permalink / raw)
How are you today and your family? I require your attention and honest
co-operation about some issues which i will really want to discuss with you
which. Looking forward to read from you soon.
Qin's
______________________________
Sky Silk, http://aknet.kz
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re:
@ 2017-05-04 23:57 Tammy
0 siblings, 0 replies; 14+ messages in thread
From: Tammy @ 2017-05-04 23:57 UTC (permalink / raw)
To: Recipients
Hello,
I am Maj Gen. Tammy Smith. I would like to discuss with you privately. Contact me via my personal email below for further information.
Maj Gen. Tammy Smith
MajGenTammySm-1ViLX0X+lBJBDgjK7y7TUQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re:
@ 2017-11-13 14:55 Amos Kalonzo
0 siblings, 0 replies; 14+ messages in thread
From: Amos Kalonzo @ 2017-11-13 14:55 UTC (permalink / raw)
Attn:
I am wondering why You haven't respond to my email for some days now.
reference to my client's contract balance payment of (11.7M,USD)
Kindly get back to me for more details.
Best Regards
Amos Kalonzo
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re:
[not found] <CAGkTAxsV0zS_E64criQM-WtPKpSyW2PL=+fjACvnx2=m7piwXg@mail.gmail.com>
@ 2019-09-27 6:37 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 14+ messages in thread
From: Michael Kerrisk (man-pages) @ 2019-09-27 6:37 UTC (permalink / raw)
To: nilsocket; +Cc: linux-man
Hello
On Fri, 27 Sep 2019 at 08:26, nilsocket <nilsocket@gmail.com> wrote:
>
> In http://man7.org/linux/man-pages/man2/epoll_pwait.2.html#NOTES ,
> through out this section `epoll_wait()` is used. but only once
> `epoll_pwait()` is used, I think it's a typo mistake.
>
> Current:
> While one thread is blocked in a call to epoll_pwait()
>
> Expected Change:
> While one thread is blocked in a call to epoll_wait()
Thanks. Fixed!
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re:
[not found] <60a57e3a.lbqA81rLGmtH2qoy%Radisson97@gmx.de>
@ 2021-05-21 11:04 ` Alejandro Colomar (man-pages)
2021-05-21 13:11 ` AW: Re: Walter Harms
0 siblings, 1 reply; 14+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-05-21 11:04 UTC (permalink / raw)
To: Radisson97; +Cc: linux-man, Michael Kerrisk (man-pages)
Hi Walter,
On 5/19/21 11:08 PM, Radisson97@gmx.de wrote:
> From 765db7b7714514780b4e613c6d09d2ff454b1ef8 Mon Sep 17 00:00:00 2001
> From: Harms <wharms@bfs.de>
> Date: Wed, 19 May 2021 22:25:08 +0200
> Subject: [PATCH] gamma.3:Add reentrant functions gamma_r
>
> Add three variants of gamma_r and explain
> the use of the second argument sig
>
> Signed-off-by: Harms <wharms@bfs.de>
I just read the manual page about gamma, and those functions/macros are
deprecated (use either lgamma or tgamma instead). As far as I can read,
those alternative functions have all the functionality one can need, so
I guess there's zero reasons to use gamma at all, which is a misleading
alias for lgamma. I think I won't patch that page at all.
The glibc source code itself has a comment saying that gamma macros are
obsolete:
[
#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
# if !__MATH_DECLARING_FLOATN
/* Obsolete alias for `lgamma'. */
__MATHCALL (gamma,, (_Mdouble_));
# endif
#endif
]
Thanks,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
Senior SW Engineer; http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 14+ messages in thread
* AW: Re:
2021-05-21 11:04 ` Alejandro Colomar (man-pages)
@ 2021-05-21 13:11 ` Walter Harms
2021-05-21 13:29 ` Alejandro Colomar (man-pages)
0 siblings, 1 reply; 14+ messages in thread
From: Walter Harms @ 2021-05-21 13:11 UTC (permalink / raw)
To: Alejandro Colomar (man-pages)
Cc: linux-man@vger.kernel.org, Michael Kerrisk (man-pages)
I will not argue that the function is deprecated.
NTL i added the gamma_r function that are missing
and changed the wording for the description. I think
it is better than in lgamma especially for signgam.
I noticed that it should be more obvious.
re,
wh
________________________________________
Von: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Gesendet: Freitag, 21. Mai 2021 13:04
An: Radisson97@gmx.de
Cc: linux-man@vger.kernel.org; Michael Kerrisk (man-pages)
Betreff: Re:
WARNUNG: Diese E-Mail kam von außerhalb der Organisation. Klicken Sie nicht auf Links oder öffnen Sie keine Anhänge, es sei denn, Sie kennen den/die Absender*in und wissen, dass der Inhalt sicher ist.
Hi Walter,
On 5/19/21 11:08 PM, Radisson97@gmx.de wrote:
> From 765db7b7714514780b4e613c6d09d2ff454b1ef8 Mon Sep 17 00:00:00 2001
> From: Harms <wharms@bfs.de>
> Date: Wed, 19 May 2021 22:25:08 +0200
> Subject: [PATCH] gamma.3:Add reentrant functions gamma_r
>
> Add three variants of gamma_r and explain
> the use of the second argument sig
>
> Signed-off-by: Harms <wharms@bfs.de>
I just read the manual page about gamma, and those functions/macros are
deprecated (use either lgamma or tgamma instead). As far as I can read,
those alternative functions have all the functionality one can need, so
I guess there's zero reasons to use gamma at all, which is a misleading
alias for lgamma. I think I won't patch that page at all.
The glibc source code itself has a comment saying that gamma macros are
obsolete:
[
#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
# if !__MATH_DECLARING_FLOATN
/* Obsolete alias for `lgamma'. */
__MATHCALL (gamma,, (_Mdouble_));
# endif
#endif
]
Thanks,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
Senior SW Engineer; http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: AW: Re:
2021-05-21 13:11 ` AW: Re: Walter Harms
@ 2021-05-21 13:29 ` Alejandro Colomar (man-pages)
2021-05-21 14:08 ` AW: " Walter Harms
0 siblings, 1 reply; 14+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-05-21 13:29 UTC (permalink / raw)
To: Walter Harms; +Cc: linux-man@vger.kernel.org, Michael Kerrisk (man-pages)
Hi Walter,
On 5/21/21 3:11 PM, Walter Harms wrote:
> I will not argue that the function is deprecated.
>
> NTL i added the gamma_r function that are missing
> and changed the wording for the description. I think
> it is better than in lgamma especially for signgam.
> I noticed that it should be more obvious.
>
> re,
> wh
I never used these functions, so I don know for sure. Isn't gamma_r(3)
just an (obsolete) alias for lgamma_r(3)?
If so, lgamma_r(3) is already documented, and the gamma(3) manual page
already points to it. I don't see why gamma_r(3), which is obsolete,
should be documented.
Thanks,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 14+ messages in thread
* AW: AW: Re:
2021-05-21 13:29 ` Alejandro Colomar (man-pages)
@ 2021-05-21 14:08 ` Walter Harms
2021-05-21 14:47 ` gamma(3) Alejandro Colomar (man-pages)
0 siblings, 1 reply; 14+ messages in thread
From: Walter Harms @ 2021-05-21 14:08 UTC (permalink / raw)
To: Alejandro Colomar (man-pages)
Cc: linux-man@vger.kernel.org, Michael Kerrisk (man-pages)
(before we misunderstand each other i do not insists on that patch)
The function is available and that should be documented.
They seem available for some time, but glibc says: These functions
exist for compatibility reasons.
What is about a merger with lgamma() ?
adding to the notes section something like that:
glibc version
Glibc has a gamma() function (and _r) that is equivalent to
lgamma(3) and computes the natural logarithm of the Gamma function.
That function is deprecated and should not be used in newer programs.
re,
wh
________________________________________
Von: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Gesendet: Freitag, 21. Mai 2021 15:29
An: Walter Harms
Cc: linux-man@vger.kernel.org; Michael Kerrisk (man-pages)
Betreff: Re: AW: Re:
WARNUNG: Diese E-Mail kam von außerhalb der Organisation. Klicken Sie nicht auf Links oder öffnen Sie keine Anhänge, es sei denn, Sie kennen den/die Absender*in und wissen, dass der Inhalt sicher ist.
Hi Walter,
On 5/21/21 3:11 PM, Walter Harms wrote:
> I will not argue that the function is deprecated.
>
> NTL i added the gamma_r function that are missing
> and changed the wording for the description. I think
> it is better than in lgamma especially for signgam.
> I noticed that it should be more obvious.
>
> re,
> wh
I never used these functions, so I don know for sure. Isn't gamma_r(3)
just an (obsolete) alias for lgamma_r(3)?
If so, lgamma_r(3) is already documented, and the gamma(3) manual page
already points to it. I don't see why gamma_r(3), which is obsolete,
should be documented.
Thanks,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: gamma(3)
2021-05-21 14:08 ` AW: " Walter Harms
@ 2021-05-21 14:47 ` Alejandro Colomar (man-pages)
2021-05-21 15:28 ` AW: gamma(3) Walter Harms
0 siblings, 1 reply; 14+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-05-21 14:47 UTC (permalink / raw)
To: Walter Harms; +Cc: linux-man@vger.kernel.org, Michael Kerrisk (man-pages)
On 5/21/21 4:08 PM, Walter Harms wrote:
> (before we misunderstand each other i do not insists on that patch)
No problem about it. You could insist on if you wanted to :p
I'm not sure yet about what we should do.
>
> The function is available and that should be documented.
I tend to agree with that.
> They seem available for some time, but glibc says: These functions
> exist for compatibility reasons.
Exactly. But that means it exists for old code to still work. New code
should not use these. So the manual page should serve 2 purposes:
*) discourage its use
*) help migrating from gamma(3) to lgamma(3)
The first one is already clear. For the second one, I think that the
SYNOPSIS and ATTRIBUTES is enough.
>
> What is about a merger with lgamma() ?
I like it separated (as is). It serves the purpose of redirecting to
either lgamma or tgamma depending on what the reader wants.
>
> adding to the notes section something like that:
> glibc version
> Glibc has a gamma() function (and _r) that is equivalent to
> lgamma(3) and computes the natural logarithm of the Gamma function.
> That function is deprecated and should not be used in newer programs.
>
>
> re,
> wh
I think that to document those, but keep it to a minimum, I'd add the
functions to the sections NAME and SYNOPSIS, and nothing more. The rest
is very generic and mainly says "don't use this". The only thing that
would maybe need an update is the ATTRIBUTES section, but I wouldn't
mind if we left it as is.
What do you think?
Cheers,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 14+ messages in thread
* AW: gamma(3)
2021-05-21 14:47 ` gamma(3) Alejandro Colomar (man-pages)
@ 2021-05-21 15:28 ` Walter Harms
0 siblings, 0 replies; 14+ messages in thread
From: Walter Harms @ 2021-05-21 15:28 UTC (permalink / raw)
To: Alejandro Colomar (man-pages)
Cc: linux-man@vger.kernel.org, Michael Kerrisk (man-pages)
So we have agreed that existing functions should be documented.
and so far i understand we are taking about the _r only.
the whole patch is the function definition. What could be done more is to mark the function as obsolete/compatibility only.
The explanation for signgam should be copied to lgamma().
________________________________________
Von: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Gesendet: Freitag, 21. Mai 2021 16:47:29
An: Walter Harms
Cc: linux-man@vger.kernel.org; Michael Kerrisk (man-pages)
Betreff: Re: gamma(3)
WARNUNG: Diese E-Mail kam von außerhalb der Organisation. Klicken Sie nicht auf Links oder öffnen Sie keine Anhänge, es sei denn, Sie kennen den/die Absender*in und wissen, dass der Inhalt sicher ist.
On 5/21/21 4:08 PM, Walter Harms wrote:
> (before we misunderstand each other i do not insists on that patch)
No problem about it. You could insist on if you wanted to :p
I'm not sure yet about what we should do.
>
> The function is available and that should be documented.
I tend to agree with that.
> They seem available for some time, but glibc says: These functions
> exist for compatibility reasons.
Exactly. But that means it exists for old code to still work. New code
should not use these. So the manual page should serve 2 purposes:
*) discourage its use
*) help migrating from gamma(3) to lgamma(3)
The first one is already clear. For the second one, I think that the
SYNOPSIS and ATTRIBUTES is enough.
>
> What is about a merger with lgamma() ?
I like it separated (as is). It serves the purpose of redirecting to
either lgamma or tgamma depending on what the reader wants.
>
> adding to the notes section something like that:
> glibc version
> Glibc has a gamma() function (and _r) that is equivalent to
> lgamma(3) and computes the natural logarithm of the Gamma function.
> That function is deprecated and should not be used in newer programs.
>
>
> re,
> wh
I think that to document those, but keep it to a minimum, I'd add the
functions to the sections NAME and SYNOPSIS, and nothing more. The rest
is very generic and mainly says "don't use this". The only thing that
would maybe need an update is the ATTRIBUTES section, but I wouldn't
mind if we left it as is.
What do you think?
Cheers,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re:
[not found] <20230122193117.GA28689@Debian-50-lenny-64-minimal>
@ 2023-01-22 21:42 ` Alejandro Colomar
2023-01-24 20:01 ` Re: Helge Kreutzmann
0 siblings, 1 reply; 14+ messages in thread
From: Alejandro Colomar @ 2023-01-22 21:42 UTC (permalink / raw)
To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man
[-- Attachment #1.1: Type: text/plain, Size: 205 bytes --]
Hi Helge,
On 1/22/23 20:31, Helge Kreutzmann wrote:
> Without further ado, the following was found:
Empty report. An accident? :)
Cheers,
Alex
>
--
<http://www.alejandro-colomar.es/>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re:
2023-01-22 21:42 ` Alejandro Colomar
@ 2023-01-24 20:01 ` Helge Kreutzmann
0 siblings, 0 replies; 14+ messages in thread
From: Helge Kreutzmann @ 2023-01-24 20:01 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: mario.blaettermann, linux-man
[-- Attachment #1: Type: text/plain, Size: 661 bytes --]
Helo Alex,
On Sun, Jan 22, 2023 at 10:42:54PM +0100, Alejandro Colomar wrote:
> Hi Helge,
>
> On 1/22/23 20:31, Helge Kreutzmann wrote:
> > Without further ado, the following was found:
>
> Empty report. An accident? :)
I tried to figure out what happend - but I don't know.
Sorry for the empty report, please disregard.
Greetings
Helge
--
Dr. Helge Kreutzmann debian@helgefjell.de
Dipl.-Phys. http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
Help keep free software "libre": http://www.ffii.de/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2023-01-24 20:01 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <60a57e3a.lbqA81rLGmtH2qoy%Radisson97@gmx.de>
2021-05-21 11:04 ` Alejandro Colomar (man-pages)
2021-05-21 13:11 ` AW: Re: Walter Harms
2021-05-21 13:29 ` Alejandro Colomar (man-pages)
2021-05-21 14:08 ` AW: " Walter Harms
2021-05-21 14:47 ` gamma(3) Alejandro Colomar (man-pages)
2021-05-21 15:28 ` AW: gamma(3) Walter Harms
[not found] <20230122193117.GA28689@Debian-50-lenny-64-minimal>
2023-01-22 21:42 ` Alejandro Colomar
2023-01-24 20:01 ` Re: Helge Kreutzmann
[not found] <CAGkTAxsV0zS_E64criQM-WtPKpSyW2PL=+fjACvnx2=m7piwXg@mail.gmail.com>
2019-09-27 6:37 ` Re: Michael Kerrisk (man-pages)
2017-11-13 14:55 Re: Amos Kalonzo
-- strict thread matches above, loose matches on Subject: below --
2017-05-04 23:57 Re: Tammy
2017-02-23 15:09 Qin's Yanjun
2010-06-21 20:30 (unknown), Bob Eggers
2010-06-21 21:05 ` bill o gallmeister
[not found] ` <4C1FD431.6030505-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-06-26 12:52 ` Re: Michael Kerrisk
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 NNTP newsgroup(s).