6001 strcat(9f) needs a manpage
[unleashed.git] / usr / src / man / man1 / arch.1
blob5bfef3971e527c7181373a680a44190d6dfbf342
1 '\" te
2 .\" Copyright (c) 2002, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH ARCH 1 "Oct 21, 2002"
7 .SH NAME
8 arch \- display the architecture of the current host
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBarch\fR [\fB-k\fR | \fIarchname\fR]
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The \fBarch\fR utility displays the application architecture of the current
19 host system. Due to extensive historical use of this command without any
20 options, all SunOS 5.\fIx\fR SPARC based systems will return "sun4" as their
21 application architecture. Use of this command is discouraged. See NOTES section
22 below.
23 .sp
24 .LP
25 Systems can be broadly classified by their \fBarchitectures\fR, which define
26 what executables will run on which machines. A distinction can be made between
27 \fBkernel\fR architecture and \fBapplication\fR architecture (or, commonly,
28 just "architecture"). Machines that run different kernels due to underlying
29 hardware differences may be able to run the same application programs.
30 .SH OPTIONS
31 .sp
32 .ne 2
33 .na
34 \fB\fB-k\fR\fR
35 .ad
36 .RS 6n
37 Displays the kernel architecture, such as \fBsun4u\fR.  This defines which
38 specific SunOS kernel will run on the machine, and has implications only for
39 programs that depend on the kernel explicitly (for example, \fBps\fR(1)).
40 .RE
42 .SH OPERANDS
43 .sp
44 .LP
45 The following operand is supported:
46 .sp
47 .ne 2
48 .na
49 \fB\fIarchname\fR\fR
50 .ad
51 .RS 12n
52 Use \fIarchname\fR to determine whether the application binaries for this
53 application architecture can run on the current host system. The
54 \fIarchname\fR must be a valid application architecture, such as
55 \fBsun4\fR,\fB i86pc\fR, and so forth.
56 .sp
57 If \fBapplication\fR binaries for \fIarchname\fR can run on the current host
58 system, \fBTRUE\fR (\fB0\fR) is returned. Otherwise,  \fBFALSE\fR (\fB1\fR) is
59 returned.
60 .RE
62 .SH EXIT STATUS
63 .sp
64 .LP
65 The following exit values are returned:
66 .sp
67 .ne 2
68 .na
69 \fB\fB0\fR\fR
70 .ad
71 .RS 6n
72 Successful completion.
73 .RE
75 .sp
76 .ne 2
77 .na
78 \fB\fB>0\fR\fR
79 .ad
80 .RS 6n
81 An error occurred.
82 .RE
84 .SH SEE ALSO
85 .sp
86 .LP
87 \fBmach\fR(1), \fBps\fR(1), \fBuname\fR(1), \fBattributes\fR(5)
88 .SH NOTES
89 .sp
90 .LP
91 This command is provided for compatibility with previous releases and its use
92 is discouraged. Instead, the \fBuname\fR command is recommended. See
93 \fBuname\fR(1) for usage information.