From ef5473d3c1828d1be2ea7d5f3bd3c211818c81c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Tue, 21 Jul 2015 10:17:43 +0100 Subject: [PATCH] doc: discourage use of uname -i and -p options * src/uname.c (usage): State that the non POSIX -i and -p options are non portable. * doc/coreutils.texi (uname invocation): Mention the discrepancies even across GNU/Linux distros, and that the results should be used as informational only, rather than impacting any logic decisions. --- doc/coreutils.texi | 8 ++++---- src/uname.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 5808413..6a07dcb 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -15605,8 +15605,8 @@ and the hardware platform name if they are unknown. @cindex platform, hardware Print the hardware platform name (sometimes called the hardware implementation). -Print @samp{unknown} if the kernel does not make this information -easily available, as is the case with Linux kernels. +Print @samp{unknown} if this information is not available. +Note this is non portable (even across GNU/Linux distributions). @item -m @itemx --machine @@ -15634,8 +15634,8 @@ Print the network node hostname. @cindex host processor type Print the processor type (sometimes called the instruction set architecture or ISA). -Print @samp{unknown} if the kernel does not make this information -easily available, as is the case with Linux kernels. +Print @samp{unknown} if this information is not available. +Note this is non portable (even across GNU/Linux distributions). @item -o @itemx --operating-system diff --git a/src/uname.c b/src/uname.c index 39bd28c..a9aec56 100644 --- a/src/uname.c +++ b/src/uname.c @@ -133,8 +133,8 @@ Print certain system information. With no OPTION, same as -s.\n\ fputs (_("\ -v, --kernel-version print the kernel version\n\ -m, --machine print the machine hardware name\n\ - -p, --processor print the processor type or \"unknown\"\n\ - -i, --hardware-platform print the hardware platform or \"unknown\"\n\ + -p, --processor print the processor type. Non portable\n\ + -i, --hardware-platform print the hardware platform. Non portable\n\ -o, --operating-system print the operating system\n\ "), stdout); } -- 2.4.1