1*26bacc25Sschwarze.\" $OpenBSD: arch.1,v 1.10 2017/07/06 16:50:58 schwarze Exp $ 2de1a2e14Saaron.\" 3123870bcStholo.\" Copyright (c) 1994 SigmaSoft, Th. Lockert 4123870bcStholo.\" All rights reserved. 5123870bcStholo.\" 6123870bcStholo.\" Redistribution and use in source and binary forms, with or without 7123870bcStholo.\" modification, are permitted provided that the following conditions 8123870bcStholo.\" are met: 9123870bcStholo.\" 1. Redistributions of source code must retain the above copyright 10123870bcStholo.\" notice, this list of conditions and the following disclaimer. 11123870bcStholo.\" 2. Redistributions in binary form must reproduce the above copyright 12123870bcStholo.\" notice, this list of conditions and the following disclaimer in the 13123870bcStholo.\" documentation and/or other materials provided with the distribution. 14123870bcStholo.\" 15123870bcStholo.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16123870bcStholo.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17123870bcStholo.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18123870bcStholo.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19123870bcStholo.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20123870bcStholo.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21123870bcStholo.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22123870bcStholo.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23123870bcStholo.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24123870bcStholo.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25123870bcStholo.\" 26*26bacc25Sschwarze.Dd $Mdocdate: July 6 2017 $ 27123870bcStholo.Dt ARCH 1 28123870bcStholo.Os 29123870bcStholo.Sh NAME 300eb888d5Sniklas.Nm arch , 310eb888d5Sniklas.Nm machine 32123870bcStholo.Nd print architecture type 33123870bcStholo.Sh SYNOPSIS 34123870bcStholo.Nm arch 350eb888d5Sniklas.Op Fl ks 360eb888d5Sniklas.Nm machine 370eb888d5Sniklas.Op Fl a 38123870bcStholo.Sh DESCRIPTION 39123870bcStholoThe 40de1a2e14Saaron.Nm arch 410eb888d5Sniklasand 420eb888d5Sniklas.Nm machine 43de1a2e14Saaroncommands display the machine's architecture in slightly different ways. 44de1a2e14Saaron.Nm arch 450eb888d5Sniklasby default displays the application architecture, defined by both the 460eb888d5Sniklasoperating system and the instruction set architecture, while 470eb888d5Sniklas.Nm machine 480eb888d5Sniklasdisplays the kernel architecture (without the operating system part). 490eb888d5SniklasNote that both commands output the target architecture as opposed to 500eb888d5Sniklas.Xr uname 1 51bf9a4e5fSaaronwhich describes the host. 52bf9a4e5fSaaronThis is useful for dynamic discovery 530eb888d5Sniklasof the target architecture in build or configuration scripts 540eb888d5Sniklasneeding to work in cross-compilation environments. 5571070e70Stholo.Pp 56de1a2e14SaaronThe options for 57de1a2e14Saaron.Nm arch 58de1a2e14Saaronare as follows: 5971070e70Stholo.Bl -tag -width indent 6071070e70Stholo.It Fl k 6171070e70StholoDisplay the kernel architecture instead of application 6271070e70Stholoarchitecture. 630eb888d5Sniklas.It Fl s 6405c78142SaaronDisplay the chosen architecture in a short form, i.e., without the 650eb888d5Sniklasoperating system prefixed. 660eb888d5Sniklas.El 670eb888d5Sniklas.Pp 68de1a2e14SaaronThe options for 690eb888d5Sniklas.Nm machine 70de1a2e14Saaronare as follows: 710eb888d5Sniklas.Bl -tag -width indent 720eb888d5Sniklas.It Fl a 730eb888d5SniklasDisplay the application architecture instead of the kernel architecture. 7471070e70Stholo.El 75123870bcStholo.Sh SEE ALSO 760eb888d5Sniklas.Xr uname 1 77