fix mci_state after sending RSET command
[unix-history] / usr / src / usr.sbin / mkproto / mkproto.8
index 2db75c0..bc4ea67 100644 (file)
@@ -1,25 +1,28 @@
-.\" Copyright (c) 1983 Regents of the University of California.
-.\" All rights reserved.  The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" Copyright (c) 1983, 1991 Regents of the University of California.
+.\" All rights reserved.
 .\"
 .\"
-.\"    @(#)mkproto.8   5.1 (Berkeley) %G%
+.\" %sccs.include.redist.man%
 .\"
 .\"
-.TH MKPROTO 8 "10 May 1982"
-.UC 5
-.SH NAME
-mkproto \- construct a prototype file system
-.SH SYNOPSIS
-.B /etc/mkproto
-special proto
-.SH DESCRIPTION
-.I Mkproto
+.\"     @(#)mkproto.8  6.3 (Berkeley) %G%
+.\"
+.Dd 
+.Dt MKPROTO 8
+.Os BSD 4.2
+.Sh NAME
+.Nm mkproto
+.Nd construct a prototype file system
+.Sh SYNOPSIS
+.Nm mkproto
+.Ar special proto
+.Sh DESCRIPTION
+.Nm Mkproto
 is used to bootstrap a new file system.
 First a new file system is created using
 is used to bootstrap a new file system.
 First a new file system is created using
-.IR newfs (8).
-.I Mkproto 
+.Xr newfs 8 .
+.Nm Mkproto
 is then used to copy files from the old file system into the new
 file system according to the directions found in the prototype file
 is then used to copy files from the old file system into the new
 file system according to the directions found in the prototype file
-.I proto.
+.Ar proto .
 The prototype file
 contains tokens separated by spaces or
 new lines.
 The prototype file
 contains tokens separated by spaces or
 new lines.
@@ -32,50 +35,50 @@ the group id,
 and the initial contents of the file.
 The syntax of the contents field
 depends on the mode.
 and the initial contents of the file.
 The syntax of the contents field
 depends on the mode.
-.PP
+.Pp
 The mode token for a file is a 6 character string.
 The first character
 specifies the type of the file.
 (The characters
 The mode token for a file is a 6 character string.
 The first character
 specifies the type of the file.
 (The characters
-.B \-bcd
+.Fl bcd
 specify regular, block special,
 character special and directory files
 respectively.)
 The second character of the type
 is either
 specify regular, block special,
 character special and directory files
 respectively.)
 The second character of the type
 is either
-.B u
+.Cm u
 or
 or
-.B \-
+.Ql Fl
 to specify set-user-id mode or not.
 The third is
 to specify set-user-id mode or not.
 The third is
-.B g
+.Cm g
 or
 or
-.B \-
+.Ql Fl
 for the set-group-id mode.
 The rest of the mode
 is a three digit octal number giving the
 owner, group, and other read, write, execute
 permissions, see
 for the set-group-id mode.
 The rest of the mode
 is a three digit octal number giving the
 owner, group, and other read, write, execute
 permissions, see
-.IR chmod (1).
-.PP
+.Xr chmod 1 .
+.Pp
 Two decimal number
 tokens come after the mode; they specify the
 user and group ID's of the owner of the file.
 Two decimal number
 tokens come after the mode; they specify the
 user and group ID's of the owner of the file.
-.PP
+.Pp
 If the file is a regular file,
 the next token is a pathname
 whence the contents and size are copied.
 If the file is a regular file,
 the next token is a pathname
 whence the contents and size are copied.
-.PP
+.Pp
 If the file is a block or character special file,
 two decimal number tokens
 follow which give the major and minor device numbers.
 If the file is a block or character special file,
 two decimal number tokens
 follow which give the major and minor device numbers.
-.PP
+.Pp
 If the file is a directory,
 If the file is a directory,
-.I mkproto
+.Nm mkproto
 makes the entries
 makes the entries
-.BR . ""
+.Ql \&.
 and
 and
-.B  ..
+.Ql \&..
 and then
 reads a list of names and
 (recursively)
 and then
 reads a list of names and
 (recursively)
@@ -83,12 +86,10 @@ file specifications for the entries
 in the directory.
 The scan is terminated with the
 token
 in the directory.
 The scan is terminated with the
 token
-.BR $ .
-.PP
+.Cm $ .
+.Pp
 A sample prototype specification follows:
 A sample prototype specification follows:
-.PP
-.nf
-.in +5
+.Bd -literal -offset indent
 d\-\-777 3 1
 usr    d\-\-777 3 1
        sh      \-\-\-755 3 1 /bin/sh
 d\-\-777 3 1
 usr    d\-\-777 3 1
        sh      \-\-\-755 3 1 /bin/sh
@@ -98,18 +99,22 @@ usr d\-\-777 3 1
        c0      c\-\-644 3 1 0 0
        $
 $
        c0      c\-\-644 3 1 0 0
        $
 $
-.in -5
-.fi
-.dt
-.SH "SEE ALSO"
-fs(5),
-dir(5),
-fsck(8),
-newfs(8)
-.SH BUGS
+.Ed
+.Sh SEE ALSO
+.Xr fs 5 ,
+.Xr dir 5 ,
+.Xr fsck 8 ,
+.Xr newfs 8
+.Sh BUGS
 There should be some way to specify links.
 There should be some way to specify links.
-.PP
+.Pp
 There should be some way to specify bad blocks.
 There should be some way to specify bad blocks.
-.PP
-Mkproto can only be run on virgin file systems.
+.Pp
+.Nm Mkproto
+can only be run on virgin file systems.
 It should be possible to copy files into existent file systems.
 It should be possible to copy files into existent file systems.
+.Sh HISTORY
+The
+.Nm
+command appeared in
+.Bx 4.2 .