Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2026 02:53:39 +0000
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 361ee195955f - stable/15 - mknod.2: update the man page
Message-ID:  <6a6abcb3.1c2c6.6e952ec@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=361ee195955f492ce283b2bd8bd07d864b9f6b43

commit 361ee195955f492ce283b2bd8bd07d864b9f6b43
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-07-27 14:14:51 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-07-30 02:50:49 +0000

    mknod.2: update the man page
    
    PR:     297082
    
    (cherry picked from commit 4090d103b0c31b44b269e0ccf758be5cfba3f60c)
---
 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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a6abcb3.1c2c6.6e952ec>