summaryrefslogtreecommitdiffstats
path: root/usr.bin/uname/uname.1
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2013-10-15 20:57:40 +0000
committerpeter <peter@FreeBSD.org>2013-10-15 20:57:40 +0000
commit5532d94759e5176fd123f83682d50ec5c56b5500 (patch)
treeb181a59346b5940337a48a4f2e57347345de3c87 /usr.bin/uname/uname.1
parentd87817b28969aabea9da02ff7efee658bc1f71ff (diff)
downloadFreeBSD-src-5532d94759e5176fd123f83682d50ec5c56b5500.zip
FreeBSD-src-5532d94759e5176fd123f83682d50ec5c56b5500.tar.gz
Add -K (__FreeBSD_version of kernel) and -U (__FreeBSD_version of userland).
Things like Makefile.inc1 resort to parsing /usr/include/osreldate.h with awk because this isn't easily available by other means. The separation of user and kernel versions is important for jail/chroot environments.
Diffstat (limited to 'usr.bin/uname/uname.1')
-rw-r--r--usr.bin/uname/uname.127
1 files changed, 26 insertions, 1 deletions
diff --git a/usr.bin/uname/uname.1 b/usr.bin/uname/uname.1
index dd7d5a0..adffa37 100644
--- a/usr.bin/uname/uname.1
+++ b/usr.bin/uname/uname.1
@@ -36,7 +36,7 @@
.Nd display information about the system
.Sh SYNOPSIS
.Nm
-.Op Fl aimnoprsv
+.Op Fl aiKmnoprsUv
.Sh DESCRIPTION
The
.Nm
@@ -55,6 +55,10 @@ and
were specified.
.It Fl i
Write the kernel ident to standard output.
+.It Fl K
+Write the
+.Fx
+version of the kernel.
.It Fl m
Write the type of the current hardware platform to standard output.
.It Fl n
@@ -70,6 +74,10 @@ Write the current release level of the operating system
to standard output.
.It Fl s
Write the name of the operating system implementation to standard output.
+.It Fl U
+Write the
+.Fx
+version of the user environment.
.It Fl v
Write the version level of this release of the operating system
to standard output.
@@ -79,6 +87,14 @@ If the
.Fl a
flag is specified, or multiple flags are specified, all
output is written on a single line, separated by spaces.
+.Pp
+The
+.Fl K
+and
+.Fl U
+flags are intended to be used for fine grain differentiation of incremental
+.Fx
+development and user visible changes.
.Sh ENVIRONMENT
An environment variable composed of the string
.Ev UNAME_
@@ -91,6 +107,8 @@ of the environment variable.
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
+.Xr feature_present 3 ,
+.Xr getosreldate 3 ,
.Xr sysctl 3 ,
.Xr uname 3 ,
.Xr sysctl 8
@@ -104,3 +122,10 @@ specification.
The
.Nm
command appeared in PWB UNIX.
+.Pp
+The
+.Fl K
+and
+.Fl U
+extension flags appeared in
+.Fx 11.0 .
OpenPOWER on IntegriCloud