Commit Graph

33 Commits

Author SHA1 Message Date
apb cd19fc2e6a Reorganise, consolidate duplicated information, clarify wording,
attempt to make the man page match the actual behaviour.
2012-11-04 10:10:03 +00:00
christos babae7a2a2 PR/47155: Eitan Adler: add mktemp zero arguments extension 2012-11-03 13:34:08 +00:00
wiz e671c9cf08 Fix typo. 2009-08-15 20:44:56 +00:00
christos bcbc23bd8f add -p <tmpdir> option to override $TMPDIR from the command line like linux
has.
2009-08-15 20:02:28 +00:00
lukem c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
perry 36c7456d7c include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
wiz 1e4a7c15a0 Sync usage with man page. 2006-09-19 19:01:56 +00:00
wiz 72335cc2bc Lowercase argument (no reason for uppercase). 2006-09-19 19:01:44 +00:00
wiz 071cbdf1e3 New sentence, new line. Miscellaneous minor improvements. 2006-09-19 19:00:17 +00:00
hubertf 47ac97884a Clarify usage: either -t or a template can be given (or both),
but at least one is mandatory.

Patch contributed by Tilman Kranz <tilman.kranz@tk-sls.de>,
OK'd by wiz@
2006-09-19 14:22:51 +00:00
rillig 2d158db9a6 Increased WARNS to 4. 2006-05-19 20:06:30 +00:00
rillig 902271403f Typo. 2006-05-19 20:03:30 +00:00
wiz 9277c02ebe New sentence, new line. Bump date for previous. 2006-01-12 21:54:06 +00:00
garbled 6a2b4183c2 Slight refinement of -t description. Note that it generates a template
with 8 X's.  Change .Bx Free and .Bx Open to .Ox and .Fx.
2006-01-12 21:39:45 +00:00
christos 244d270d1b warns=3, delint. 2005-07-30 16:19:09 +00:00
wiz 3955de94f7 Bump date for previous. 2004-04-02 11:47:55 +00:00
jmmv cc48ee25f5 Use ${0##*/} in examples instead of $0, so that they can successfully create
the temporary file even if the test program is executed given its full path.
That is, running /somewhere/test.sh could result in a call to mktemp like
mktemp /tmp//somewhere/test.sh.XXXXX, which fails.
Fixes PR misc/23447 by Piotr Meyer.
2004-04-02 10:44:22 +00:00
lukem 171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
lukem 826a14607a Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
thorpej 922525072e Allow mktemp to be built as a host tool. 2002-09-14 04:26:23 +00:00
bjh21 c18f2e8b59 On second thoughts, don't make mktemp a host tool. It's only used once, for
creating a temporary directory for maketars, and mkdir can do that safely
enough.
2002-04-01 13:54:00 +00:00
bjh21 fb69871067 Add mktemp as a host tool. 2002-03-31 18:11:50 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz 412304c9f2 Fix date. 2001-04-09 12:33:50 +00:00
lukem 279552d3db fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
  e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
  using `.Nm ""' if there's stuff following, or for the 2nd and so on
  occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
kleink 4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
cgd 7132ce2fd3 RCS ID police (sigh) 1999-09-21 06:24:46 +00:00
tron 4de1769208 Forgot to mention OpenBSD in history. 1999-09-04 20:53:05 +00:00
tron 16e75e8bbc Correct history for NetBSD and add RCS Id. 1999-09-04 20:36:15 +00:00
tron bd999492f6 Import FreeBSD's mktemp(1) utility. 1999-09-02 20:46:17 +00:00