summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/tmpnam.3
diff options
context:
space:
mode:
authormikeh <mikeh@FreeBSD.org>2001-07-07 04:08:32 +0000
committermikeh <mikeh@FreeBSD.org>2001-07-07 04:08:32 +0000
commitbc02f9cebed6df8c5095c6a6ec7c4fa01e2a1c09 (patch)
treecc997c2d3a4f00b959b407f792b10bf5cc6500f5 /lib/libc/stdio/tmpnam.3
parent320a122050e2731feb8d0cd53a31866101f21af0 (diff)
downloadFreeBSD-src-bc02f9cebed6df8c5095c6a6ec7c4fa01e2a1c09.zip
FreeBSD-src-bc02f9cebed6df8c5095c6a6ec7c4fa01e2a1c09.tar.gz
Attempt to use the environment variable TMPDIR for the temporary
directory, defaulting to /tmp. PR: bin/16924 Reviewed by: dd MFC after: 2 weeks
Diffstat (limited to 'lib/libc/stdio/tmpnam.3')
-rw-r--r--lib/libc/stdio/tmpnam.37
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/stdio/tmpnam.3 b/lib/libc/stdio/tmpnam.3
index ed71236..0c4e861 100644
--- a/lib/libc/stdio/tmpnam.3
+++ b/lib/libc/stdio/tmpnam.3
@@ -67,6 +67,13 @@ returns, causing the file to be automatically deleted when the last
reference to it is closed.
The file is opened with the access value
.Ql w+ .
+The file is created in the directory determined by the environment variable
+.Ev TMPDIR
+if set.
+The default location if
+.Ev TMPDIR
+is not set is
+.Pa /tmp .
.Pp
The
.Fn tmpnam
OpenPOWER on IntegriCloud