OpenBSD CVS

CVS log for src/usr.bin/mktemp/mktemp.1


[BACK] Up to [local] / src / usr.bin / mktemp

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Sun Mar 3 15:24:45 2024 UTC (2 months, 2 weeks ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.33: +23 -23 lines
Diff to previous 1.33 (colored)

Clarify which part of the path name is considered for substitution.
Also use "name" instead of "file name" is some places since the
result could be either a file or a directory.  Work done with jmc@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Mar 1 23:37:42 2024 UTC (2 months, 2 weeks ago) by millert
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Clarify behavior when there is more than one run of Xs.
With help from miod@

Revision 1.32 / (download) - annotate - [select for diffs], Fri Mar 1 21:50:40 2024 UTC (2 months, 2 weeks ago) by millert
Branch: MAIN
Changes since 1.31: +13 -7 lines
Diff to previous 1.31 (colored)

mktemp(1): add suffix support for compatibility with the GNU version
It is now possible to use templates where the Xs are not at the
end, like "foo.XXXXXX.bar".  If there are multiple runs of Xs,
the last one is used.  OK deraadt@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 31 17:27:25 2022 UTC (2 years, 1 month ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jan 25 00:19:26 2019 UTC (5 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

I am retiring my old email address;  replace it with my OpenBSD one.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jun 7 11:37:21 2018 UTC (5 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.28: +4 -7 lines
Diff to previous 1.28 (colored)

add some EXIT STATUS sections; from matthew martin

Revision 1.28 / (download) - annotate - [select for diffs], Wed Aug 7 06:19:36 2013 UTC (10 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

document the errors in terms of the actual calls made (mkdtemp/mktemp,
vs mkdir/open)
ok jmc

Revision 1.27 / (download) - annotate - [select for diffs], Tue Mar 12 15:07:12 2013 UTC (11 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.26: +40 -5 lines
Diff to previous 1.26 (colored)

Require that the template include at least 6 trailing Xs to match
POSIX mkstemp/mkdtemp.  Check before the call to mkstemp/mkdtemp
so we can give a better error message than "invalid argument".
OK deraadt@ jmc@

Revision 1.26 / (download) - annotate - [select for diffs], Mon Dec 27 21:18:44 2010 UTC (13 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.25: +3 -4 lines
Diff to previous 1.25 (colored)

mktemp(3) (and thus mktemp(1)) no longer use the process ID when
replacing the Xs, it is now purely random.
Also replace a use of .Fn that should be .Xr.
OK jmc@

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 31 19:20:13 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

convert to new .Dd format;

Revision 1.24 / (download) - annotate - [select for diffs], Sat Dec 31 16:52:28 2005 UTC (18 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.23: +2 -4 lines
Diff to previous 1.23 (colored)

no point in sending the reader to the same page 3 times;
tweak HISTORY;

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jun 17 21:56:25 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.22: +8 -8 lines
Diff to previous 1.22 (colored)

Sync with share/misc/license.template and add missing DARPA credit
where applicable.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 10 09:12:11 2003 UTC (20 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.21: +10 -9 lines
Diff to previous 1.21 (colored)

- section reorder
- COMPATIBILITY merge
- macro cleanup
- kill whitespace at EOL
- new sentence, new line

ssh pages ok markus@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 3 01:52:41 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.20: +11 -22 lines
Diff to previous 1.20 (colored)

Use an ISC-tyle license for all my code; it is simpler and more permissive.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Oct 11 00:05:55 2001 UTC (22 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.19: +43 -27 lines
Diff to previous 1.19 (colored)

Sync with portable mktemp-1.4; the template is now optional.
Came out of discussions with Solar Designer.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Oct 1 17:08:30 2001 UTC (22 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.18: +77 -11 lines
Diff to previous 1.18 (colored)

Add -t and -d flags to allow script writers to easily take a user's TMPDIR
environment variable into account.  This came out of a discussion with
Solar Designer.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Nov 9 17:52:25 2000 UTC (23 years, 6 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Change all option list specifications to ".Bl -tag -width Ds". Most man
pages just needed their -width parameter tweaked to "Ds", which provides
a nice width of 6 constant characters. For consistency more than anything.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 26 02:43:31 2000 UTC (23 years, 10 months ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.16: +8 -5 lines
Diff to previous 1.16 (colored)

use basename(1) in examples

Revision 1.16 / (download) - annotate - [select for diffs], Tue Mar 28 23:40:05 2000 UTC (24 years, 1 month ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Remove duplicate word occurrences.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 10 19:07:22 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.14: +25 -19 lines
Diff to previous 1.14 (colored)

Various cleanups and standardization.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 5 00:28:57 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Finish standardizing options list introduction.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 7 01:38:11 2000 UTC (24 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.12: +26 -31 lines
Diff to previous 1.12 (colored)

My copyright, not Berkeley's and some minor working tweaks.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Aug 5 09:19:35 1999 UTC (24 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.11: +18 -5 lines
Diff to previous 1.11 (colored)

o Use 10 X's in examples (noted by Theo)
o Add another example using the pretty brace block form

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jul 2 20:11:45 1999 UTC (24 years, 10 months ago) by aaron
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

consistent .Dd usage; proper format is: .Dd Month DD, YYYY

Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 26 19:55:09 1998 UTC (25 years, 7 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.9: +7 -7 lines
Diff to previous 1.9 (colored)

usr.bin/ man page fixes, f-m.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 13 17:22:10 1998 UTC (26 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.8: +2 -7 lines
Diff to previous 1.8 (colored)

Nuke paragraph about checking for zero length file.  Doing things that
way would allow a race.  Niall Smart <rotel@indigo.ie>

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 19 06:13:37 1998 UTC (26 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.7: +17 -3 lines
Diff to previous 1.7 (colored)

document why you want to use this and why other ways are bad.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Mar 7 22:18:16 1998 UTC (26 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

.Bx Open -> .Ox 2.x

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 28 04:23:05 1997 UTC (26 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Add a missing .El

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 17 15:34:27 1997 UTC (26 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.4: +8 -5 lines
Diff to previous 1.4 (colored)

Adds a -d (directory) flag.

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 30 07:49:25 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

for i in `find . -name \*.[123456789] -exec grep '^.Dd ' {} /dev/null \; | \
	grep '"' | cut -d':' -f1`; do
sed -e '/^.Dd /s/"//g' -e '/^.Dd /s/\(^.Dd [A-Za-z]*\) \(.*\)$/\1, \2/' <$i >x
cat x > $i
done

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jan 27 03:40:58 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

fix typo

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 4 01:08:04 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Fix typo, too much perl on the brain.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Nov 21 07:59:32 1996 UTC (27 years, 6 months ago) by millert
Branch: MAIN

mktemp(1) for shell scripts.  No more gross directory hackery for safe temp
files.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.