Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164545886
D58321.id182423.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D58321.id182423.diff
View Options
diff --git a/share/man/man9/exterror.9 b/share/man/man9/exterror.9
--- a/share/man/man9/exterror.9
+++ b/share/man/man9/exterror.9
@@ -6,7 +6,7 @@
.\" Konstantin Belousov <kib@FreeBSD.org> under sponsorship
.\" from the FreeBSD Foundation.
.\"
-.Dd November 5, 2025
+.Dd July 21, 2026
.Dt EXTERROR 9
.Os
.Sh NAME
@@ -171,6 +171,17 @@
in addition to the usual
.Va errno
decoding.
+.Pp
+Kernels built with the
+.Cd option EXTERR_STRINGS
+advertise the
+.Va kern.features.exterr_strings
+.Xr sysctl 8
+variable, see
+.Xr feature_present 3 ,
+indicating that the reported errors include the descriptive message strings.
+Without it, only the numeric information (error code, category,
+source line number and parameters) is available.
.Sh ASYNCHRONOUS INPUT/OUTPUT
Due to the nature of the
.Fx
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c
--- a/sys/kern/sys_generic.c
+++ b/sys/kern/sys_generic.c
@@ -112,6 +112,10 @@
static MALLOC_DEFINE(M_SELECT, "select", "select() buffer");
MALLOC_DEFINE(M_IOV, "iov", "large iov's");
+#ifdef EXTERR_STRINGS
+FEATURE(exterr_strings, "Extended error reporting includes message strings");
+#endif
+
static int pollout(struct thread *, struct pollfd *, struct pollfd *,
u_int);
static int pollscan(struct thread *, struct pollfd *, u_int);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 3, 12:48 AM (17 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35829810
Default Alt Text
D58321.id182423.diff (1 KB)
Attached To
Mode
D58321: exterror: advertise error strings via kern.features.exterr_strings
Attached
Detach File
Event Timeline
Log In to Comment