summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-12-16 04:39:23 +0000
committerimp <imp@FreeBSD.org>1998-12-16 04:39:23 +0000
commit5315be15ac1169e2dc9312a40484408700cf349a (patch)
treef95e810c5ed5fdc47190d697ed8850223f36ec3b
parent0be4cef38efb9e28cea426387a805c84f1d81043 (diff)
downloadFreeBSD-src-5315be15ac1169e2dc9312a40484408700cf349a.zip
FreeBSD-src-5315be15ac1169e2dc9312a40484408700cf349a.tar.gz
Add reminder to return memory allocated by this call.
Obtained from: OpenBSD
-rw-r--r--lib/libc/gen/setmode.311
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/gen/setmode.3 b/lib/libc/gen/setmode.3
index 4c85b30..bc38fd3 100644
--- a/lib/libc/gen/setmode.3
+++ b/lib/libc/gen/setmode.3
@@ -81,10 +81,19 @@ is to modify future file modes correctly.
.Pp
If the mode passed to
.Fn setmode
-is invalid,
+is invalid or if memory cannot be allocated for the return value,
.Fn setmode
returns
.Dv NULL .
+.Pp
+The value returned from
+.Fn setmode
+is obtained from
+.Fn malloc
+and should be returned to the system with
+.Fn free
+when the program is done with it, generally after a call to
+.Fn getmode .
.Sh ERRORS
The
.Fn setmode
OpenPOWER on IntegriCloud