summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2007-01-29 19:13:06 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2007-01-29 19:13:06 +0000
commit09b7c7029351c31b8569423f8cd98e47b7280f68 (patch)
treecf70cf911f8347dd3ee6f98bfd780206bece9c95 /lib
parentdf72cab6e431a5f94c7c75da9cee92fae1be6c34 (diff)
add an ENVIRONMENT section for TMPDIR;
from freebsd pr# 108346, from Anton Yuzhaninov much tweaked by otto and myself;
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/tmpnam.316
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/libc/stdio/tmpnam.3 b/lib/libc/stdio/tmpnam.3
index eca2cc1815a..f227b3fa43c 100644
--- a/lib/libc/stdio/tmpnam.3
+++ b/lib/libc/stdio/tmpnam.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmpnam.3,v 1.14 2005/07/26 03:30:25 jaredy Exp $
+.\" $OpenBSD: tmpnam.3,v 1.15 2007/01/29 19:13:05 jmc Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -134,6 +134,19 @@ and
.Fn tempnam
functions return a pointer to a file name on success, and a null pointer
on error.
+.Sh ENVIRONMENT
+.Bl -tag -width Ds
+.It Ev TMPDIR
+.Pf [ Fn tempnam
+only]
+If set,
+the directory in which the temporary file is stored.
+.Ev TMPDIR
+is ignored for processes
+for which
+.Xr issetugid 2
+is true.
+.El
.Sh ERRORS
The
.Fn tmpfile
@@ -160,6 +173,7 @@ for any of the errors specified for the library functions
or
.Xr mktemp 3 .
.Sh SEE ALSO
+.Xr issetugid 2 ,
.Xr mkstemp 3 ,
.Xr mktemp 3
.Sh STANDARDS