From cb6061aa80503dccea34c902ded7519ab9764d29 Mon Sep 17 00:00:00 2001 From: eivind Date: Mon, 1 Sep 2003 14:26:33 +0000 Subject: Update the kern.osreldate documentation to document the present format used, and refer to to get userland date. Submitted by: ru --- lib/libc/gen/sysctl.3 | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3 index 8bf54ab..acda7fc 100644 --- a/lib/libc/gen/sysctl.3 +++ b/lib/libc/gen/sysctl.3 @@ -406,8 +406,23 @@ The maximum number of supplemental groups. .It Li KERN_NISDOMAINNAME The name of the current YP/NIS domain. .It Li KERN_OSRELDATE -The system release date in YYYYMM format -(January 1996 is encoded as 199601). +The kernel release version in the format +.Ar M Ns Ar mm Ns Ar R Ns Ar xx , +where +.Ar M +is the major version, +.Ar mm +is the two digit minor version, +.Ar R +is 0 if release branch, otherwise 1, +and +.Ar xx +is updated when the available APIs change. +.Pp +The userland release version is available from +.Aq Pa osreldate.h ; +parse this file if you need to get the release version of +the currently installed userland. .It Li KERN_OSRELEASE The system release string. .It Li KERN_OSREV -- cgit v1.1