diff options
author | ru <ru@FreeBSD.org> | 2000-11-14 11:20:58 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-11-14 11:20:58 +0000 |
commit | 7d99729431353c50207fda8b9ab30e1c354c6061 (patch) | |
tree | 8d8c39d3231f9a7b91446e46dfc9b54f9eb84725 /lib/libc/stdlib | |
parent | 56cb617a9d071d8ad21ab908ea9224e718dae618 (diff) | |
download | FreeBSD-src-7d99729431353c50207fda8b9ab30e1c354c6061.zip FreeBSD-src-7d99729431353c50207fda8b9ab30e1c354c6061.tar.gz |
Use Fx macro wherever possible.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/getenv.3 | 4 | ||||
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 3 |
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 |