MACHID(1) — Silicon Graphics
NAME
m68000, m68k, pdp11, u3b, vax − provide truth value about your processor type
SYNOPSIS
m68000
m68k
pdp11
u3b
vax
DESCRIPTION
The following commands will return a true value (exit code of 0) if you are on a processor that the command name indicates.
m68000 True if you are on a 68000.
m68k True if you are on a 68000.
pdp11 True if you are on a PDP-11/45 or PDP-11/70.
u3b
True if you are on a 3B20S.
vax
True if you are on a VAX-11/750 or VAX-11/780.
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
Version 2.1 — January 02, 1985