git: 152064c3a278 - stable/14 - sysdecode_syscallnames.3: s/names/name/

Alexander Ziaee <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a7381cb.3257a.71f1bf74__30098.9362922095$1785954809$gmane$org@gitrepo.freebsd.org>
The branch stable/14 has been updated by ziaee:

URL: https://cgit.FreeBSD.org/src/commit/?id=152064c3a278fe7c27c06f13ea2191ebc9a62c73

commit 152064c3a278fe7c27c06f13ea2191ebc9a62c73
Author:     Felix Johnson <[email protected]>
AuthorDate: 2025-08-26 00:06:39 +0000
Commit:     Alexander Ziaee <[email protected]>
CommitDate: 2026-08-05 16:17:51 +0000

    sysdecode_syscallnames.3: s/names/name/
    
    The sysdecode_syscallname function was accidentally documented as being
    plural. Move it to reflect it's actual name, and adjust all references.
    
    PR:                     278383
    Reviewed by:            ziaee
    Reported by:            mhorne (initial commit forgot to remove old)
    Differential Revision:  https://reviews.freebsd.org/D51002
    
    (cherry picked from commit 739c4905dd5a35db8542b91cb46f04cc7b0484af)
    (cherry picked from commit 4ba91e076ee84101112d8296785098ae31dac35e)
---
 ObsoleteFiles.inc                                                   | 3 +++
 lib/libsysdecode/Makefile                                           | 2 +-
 lib/libsysdecode/sysdecode.3                                        | 2 +-
 lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3                   | 2 +-
 .../{sysdecode_syscallnames.3 => sysdecode_syscallname.3}           | 6 +++---
 5 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc
index fdc4f8b7bad2..1fe83815b9f5 100644
--- a/ObsoleteFiles.inc
+++ b/ObsoleteFiles.inc
@@ -600,6 +600,9 @@ OLD_FILES+=usr/share/examples/dma/auth.conf
 # 20251006: Remove libnss_tacplus.a (it never should have been installed)
 OLD_FILES+=usr/lib/libnss_tacplus.a
 
+# 20250826: Remove a misspelled manual
+OLD_FILES+=usr/share/man/man3/sysdecode_syscallnames.3.gz
+
 # 20250812: Remove a bogus manlink
 OLD_FILES+=usr/share/man/man3/quota_statfs.3.gz
 
diff --git a/lib/libsysdecode/Makefile b/lib/libsysdecode/Makefile
index 73762ef7e6e0..8ee987b70df7 100644
--- a/lib/libsysdecode/Makefile
+++ b/lib/libsysdecode/Makefile
@@ -28,7 +28,7 @@ MAN=	sysdecode.3 \
 	sysdecode_sigcode.3 \
 	sysdecode_sockopt_name.3 \
 	sysdecode_socket_protocol.3 \
-	sysdecode_syscallnames.3 \
+	sysdecode_syscallname.3 \
 	sysdecode_utrace.3
 MLINKS= sysdecode_abi_to_freebsd_errno.3 sysdecode_freebsd_to_abi_errno.3
 MLINKS+=sysdecode_enum.3 sysdecode_acltype.3 \
diff --git a/lib/libsysdecode/sysdecode.3 b/lib/libsysdecode/sysdecode.3
index 0aa4155c004b..32f7fad4e6c5 100644
--- a/lib/libsysdecode/sysdecode.3
+++ b/lib/libsysdecode/sysdecode.3
@@ -73,7 +73,7 @@ A placeholder for use when the ABI is not known.
 .Xr sysdecode_sigcode 3 ,
 .Xr sysdecode_socket_protocol 3 ,
 .Xr sysdecode_sockopt_name 3 ,
-.Xr sysdecode_syscallnames 3 ,
+.Xr sysdecode_syscallname 3 ,
 .Xr sysdecode_utrace 3
 .Sh HISTORY
 The
diff --git a/lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3 b/lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3
index 8f710d1e3756..51955f062393 100644
--- a/lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3
+++ b/lib/libsysdecode/sysdecode_abi_to_freebsd_errno.3
@@ -89,4 +89,4 @@ see
 .Xr sysdecode 3 .
 .Sh SEE ALSO
 .Xr sysdecode 3 ,
-.Xr sysdecode_syscallnames 3
+.Xr sysdecode_syscallname 3
diff --git a/lib/libsysdecode/sysdecode_syscallnames.3 b/lib/libsysdecode/sysdecode_syscallname.3
similarity index 93%
rename from lib/libsysdecode/sysdecode_syscallnames.3
rename to lib/libsysdecode/sysdecode_syscallname.3
index 610cbc9b2115..8ba88fd3c43e 100644
--- a/lib/libsysdecode/sysdecode_syscallnames.3
+++ b/lib/libsysdecode/sysdecode_syscallname.3
@@ -23,17 +23,17 @@
 .\" SUCH DAMAGE.
 .\"
 .Dd October 17, 2016
-.Dt sysdecode_syscallnames 3
+.Dt sysdecode_syscallname 3
 .Os
 .Sh NAME
-.Nm sysdecode_syscallnames
+.Nm sysdecode_syscallname
 .Nd lookup name of system calls
 .Sh LIBRARY
 .Lb libsysdecode
 .Sh SYNOPSIS
 .In sysdecode.h
 .Ft const char *
-.Fn sysdecode_syscallnames "enum sysdecode_abi abi" "unsigned int code"
+.Fn sysdecode_syscallname "enum sysdecode_abi abi" "unsigned int code"
 .Sh DESCRIPTION
 This function returns a pointer to the name of a system call identified by
 .Fa code
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.