From 7048a9fc8eabc563a63f5112154f193348752889 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 10 Sep 2017 07:42:53 +0200 Subject: [PATCH] getrandom.2: SYNOPSIS: make return type of getrandom() 'ssize_t' This accords with glibc headers and the Linux kernel source. Reported-by: Fabio Scotoni Signed-off-by: Michael Kerrisk --- man2/getrandom.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/getrandom.2 b/man2/getrandom.2 index f691af457..e542fb5bf 100644 --- a/man2/getrandom.2 +++ b/man2/getrandom.2 @@ -30,7 +30,7 @@ getrandom \- obtain a series of random bytes .SH SYNOPSIS .B #include .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 ()