Annotation of src/usr.bin/arch/arch.1, Revision 1.5
1.5 ! aaron 1: .\" $OpenBSD$
! 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: .\" 3. All advertising materials mentioning features or use of this software
15: .\" must display the following acknowledgement:
16: .\" This product includes software developed by SigmaSoft, Th. Lockert.
17: .\" 4. The name of the author may not be used to endorse or promote products
18: .\" derived from this software without specific prior written permission
19: .\"
20: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21: .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22: .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23: .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24: .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30: .\"
1.5 ! aaron 31: .\" $OpenBSD: arch.1,v 1.4 1999/08/19 22:17:38 niklas Exp $
1.1 tholo 32: .\"
33: .Dd June 22, 1996
34: .Dt ARCH 1
35: .Os
36: .Sh NAME
1.4 niklas 37: .Nm arch ,
38: .Nm machine
1.1 tholo 39: .Nd print architecture type
40: .Sh SYNOPSIS
41: .Nm arch
1.4 niklas 42: .Op Fl ks
43: .Nm machine
44: .Op Fl a
1.1 tholo 45: .Sh DESCRIPTION
46: The
1.5 ! aaron 47: .Nm arch
1.4 niklas 48: and
49: .Nm machine
1.5 ! aaron 50: commands display the machine's architecture in slightly different ways.
! 51: .Nm arch
1.4 niklas 52: by default displays the application architecture, defined by both the
53: operating system and the instruction set architecture, while
54: .Nm machine
55: displays the kernel architecture (without the operating system part).
56: Note that both commands output the target architecture as opposed to
57: .Xr uname 1
58: which describes the host. This is useful for dynamic discovery
59: of the target architecture in build or configuration scripts
60: needing to work in cross-compilation environments.
1.2 tholo 61: .Pp
1.5 ! aaron 62: The options for
! 63: .Nm arch
! 64: are as follows:
1.2 tholo 65: .Bl -tag -width indent
66: .It Fl k
67: Display the kernel architecture instead of application
68: architecture.
1.4 niklas 69: .It Fl s
70: Display the chosen architecture in a short form, i.e. without the
71: operating system prefixed.
72: .El
73: .Pp
1.5 ! aaron 74: The options for
1.4 niklas 75: .Nm machine
1.5 ! aaron 76: are as follows:
1.4 niklas 77: .Bl -tag -width indent
78: .It Fl a
79: Display the application architecture instead of the kernel architecture.
1.2 tholo 80: .El
1.1 tholo 81: .Sh SEE ALSO
1.4 niklas 82: .Xr uname 1