aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/uname
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2017-05-31 03:44:31 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2017-05-31 03:44:31 +0000
commitab0dffafb704e258ce559a104fe0139df03d3f51 (patch)
treec6ee864d8920d48882b93559bacc5a2f899301f4 /usr.bin/uname
parent0dda2c25d4d550e5e0a89b003b9ff8a34a7cfd41 (diff)
downloadsrc-ab0dffafb704e258ce559a104fe0139df03d3f51.tar.gz
src-ab0dffafb704e258ce559a104fe0139df03d3f51.zip
Notes
Diffstat (limited to 'usr.bin/uname')
-rw-r--r--usr.bin/uname/uname.125
1 files changed, 24 insertions, 1 deletions
diff --git a/usr.bin/uname/uname.1 b/usr.bin/uname/uname.1
index 97ce3070b7fe..2a5a03f5162f 100644
--- a/usr.bin/uname/uname.1
+++ b/usr.bin/uname/uname.1
@@ -28,7 +28,7 @@
.\" @(#)uname.1 8.3 (Berkeley) 4/8/94
.\" $FreeBSD$
.\"
-.Dd November 20, 2013
+.Dd May 31, 2017
.Dt UNAME 1
.Os
.Sh NAME
@@ -61,6 +61,11 @@ Write the
version of the kernel.
.It Fl m
Write the type of the current hardware platform to standard output.
+.Po Xr make 1
+uses it to set the
+.Va MACHINE
+variable.
+.Pc
.It Fl n
Write the name of the system to standard output.
.It Fl o
@@ -69,6 +74,11 @@ This is a synonym for the
option, for compatibility with other systems.
.It Fl p
Write the type of the machine processor architecture to standard output.
+.Po Xr make 1
+uses it to set the
+.Va MACHINE_ARCH
+variable.
+.Pc
.It Fl r
Write the current release level of the operating system
to standard output.
@@ -106,6 +116,19 @@ will allow the corresponding data to be set to the contents
of the environment variable.
.Sh EXIT STATUS
.Ex -std
+.Sh EXAMPLES
+The hardware platform
+.Pq Fl m
+can be different from the machine's processor architecture
+.Pq Fl p ,
+e.g., on 64-bit PowerPC,
+.Fl m
+would return
+.Va powerpc
+and
+.Fl p
+would return
+.Va powerpc64 .
.Sh SEE ALSO
.Xr feature_present 3 ,
.Xr getosreldate 3 ,