History log of /freebsd-current/usr.bin/mktemp/mktemp.1
Revision Date Author Comments
# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# ac6f924e 30-Oct-2022 Kyle Evans <kevans@FreeBSD.org>

mktemp: add -p/--tmpdir argument

This matches other mktemp implementations, including OpenBSD and GNU.
The -p option can be used to provide a tmpdir prefix for specified
templates. Precedence works out like so:

-t flag:
- $TMPDIR
- -p directory
- /tmp

Implied -t flag (no arguments or only -d flag):
- -p directory
- $TMPDIR
- /tmp

Some tests have been added for mktemp(1) in the process.

Reviewed by: imp (earlier version), wosch
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D37121


# cfc57d7d 30-Oct-2022 Kyle Evans <kevans@FreeBSD.org>

mktemp: add some GNU-compatible long options

GNU maketemp has long options for -d, -q, and -u, so let's add these
now for compatibility.

Reviewed by: emaste, imp, wosch
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D37120


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 312d09e2 18-Nov-2012 Eitan Adler <eadler@FreeBSD.org>

Use the macro for standard error return values.

.Dd not bumped because there is no important content change.

Approved by: bcr (mentor)
MFC after: 3 days
Obtained from: DragonflyBSD


# 8e0079a0 01-Oct-2012 Eitan Adler <eadler@FreeBSD.org>

Implement the Sun/GNU extension of using a default
prefix when no arguments are supplied.

Reviewed by: jilles
Approved by: cperciva
MFC after: 1 week


# da52b4ca 11-Dec-2010 Joel Dahl <joel@FreeBSD.org>

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# cb29445a 29-Sep-2006 Ruslan Ermilov <ru@FreeBSD.org>

Markup fixes.


# 68833941 30-Dec-2005 Christian S.J. Peron <csjp@FreeBSD.org>

mkstemp(3) and friends use a combination of base 10 digits, along
with upper and lower case letters from the English alphabet. Change
the number of possible file names mktemp will return from 26**6
to (10+26+26)**6 instead. This keeps things consistent with mkstemp(3)


# a866e170 17-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Added the EXIT STATUS section where appropriate.


# a4eda3a0 22-Oct-2004 Colin Percival <cperciva@FreeBSD.org>

Add punctuation which appears to have been accidentally removed in
revision 1.6.


# 6a3e8b0a 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Mechanically kill hard sentence breaks.


# 7b9c3ba7 15-Jul-2002 Dima Dorfman <dd@FreeBSD.org>

Use proper article.


# e8937ba0 19-Apr-2002 Philippe Charnier <charnier@FreeBSD.org>

Use `The .Nm utility'


# f247324d 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# bc321b0e 27-Feb-2001 David E. O'Brien <obrien@FreeBSD.org>

Update HISTORY.


# d7b336c0 11-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use canonical form of .Dd macro.


# 8fe908ef 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# c0206f33 15-Oct-2000 Alexander Langer <alex@FreeBSD.org>

Correct the usage of mktemp:
The old version lists all args as optional.
However, you need at least one arg to get a usable result.

PR: 18667
Reported by: obrien
Submitted by: Johan Karlsson <k@numeri.campus.luth.se>
Reviewed by: sheldonh


# 1b24d0ef 04-Jun-2000 Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>

Fix example.

PR: 18953
Submitted by: Mark Ovens <mark@ukug.uk.freebsd.org>


# a917a42d 26-Mar-2000 Philippe Charnier <charnier@FreeBSD.org>

Move RCS tags after copyright
Add DIAGNOSTICS section name


# 87faa07b 29-Feb-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


# 8321fbb0 30-Oct-1999 Alexey Zelkin <phantom@FreeBSD.org>

.Ox is ``clever'' now.


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 3be5f1f5 12-Jul-1999 Nik Clayton <nik@FreeBSD.org>

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


# acd80190 31-Aug-1998 Wolfram Schneider <wosch@FreeBSD.org>

Sort cross references.


# d4eaae7a 05-May-1998 Philippe Charnier <charnier@FreeBSD.org>

Add usage() and rcsid. Remove unused #include. -Wall.


# 4ca332d5 14-Apr-1998 Peter Wemm <peter@FreeBSD.org>

Bring in an old faithful tool I've been using for just over 4 years now
(originally on a different OS without mkstemp()), albeit somewhat
bashed and hacked into something that doesn't look too much like
the original any more. It should be upwardly compatable with
OpenBSD's mktemp(1) but does a couple of extra things.

I've taken OpenBSD's mktemp.1 man page and adapted it to suit.