diff options
author | eadler <eadler@FreeBSD.org> | 2018-03-18 22:24:29 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2018-03-18 22:24:29 +0000 |
commit | 2776e81c0c84f68374af889f8fe087b08b140921 (patch) | |
tree | dd4d4b4cf015d981e3b05d0c7816f639bb33d0cc /usr.bin | |
parent | 5b8a4a76d4f9ad0473a6bed722a83d51bfa856ba (diff) | |
download | FreeBSD-src-2776e81c0c84f68374af889f8fe087b08b140921.zip FreeBSD-src-2776e81c0c84f68374af889f8fe087b08b140921.tar.gz |
MFC r319274:
- Add a simple example to uname(1) manual page to show how the hardware
platform (returned by -m) can be different from the machine's processor
architecture (-p)
- Document that make(1) sets universal MACHINE and MACHINE_ARCH variables
based on these values
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/uname/uname.1 | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/usr.bin/uname/uname.1 b/usr.bin/uname/uname.1 index 28cb071..e6acf9b 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 , |