linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [patch] add man3p pthread_once posix manpage latest 5.06
       [not found] <CAHVhoEfFzzve8Jy+3Jk6w40D26fSQXQrqKYsX6rf0qvZ6Ce1cw@mail.gmail.com>
@ 2020-04-20 10:05 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; only message in thread
From: Michael Kerrisk (man-pages) @ 2020-04-20 10:05 UTC (permalink / raw)
  To: Scott S; +Cc: linux-man, Nikola Forró

On Mon, 20 Apr 2020 at 01:12, Scott S <ssimmons9999@gmail.com> wrote:
>
> man-pages-posix-2013-a-pthread_once.patch
>
> From 0409c3370ddd08cec10586f6f52fe1fbe3c717ef Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
> Date: Tue, 24 Jan 2017 16:35:02 +0100
> Subject: [PATCH] pthread_once.3p: fix return type of initialize_random()
>  function

Please explain this change.

Thanks,

Michael

> ---
>  man-pages-posix-2013-a/man3p/pthread_once.3p | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/man-pages-posix-2013-a/man3p/pthread_once.3p b/man-pages-posix-2013-a/man3p/pthread_once.3p
> index 316b1e9..db83d63 100644
> --- a/man-pages-posix-2013-a/man3p/pthread_once.3p
> +++ b/man-pages-posix-2013-a/man3p/pthread_once.3p
> @@ -86,7 +86,7 @@ on entry to a routine, as follows:
>  .nf
>  \fB
>  static int random_is_initialized = 0;
> -extern int initialize_random();
> +extern void initialize_random();
>  .P
>  int random_function()
>  {
> @@ -125,7 +125,7 @@ becomes:
>  \fB
>  #include <pthread.h>
>  static pthread_once_t random_is_initialized = PTHREAD_ONCE_INIT;
> -extern int initialize_random();
> +extern void initialize_random();
>  .P
>  int random_function()
>  {
> --
> 2.7.4



-- 
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] only message in thread

only message in thread, other threads:[~2020-04-20 10:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAHVhoEfFzzve8Jy+3Jk6w40D26fSQXQrqKYsX6rf0qvZ6Ce1cw@mail.gmail.com>
2020-04-20 10:05 ` [patch] add man3p pthread_once posix manpage latest 5.06 Michael Kerrisk (man-pages)

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).