text
stringlengths 0
234
|
---|
which is nowadays supported by glibc. |
.pp |
the user of |
.br getrandom () |
.i must |
always check the return value, |
to determine whether either an error occurred |
or fewer bytes than requested were returned. |
in the case where |
.b grnd_random |
is not specified and |
.i buflen |
is less than or equal to 256, |
a return of fewer bytes than requested should never happen, |
but the careful programmer will check for this anyway! |
.sh bugs |
as of linux 3.19, the following bug exists: |
.\" fixme patch proposed https://lkml.org/lkml/2014/11/29/16 |
.ip * 3 |
depending on cpu load, |
.br getrandom () |
does not react to interrupts before reading all bytes requested. |
.sh see also |
.br getentropy (3), |
.br random (4), |
.br urandom (4), |
.br random (7), |
.br signal (7) |
.sh colophon |
this page is part of release 5.13 of the linux |
.i man-pages |
project. |
a description of the project, |
information about reporting bugs, |
and the latest version of this page, |
can be found at |
\%https://www.kernel.org/doc/man\-pages/. |
.\" copyright 2002 walter harms ([email protected]) |
.\" |
.\" %%%license_start(gpl_noversion_oneline) |
.\" distributed under gpl |
.\" %%%license_end |
.\" adapted glibc info page |
.\" |
.\" polished a little, aeb |
.th addseverity 3 2021-03-22 "gnu" "linux programmer's manual" |
.sh name |
addseverity \- introduce new severity classes |
.sh synopsis |
.nf |
.pp |
.b #include <fmtmsg.h> |
.pp |
.bi "int addseverity(int " severity ", const char *" s ); |
.fi |
.pp |
.rs -4 |
feature test macro requirements for glibc (see |
.br feature_test_macros (7)): |
.re |
.pp |
.br addseverity (): |
.nf |
since glibc 2.19: |
_default_source |
glibc 2.19 and earlier: |
_svid_source |
.fi |
.sh description |
this function allows the introduction of new severity classes |
which can be addressed by the |
.i severity |
argument of the |
.br fmtmsg (3) |
function. |
by default, that function knows only how to |
print messages for severity 0-4 (with strings (none), halt, |
error, warning, info). |
this call attaches the given string |
.i s |
to the given value |
.ir severity . |
if |
.i s |
is null, the severity class with the numeric value |
.i severity |
is removed. |
it is not possible to overwrite or remove one of the default |
severity classes. |
the severity value must be nonnegative. |
.sh return value |
upon success, the value |
.b mm_ok |
is returned. |
upon error, the return value is |
.br mm_notok . |
possible errors include: out of memory, attempt to remove a |
nonexistent or default severity class. |
.sh versions |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.