DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

machid(C)


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 the SCO OpenServer(TM) system 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

make(CP), sh(C), test(C), true(C)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005