Re: getrandom(2): return type mismatch for getrandom()
From: Fabio Scotoni <hidden>
Date: 2017-09-15 14:00:39
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 [off-list ref] wrote:quoted
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