aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mktemp
Commit message (Collapse)AuthorAgeFilesLines
* Purge more stray embedded $FreeBSD$ stringsJohn Baldwin2023-09-251-5/+0
| | | | | | | These do not use __FBSDID but instead use bare char arrays. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-164-4/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-122-2/+2
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* mktemp: skip later TMPDIR check if -p is specifiedKyle Evans2022-11-092-1/+7
| | | | | | | | | We already did the necessary $TMPDIR fallback, if it's going to be used. Skip the later check so that we don't accidentally override our -p argument. Fixes: ac6f924e1c ("mktemp: add -p/--tmpdir argument") Sponsored by: Klara, Inc.
* mktemp: don't double up on trailing slashes for -t pathsKyle Evans2022-11-032-2/+20
| | | | | | | | | | | | This is a minor cosmetic change; re-organize slightly to set tmpdir to _PATH_TMP if we didn't otherwise have a tmpdir candidate, then check the trailing char before appending another slash. While we're here, remove some bogus whitespace and add a test case for this change. Obtained from: https://github.com/apple-oss-distributions/shell_cmds Sponsored by: Klara, Inc.
* mktemp: add -p/--tmpdir argumentKyle Evans2022-10-315-10/+201
| | | | | | | | | | | | | | | | | | | | | | 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
* mktemp: add some GNU-compatible long optionsKyle Evans2022-10-312-5/+13
| | | | | | | | | 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
* better unique file namesWolfram Schneider2022-02-121-2/+2
| | | | | | | | Our mktemp(1) implementation uses 8-X for a temp file by default. That's ok, but we should increase the value from 8 to 10 as many other OS already did. PR: 261438
* pkgbase: Put more binaries/lib in runtimeEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | | Move some needed binaries/libs from FreeBSD-utilities to FreeBSD_runtime. This is everything needed to boot to multiuser with FreeBSD-rc installed. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33435
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=314436
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync with HEAD.David E. O'Brien2013-02-081-4/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=246555
| * Sync from headSimon J. Gerraty2012-11-042-2/+13
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Use the macro for standard error return values.Eitan Adler2012-11-181-4/+1
| |/ |/| | | | | | | | | | | | | | | | | | | .Dd not bumped because there is no important content change. Approved by: bcr (mentor) MFC after: 3 days Obtained from: DragonflyBSD Notes: svn path=/head/; revision=243240
* | Implement the Sun/GNU extension of using a defaultEitan Adler2012-10-022-2/+13
|/ | | | | | | | | | | prefix when no arguments are supplied. Reviewed by: jilles Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=241118
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+0
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=216370
* Use prototype for usage().Xin LI2009-12-131-1/+1
| | | | Notes: svn path=/head/; revision=200463
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-1/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+1
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Markup fixes.Ruslan Ermilov2006-09-291-1/+1
| | | | Notes: svn path=/head/; revision=162792
* mkstemp(3) and friends use a combination of base 10 digits, alongChristian S.J. Peron2005-12-301-1/+1
| | | | | | | | | 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) Notes: svn path=/head/; revision=153904
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Add punctuation which appears to have been accidentally removed inColin Percival2004-10-221-1/+1
| | | | | | | revision 1.6. Notes: svn path=/head/; revision=136784
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-10/+20
| | | | Notes: svn path=/head/; revision=131491
* Use proper article.Dima Dorfman2002-07-161-1/+1
| | | | Notes: svn path=/head/; revision=100160
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-221-1/+1
| | | | Notes: svn path=/head/; revision=92921
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* Warns cleanups.David Malone2001-12-032-1/+3
| | | | Notes: svn path=/head/; revision=87290
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* Update HISTORY.David E. O'Brien2001-02-281-1/+5
| | | | Notes: svn path=/head/; revision=73207
* mdoc(7) police: use canonical form of .Dd macro.Ruslan Ermilov2000-12-111-1/+1
| | | | Notes: svn path=/head/; revision=69860
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68963
* Correct the usage of mktemp:Alexander Langer2000-10-152-2/+9
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=67162
* Fix example.Jeroen Ruigrok van der Werven2000-06-041-3/+6
| | | | | | | | PR: 18953 Submitted by: Mark Ovens <mark@ukug.uk.freebsd.org> Notes: svn path=/head/; revision=61244
* Move RCS tags after copyrightPhilippe Charnier2000-03-261-5/+3
| | | | | | | Add DIAGNOSTICS section name Notes: svn path=/head/; revision=58613
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* .Ox is ``clever'' now.Alexey Zelkin1999-10-301-2/+1
| | | | Notes: svn path=/head/; revision=52658
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477