summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/mktemp.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man1/mktemp.1')
-rw-r--r--usr/src/man/man1/mktemp.129
1 files changed, 6 insertions, 23 deletions
diff --git a/usr/src/man/man1/mktemp.1 b/usr/src/man/man1/mktemp.1
index 5890a5e23f..f87583b952 100644
--- a/usr/src/man/man1/mktemp.1
+++ b/usr/src/man/man1/mktemp.1
@@ -3,7 +3,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH mktemp 1 "10 Jan 2008" "SunOS 5.11" "User Commands"
+.TH MKTEMP 1 "Jan 10, 2008"
.SH NAME
mktemp \- make temporary filename
.SH SYNOPSIS
@@ -44,23 +44,19 @@ instead.
The following options are supported:
.sp
.ne 2
-.mk
.na
\fB\fB-d\fR\fR
.ad
.RS 16n
-.rt
Make a directory instead of a file.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-p\fR \fIdirectory\fR\fR
.ad
.RS 16n
-.rt
Use the specified directory as a prefix when generating the temporary filename.
The directory is overridden by the user's TMPDIR environment variable if it is
set. This option implies the \fB-t\fR flag.
@@ -68,24 +64,20 @@ set. This option implies the \fB-t\fR flag.
.sp
.ne 2
-.mk
.na
\fB\fB-q\fR\fR
.ad
.RS 16n
-.rt
Fail silently if an error occurs. This is useful if a script does not want
error output to go to standard error.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-t\fR\fR
.ad
.RS 16n
-.rt
Generate a path rooted in a temporary directory. This directory is chosen as
follows: If the user's TMPDIR environment variable is set, the directory
contained therein is used. Otherwise, if the \fB-p\fR flag was given the
@@ -96,12 +88,10 @@ opposed to a full path) and thus should not contain any forward slashes.
.sp
.ne 2
-.mk
.na
\fB\fB-u\fR\fR
.ad
.RS 16n
-.rt
Operate in unsafe mode. The temp file is unlinked before \fBmktemp\fR exits.
This is slightly better than \fBmktemp\fR(3C), but still introduces a race
condition. Use of this option is discouraged.
@@ -113,12 +103,10 @@ condition. Use of this option is discouraged.
The following operands are supported:
.sp
.ne 2
-.mk
.na
\fB\fItemplate\fR\fR
.ad
.RS 12n
-.rt
\fItemplate\fR can be any filename with one or more \fBX\fRs appended to it,
for example \fB/tmp/tfile.XXXXXX\fR.
.sp
@@ -254,23 +242,19 @@ that affect the execution of \fBmktemp\fR with the \fB-t\fR option:
The following exit values are returned:
.sp
.ne 2
-.mk
.na
\fB\fB0\fR\fR
.ad
.RS 5n
-.rt
Successful completion.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB1\fR\fR
.ad
.RS 5n
-.rt
An error occurred.
.RE
@@ -282,13 +266,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilityCommitted
+Interface Stability Committed
.TE
.SH SEE ALSO