All of lore.kernel.org
 help / color / mirror / Atom feed
* getrandom(2): return type mismatch for getrandom()
@ 2017-09-09 11:42 Fabio Scotoni
       [not found] ` <a1b295b6-1e5d-6e5b-20db-fb5f3b09a72c-VLnxIkhT3pI@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Scotoni @ 2017-09-09 11:42 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

The getrandom(2) page claims that getrandom() returns int.  It actually
returns ssize_t according to sysdeps/unix/sysv/linux/getrandom.c in
glibc and drivers/char/random.c in Linux.
--
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] 4+ messages in thread

* Re: getrandom(2): return type mismatch for getrandom()
       [not found] ` <a1b295b6-1e5d-6e5b-20db-fb5f3b09a72c-VLnxIkhT3pI@public.gmane.org>
@ 2017-09-10  5:44   ` Michael Kerrisk (man-pages)
       [not found]     ` <CAKgNAkhU-eC+ns99H0sqHpgOOSbwSMi+Vb=Sw1ufBTYoOrmy7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-09-10  5:44 UTC (permalink / raw)
  To: Fabio Scotoni; +Cc: linux-man

Hello Fabio,

On 9 September 2017 at 13:42, Fabio Scotoni <fabio-VLnxIkhT3pI@public.gmane.org> wrote:
> The getrandom(2) page claims that getrandom() returns int.  It actually
> returns ssize_t according to sysdeps/unix/sysv/linux/getrandom.c in
> glibc and drivers/char/random.c in Linux.

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/
--
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] 4+ messages in thread

* Re: getrandom(2): return type mismatch for getrandom()
       [not found]     ` <CAKgNAkhU-eC+ns99H0sqHpgOOSbwSMi+Vb=Sw1ufBTYoOrmy7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-09-15 14:00       ` Fabio Scotoni
       [not found]         ` <38409769-c82a-594d-a58e-401e86891c67-VLnxIkhT3pI@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Scotoni @ 2017-09-15 14:00 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man

Dear Michael,

I'm sorry for the late response, I didn't notice when the commit made it
in.  It seems like your fix just introduced another, though more minor
issue unless I misunderstand something.

The man page now says the return type is "ssize" instead of "ssize_t".
Is that really what you meant to write?

I apologize for any confusion I may have caused.

Sincerely,

Fabio

On 09/10/2017 07:44 AM, Michael Kerrisk (man-pages) wrote:
> Hello Fabio,
> 
> On 9 September 2017 at 13:42, Fabio Scotoni <fabio-VLnxIkhT3pI@public.gmane.org> wrote:
>> The getrandom(2) page claims that getrandom() returns int.  It actually
>> returns ssize_t according to sysdeps/unix/sysv/linux/getrandom.c in
>> glibc and drivers/char/random.c in Linux.
> 
> Thanks. Fixed!
> 
> Cheers,
> 
> Michael
> 

--
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] 4+ messages in thread

* Re: getrandom(2): return type mismatch for getrandom()
       [not found]         ` <38409769-c82a-594d-a58e-401e86891c67-VLnxIkhT3pI@public.gmane.org>
@ 2017-09-15 15:00           ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-09-15 15:00 UTC (permalink / raw)
  To: Fabio Scotoni; +Cc: linux-man

Hello Fabio,

On 15 September 2017 at 16:00, Fabio Scotoni <fabio-VLnxIkhT3pI@public.gmane.org> wrote:
> Dear Michael,
>
> I'm sorry for the late response, I didn't notice when the commit made it
> in.  It seems like your fix just introduced another, though more minor
> issue unless I misunderstand something.
>
> The man page now says the return type is "ssize" instead of "ssize_t".
> Is that really what you meant to write?
>
> I apologize for any confusion I may have caused.

Thanks for spotting that. I've fixed that for the next man-pages release.

Cheers,

Michael
--
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] 4+ messages in thread

end of thread, other threads:[~2017-09-15 15:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-09 11:42 getrandom(2): return type mismatch for getrandom() Fabio Scotoni
     [not found] ` <a1b295b6-1e5d-6e5b-20db-fb5f3b09a72c-VLnxIkhT3pI@public.gmane.org>
2017-09-10  5:44   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkhU-eC+ns99H0sqHpgOOSbwSMi+Vb=Sw1ufBTYoOrmy7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-09-15 14:00       ` Fabio Scotoni
     [not found]         ` <38409769-c82a-594d-a58e-401e86891c67-VLnxIkhT3pI@public.gmane.org>
2017-09-15 15:00           ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.