getrandom.2: SYNOPSIS: make return type of getrandom() 'ssize_t'

This accords with glibc headers and the Linux kernel source.

Reported-by: Fabio Scotoni <fabio@esse.ch>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-09-10 07:42:53 +02:00
parent 2021d0b3be
commit 7048a9fc8e
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ getrandom \- obtain a series of random bytes
.SH SYNOPSIS
.B #include <sys/random.h>
.PP
.BI "int getrandom(void *"buf ", size_t " buflen ", unsigned int " flags );
.BI "ssize getrandom(void *"buf ", size_t " buflen ", unsigned int " flags );
.SH DESCRIPTION
The
.BR getrandom ()