git: fa67270fe217 - main - manpages: fix reference to errno(2)

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Sun, 08 Nov 2026 10:05:12 UTC
The branch main has been updated by wosch:

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

commit fa67270fe217a6ec70c525fea72003816ca5bacf
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2026-11-08 10:04:29 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2026-11-08 10:04:29 +0000

    manpages: fix reference to errno(2)
    
    On FreeBSD, the errno man page is in section 2, not section 3.
---
 lib/libc/gen/uexterr_gettext.3    | 2 +-
 lib/libc/gen/uexterror.3          | 6 +++---
 lib/libc/stdtime/ctime.3          | 2 +-
 share/man/man3/pthread_query_np.3 | 2 +-
 share/man/man9/exterror.9         | 4 ++--
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/libc/gen/uexterr_gettext.3 b/lib/libc/gen/uexterr_gettext.3
index 991625f0602e..c4f479e00695 100644
--- a/lib/libc/gen/uexterr_gettext.3
+++ b/lib/libc/gen/uexterr_gettext.3
@@ -60,7 +60,7 @@ and setting
 to the corresponding value.
 .Sh SEE ALSO
 .Xr err 3 ,
-.Xr errno 3 ,
+.Xr errno 2 ,
 .Xr exterror 9
 .Sh STANDARDS
 The
diff --git a/lib/libc/gen/uexterror.3 b/lib/libc/gen/uexterror.3
index b52a5e906507..74847fd97dfa 100644
--- a/lib/libc/gen/uexterror.3
+++ b/lib/libc/gen/uexterror.3
@@ -33,7 +33,7 @@ same
 .Xr exterror 9
 infrastructure the kernel uses to return additional information about an
 error along with the standard
-.Xr errno 3
+.Xr errno 2
 error code, which is terse and often lacking context.
 .Pp
 The terseness is especially visible with commonly overloaded error codes like
@@ -109,7 +109,7 @@ Note that unlike its kernel counterpart
 the
 .Nm
 macro does not return a value and sets
-.Xr errno 3
+.Xr errno 2
 directly.
 .Pp
 The name of the file and strings passed as the second argument are
@@ -119,7 +119,7 @@ was not compiled with the
 macro defined.
 .Sh SEE ALSO
 .Xr err 3 ,
-.Xr errno 3 ,
+.Xr errno 2 ,
 .Xr uexterr_gettext 3 ,
 .Xr exterror 9
 .Sh HISTORY
diff --git a/lib/libc/stdtime/ctime.3 b/lib/libc/stdtime/ctime.3
index e51cb5d52f94..451ac5b15e10 100644
--- a/lib/libc/stdtime/ctime.3
+++ b/lib/libc/stdtime/ctime.3
@@ -263,7 +263,7 @@ The
 function
 returns the specified calendar time; if the calendar time cannot be
 represented, it returns \-1 and sets
-.Xr errno 3
+.Xr errno 2
 to an appropriate value.
 .Pp
 Note that \-1 is a valid result (representing one second before
diff --git a/share/man/man3/pthread_query_np.3 b/share/man/man3/pthread_query_np.3
index 07f8adeb273c..2d41f16b5857 100644
--- a/share/man/man3/pthread_query_np.3
+++ b/share/man/man3/pthread_query_np.3
@@ -123,7 +123,7 @@ In particular, the stack unwinding might happen.
 .El
 .It Va errno_location
 The address of the thread-private instance of the
-.Xr errno 3
+.Xr errno 2
 variable.
 .It Va tcb
 The address of the architecture-specific thread control block.
diff --git a/share/man/man9/exterror.9 b/share/man/man9/exterror.9
index 901ffa2fe9fb..e8932b33af2c 100644
--- a/share/man/man9/exterror.9
+++ b/share/man/man9/exterror.9
@@ -32,7 +32,7 @@ The
 .Nm
 framework allows the kernel to return additional information about an error
 along with the standard
-.Xr errno 3
+.Xr errno 2
 error code, which is terse and often lacking context.
 .Pp
 The terseness is especially visible with commonly overloaded error codes like
@@ -242,7 +242,7 @@ They pass
 from the failed request back to the thread that create the request.
 .Sh SEE ALSO
 .Xr err 3 ,
-.Xr errno 3 ,
+.Xr errno 2 ,
 .Xr uexterr 3 ,
 .Xr uexterr_gettext 3
 .Sh HISTORY