1 .\" Copyright (c) 1991 The Regents of the University of California.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)doc-syms 5.6 (Berkeley) 8/5/91
39 .\" NS width register `.Ux' defined in doc-common
41 .\" NS local variable:
45 . nr doc-curr-font \n[.f]
46 . nr doc-curr-size \n[.s]
47 . ds doc-str-Ux \f[\n[doc-curr-font]]\s[\n[doc-curr-size]]
48 . as doc-out-string \*[doc-Tn-font-size]UNIX\*[doc-str-Ux]
50 . if !\n[doc-args-processed] \
54 . ie (\n[doc-args-processed] > \n[doc-arg-ptr]) \{\
56 . ie "\*[doc-type\n[doc-arg-ptr]]"macro" \
57 . \*[doc-arg\n[doc-arg-ptr]]
67 .\" NS print BSD UNIX (fix smaller nroff version)
69 .\" NS width register `.Bx' defined in doc-common
71 .\" NS local variable:
72 .\" NS doc-str-Bx, doc-reg-Bx
75 . nr doc-curr-font \n[.f]
76 . nr doc-curr-size \n[.s]
77 . ds doc-str-Bx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]]
79 . if !\n[doc-args-processed] \{\
81 . nop \*[doc-Tn-font-size]BSD\*[doc-str-Bx]
82 . nop \*[doc-Tn-font-size]UNIX\*[doc-str-Bx]
89 . nop \¤tly in alpha test.
94 . nop \¤tly in beta test.
99 . nop \¤tly under development.
103 . if (\n[doc-args-processed] > \n[doc-arg-ptr]) \{\
105 . ie "\*[doc-type\n[doc-arg-ptr]]"string" \{\
106 . as doc-out-string \&\*[doc-arg\n[doc-arg-ptr]]\*[doc-Tn-font-size]
107 . as doc-out-string BSD\*[doc-str-Bx]
108 . ie (\n[doc-args-processed] > \n[doc-arg-ptr]) \{\
109 . nr doc-reg-Bx (\n[doc-arg-ptr] + 1)
110 . ie "\*[doc-type\n[doc-reg-Bx]]"string" \{\
111 . if "\*[doc-arg\n[doc-reg-Bx]]"Reno" \{\
113 . as doc-out-string \-Reno
115 . if "\*[doc-arg\n[doc-reg-Bx]]"reno" \{\
117 . as doc-out-string \-Reno
120 . if "\*[doc-arg\n[doc-reg-Bx]]"Tahoe" \{\
122 . as doc-out-string \-Tahoe
124 . if "\*[doc-arg\n[doc-reg-Bx]]"tahoe" \{\
126 . as doc-out-string \-Tahoe
129 . ie (\n[doc-args-processed] > \n[doc-arg-ptr]) \{\
131 . doc-print-recursive
134 . doc-print-and-reset
138 . doc-print-recursive
142 . doc-print-and-reset
145 . as doc-out-string \*[doc-Tn-font-size]BSD\*[doc-str-Bx]
146 . as doc-out-string " U\*[doc-Tn-font-size]NIX\*[doc-str-Bx]
147 . doc-print-recursive
154 .\" NS print "currently under development" (HISTORY section)
156 .\" NS width register `.Ud' defined in doc-common
159 . nop \¤tly under development.
164 .\" NS print AT&T UNIX
166 .\" NS width register `.At' defined in doc-common
168 .\" NS local variable:
172 . nr doc-curr-font \n[.f]
173 . nr doc-curr-size \n[.s]
174 . ds doc-str-At \f[\n[doc-curr-font]]\s[\n[doc-curr-size]]
176 . if (\n[.$] == 2) \{\
178 . nop \&Version\~32V \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]\$2
180 . nop \&Version\~6 \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]\$2
182 . nop \&Version\~7 \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]\$2
184 . nop \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V
185 . nop \*[doc-Tn-font-size]UNIX\*[doc-str-At]\$2
188 . nop \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V.1
189 . nop \*[doc-Tn-font-size]UNIX\*[doc-str-At]\$2
192 . nop \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V.4
193 . nop \*[doc-Tn-font-size]UNIX\*[doc-str-At]\$2
197 . if (\n[.$] == 1) \{\
199 . nop \&Version\~32V \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
201 . nop \&Version\~6 \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
203 . nop \&Version\~7 \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
205 . nop \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V
206 . nop \*[doc-Tn-font-size]UNIX\*[doc-str-At]
209 . nop \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V.1
210 . nop \*[doc-Tn-font-size]UNIX\*[doc-str-At]
213 . nop \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V.4
214 . nop \*[doc-Tn-font-size]UNIX\*[doc-str-At]
220 .\" The Bt macro should go away now
223 .\" NS print "is currently in beta test." (HISTORY section)
225 .\" NS width register `.Bt' defined in doc-common
228 . nop \&is currently in beta test.
232 .\" NS St macro - standards (posix, ansi - formal standard names)
234 .\" NS width register `.St' defined in doc-common
236 .\" NS local variable:
237 .\" NS doc-str-St, doc-reg-St
239 .ds Px \*[doc-Tn-font-size]POSIX
240 .ds Ai \*[doc-Tn-font-size]ANSI
243 . if !\n[doc-args-processed] \{\
245 . ds doc-macro-name St
248 . while (\n[doc-reg-St] <= \n[.$]) \{\
249 . ds doc-arg\n[doc-reg-St] "\$[\n[doc-reg-St]]
253 . nr doc-num-args \n[.$]
254 . doc-parse-arg-vector
257 . tmc "Usage: .St [-p1003.1-88 | -p1003.2 | -ansiC-89 | -iso]
258 . tm1 " \*[doc-punct-chars] ... (#\n[.c])
262 . if (\n[doc-args-processed] > \n[doc-arg-ptr]) \{\
263 . nr doc-curr-font \n[.f]
264 . nr doc-curr-size \n[.s]
265 . ds doc-str-St \f[\n[doc-curr-font]]\s[\n[doc-curr-size]]
268 . if "\*[doc-arg\n[doc-arg-ptr]]"-p1003.1-88" \{\
269 . ds doc-out-string \*[doc-Tn-font-size]IEEE Std
270 . as doc-out-string " \*[doc-str-St]1003.1-1988
271 . as doc-out-string " (``\*[doc-Tn-font-size]\*[Px]\*[doc-str-St]'')
273 . if "\*[doc-arg\n[doc-arg-ptr]]"-p1003.2" \{\
274 . ds doc-out-string \*[doc-Tn-font-size]IEEE Std
275 . as doc-out-string " \*[doc-str-St]1003.2
276 . as doc-out-string " (``\*[doc-Tn-font-size]\*[Px]\*[doc-str-St]'')
278 . if "\*[doc-arg\n[doc-arg-ptr]]"-ansiC" \{\
279 . ds doc-out-string \*[doc-Tn-font-size]ANSI\~C
280 . as doc-out-string " \*[doc-str-St]3.159-1989
281 . as doc-out-string " (``\*[doc-Tn-font-size]ANSI\~C\*[doc-str-St]'')
283 . if "\*[doc-arg\n[doc-arg-ptr]]"-ansiC-89" \{\
284 . ds doc-out-string \*[doc-Tn-font-size]ANSI\~C
285 . as doc-out-string " \*[doc-str-St]3.159-1989
286 . as doc-out-string " (``\*[doc-Tn-font-size]ANSI\~C\*[doc-str-St]'')
288 . if "\*[doc-arg\n[doc-arg-ptr]]"-iso8802-3" \{\
289 . ds doc-out-string \*[doc-Tn-font-size]
290 . as doc-out-string ISO\~\*[doc-str-St]8802-3:\~1989
291 . \" .ds doc-out-string \*[doc-Tn-font-size]
292 . \" .as doc-out-string ISO\~\*[doc-str-St]8802-3:\~1989
293 . \" .as doc-out-string " (``\*[doc-Tn-font-size]ANSI\~C\*[doc-str-St]'')
296 . ie (\n[doc-args-processed] > \n[doc-arg-ptr]) \{\
298 . doc-print-recursive
301 . doc-print-and-reset