malloc.3: Add ENOMEM error

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-04-12 09:09:46 +02:00
parent d01c52164e
commit afd6bcb8d9
1 changed files with 15 additions and 0 deletions

View File

@ -168,6 +168,21 @@ is returned.
If
.BR realloc ()
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
For an explanation of the terms used in this section, see
.BR attributes (7).