diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2013-04-19 10:03:43 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2013-04-19 14:19:01 +0200 |
| commit | a824712b8a38c15429cf56e5e54cd3b41e7ce59a (patch) | |
| tree | a74fffc6b4cfbf3a7b5aad024c2de9da968783f5 | |
| parent | e6183193f21bb6b207c0461780595d4f990c7e5e (diff) | |
| download | man-pages-a824712b8a38c15429cf56e5e54cd3b41e7ce59a.tar.gz | |
random_r.3: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man3/random_r.3 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/man3/random_r.3 b/man3/random_r.3 index 9f7297b72f..829eb81a14 100644 --- a/man3/random_r.3 +++ b/man3/random_r.3 @@ -23,7 +23,7 @@ .\" %%%LICENSE_END .\" .\" -.TH RANDOM_R 3 2008-03-07 "GNU" "Linux Programmer's Manual" +.TH RANDOM_R 3 2013-04-19 "GNU" "Linux Programmer's Manual" .SH NAME random_r, srandom_r, initstate_r, setstate_r \- reentrant random number generator @@ -98,7 +98,10 @@ except that it modifies the state in the object pointer to by .IR buf , rather than modifying the global state variable. .SH RETURN VALUE -All of these functions return 0 on success, or \-1 on error. +All of these functions return 0 on success. +On error, \-1 is returned, with +.I errno +set to indicate the cause of the error. .SH ERRORS .TP .B EINVAL |
