Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ machid(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sh(C)

test(C)

true(C)

make(CP)


 machid(C)                       19 June 1992                       machid(C)


 Name

    machid: i286, iAPX286, i386, i486 (also: vax, mc68k, pdp11, u370, u3b,
    u3b15, u3b2, u3b5) - get truth value dependent on processor type

 Syntax

    i286
    iAPX286
    i386
    i486
    (also: vax, mc68k, pdp11, u370, u3b, u3b15, u3b2, u3b5)

 Description

    If the machine is a 286, the i286 and iAPX286 commands will return a true
    value (exit code of 0); otherwise they will return a false (non-zero)
    value.

    If the machine is a 386 or fully compatible with a 386 (such as a 486),
    the i386 command will return a true value; otherwise it will return a
    false value.

    If the machine is a 486 or fully compatible with a 486, the i486 command
    will return a true value; otherwise it will return a false value.

    This type of command is often used within makefiles (see make(CP)) and
    shell procedures (see sh(C)) to increase portability.  Although SCO UNIX
    does not support these other machines, the commands vax, mc68k, pdp11,
    u370, u3b, u3b15, u3b2, and u3b5 are all available and work in a similar
    manner (these will all return a false value).

 See also

    sh(C), test(C), true(C), make(CP)


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026