summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getenv.34
-rw-r--r--lib/libc/stdlib/malloc.33
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3
index f6d1209..4753dfb 100644
--- a/lib/libc/stdlib/getenv.3
+++ b/lib/libc/stdlib/getenv.3
@@ -150,7 +150,9 @@ assigning a differently sized
.Ar value
to the same
.Ar name
-will result in a memory leak. The FreeBSD semantics for these functions
+will result in a memory leak. The
+.Fx
+semantics for these functions
(namely, that the contents of
.Ar value
are copied and that old values remain accessible indefinitely) make this
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 4f6b9ef..03feaa3 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -123,7 +123,8 @@ The
.Fn reallocf
function call is identical to the realloc function call, except that it
will free the passed pointer when the requested memory cannot be allocated.
-This is a FreeBSD
+This is a
+.Fx
specific API designed to ease the problems with traditional coding styles
for realloc causing memory leaks in libraries.
.Pp
OpenPOWER on IntegriCloud