]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
getrandom.2: Reword GRND_NONBLOCK description
authorMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 11 Nov 2014 10:22:07 +0000 (11:22 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 29 Jan 2015 08:02:41 +0000 (09:02 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/getrandom.2

index 19db95753ac64d288e0b2f810c89813eb39084dd..c6be50dd93365b3dea5f79fa479f375f37949721 100644 (file)
@@ -96,17 +96,17 @@ in the
 argument.
 .TP
 .B GRND_NONBLOCK
-If this bit is set and there is no random byte available at all,
+By default, if there is no random byte available at all,
 .BR getrandom ()
-will return -1 with
-.I errno
-set to
-.BR EAGAIN .
+blocks until data is available.
 If the
 .B GRND_NONBLOCK
-bit is not set and there is no random byte available at all,
+flag is set, then
 .BR getrandom ()
-will block.
+instead immediately returns -1 with
+.I errno
+set to
+.BR EAGAIN .
 .SH RETURN VALUE
 On success,
 .BR getrandom ()