home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 25.ddi / root.2 / usr / ucblib / doctools / tmac / sunman < prev    next >
Encoding:
Text File  |  1990-12-20  |  9.6 KB  |  429 lines

  1. '\"#ident    "@(#)//usr/ucblib/doctools/tmac/sunman.sl 1.1 4.0 12/08/90 29624 AT&T-USL"
  2. '\"        PROPRIETARY NOTICE (Combined)
  3. '\"
  4. '\"This source code is unpublished proprietary information
  5. '\"constituting, or derived under license from AT&T's UNIX(r) System V.
  6. '\"In addition, portions of such source code were derived from Berkeley
  7. '\"4.3 BSD under license from the Regents of the University of
  8. '\"California.
  9. '\"
  10. '\"
  11. '\"
  12. '\"        Copyright Notice 
  13. '\"
  14. '\"Notice of copyright on this source code product does not indicate 
  15. '\"publication.
  16. '\"
  17. '\"    (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  18. '\"    (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  19. '\"              All rights reserved.
  20. .ds ]W Sun Release 4.0
  21. '    # month name
  22. .  \".if "\nd"0" .nr m \n(mo-1
  23. .  \".if "\nm"0" .ds ]m January
  24. .  \".if "\nm"1" .ds ]m February
  25. .  \".if "\nm"2" .ds ]m March
  26. .  \".if "\nm"3" .ds ]m April
  27. .  \".if "\nm"4" .ds ]m May
  28. .  \".if "\nm"5" .ds ]m June
  29. .  \".if "\nm"6" .ds ]m July
  30. .  \".if "\nm"7" .ds ]m August
  31. .  \".if "\nm"8" .ds ]m September
  32. .  \".if "\nm"9" .ds ]m October
  33. .  \".if "\nm"10" .ds ]m November
  34. .  \".if "\nm"11" .ds ]m December
  35. '    # set the date
  36. .  \".if n \{.nr m \nm+1
  37. .  \".     ie \nd .ds ]W Modified \nm/\nd/\ny
  38. .  \".     el .ds ]W Printed \n(mo/\n(dy/\n(yr\}
  39. .  \".if t \{.ie \nd .ds ]W \*(]m \nd, 19\ny
  40. .  \".     el .ds ]W \*(]m \n(dy, 19\n(yr\}
  41. '    # end of commented out chunk
  42. .if t .tr *\(**
  43. .ie n \{\
  44. .    ds lq \&"\"
  45. .    ds rq \&"\"
  46. .\}
  47. .el \{\
  48. .    ds rq ''
  49. .    ds lq ``
  50. .\}
  51. .de UC
  52. .  \".if t \{\
  53. .  \".    ie "\\$1"" .ds ]W 3rd Berkeley Distribution
  54. .  \".    ie "\\$1"4" .ds ]W \\$1th Berkeley Distribution
  55. .  \".    el .ds ]w \\$2 \\$1 BSD
  56. .  \".\}
  57. ..
  58. '    # reset the basic page layout
  59. .de }E
  60. .}f
  61. .in \\n()Ru+\\n(INu
  62. .ll \\n(LLu
  63. ..
  64. '    # default tabs
  65. .de DT
  66. 'ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
  67. ..
  68. '    # set type font and size
  69. .de }f
  70. .ps 10
  71. .ft 1
  72. ..
  73. '    # handle the head of the page
  74. .de }H
  75. .ev 1
  76. .}C
  77. .if \\nF .tm .SE PAGINATE NEW-PAGE \\n%
  78. 'sp .5i
  79. .ft 1
  80. .ps 10
  81. .tl \\*(]H\\*(]D\\*(]H
  82. 'sp .5i
  83. .ev
  84. .ns
  85. ..
  86. '    # handle the foot of the page
  87. .de }F
  88. .ev 1
  89. .ft 1
  90. .ps 10
  91. 'sp .5i
  92. .if !\\nD .tl \\*(]W\\*(]L\\*(PN%
  93. .if  \\nD .if o .tl \\*(]W\\*(]L\\*(PN%
  94. .if  \\nD .if e .tl \\*(PN%\\*(]L\\*(]W
  95. .if !\\nX 'bp
  96. .if \\nX .if \\n%>=\\nX \{\
  97. .ds PN \\n%
  98. .pn 1
  99. .af % a
  100. .nr X 0
  101. 'bp 1\}
  102. .if \\nX .if \\n%<\\nX 'bp
  103. .ev
  104. ..
  105. '    # the cut mark -- we don't need this -- Henry
  106. .  \".if n .ig
  107. .  \".de }C
  108. .  \".po .1i
  109. .  \".tl '-'
  110. .  \".po
  111. .  \"..
  112. '    # the final cut mark -- we don't need this -- Henry
  113. .  \".de }M
  114. .  \".}N
  115. .  \".wh -1p }C
  116. .  \".ll \\n(LLu
  117. .  \"..
  118. '    # no runout unless there was a .TH
  119. .de }K
  120. .}N
  121. .pl 1
  122. .ll \\n(LLu
  123. ..
  124. .em }K
  125. '    # set title and heading
  126. .de TH
  127. .PD
  128. .DT
  129. .if n .nr IN .5i
  130. .if t .nr IN .5i
  131. .ll 6.5i
  132. .nr LL \\n(.l
  133. .ds ]H \\$1\|(\|\\$2\|)
  134. .ds ]D MISC. REFERENCE MANUAL PAGES
  135. .if '\\$2'1' .ds ]D USER COMMANDS 
  136. .if '\\$2'1C' .ds ]D USER COMMANDS
  137. .if '\\$2'1G' .ds ]D USER COMMANDS
  138. .if '\\$2'1S' .ds ]D USER COMMANDS
  139. .if '\\$2'1V' .ds ]D USER COMMANDS 
  140. .if '\\$2'2' .ds ]D SYSTEM CALLS
  141. .if '\\$2'2V' .ds ]D SYSTEM CALLS
  142. .if '\\$2'3' .ds ]D C LIBRARY FUNCTIONS
  143. .if '\\$2'3C' .ds ]D COMPATIBILITY FUNCTIONS
  144. .if '\\$2'3F' .ds ]D FORTRAN LIBRARY ROUTINES
  145. .if '\\$2'3K' .ds ]D KERNEL VM LIBRARY FUNCTIONS
  146. .if '\\$2'3L' .ds ]D LIGHTWEIGHT PROCESSES LIBRARY
  147. .if '\\$2'3M' .ds ]D MATHEMATICAL LIBRARY
  148. .if '\\$2'3N' .ds ]D NETWORK FUNCTIONS
  149. .if '\\$2'3R' .ds ]D RPC SERVICES LIBRARY
  150. .if '\\$2'3S' .ds ]D STANDARD I/O FUNCTIONS
  151. .if '\\$2'3V' .ds ]D SYSTEM V LIBRARY
  152. .if '\\$2'3X' .ds ]D MISCELLANEOUS LIBRARY FUNCTIONS
  153. .if '\\$2'4' .ds ]D DEVICES AND NETWORK INTERFACES
  154. .if '\\$2'4F' .ds ]D PROTOCOL FAMILIES
  155. .if '\\$2'4I' .ds ]D DEVICES AND NETWORK INTERFACES
  156. .if '\\$2'4M' .ds ]D DEVICES AND NETWORK INTERFACES
  157. .if '\\$2'4N' .ds ]D DEVICES AND NETWORK INTERFACES
  158. .if '\\$2'4P' .ds ]D PROTOCOLS
  159. .if '\\$2'4S' .ds ]D DEVICES AND NETWORK INTERFACES
  160. .if '\\$2'4V' .ds ]D DEVICES AND NETWORK INTERFACES
  161. .if '\\$2'5' .ds ]D FILE FORMATS
  162. .if '\\$2'5V' .ds ]D FILE FORMATS
  163. .if '\\$2'6' .ds ]D GAMES AND DEMOS
  164. .if '\\$2'7' .ds ]D PUBLIC FILES, TABLES, AND TROFF MACROS
  165. .if '\\$2'8' .ds ]D MAINTENANCE COMMANDS
  166. .if '\\$2'8C' .ds ]D MAINTENANCE COMMANDS
  167. .if '\\$2'8S' .ds ]D MAINTENANCE COMMANDS
  168. .if '\\$2'8V' .ds ]D MAINTENANCE COMMANDS
  169. .if '\\$2'L' .ds ]D LOCAL COMMANDS
  170. .if !'\\$4''  .ds ]W \\$4
  171. .if !'\\$5''  .ds ]D \\$5
  172. .wh 0 }H
  173. .if t .wh -1i }F
  174. .if n .wh -1.167i }F
  175. .em }M
  176. .if !\\n(nl .if !\\nP .nr P 1
  177. .if !\\n(nl .if \\nP .pn \\nP
  178. .if \\nX .if \\nP>=\\nX \{\
  179. .ds PN \\nP
  180. .pn 1
  181. .af % a
  182. .nr X 0 \}
  183. .if !\\n(nl .if \\nP .nr P 0
  184. .if  \\nC .if \\n(nl .bp
  185. .if  !\\nC .if \\n(nl .bp 1
  186. .ds ]L Last change: \\$3
  187. .}E
  188. .DT
  189. .nr )I .5i
  190. .nr )R 0
  191. .  \".if n .na
  192. .mk ka
  193. .if !'\\n(ka'-1' .bp
  194. .if \\nF .tm .CE MAN-PAGE 1 \\$1(\\$2) \\n%
  195. ..
  196. '    # IX - Make an Index Entry
  197. .de IX
  198. .if \\nF .tm .IE\tENTRY\t\\$1\t\\$2\t\\$3\t\\$4\t\\$5\t\\$6\t\\*(PN\\n%
  199. ..
  200. '    # TX - Resolve a Title Reference
  201. .de TX
  202. .ds Tx "UNKNOWN TITLE ABBREVIATION: \\$1
  203. .if '\\$1'DOCBOX' .ds Tx "Documentation Set
  204. .if '\\$1'BGBOX' .ds Tx "Beginner's Guides Minibox
  205. .if '\\$1'GSBG' .ds Tx "Getting Started with SunOS: Beginner's Guide
  206. .if '\\$1'SUBG' .ds Tx "Setting Up Your SunOS Environment: Beginner's Guide 
  207. .if '\\$1'SHBG' .ds Tx "Self Help with Problems: Beginner's Guide
  208. .if '\\$1'SVBG' .ds Tx "SunView\ 1 Beginner's Guide
  209. .if '\\$1'MMBG' .ds Tx "Mail and Messages: Beginner's Guide
  210. .if '\\$1'DMBG' .ds Tx "Doing More with SunOS: Beginner's Guide
  211. .if '\\$1'UNBG' .ds Tx "Using the Network: Beginner's Guide
  212. .if '\\$1'GDBG' .ds Tx "Games, Demos & Other Pursuits
  213. .if '\\$1'SABOX' .ds Tx "System Administration Manuals Minibox
  214. .if '\\$1'CHANGE' .ds Tx "Release 4.0 Change Notes
  215. .if '\\$1'INSTALL' .ds Tx "Installing the SunOS
  216. .if '\\$1'ADMIN' .ds Tx "System and Network Administration
  217. .if '\\$1'SECUR' .ds Tx "Security Features Guide
  218. .if '\\$1'PROM' .ds Tx "PROM User's Manual
  219. .if '\\$1'DIAG' .ds Tx "Sun System Diagnostics Manual
  220. .if '\\$1'SUNDIAG' .ds Tx "Sundiag User's Guide
  221. .if '\\$1'REFBOX' .ds Tx "Reference Manuals Minibox
  222. .if '\\$1'MANPAGES' .ds Tx "SunOS Reference Manual
  223. .if '\\$1'REFMAN' .ds Tx "SunOS Reference Manual
  224. .if '\\$1'SSI' .ds Tx "Sun System Introduction
  225. .if '\\$1'SSO' .ds Tx "System Services Overview
  226. .if '\\$1'TEXT' .ds Tx "Editing Text Files
  227. .if '\\$1'DOCS' .ds Tx "Formatting Documents
  228. .if '\\$1'TROFF' .ds Tx "Using \&\fLnroff\fP and \&\fLtroff\fP
  229. .if '\\$1'INDEX' .ds Tx "Global Index
  230. .if '\\$1'PTBOX' .ds Tx "Programmer's Tools Manuals Minibox
  231. .if '\\$1'CPG' .ds Tx "C Programmer's Guide
  232. .if '\\$1'CREF' .ds Tx "C Reference Manual
  233. .if '\\$1'ASSY' .ds Tx "Assembly Language Manual
  234. .if '\\$1'PUL' .ds Tx "Programming Utilities and Libraries
  235. .if '\\$1'DEBUG' .ds Tx "Debugging Tools
  236. .if '\\$1'NETP' .ds Tx "Network Programming
  237. .if '\\$1'DRIVER' .ds Tx "Writing Device Drivers
  238. .if '\\$1'FPOINT' .ds Tx "Floating Point Programmers Guide
  239. .if '\\$1'SVPG' .ds Tx "SunView\ 1 Programmer's Guide
  240. .if '\\$1'SVSPG' .ds Tx "SunView\ 1 System Programmer's Guide
  241. .if '\\$1'PIXRCT' .ds Tx "Pixrect Reference Manual
  242. .if '\\$1'CGI' .ds Tx "SunCGI Reference Manual
  243. .if '\\$1'CORE' .ds Tx "SunCore Reference Manual
  244. .if '\\$1'4ASSY' .ds Tx "Sun-4 Assembly Language Reference Manual
  245. .    # non-Sun titles
  246. .if '\\$1'KR' .ds Tx "The C Programming Language
  247. \fI\\*(Tx\fP\\$2
  248. ..
  249. '    # section heading
  250. .de SH
  251. .}X 0
  252. .nr )E 2
  253. \&\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6
  254. ..
  255. '    # sub section heading
  256. .de SS
  257. .}X .25i "" ""
  258. .nr )E 2
  259. \&\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6
  260. .br
  261. ..
  262. '    # subroutine for section heading
  263. .de }X
  264. .}E
  265. .ti \\$1
  266. .sp \\n()Pu
  267. .ne 2
  268. .nr )R 0
  269. .fi
  270. .it 1 }N
  271. .SM
  272. .B
  273. ..
  274. '    # end of SH (cf }X above and }N below)
  275. .de }2
  276. .nr )E 0
  277. .}E
  278. .nr )I .5i
  279. .ns
  280. ..
  281. '    # italic
  282. .de I
  283. .ft 2
  284. .it 1 }N
  285. .if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
  286. ..
  287. '    # bold
  288. .de B
  289. .ft 3
  290. .it 1 }N
  291. .if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
  292. ..
  293. '    # small
  294. .de SM
  295. .ps 9
  296. .it 1 }N
  297. .if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
  298. ..
  299. '    # combinations of Roman, italic, bold
  300. .de RI
  301. .}S 1 2 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
  302. ..
  303. .de VS
  304. 'if '\\$1'4' .mc \s12\(br\s0
  305. ..
  306. .de VE
  307. 'mc
  308. ..
  309. .de RB
  310. .}S 1 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
  311. ..
  312. .de IR
  313. .}S 2 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
  314. ..
  315. .de IB
  316. .}S 2 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
  317. ..
  318. .de BR
  319. .}S 3 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
  320. ..
  321. .de BI
  322. .}S 3 2 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
  323. ..
  324. '    # make special case of shift out of italic
  325. .de }S
  326. .ds ]F
  327. .if "\\$1"2" .if !"\\$5"" .ds ]F\^
  328. .ie !"\\$4"" .}S \\$2 \\$1 "\\$3\f\\$1\\$4\\*(]F" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
  329. .el \\$3
  330. .}f
  331. ..
  332. '    # small and boldface
  333. .de SB
  334. \&\fB\s-1\&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6\s0\fR
  335. ..
  336. '    # paragraph
  337. .de LP
  338. .PP
  339. ..
  340. .de PP
  341. .sp \\n()Pu
  342. .ne 2
  343. .}E
  344. .nr )I .5i
  345. .ns
  346. ..
  347. '    # paragraph distance
  348. .de PD
  349. .if t .nr )P .4v
  350. .if n .nr )P 1v
  351. .if !"\\$1"" .nr )P \\$1v
  352. ..
  353. '    # hanging indent
  354. .de HP
  355. .sp \\n()Pu
  356. .ne 2
  357. .if !"\\$1"" .nr )I \\$1n
  358. .ll \\n(LLu
  359. .in \\n()Ru+\\n(INu+\\n()Iu
  360. .ti \\n()Ru+\\n(INu
  361. .}f
  362. ..
  363. '    # indented paragraph
  364. .de IP
  365. .TP \\$2
  366. \&\\$1
  367. ..
  368. '    # hanging label
  369. .de TP
  370. .if !"\\$1"" .nr )I \\$1n
  371. .sp \\n()Pu
  372. .in \\n()Ru
  373. .nr )E 1
  374. .ns
  375. .it 1 }N
  376. .di ]B
  377. ..
  378. '    # end of TP (cf }N below)
  379. .de }1
  380. .ds ]X \&\\*(]B\\
  381. .nr )E 0
  382. .if !"\\$1"" .nr )I \\$1n
  383. .}f
  384. .ll \\n(LLu
  385. .in \\n()Ru+\\n(INu+\\n()Iu
  386. .ti \\n(INu
  387. .ie !\\n()Iu+\\n()Ru-\w\\*(]Xu-3p \{\\*(]X
  388. .br\}
  389. .el \\*(]X\h|\\n()Iu+\\n()Ru\c
  390. .}f
  391. ..
  392. '    # handle end of 1-line features
  393. .de }N
  394. .if \\n()E .br
  395. .di
  396. .if "\\n()E"0" .}f
  397. .if "\\n()E"1" .}1
  398. .if "\\n()E"2" .}2
  399. .nr )E 0
  400. ..
  401. '    # increase relative indent
  402. .de RS
  403. .nr ]\\n+()p \\n()I
  404. .nr )\\n()p \\n()R
  405. .ie !"\\$1"" .nr )R +\\$1n
  406. .el .nr )R +\\n()I
  407. .nr )I .5i
  408. .}E
  409. ..
  410. '    # decrease relative indent
  411. .de RE
  412. .if !"\\$1"" \{.ie "\\$1"0" .nr )p 1 1
  413. .        el .nr )p \\$1 1\}
  414. .ds ]i \\*(]I\\n()p
  415. .ds ]r \\*(]R\\n()p
  416. .nr )I \\*(]i
  417. .nr )R \\*(]r
  418. .if \\n()p .nr )p -1
  419. .}E
  420. ..
  421. .nr )p 0 1
  422. .ds ]I \\\\n(]
  423. .ds ]R \\\\n()
  424. .bd S 3 3
  425. .if t .ds R \(rg
  426. .if n .ds R (Reg.)
  427. .ds S \s10
  428. .hy 14
  429.