


MACHID(1)                USER COMMANDS                  MACHID(1)



NAME
     machid, sun, iAPX286, m68k, pdp11, sparc, u3b,  u3b2,  u3b5,
     u3b15,  vax, i386 - return a true exit status if the proces-
     sor is of the indicated type

SYNOPSIS
     sun

     iAPX286

     m68k

     pdp11

     sparc

     u3b

     u3b2

     u3b5

     u3b15

     vax

     i386

DESCRIPTION
     The following commands will return a true value  (exit  code
     of  0) if you are on a processor that the command name indi-
     cates.

          sun       True if you are on a Sun system.

          iAPX286   True if  you  are  on  a  computer  using  an
                    iAPX286 processor.

          i386      True if  you  are  on  a  computer  using  an
                    iAPX386 processor.

          m68k      True if you are on  a  computer,  such  as  a
                    Sun-3  or  a  Sun-3x,  using an M68000-family
                    processor.

          pdp11     True if you are on a PDP-11.

          sparc     True if you are on  a  computer,  such  as  a
                    Sun-4, using a SPARC-family processor.

          u3b       True if you are on a 3B20S computer.




Sun Release 4.1   Last change: 18 February 1988                 1






MACHID(1)                USER COMMANDS                  MACHID(1)



          u3b2      True if you are on a 3B2 computer.

          u3b5      True if you are on a 3B5 computer.

          u3b15     True if you are on a 3B15 computer.

          vax       True if you are on a VAX.

     The commands that do not apply will  return  a  false  (non-
     zero)  value.   These commands are often used within make(1)
     makefiles and shell procedures to increase portability.

SEE ALSO
     arch(1), mach(1), make(1), sh(1), test(1V), true(1)









































Sun Release 4.1   Last change: 18 February 1988                 2



