git: 5110a74afe56 - main - sys: Correct osreldate descriptions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Jun 2025 14:53:39 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=5110a74afe5680882e3274d57da881511ea7c440
commit 5110a74afe5680882e3274d57da881511ea7c440
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-06-19 14:20:03 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-06-19 14:52:52 +0000
sys: Correct osreldate descriptions
The kern.osreldate sysctl reports the kernel version, not a release
date. Also correct a comment about /usr/include/osreldate.h.
Reviewed by: kp, olce
Event: Kitchener-Waterloo Hackathon 202506
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50938
---
sys/kern/kern_mib.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c
index 97742aefe8f7..ebee2e88bd66 100644
--- a/sys/kern/kern_mib.c
+++ b/sys/kern/kern_mib.c
@@ -574,12 +574,11 @@ sysctl_osreldate(SYSCTL_HANDLER_ARGS)
}
/*
- * NOTICE: The *userland* release date is available in
- * /usr/include/osreldate.h
+ * NOTICE: The *userland* version is available in /usr/include/osreldate.h
*/
SYSCTL_PROC(_kern, KERN_OSRELDATE, osreldate,
CTLTYPE_INT | CTLFLAG_CAPRD | CTLFLAG_RD | CTLFLAG_MPSAFE,
- NULL, 0, sysctl_osreldate, "I", "Kernel release date");
+ NULL, 0, sysctl_osreldate, "I", "Kernel version");
/*
* The build-id is copied from the ELF section .note.gnu.build-id. The linker