Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Document that errno is set to ENOMEM if no m...
details: https://anonhg.NetBSD.org/src/rev/6faff00c6a7b
branches: trunk
changeset: 480334:6faff00c6a7b
user: hubertf <hubertf%NetBSD.org@localhost>
date: Sun Jan 09 16:14:04 2000 +0000
description:
Document that errno is set to ENOMEM if no memory can be allocated.
diffstat:
lib/libc/stdlib/malloc.3 | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 37c6f662a1c2 -r 6faff00c6a7b lib/libc/stdlib/malloc.3
--- a/lib/libc/stdlib/malloc.3 Sun Jan 09 16:01:22 2000 +0000
+++ b/lib/libc/stdlib/malloc.3 Sun Jan 09 16:14:04 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: malloc.3,v 1.11 1999/09/10 10:38:06 kleink Exp $
+.\" $NetBSD: malloc.3,v 1.12 2000/01/09 16:14:04 hubertf Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -80,7 +80,8 @@
the returned memory will be page boundary aligned as well.
If
.Fn malloc
-fails, a NULL pointer is returned.
+fails, a NULL pointer is returned, and the errno variable is
+set to ENOMEM.
.Pp
The
.Fn calloc
Home |
Main Index |
Thread Index |
Old Index