]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/arch.1
Imported from util-linux-2.8 tarball.
[thirdparty/util-linux.git] / sys-utils / arch.1
index a2830ed3cde4ddfa3dc13db84eb9de78a2c02c43..9ce88db51df6e1cb8ae86403276568f226419705 100644 (file)
@@ -9,10 +9,25 @@ arch \- print machine architecture
 .SH DESCRIPTION
 .B arch
 is equivalent to
-.B uname -m
+.BR "uname -m" .
 
 On current Linux systems,
 .B arch
-prints things such as "i386" or "i486".
+prints things such as "i386", "i486", "i586", "alpha", "sparc",
+"arm", "m68k", "mips", "ppc".
 .SH SEE ALSO
 .BR uname (1) ", " uname (2)
+.\"
+.\" Details:
+.\" arch prints the machine part of the system_utsname struct
+.\" This struct is defined in version.c, and this field is
+.\" initialized with UTS_MACHINE, which is defined as $ARCH
+.\" in the main Makefile.
+.\" That gives the possibilities 
+.\" alpha    arm      i386     m68k     mips     ppc      sparc    sparc64
+.\"
+.\" If Makefile is not edited, ARCH is guessed by
+.\" ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/)
+.\" Then how come we get these i586 values?
+.\" Well, the routine check_bugs() does system_utsname.machine[1] = '0' + x86;
+.\" (called in init/main.c, defined in ./include/asm-i386/bugs.h)