From nobody Wed Oct 1 16:32:07 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ccL6v52vQz69v73; Wed, 01 Oct 2025 16:32:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ccL6v4Wdqz3TC0; Wed, 01 Oct 2025 16:32:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759336327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G+hM3VFrABE+QW1pXGWqZgSgCEr9fj8wIHn87Jlp75M=; b=n8f4V03CoVuOjEzQI80csMgFHzBXb/YDttqT0y9ZpgGlfLD7FVFaNfk3lYu+30fOsacUce l0swHa0wpzAtkT00pDPOWnVD3CuaZOuz00AQkIMZReamoFUrpmUcJRE0K1K2j9NEMmrXay vHEhguvorEmgjVJbpafWEmau98Y0M6YdeShNozRPPH1dwFbZQLOBDumo+Nr+Q26Jeiae1C BJogGN1Ti5h9MiX3b8vDVKwUuZU4WmFZi4JryGk7gR2ncxmB0dvJNV0NHr2dpQHbk4/eMd nIQZYWGDyIUcYkizO4P7UgnKhpWzQ3hdxbMWifETbRgJPg+WdEwWVSkeJQl3jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759336327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G+hM3VFrABE+QW1pXGWqZgSgCEr9fj8wIHn87Jlp75M=; b=kRx5BJVxelbVOoEfAbug3VJbu0nBjturnb+REJz5iSrerhizWSltYMlHO9c+YVSNZ9k3Qj 3kqUpL0nw7uNcRH97Gtgz4U6OXE+icE+tiZ1Fs+qGKSX01C+8W2nQxu8i76UJbr97TBNP4 RmvKz0BraCfguGnpTuzBn/5ce8GrylkPcifB87A2DHJNXgQDzrZ4how/S6daqr1xYcPZWE cHPYk9CTAmFw5GNSKlia09BytaUv5N6bZdMa/Nj6v9f/NbuTRoNP18OScPloZuL2Kl9zxG ANdhVn8EVH9E94fvKPH4hzEt0y1d/ew9JODSYUm3XJ69f0Ev+tUtRZQr2bRG2g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759336327; a=rsa-sha256; cv=none; b=nRGLQJvtMt/qj2rIZp71rPqDuu7oUdQl1rMtjTUawO4bs7GgHYCW1oIzSEX4aGOMBF1Grw w3qqTj9DDNWdj0uMn4kDkJyYB63pqDrKm5JcVyJdTCMrVxvgQbGch006ppsma5OvJ+E5L7 mJmpAd8KEUL+tRE6mee6NvMVr3HDDdmpsByPv0XEYD4oKblu+KG4Vmkyqc8ZKEBOvf+pmZ dy6EVmua34LV6GraJyNSCHAn4LVbsQQQuw211ZBKS+g9ahwMxfKN47Bhr0gzf+d9E4Am7J kHlNSlMrvNBW154P23wyTqQN7PWSUMhm5LJRLWJWamDbIKBWSN4Ku69+VFIilw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ccL6v44yhzTvM; Wed, 01 Oct 2025 16:32:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 591GW7Wk011478; Wed, 1 Oct 2025 16:32:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 591GW7JT011475; Wed, 1 Oct 2025 16:32:07 GMT (envelope-from git) Date: Wed, 1 Oct 2025 16:32:07 GMT Message-Id: <202510011632.591GW7JT011475@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 08a2145902a7 - stable/14 - mktemp.1: Document TMPDIR in ENVIRONMENT List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 08a2145902a71b4533f840f02a69dbdb63cb891e Auto-Submitted: auto-generated The branch stable/14 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=08a2145902a71b4533f840f02a69dbdb63cb891e commit 08a2145902a71b4533f840f02a69dbdb63cb891e Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2025-09-27 15:21:13 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2025-10-01 16:31:59 +0000 mktemp.1: Document TMPDIR in ENVIRONMENT While here, use Ev for TMPDIR consistently. MFC after: 3 days Event: EuroBSDCon 2025 (cherry picked from commit 6b164f18118d0e8dbf9826d7117e0e757f7eb727) --- usr.bin/mktemp/mktemp.1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/usr.bin/mktemp/mktemp.1 b/usr.bin/mktemp/mktemp.1 index 68a5a54aa5c5..47545ee9e5b8 100644 --- a/usr.bin/mktemp/mktemp.1 +++ b/usr.bin/mktemp/mktemp.1 @@ -27,7 +27,7 @@ .\" .\" From: $OpenBSD: mktemp.1,v 1.8 1998/03/19 06:13:37 millert Exp $ .\" -.Dd August 4, 2022 +.Dd September 27, 2025 .Dt MKTEMP 1 .Os .Sh NAME @@ -185,6 +185,13 @@ but still introduces a race condition. Use of this option is not encouraged. .El +.Sh ENVIRONMENT +.Bl -tag -width TMPDIR +.It Ev TMPDIR +The directory in which to store temporary files. +Refer to +.Xr environ 7 . +.El .Sh EXIT STATUS .Ex -std .Sh EXAMPLES @@ -200,7 +207,8 @@ TMPFILE=`mktemp /tmp/${tempfoo}.XXXXXX` || exit 1 echo "program output" >> $TMPFILE .Ed .Pp -To allow the use of $TMPDIR: +To allow the use of +.Ev TMPDIR : .Bd -literal -offset indent tempfoo=`basename $0` TMPFILE=`mktemp -t ${tempfoo}` || exit 1