1machid(1)                        User Commands                       machid(1)
2
3
4

NAME

6       machid,  sun, iAPX286, i286, i386, i486, i860, pdp11, sparc, u3b, u3b2,
7       u3b5, u3b15, vax, u370 - get processor type truth value
8

SYNOPSIS

10       sun
11
12
13       iAPX286
14
15
16       i386
17
18
19       pdp11
20
21
22       sparc
23
24
25       u3b
26
27
28       u3b2
29
30
31       u3b5
32
33
34       u3b15
35
36
37       vax
38
39
40       u370
41
42

DESCRIPTION

44       The following commands will return a true value (exit code of 0) if you
45       are using an instruction set that the command name indicates.
46
47       sun        True if you are on a Sun system.
48
49
50       iAPX286    True if you are on a computer using an iAPX286 processor.
51
52
53       i386       True if you are on a computer using an iAPX386 processor.
54
55
56       pdp11       True if you are on a PDP-11/45™ or PDP-11/70™.
57
58
59       sparc      True  if  you are on a computer using a SPARC-family proces‐
60                  sor.
61
62
63       u3b        True if you are on a 3B20 computer.
64
65
66       u3b2       True if you are on a 3B2 computer.
67
68
69       u3b5       True if you are on a 3B5 computer.
70
71
72       u3b15      True if you are on a 3B15 computer.
73
74
75       vax        True if you are on a VAX-11/750™ or VAX-11/780™.
76
77
78       u370       True if you are on an IBM® System/370™ computer.
79
80
81
82       The commands that do not apply will return a  false  (non-zero)  value.
83       These commands are often used within makefiles (see make(1S)) and shell
84       scripts (see sh(1)) to increase portability.
85

ATTRIBUTES

87       See attributes(5) for descriptions of the following attributes:
88
89
90
91
92       ┌─────────────────────────────┬─────────────────────────────┐
93       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
94       ├─────────────────────────────┼─────────────────────────────┤
95       │Availability                 │SUNWcsu                      │
96       └─────────────────────────────┴─────────────────────────────┘
97

SEE ALSO

99       make(1S), sh(1), test(1), true(1), uname(1), attributes(5)
100

NOTES

102       The machid family of commands is obsolete. Use uname -p  and  uname  -m
103       instead.
104
105
106
107SunOS 5.11                        5 Jul 1990                         machid(1)
Impressum