From nobody Mon Jul 27 16:12:36 2026 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 4h83XP0dKMz6nBQb for ; Mon, 27 Jul 2026 16:12:37 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h83XN5Th7z42T9 for ; Mon, 27 Jul 2026 16:12:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785168756; 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=Hnp/2bjS5ytUrXSHYGVcU4M0aoSWnVm2AcQqkYQbaw0=; b=AnqS8vrS9Dq4hG5/DJrH8U3z/9wcrt8401328+yHPXlOwK+hjyU9aZ7qV1LwvqqQAWcG+H ZFu4yEj+iVsiy2cJuKQrqFY77zMB2bieFGjJ+k3bligPZHo2ND4Qskh5S7Ga7v0P+0WXbj xHYvgZFpqrkSIb0a6d/Z8wROLmCGN73LKic7MNJrNllaW052y5mWRw5fyD2ah2NBMOytTi mOb7xp/XeQ24vC1IOGZPxN/LeCCzhTTvLvhW4uacS6UQCydOpD4vWjMOaT1K0EZdSYST2E 84wswx89udjMaQEiIa1m8QF4/z+lm0VhX70kmu3LOunooz7lPTFqUNWrdhCQnQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785168756; a=rsa-sha256; cv=none; b=ME6dIVR1rbJ30cYzlBHxwmB1A2oWQOKez2QrylCP7EL/5CNu6WJa9STF+8E/O7wjtxbsuh 5r3z4QygnnWxi1t5gyR7cJ+wy3WpajDNHKpaZEnc5n6QQRRDjWeX6yqy1zu3ziGYMDYPDg YgDaEFL1njqlW6EnnKJD8pS3snnP/MfN8ytr5QKAlxa9S/oHqkadLtyqaDBOaRZD5vt15n Q8LlOcW3+XwpLuPEuI5yUCe3c7H47tp2xf/LvTtEx+rlgjcsUA2NPdPypa7tjTlWHCfWvA p9dPmzkYCOpD7jfAw2NM9NMfzR+1sKkArAbe9uq4/bqaWirG83UwBf8ogm4WnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785168756; 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=Hnp/2bjS5ytUrXSHYGVcU4M0aoSWnVm2AcQqkYQbaw0=; b=JmKgwChdfR3l59Q2/QyE3fljHR6l/QESggmNq8Xiy5wpA/x/6mb7KPnX31BDA8TC/HL4PF 2J2SdejvZdsA/5c9+bn9YRSX3s7HkGp028/vWQkFsxq9zdQhEEFt7MZXt4NeWPNci8u/Vj v1YJ9DKj+109wQVgWIeNLIgdv6dSsb6MvZOdGJ4slMTLKfnaJnxfh81CznjwJJTITChIMJ +h9bqd3Y0IfKRgwxC9sfNQb0dAjNJVLoUQ4U5S20LEyY2hoDVnG3aGPH+m6cERrHCpzGLI CYSuydnurEOxMPCpVh6SPfaMtEqsI+3TmTCU5LdXnuQatWD3+C6S/h7TB7IoTA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h83XN4XMTz1Ff1 for ; Mon, 27 Jul 2026 16:12:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1dc9d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 27 Jul 2026 16:12:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4090d103b0c3 - main - mknod.2: update the man page 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4090d103b0c31b44b269e0ccf758be5cfba3f60c Auto-Submitted: auto-generated Date: Mon, 27 Jul 2026 16:12:36 +0000 Message-Id: <6a678374.1dc9d.66a594c2@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4090d103b0c31b44b269e0ccf758be5cfba3f60c commit 4090d103b0c31b44b269e0ccf758be5cfba3f60c Author: Konstantin Belousov AuthorDate: 2026-07-27 14:14:51 +0000 Commit: Konstantin Belousov CommitDate: 2026-07-27 16:12:13 +0000 mknod.2: update the man page State that FIFOs can be created, document the requirement that dev must be zero then. Mention whiteouts. PR: 297082 Reviewed by: emaste Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D58478 --- lib/libsys/mknod.2 | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/lib/libsys/mknod.2 b/lib/libsys/mknod.2 index f4327262b46b..7dd4985e9cb9 100644 --- a/lib/libsys/mknod.2 +++ b/lib/libsys/mknod.2 @@ -53,13 +53,20 @@ indicates a block or character special file, .Fa dev is a configuration dependent specification denoting a particular device on the system. -Otherwise, +Otherwise, if +.Fa mode +indicates the request to create a FIFO +.Pq see Xr mkfifo 2 +the +.Fa dev +argument must be zero. +For creating whiteouts, the .Fa dev -is ignored. +argument is ignored. .Pp The .Fn mknod -system call +system call, when called to create special files, requires super-user privileges. .Pp The @@ -132,10 +139,12 @@ The argument points outside the process's allocated address space. .It Bq Er EINVAL -Creating anything else than a block or character special -file (or a -.Em whiteout ) -is not supported. +Creating anything other than a block or character special +file, whiteout, or FIFO, is not supported. +.It Bq Er EINVAL +Non-zero +.Fa dev +specified when creating FIFO. .El .Pp In addition to the errors returned by the