'\"macro stdmacro
.if n .pH g1.machid @(#)machid	40.9 of 10/10/89
.\" Copyright 1989 AT&T
.nr X
.if \nX=0 .ds x} machid 1 "Essential/User Environment Utilities" "\&"
.if \nX=1 .ds x} machid 1 "Essential/User Environment Utilities"
.if \nX=2 .ds x} machid 1 "" "\&"
.if \nX=3 .ds x} machid "" "" "\&"
.TH \*(x}
.SH NAME
\f4machid\f2: \f4pdp11\f1, \f4u3b\f1, \f4u3b2\f1, \f4u3b5\f1, \f4u3b15\f1, \f4vax\f1, \f4u370\f1 \- get processor type truth value
.SH SYNOPSIS
\f4pdp11\f1
.sp .2
\f4u3b\f1
.sp .2
\f4u3b2\f1
.sp .2
\f4u3b5\f1
.sp .2
\f4u3b15\f1
.sp .2
\f4vax\f1
.sp .2
\f4u370\f1
.SH DESCRIPTION
The following commands will return a true value (exit code of 0) if you are on
a processor that the command name indicates.
.RS
.TP \w'pdp11\ \ \ 'u
\f4pdp11\f1
True if you are on a \s-1PDP\s+1-11/45\(tm or \s-1PDP\s+1-11/70\(tm.
.TP &
\f4u3b\f1
True if you are on a 3B20 computer.
.TP &
\f4u3b2\f1
True if you are on a 3B2 computer.
.TP &
\f4u3b5\f1
True if you are on a 3B5 computer.
.TP &
\f4u3b15\f1
True if you are on a 3B15 computer.
.TP &
\f4vax\f1
True if you are on a \s-1VAX\s+1-11/750\(tm or \s-1VAX\s+1-11/780\(tm.
.TP &
\f4u370\f1
True if you are on an IBM\(rg System/370\(tm computer.
.dt
.RE
.PP
The commands that do not apply will return a false (non-zero) value.
These commands are often used within makefiles [see
\f4make\fP(1)]
and shell procedures [see
\f4sh\fP(1)]
to increase portability.
.SH SEE ALSO
\f4sh\fP(1), \f4test\fP(1), \f4true\fP(1), \f4uname\fP.
.br
\f4make\fP(1) in the
.IR "Programmer's Reference Manual" .
.SH NOTES
The \f4machid\f1 family of commands is obsolescent.
Use \f4uname -p\fP and \f4uname -m\fP instead.
.\"	@(#)machid.1	6.2 of 9/2/83
.Ee
