mirror of https://github.com/mkerrisk/man-pages
malloc.3: Add ENOMEM error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d01c52164e
commit
afd6bcb8d9
|
@ -168,6 +168,21 @@ is returned.
|
||||||
If
|
If
|
||||||
.BR realloc ()
|
.BR realloc ()
|
||||||
fails, the original block is left untouched; it is not freed or moved.
|
fails, the original block is left untouched; it is not freed or moved.
|
||||||
|
.SH ERRORS
|
||||||
|
.BR calloc (),
|
||||||
|
.BR malloc (),
|
||||||
|
and
|
||||||
|
.BR realloc ()
|
||||||
|
can fail with the following error:
|
||||||
|
.TP
|
||||||
|
.B ENOMEM
|
||||||
|
Out of memory.
|
||||||
|
Possibly, the application hit the
|
||||||
|
.BR RLIMIT_AS
|
||||||
|
or
|
||||||
|
.BR RLIMIT_DATA
|
||||||
|
limit described in
|
||||||
|
.BR getrlimit (2).
|
||||||
.SH ATTRIBUTES
|
.SH ATTRIBUTES
|
||||||
For an explanation of the terms used in this section, see
|
For an explanation of the terms used in this section, see
|
||||||
.BR attributes (7).
|
.BR attributes (7).
|
||||||
|
|
Loading…
Reference in New Issue