Annotation of src/usr.bin/arch/arch.1, Revision 1.10
1.10 ! schwarze 1: .\" $OpenBSD: arch.1,v 1.9 2007/05/31 19:20:07 jmc Exp $
1.5 aaron 2: .\"
1.1 tholo 3: .\" Copyright (c) 1994 SigmaSoft, Th. Lockert
4: .\" All rights reserved.
5: .\"
6: .\" Redistribution and use in source and binary forms, with or without
7: .\" modification, are permitted provided that the following conditions
8: .\" are met:
9: .\" 1. Redistributions of source code must retain the above copyright
10: .\" notice, this list of conditions and the following disclaimer.
11: .\" 2. Redistributions in binary form must reproduce the above copyright
12: .\" notice, this list of conditions and the following disclaimer in the
13: .\" documentation and/or other materials provided with the distribution.
14: .\"
15: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16: .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17: .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18: .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19: .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25: .\"
1.10 ! schwarze 26: .Dd $Mdocdate: May 31 2007 $
1.1 tholo 27: .Dt ARCH 1
28: .Os
29: .Sh NAME
1.4 niklas 30: .Nm arch ,
31: .Nm machine
1.1 tholo 32: .Nd print architecture type
33: .Sh SYNOPSIS
34: .Nm arch
1.4 niklas 35: .Op Fl ks
36: .Nm machine
37: .Op Fl a
1.1 tholo 38: .Sh DESCRIPTION
39: The
1.5 aaron 40: .Nm arch
1.4 niklas 41: and
42: .Nm machine
1.5 aaron 43: commands display the machine's architecture in slightly different ways.
44: .Nm arch
1.4 niklas 45: by default displays the application architecture, defined by both the
46: operating system and the instruction set architecture, while
47: .Nm machine
48: displays the kernel architecture (without the operating system part).
49: Note that both commands output the target architecture as opposed to
50: .Xr uname 1
1.7 aaron 51: which describes the host.
52: This is useful for dynamic discovery
1.4 niklas 53: of the target architecture in build or configuration scripts
54: needing to work in cross-compilation environments.
1.2 tholo 55: .Pp
1.5 aaron 56: The options for
57: .Nm arch
58: are as follows:
1.2 tholo 59: .Bl -tag -width indent
60: .It Fl k
61: Display the kernel architecture instead of application
62: architecture.
1.4 niklas 63: .It Fl s
1.6 aaron 64: Display the chosen architecture in a short form, i.e., without the
1.4 niklas 65: operating system prefixed.
66: .El
67: .Pp
1.5 aaron 68: The options for
1.4 niklas 69: .Nm machine
1.5 aaron 70: are as follows:
1.4 niklas 71: .Bl -tag -width indent
72: .It Fl a
73: Display the application architecture instead of the kernel architecture.
1.2 tholo 74: .El
1.1 tholo 75: .Sh SEE ALSO
1.4 niklas 76: .Xr uname 1