⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 macros.9

📁 minix操作系统最新版本(3.1.1)的源代码
💻 9
📖 第 1 页 / 共 2 页
字号:
.de LG.ps +2...	\"NL - return to normal size.de NL.ps \\n(PS...	\"DA - force date; ND - no date or new date..de DA.if \\n(.$ .ds DY \\$1 \\$2 \\$3 \\$4.ds CF \\*(DY...de ND.ME.rm ME.ds DY \\$1 \\$2 \\$3 \\$4.rm CF...de FN.FS...	\"FS - begin footnote.de FJ'ce 0.di.ev1.ll \\n(FLu.da FF.br.if \\n(IF>0 .tm Footnote within footnote-illegal..nr IF 1.if !\\n+(XX-1 .FA...	\"FE - footnote end.de FK.br.in 0.nr IF 0.di.ev.if !\\n(XX-1 .nr dn +\\n(.v.nr YY -\\n(dn.if \\n(NX=0 .nr WF 1.if \\n(dl>\\n(CW .nr WF 1.if (\\n(nl+\\n(.v)<=(\\n(.p+\\n(YY) .ch FO \\n(YYu.if (\\n(nl+\\n(.v)>(\\n(.p+\\n(YY) .if \\n(nl>(\\n(HM+1.5v) .ch FO \\n(nlu+\\n(.vu.if (\\n(nl+\\n(.v)>(\\n(.p+\\n(YY) .if \\n(nl+\\n(FM+1v>\\n(.p .ch FX \\n(.pu-\\n(FMu+2v.if (\\n(nl+\\n(.v)>(\\n(.p+\\n(YY) .if \\n(nl<=(\\n(HM+1.5v) .ch FO \\n(HMu+(4u*\\n(.vu)...\"	First page footer..de FS.ev1.br.ll \\n(FLu.da FG...de FE.br.di.nr FP \\n(dn.if \\n(1T=0 .nr KG 1 \"not in abstract repeat next page..if "\\n(.z"OD" .nr KG 0 \" if in OK, don't repeat..ev...de FA.if n __________________________.if t \l'1i'.br...de FV.FS.nf.ls 1.FY.ls.fi.FE...de FX.if \\n(XX>0 .di FY.if \\n(XX>0 .ns...de XF.if \\n(nlu+1v>(\\n(.pu-\\n(FMu) .ch FX \\n(nlu+1.9v.ev1.nf.ls 1.FF.rm FF.nr XX 0 1.br.ls.di.fi.ev...de FL.ev1.nr FL \\$1n.ll \\$1.ev...de UL \" underline argument, don't italicize.if t \\$1\l'|0\(ul'\\$2.if n .I \\$1 \\$2...de UXUNIX...de USthe.UXoperating system...de QS.br.LP.in +\\n(QIu.ll -\\n(QIu...de QE.br.ll +\\n(QIu.in -\\n(QIu.LP...de B1 \" begin boxed stuff.br.di BB.nr BC 0.if "\\$1"C" .nr BC 1.nr BE 1...de B2 \" end boxed stuff.br.nr BI 1n.if \\n(.$>0 .nr BI \\$1n.di.nr BE 0.nr BW \\n(dl.nr BH \\n(dn.ne \\n(BHu+\\n(.Vu.nr BQ \\n(.j.nf.ti 0.if \\n(BC>0 .in +(\\n(.lu-\\n(BWu)/2u.in +\\n(BIu.BB.in -\\n(BIu.nr BW +2*\\n(BI.sp -1\l'\\n(BWu\(ul'\L'-\\n(BHu'\l'|0\(ul'\h'|0'\L'\\n(BHu'.if \\n(BC>0 .in -(\\n(.lu-\\n(BWu)/2u.if \\n(BQ .fi.br...de AT.nf.sp.ne 2Attached:...de CT.nf.sp.ne 2.ie \\n(.$ Copy to \\$1:.el Copy to:...de BX.if t \(br\|\\$1\|\(br\l'|0\(rn'\l'|0\(ul'.if n \(br\\kA\|\\$1\|\\kB\(br\v'-1v'\h'|\\nBu'\l'|\\nAu'\v'1v'\l'|\\nAu'...IZ.rm IZ.\" ------------------- VARIABLES ------------------------------.\" \na - Current chapter.\" \nb - Current section.\" \nc - Current subsection .\" \nd - Set to 0 initially, 1 by PT,  2 by .PB  Used to control running head.\" \ne - Current equation number.\" \ng - Used to count items in numbered lists.\" \nh - Counts number of times CP has been invoked.\" \nj - Set to 1 iff footer page number needed.\" \nk - Last figure number used.\" \nL - 1 if depth printed for each page.\" \nl - 1 old Agfa length to be used.\" \np - Numbers end-of-chapter problems.\" \nq - 1 for double spaced text, smaller vert. margins.\" \ns - initial page number.\" \nt - Variable part of spacing inside .BI macro.\" \nv - Scratch register in lower case roman numerals.\" \nx - Scratch register.\" ------------------- GENERAL PARAMETERS ---------------------.nr BO 43		\" number of lines of text per page.nr PO 1.3i.po \n(PO.if \nq=1 .ls 2		\" -rq1 invokes double spacing.nr LL 5.67i.if t \{.nr PL 29.73c.nr PI 0.25i\}.if n \{.nr LL 80m.nr PL 11.0i.nr PI 3m\}.pl \n(PLu.nr HM (\n(PLu-(\n(BOu*\n(VSu))/2u.nr FM \n(PLu-(\n(HMu+((\n(BOu-1u)*\n(VSu)+1u).nr xx \n(HMu%\n(VZu.nr HM \n(HMu-\n(xxu.nr FM \n(FMu+\n(xxu.nr t 0 0.\" ------------------- INITIALIZATION -------------------------.nr d 0 0.nr e 0 1.nr h 0 1.nr j 1 0.nr t 0 0.tr ~.ds CT "~	\"initially empty.ND		\"suppress date on bottom of page.af v i		\"register v is in lower case roman.ch FO -\n(FMu.ch BT -\n(FMu+0.5P.\" ------------------- ALIGN TEXT TO A WHOLE NUMBER OF PICAS ----.de AL'nr xx \\n(.du%\\n(VZu'nr xy \\n(VZu-\\n(xx'if \\n(xy=\\n(VZu .nr xy 0'sp \\n(xyu...\" ------------------- DIVISION OF TEXT INTO LOGICAL UNITS ----.\"	Define chapter number.de CP.ds CN \\$1.ds CX CHAP..if '\\$1'A' .ds CX APPENDIX.if '\\$1'B' .ds CX APPENDIX.if '\\$1'C' .ds CX APPENDIX.if '\\$1'D' .ds CX APPENDIX.if '\\$1'E' .ds CX APPENDIX.if '\\$1'F' .ds CX APPENDIX.if '\\$1'A' .nr a 0 0.if '\\$1'B' .nr a 0 0.if '\\$1'C' .nr a 0 0.if '\\$1'D' .nr a 0 0.if '\\$1'E' .nr a 0 0.if '\\$1'F' .nr a 0 0.nr H1 \\$1 0.nr H2 0 1.nr a \\$1 0.nr b 0 1.nr c 0 1.nr d 1 1.nr e 0 1.nr k 0 1.nr s \\n%.if \\nq=1 .PH 6.ll \\n(LLu.nr LT \\n(LLu.lt \\n(LLu.ll \\n(LLu.pl \n(PLu.po \n(POu.in 0.nr PS \\n(PZ.nr VS \\n(VZu.nr PD 0i.ds ST.ds CT \\$2.if !'\\$3'' .as CT " \\$3.if \\nh .bp.rs.sp 16P.B.ps 30.vs 32.ce 1\\$1.sp 4P.ps 18.vs 20.ce 1\\$2.sp 0.25i.if !'\\$3'' .ce 1.if !'\\$3'' \\$3.ps 10.vs 12.R.nr x \\n(.pu/2u.sp |\\nxu.nr h +1 1.tr _\\(ru.AL...de SP.sp \\$1	\"used for temporary (page balancing ) fill...de HS.sp 0.5...\"	Major section (numbered).de SE.nr b +1 1.nr c 0 1.ds ST \\$1.sp 1.NH 2\\$1.sp 1...\"	Subsection (numbered).de SS.nr c +1 1.NH 3\\$1.sp 1...de UU.SH\\$1.sp 1...\"-------------------- PAGE TRANSITION MACROS USED BY -MS ------.de PH	\"select special running heads.nr d \\$1.if \\$1=4 .nr j 1.ds CT \\$2...de PT.AL.pc %.PN \\n%'sp |\\n(HMu-0.35i.ps 10.\".\" nd = 0 means no running head this time, normal next time.if \\nd=0 \{\.tl ''''	\" no running head on initial page transition.nr j 1 0\}.\".\" nd = 1 is normal case: chapter heading even (left) and section odd(right).if \\nd=1\{\.if e .tl '\fB\s+2%\s-2\fR'\\*(CT'\\*(CX~ \\*(CN' \"normal case even page.if o .if \\nb>0 .tl 'SEC.~ \\*(CN.\\nb'\\*(ST'\fB\s+2%\s-2\fR'.if o .if \\nb=0 .tl '''\fB\s+2%\s-2\fR'\}.if o .if \\nb=-999 .tl '\\*(CX~ \\*(CN'\\*(CT'\fB\s+2%\s-2\fR'\}.\".\" nd = 2 is for PROBLEMS; even normal, odd  CHAP. ... PROBLEMS %.if \\nd=2\{\.if e .tl '\fB\s+2%\s-2\fR'\\*(CT'\\*(CX~ \\*(CN' \"even page PROBLEMS.if o .if \\nd=2 .tl '\\*(CX~ \\*(CN'PROBLEMS'\fB\s+2%\s-2\fR' \}.\".\" nd = 3 is for index, problem solutions & other cases with same odd even hd.if \\nd=3\{\.if e .tl '\fB\s+2%\s-2\fR'\\*(CT''.if o .tl ''\\*(CT'\fB\s+2%\s-2\fR'\}.\".\" nd = 4 is like nd = 3, except page numbers are lower case roman.if \\nd=4\{\.nr v \\n%.if e .tl '\fB\s+2\\nv\s-2\fR'\\*(CT''.if o .tl ''\\*(CT'\fB\s+2\\nv\s-2\fR'\}.\".\" nd = 5 suppresses running heads like nd=0, only it keeps them suppressed.if \\nd=5 .tl ''''.\" nd = 6 gives page number in right-hand corner only.if \\nd=6 .tl '''%'.if \\nd=0 .nr d 1 0	\" henceforth normal running heads...de BT.if \\n%=\\ns\{\.nr x \\n(HMu+(\\n(BO*\\n(VSu)+2P'sp |\\nxu.nr v \\n%.ie \\nd=4 .tl ''\fB\s-1\\nv\s0\fP''.el .tl ''\fB\s-1\\n%\s0\fP''\}.nr j 0 0.if \\nd=0 .nr d 1 0...\"--------------- CHECK FOR INITIAL PAGE NUMBER ---------------.de PC.if \n%<\\$1\{.tm You forgot to set the page number.  Run aborted. Use troff -n.ex\}.if \n%>\\$2\{.tm You forgot to set the page number.  Run aborted. Use troff -n.ex\}...\"-------------------- LISTS OF THINGS ------------------------.\"	Start list.de LI.nr g 0 1.in +0.25i.nr LL -0.25i.ll -0.25i.ne 3v.HS...\"	End list.de LX.sp 1.in -0.25i.nr LL +0.25i.ll +0.25i.LP...\"	List item.de IT.HS.nr g \\ng+1 1.ie \\ng<10 .IP \0\\ng. 4.el .IP \\ng. 4...\"Short unnumbered lines.de UN.HS...\"-------------------- END OF CHAPTER EXERCISES ---------------.de PB.nr d 2 0.if \\nq=1 .PH 6.ne 1.5i.sp 0.5i.ce 1.B PROBLEMS.sp 1.nr p 0 1...de PR.ps 11.vs 13.nr PS 11.nr VS 13.01p.HS.nr p +1 1.in \w'00.  'u.ti -\w'00.  'u.if \\np>9 \fB\\np.\fR~~\c.if \\np<10 \fB\0\\np.\fR~~\c...de AA.sp 3.if n .nr LL 84m.nr PS \\n(PZ.nr VS \\n(VZu.nr a \\$1 1.nr b 0 0.nr p 0 1.ce 1.nr x 1.if '\\$1'A' .nr x 0.if '\\$1'B' .nr x 0.if '\\$1'C' .nr x 0.if \\nq=1 .PH 6.if \\nx\fBSOLUTIONS TO CHAPTER \\$1 PROBLEMS\fR.if !\\nx\fBSOLUTIONS TO APPENDIX \\$1 PROBLEMS\fR.sp 1v...de AN.HS.ps \\n(PZ.vs \\n(VSu.nr PS \\n(PZ.nr VS \\n(VZu.nr p +1 1.in \w'00.  'u.ti -\w'00.  'u.if \\np>9 \fB\\np.\fR~~\c.if \\np<10 \fB\0\\np.\fR~~\c...\"-------------------- BIBLIOGRAPHY ---------------------------.de BB.sp 2.in 0.25i...de BI.ps 10.vs 12.sp \\ntu.HS.if n .HS.ti -0.30i.R...\"-------------------- QUOTES ---------------------------------.ds OQ `\h'-1p'`.ds CQ '\h'-1p''.\"-------------------- FIGS.-----------------------------------.de FC 'sp 1v.ps 10.vs 12.in +0.5i.ll -0.5i.B.if '\\$1'C' .ce 1Fig.\|\|\|\\*(CN-\\n+k.~\c.R...de BF.KF'sp 1v.nr TP \\n(.s.nr TV \\n(.v.nr TF \\n(.f.nr r 0 0.if \\nq=0 .if  "\\$1"PAGE" .KP.if \\nq=0 .if  "\\$1"PAGE" .nr r 1 0.if \\nq=0 .if !"\\$1"PAGE" .sp \\$1.if \\nq=1 .sp 0.5i.FC \\$2...de EF.in -0.5i.ll +0.5i.ps \\n(TP.vs \\n(TV.ft \\n(TF'if \\nr==0 'sp 30u'AL.KE...de NF.nr x \\nk+1.ie !'\\$1'X' Fig.~\\*(CN-\\nx\\$1.el Figure \\*(CN-\\nx\\$2...de PF.ie !'\\$1'X' Fig.~\\*(CN-\\nk\\$1.el Figure \\*(CN-\\nk\\$2...\"-------------------- MULTIPLE BLANK PAGES -------------------.de MP.if \\$1 \{\.KF.KP.KE.MP \\$1-1.if \\$1<2 .nr k +1 1\}...\"-------------------- TABLE OF CONTENTS ----------------------.de XT.if t .ta 0.4i 0.8i 0.9i \\n(LLuR.if n .ta 0.3i 1.0i 1.1i 5.0iR.ps 11.vs 13.nr a \\$1 0.nr b 0 1.nr c 0 1.sp 0.40i.ne 0.3i.B\\s18\\$1\\s12	\\$2	\\$3\\fR\\s11.br.if !'\\$4''	\\fB\\$4\\fR.R.sp 0.5v...de XE.nr b +1 1.nr c 0 1.HS	\\na.\\nb	\\$1   \\$2...de XS.nr c +1 1		\\na.\\nb.\\nc   \\$1   \\$2...\"------------------- INDEX -----------------------------------.de IL.nr PS \\n(PZ-2.nr VS 12.01p.LP.nf.na.sp 2v.ne 2\fB\s+4\\$1\\s0\fR.sp 1v...\"------------------- NEW .B MACRO ----------------------------.rm B.de B.nr PQ \\n(.f.ft 3.if !"\\$1"" \&\\$1\\f\\n(PQ\\$2...\"--------------------- FIXES NEEDED TO -MS -------------------.\" Remove .if n .ul 1000 from .NH.\" Remove .if n .ul 1000 from .SH.\" Fix to allow letters as chapter "numbers".\".\" Here is the b3mac file.nr Cs 10.fp 5 H.ds fm \(fm.ds em \(em.de F\\fI\\$1\\fR\\$2...de CC.HS~~~~~\\s\\n(Cs\\f5\\$1\\fP\\s0.HS.LP...de Cx~~~~~\\s\\n(Cs\\f5\\$1\\fP\\s0\\$2...de Cb.in +0.25i\\s\\n(Cs.HS\\f5...de Ce.HS\\fR.nr PS \\n(PZ.nr VS \\n(VZ.LP.in -0.25i...de SY\\$3\s-2\\$1\s+2\\$2...de SM\\$3\s-1\\$1\s+1\\$2...de FN\&\\fI\\$1\\fR\\$2...de DI\&\\fI\\$1\\fR\\$2...de FI\&\\fI\\$1\\fR\\$2...de LN.nr x \\$1+\\$2\\$4line.L4 \\nx \\$3...de LS.nr x \\$1+\\$2.nr y \\$1+\\$3.nr z \\nx+1\\$5lines.L4 \\nx.ie \\ny=\\nz and.el to.L4 \\ny \\$4...ds SQ \(fm\h'-0.05c'\(fm.de L4.ie \\$1<10 000\\$1\\$2.el .ie \\$1<100 00\\$1\\$2.el .ie \\$1<1000 0\\$1\\$2.el \\$1\\$2...de KW\f5\\$1\\$2\fR...ds M0 MINIX.ds M1 \\s-1MINIX\\s+1.ds M2 \\s-2MINIX\\s+2.ds M9 \\s-1MINIX\\s+1.ds m0 minix.de MX\s-1MINIX 3\s-1\\$1...de Ux\s-2UNIX\s+2\\$1...tr _\(ru.de UX\s-2UNIX\s+2\\$1...ds Mx \\s-1MINIX\\s0.ds Mp \\s-1MINIX-PC\\s0.ds Ms \\s-1MINIX-ST\\s0.de CW\f5...de Bu.HS.IP "\0\(bu" 4...de CD.ne 2.if t .ta 0.9i 1.15i 2.75i 3.25i 3.75i.if n .ta 11m 15m 40m.nr x 0 0.nr y 0 0.nr z 0 0.if n #\\$1.if n .br\\fBCommand:\&	\\$1\\fR.br...de SX.if \\nx<=0 \\fBSyntax:\&	\\$1.if \\nx>0 \&	\\fB\\$1.nr x 1 1.br...de FL.if \\ny<=0 \\fBFlags:\&	\\fB\\$1	\\fR\\$2.if \\ny>0 \& 	\\fB\\$1	\\fR\\$2.nr y 1 1.br...de EX.br.nf.if \\nz<=0 \\fB\&Examples:	\\fR\\$1	\\fR# \\$2.if \\nz>0 \&	\\fR\\$1	\\fR# \\$2.nr z 1 1.br...de EY.br.nf.if \\nz<=0 \\fB\&Example:	\\fR\\$1	\\fR# \\$2.if \\nz>0 \&	\\fR\\$1	\\fR# \\$2.nr z 1 1.br..

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -