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

📄 4.t

📁 早期freebsd实现
💻 T
📖 第 1 页 / 共 2 页
字号:
.\" Copyright (c) 1983, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"	@(#)4.t	8.1 (Berkeley) 6/8/93.\".\".ds RH "Configuration File Syntax.ne 2i.NHCONFIGURATION FILE SYNTAX.PPIn this section we consider the specific rules used in writinga configuration file.  A complete grammar for the input languagecan be found in Appendix A and may be of use if you should haveproblems with syntax errors..PPA configuration file is broken up into three logical pieces:.IP \(bu 3configuration parameters global to all system images specified in the configuration file,.IP \(bu 3parameters specific to eachsystem image to be generated, and.IP \(bu 3device specifications..NH 2Global configuration parameters.PPThe global configuration parameters are the type of machine,cpu types, options, timezone, system identifier, and maximum users.Each is specified with a separate line in the configuration file..IP "\fBmachine\fP \fItype\fP".brThe system is to run on the machine type specified.  No more thanone machine type can appear in the configuration file.  Legal valuesare.B vaxand\fBsun\fP..IP "\fBcpu\fP ``\fItype\fP''".brThis system is to run on the cpu type specified.More than one cpu type specificationcan appear in a configuration file.Legal types for a.B vaxmachine are\fBVAX8600\fP, \fBVAX780\fP, \fBVAX750\fP,\fBVAX730\fPand\fBVAX630\fP (MicroVAX II).The 8650 is listed as an 8600, the 785 as a 780, and a 725 as a 730..IP "\fBoptions\fP \fIoptionlist\fP".brCompile the listed optional code into the system. Options in this list are separated by commas.Possible options are listed at the top of the generic makefile.A line of the form ``options FUNNY,HAHA'' generates global ``#define''s\-DFUNNY \-DHAHA in the resultant makefile.An option may be given a value by following its name with ``\fB=\fP'',then the value enclosed in (double) quotes.The following are major options are currently in use:COMPAT (include code for compatibility with 4.1BSD binaries),INET (Internet communication protocols),NS (Xerox NS communication protocols),andQUOTA (enable disk quotas).Other kernel options controlling system sizes and limitsare listed in Appendix D;options for the network are found in Appendix E.There are additional options which are associated with certainperipheral devices; those are listed in the Synopsis sectionof the manual page for the device..IP "\fBmakeoptions\fP \fIoptionlist\fP".brOptions that are used within the system makefileand evaluated by.I makeare listed as.IR makeoptions .Options are listed with their values with the form``makeoptions name=value,name2=value2.''The values must be enclosed in double quotes if they include numeralsor begin with a dash..IP "\fBtimezone\fP \fInumber\fP [ \fBdst\fP [ \fInumber\fP ] ]".brSpecifies the timezone used by the system.  This is measured in thenumber of hours your timezone is west of GMT.  EST is 5 hours west of GMT, PST is 8.  Negative numbersindicate hours east of GMT. If you specify\fBdst\fP, the system will operate under daylight savings time.An optional integer or floating point number may be includedto specify a particular daylight saving time correction algorithm;the default value is 1, indicating the United States.Other values are: 2 (Australian style), 3 (Western European),4 (Middle European), and 5 (Eastern European).  See\fIgettimeofday\fP\|(2) and \fIctime\fP\|(3) for more information..IP "\fBident\fP \fIname\fP".brThis system is to be known as.IR name .This is usually a cute name like ERNIE (short for Ernie Co-Vax) orVAXWELL (for Vaxwell Smart).This value is defined for use in conditional compilation,and is also used to locate an optional list of source files specificto this system..IP "\fBmaxusers\fP \fInumber\fP".brThe maximum expected number of simultaneously active user on this system is.IR number .This number is used to size several system data structures..NH 2System image parameters.PPMultiple bootable images may be specified in a single configurationfile.  The systems will have the same global configuration parametersand devices, but the location of the root file system and othersystem specific devices may be different.  A system image is specifiedwith a ``config'' line:.IP\fBconfig\fP\ \fIsysname\fP\ \fIconfig-clauses\fP.LPThe.I sysnamefield is the name given to the loaded system image; almost everyonenames their standard system image ``vmunix''.  The configuration clausesare one or more specifications indicating where the root file systemis located and the number and location of paging devices.The device used by the system to process argument lists during.IR execve (2)calls may also be specified, though in practice this is almostalways selected by.I configusing one of its rules for selecting default locations forsystem devices..PPA configuration clause is one of the following.IP.nf\fBroot\fP [ \fBon\fP ] \fIroot-device\fP\fBswap\fP [ \fBon\fP ] \fIswap-device\fP [ \fBand\fP \fIswap-device\fP ] ...\fBdumps\fP [ \fBon\fP ] \fIdump-device\fP\fBargs\fP [ \fBon\fP ] \fIarg-device\fP.LP(the ``on'' is optional.)  Multiple configuration clausesare separated by white space; .I configallows specifications to be continued across multiple linesby beginning the continuation line with a tab character.The ``root'' clause specifies where the root file systemis located, the ``swap'' clause indicates swapping and pagingarea(s), the ``dumps'' clause can be used to force system dumpsto be taken on a particular device, and the ``args'' clausecan be used to specify that argument list processing for.I execveshould be done on a particular device..PPThe device names supplied in the clauses may be fully specifiedas a device, unit, and file system partition; or underspecifiedin which case.I configwill use builtin rules to select default unit numbers and filesystem partitions.  The defaulting rules are a bit complicatedas they are dependent on the overall system configuration.For example, the swap area need not be specified at all if the root device is specified; in this case the swap area isplaced in the ``b'' partition of the same disk where the rootfile system is located.  Appendix B contains a complete listof the defaulting rules used in selecting system configurationdevices..PPThe device names are translated to theappropriate major and minor devicenumbers on a per-machine basis.  A file,``/sys/conf/devices.machine'' (where ``machine''is the machine type specified in the configuration file),is used to map a device name to its major block device number.The minor device number is calculated using the standard disk partitioning rules: on unit 0, partition ``a'' is minor device0, partition ``b'' is minor device 1, and so on; for unitsother than 0, add 8 times the unit number to get the minordevice..PPIf the default mapping of device name to major/minor devicenumber is incorrect for your configuration, it can be replacedby an explicit specification of the major/minor device.This is done by substituting.IP\fBmajor\fP \fIx\fP \fBminor\fP \fIy\fP.LPwhere the device name would normally be found.  For example,.IP.nf\fBconfig\fP vmunix \fBroot\fP \fBon\fP \fBmajor\fP 99 \fBminor\fP 1.fi

⌨️ 快捷键说明

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