[BACK]Return to arch.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / arch

Annotation of src/usr.bin/arch/arch.1, Revision 1.7

1.7     ! aaron       1: .\" $OpenBSD: arch.1,v 1.6 2000/03/11 21:40:07 aaron 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: .\" 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.7     ! aaron      31: .\"    $OpenBSD: arch.1,v 1.6 2000/03/11 21:40:07 aaron 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
1.7     ! aaron      58: which describes the host.
        !            59: This is useful for dynamic discovery
1.4       niklas     60: of the target architecture in build or configuration scripts
                     61: needing to work in cross-compilation environments.
1.2       tholo      62: .Pp
1.5       aaron      63: The options for
                     64: .Nm arch
                     65: are as follows:
1.2       tholo      66: .Bl -tag -width indent
                     67: .It Fl k
                     68: Display the kernel architecture instead of application
                     69: architecture.
1.4       niklas     70: .It Fl s
1.6       aaron      71: Display the chosen architecture in a short form, i.e., without the
1.4       niklas     72: operating system prefixed.
                     73: .El
                     74: .Pp
1.5       aaron      75: The options for
1.4       niklas     76: .Nm machine
1.5       aaron      77: are as follows:
1.4       niklas     78: .Bl -tag -width indent
                     79: .It Fl a
                     80: Display the application architecture instead of the kernel architecture.
1.2       tholo      81: .El
1.1       tholo      82: .Sh SEE ALSO
1.4       niklas     83: .Xr uname 1