freebsd-skq/contrib/groff/tmac/doc-syms

878 lines
31 KiB
Plaintext
Raw Normal View History

.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
1996-09-07 16:18:32 +00:00
.\"
.\" 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.
2005-10-20 10:52:34 +00:00
.\" 3. [Deleted. See
.\" ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change]
1996-09-07 16:18:32 +00:00
.\" 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.
.\"
.\" @(#)doc-syms 8.1 (Berkeley) 06/08/93
1996-09-07 16:18:32 +00:00
.\"
.\" %beginstrip%
2001-04-17 12:28:00 +00:00
.
.
.eo
.
.\" NS Ux user macro
.\" NS print UNIX
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-str-Ux
.\" NS
.\" NS width register `Ux' defined in doc-common
.
1996-09-07 16:18:32 +00:00
.de Ux
2001-04-17 12:28:00 +00:00
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-Ux \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
. if !\n[doc-arg-limit] \
. if \n[.$] \{\
. ds doc-macro-name Ux
. doc-parse-args \$@
. \}
.
. \" replace current argument with result
. ds doc-arg\n[doc-arg-ptr] \*[doc-Tn-font-size]UNIX\*[doc-str-Ux]
. nr doc-type\n[doc-arg-ptr] 2
. ds doc-space\n[doc-arg-ptr] "\*[doc-space]
.
. \" recompute space vector for remaining arguments
. nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
. nr doc-arg-limit \n[doc-arg-ptr]
. if \n[doc-num-args] \
. doc-parse-space-vector
.
. doc-print-recursive
1996-09-07 16:18:32 +00:00
..
2001-04-17 12:28:00 +00:00
.
.
.\" NS Bx user macro
.\" NS print BSD (fix smaller nroff version)
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-str-Bx
.\" NS doc-str-Bx1
.\" NS doc-str-Bx-XXX
.\" NS
.\" NS width register `Bx' defined in doc-common
.
.ds doc-str-Bx-Reno \-Reno
.ds doc-str-Bx-reno \-Reno
.ds doc-str-Bx-Tahoe \-Tahoe
.ds doc-str-Bx-tahoe \-Tahoe
.ds doc-str-Bx-Lite \-Lite
.ds doc-str-Bx-lite \-Lite
.ds doc-str-Bx-Lite2 \-Lite2
.ds doc-str-Bx-lite2 \-Lite2
.
1996-09-07 16:18:32 +00:00
.de Bx
2001-04-17 12:28:00 +00:00
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-Bx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
. \" default value if no argument
. ds doc-str-Bx1 \*[doc-Tn-font-size]BSD\*[doc-str-Bx]
.
. if !\n[doc-arg-limit] \
. if \n[.$] \{\
. ds doc-macro-name Bx
. doc-parse-args \$@
. \}
.
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
. ie "\*[doc-arg\n[doc-arg-ptr]]"-alpha" \
. as doc-str-Bx1 " (currently in alpha test)
. el \{ .ie "\*[doc-arg\n[doc-arg-ptr]]"-beta" \
. as doc-str-Bx1 " (currently in beta test)
. el \{ .ie "\*[doc-arg\n[doc-arg-ptr]]"-devel" \
. as doc-str-Bx1 " (currently under development)
. el \{\
. ds doc-str-Bx1 \&\*[doc-arg\n[doc-arg-ptr]]\^\*[doc-Tn-font-size]
. as doc-str-Bx1 BSD\*[doc-str-Bx]
.
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
. ie d doc-str-Bx-\*[doc-arg\n[doc-arg-ptr]] \
. as doc-str-Bx1 "\*[doc-str-Bx-\*[doc-arg\n[doc-arg-ptr]]]
. el \
. nr doc-arg-ptr -1
. \}
. el \
. nr doc-arg-ptr -1
. \}
. el \
. nr doc-arg-ptr -1
. \}\}\}\}\}
. el \
. nr doc-arg-ptr -1
. \}
.
. \" replace current argument with result
. ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Bx1]
. nr doc-type\n[doc-arg-ptr] 2
. ds doc-space\n[doc-arg-ptr] "\*[doc-space]
.
. \" recompute space vector for remaining arguments
. nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
. nr doc-arg-limit \n[doc-arg-ptr]
. if \n[doc-num-args] \
. doc-parse-space-vector
.
. doc-print-recursive
1996-09-07 16:18:32 +00:00
..
2001-04-17 12:28:00 +00:00
.
.
.\" NS Ud user macro (not parsed, not callable)
.\" NS print "currently under development" (HISTORY section)
.\" NS
.\" NS width register `Ud' defined in doc-common
.
1996-09-07 16:18:32 +00:00
.de Ud
2001-04-17 12:28:00 +00:00
. nop \&currently under development.
1996-09-07 16:18:32 +00:00
..
2001-04-17 12:28:00 +00:00
.
.
.\" NS At user macro
.\" NS print AT&T UNIX
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-str-At
.\" NS doc-str-At1
.\" NS doc-str-At-XXX
.\" NS
.\" NS width register `At' defined in doc-common
.
.ds doc-str-At-32v \&Version\~32V
.as doc-str-At-32v " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
.ds doc-str-At-v1 \&Version\~1
.as doc-str-At-v1 " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
.ds doc-str-At-v2 \&Version\~2
.as doc-str-At-v2 " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
.ds doc-str-At-v3 \&Version\~3
.as doc-str-At-v3 " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
.ds doc-str-At-v4 \&Version\~4
.as doc-str-At-v4 " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
.ds doc-str-At-v5 \&Version\~5
.as doc-str-At-v5 " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
.ds doc-str-At-v6 \&Version\~6
.as doc-str-At-v6 " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
.ds doc-str-At-v7 \&Version\~7
.as doc-str-At-v7 " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
.ds doc-str-At-V \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V
.as doc-str-At-V " \*[doc-Tn-font-size]UNIX\*[doc-str-At]
.ds doc-str-At-V.1 \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V Release\~1
2001-04-17 12:28:00 +00:00
.as doc-str-At-V.1 " \*[doc-Tn-font-size]UNIX\*[doc-str-At]
.ds doc-str-At-V.2 \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V Release\~2
2001-04-17 12:28:00 +00:00
.as doc-str-At-V.2 " \*[doc-Tn-font-size]UNIX\*[doc-str-At]
.ds doc-str-At-V.3 \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V Release\~3
.as doc-str-At-V.3 " \*[doc-Tn-font-size]UNIX\*[doc-str-At]
.ds doc-str-At-V.4 \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V Release\~4
2001-04-17 12:28:00 +00:00
.as doc-str-At-V.4 " \*[doc-Tn-font-size]UNIX\*[doc-str-At]
.
1996-09-07 16:18:32 +00:00
.de At
2001-04-17 12:28:00 +00:00
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-At \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
. \" default value if no argument
. ds doc-str-At1 \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
.
. if !\n[doc-arg-limit] \
. if \n[.$] \{\
. ds doc-macro-name At
. doc-parse-args \$@
. \}
.
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
. ie \A\*[doc-arg\n[doc-arg-ptr]] \{\
. ie d doc-str-At-\*[doc-arg\n[doc-arg-ptr]] \
. ds doc-str-At1 "\*[doc-str-At-\*[doc-arg\n[doc-arg-ptr]]]
. el \{\
. tmc mdoc warning: .At: Unknown AT&T UNIX version
. tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
. nr doc-arg-ptr -1
. \}\}
. el \
. nr doc-arg-ptr -1
. \}
. el \
. nr doc-arg-ptr -1
. \}
.
. \" replace current argument with result
. ds doc-arg\n[doc-arg-ptr] "\*[doc-str-At1]
. nr doc-type\n[doc-arg-ptr] 2
. ds doc-space\n[doc-arg-ptr] "\*[doc-space]
.
. \" recompute space vector for remaining arguments
. nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
. nr doc-arg-limit \n[doc-arg-ptr]
. if \n[doc-num-args] \
. doc-parse-space-vector
.
. doc-print-recursive
1996-09-07 16:18:32 +00:00
..
2001-04-17 12:28:00 +00:00
.
.
2006-12-25 09:03:10 +00:00
.\" NS Dx user macro
.\" NS print DragonFly
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-str-Dx
.\" NS doc-str-Dx1
.\" NS
.\" NS width register `Dx' defined in doc-common
.
.\" we use the doc-operating-system-DragonFly-* strings defined in doc-common
.
.de Dx
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-Dx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
. \" default value if no argument
. ds doc-str-Dx1 \*[doc-Tn-font-size]\%DragonFly\*[doc-str-Dx]
.
. if !\n[doc-arg-limit] \
. if \n[.$] \{\
. ds doc-macro-name Dx
. doc-parse-args \$@
. \}
.
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
. ie \A\*[doc-arg\n[doc-arg-ptr]] \{\
. ie d doc-operating-system-DragonFly-\*[doc-arg\n[doc-arg-ptr]] \
. as doc-str-Dx1 \~\*[doc-operating-system-DragonFly-\*[doc-arg\n[doc-arg-ptr]]]
. el \{\
. tmc mdoc warning: .Dx: Unknown DragonFly version
. tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
. as doc-str-Dx1 \~\*[doc-arg\n[doc-arg-ptr]]
. \}\}
. el \
. as doc-str-Dx1 \~\*[doc-arg\n[doc-arg-ptr]]
. \}
. el \
. nr doc-arg-ptr -1
. \}
.
. \" replace current argument with result
. ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Dx1]
. nr doc-type\n[doc-arg-ptr] 2
. ds doc-space\n[doc-arg-ptr] "\*[doc-space]
.
. \" recompute space vector for remaining arguments
. nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
. nr doc-arg-limit \n[doc-arg-ptr]
. if \n[doc-num-args] \
. doc-parse-space-vector
.
. doc-print-recursive
..
.
.
2001-04-17 12:28:00 +00:00
.\" NS Fx user macro
.\" NS print FreeBSD
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-str-Fx
.\" NS doc-str-Fx1
.\" NS
.\" NS width register `Fx' defined in doc-common
.
.\" we use the doc-operating-system-FreeBSD-* strings defined in doc-common
.
.de Fx
2001-04-17 12:28:00 +00:00
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-Fx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
. \" default value if no argument
. ds doc-str-Fx1 \*[doc-Tn-font-size]\%FreeBSD\*[doc-str-Fx]
.
. if !\n[doc-arg-limit] \
. if \n[.$] \{\
. ds doc-macro-name Fx
. doc-parse-args \$@
. \}
.
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
. ie \A\*[doc-arg\n[doc-arg-ptr]] \{\
. ie d doc-operating-system-FreeBSD-\*[doc-arg\n[doc-arg-ptr]] \
. as doc-str-Fx1 \~\*[doc-operating-system-FreeBSD-\*[doc-arg\n[doc-arg-ptr]]]
. el \{\
. tmc mdoc warning: .Fx: Unknown FreeBSD version
. tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
. as doc-str-Fx1 \~\*[doc-arg\n[doc-arg-ptr]]
. \}\}
. el \
. as doc-str-Fx1 \~\*[doc-arg\n[doc-arg-ptr]]
. \}
. el \
. nr doc-arg-ptr -1
. \}
.
. \" replace current argument with result
. ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Fx1]
. nr doc-type\n[doc-arg-ptr] 2
. ds doc-space\n[doc-arg-ptr] "\*[doc-space]
.
. \" recompute space vector for remaining arguments
. nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
. nr doc-arg-limit \n[doc-arg-ptr]
. if \n[doc-num-args] \
. doc-parse-space-vector
.
. doc-print-recursive
..
2001-04-17 12:28:00 +00:00
.
.
.\" NS Nx user macro
.\" NS print NetBSD
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-str-Nx
.\" NS doc-str-Nx1
.\" NS
.\" NS width register `Nx' defined in doc-common
.
.\" we use the doc-operating-system-NetBSD-* strings defined in doc-common
.
.de Nx
2001-04-17 12:28:00 +00:00
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-Nx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
. \" default value if no argument
. ds doc-str-Nx1 \*[doc-Tn-font-size]\%N\s[\n[doc-curr-size]u]et
. as doc-str-Nx1 \*[doc-Tn-font-size]BSD\*[doc-str-Nx]
.
. if !\n[doc-arg-limit] \
. if \n[.$] \{\
. ds doc-macro-name Nx
. doc-parse-args \$@
. \}
.
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
. ie \A\*[doc-arg\n[doc-arg-ptr]] \{\
. ie d doc-operating-system-NetBSD-\*[doc-arg\n[doc-arg-ptr]] \
. as doc-str-Nx1 \~\*[doc-operating-system-NetBSD-\*[doc-arg\n[doc-arg-ptr]]]
. el \{\
. tmc mdoc warning: .Nx: Unknown NetBSD version
. tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
. as doc-str-Nx1 \~\*[doc-arg\n[doc-arg-ptr]]
. \}\}
. el \
. as doc-str-Nx1 \~\*[doc-arg\n[doc-arg-ptr]]
. \}
. el \
. nr doc-arg-ptr -1
. \}
.
. \" replace current argument with result
. ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Nx1]
. nr doc-type\n[doc-arg-ptr] 2
. ds doc-space\n[doc-arg-ptr] "\*[doc-space]
.
. \" recompute space vector for remaining arguments
. nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
. nr doc-arg-limit \n[doc-arg-ptr]
. if \n[doc-num-args] \
. doc-parse-space-vector
.
. doc-print-recursive
..
2001-04-17 12:28:00 +00:00
.
.
.\" NS Ox user macro
.\" NS print OpenBSD
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-str-Ox
.\" NS doc-str-Ox1
.\" NS
.\" NS width register `Ox' defined in doc-common
.
.de Ox
2001-04-17 12:28:00 +00:00
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-Ox \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
. \" default value if no argument
. ds doc-str-Ox1 \*[doc-Tn-font-size]\%OpenBSD\*[doc-str-Ox]
.
. if !\n[doc-arg-limit] \
. if \n[.$] \{\
. ds doc-macro-name Ox
. doc-parse-args \$@
. \}
.
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \
. as doc-str-Ox1 \~\*[doc-arg\n[doc-arg-ptr]]
. el \
. nr doc-arg-ptr -1
. \}
.
. \" replace current argument with result
. ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Ox1]
. nr doc-type\n[doc-arg-ptr] 2
. ds doc-space\n[doc-arg-ptr] "\*[doc-space]
.
. \" recompute space vector for remaining arguments
. nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
. nr doc-arg-limit \n[doc-arg-ptr]
. if \n[doc-num-args] \
. doc-parse-space-vector
.
. doc-print-recursive
..
.
.
.\" NS Bsx user macro
.\" NS print BSD/OS
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-str-Bsx
.\" NS doc-str-Bsx1
.\" NS
.\" NS width register `Bsx' defined in doc-common
.
.de Bsx
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-Bsx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
. \" default value if no argument
. ds doc-str-Bsx1 \*[doc-Tn-font-size]BSD/OS\*[doc-str-Bsx]
.
. if !\n[doc-arg-limit] \
. if \n[.$] \{\
. ds doc-macro-name Bsx
. doc-parse-args \$@
. \}
.
. if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
. nr doc-arg-ptr +1
. ie (\n[doc-type\n[doc-arg-ptr]] == 2) \
. as doc-str-Bsx1 \~\*[doc-arg\n[doc-arg-ptr]]
. el \
. nr doc-arg-ptr -1
. \}
.
. \" replace current argument with result
. ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Bsx1]
. nr doc-type\n[doc-arg-ptr] 2
. ds doc-space\n[doc-arg-ptr] "\*[doc-space]
.
. \" recompute space vector for remaining arguments
. nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
. nr doc-arg-limit \n[doc-arg-ptr]
. if \n[doc-num-args] \
. doc-parse-space-vector
.
. doc-print-recursive
..
2001-04-17 12:28:00 +00:00
.
.
1996-09-07 16:18:32 +00:00
.\" The Bt macro should go away now
2001-04-17 12:28:00 +00:00
.
.\" NS Bt user macro (not parsed, not callable)
.\" NS print "is currently in beta test." (HISTORY section)
.\" NS
.\" NS width register `Bt' defined in doc-common
.
1996-09-07 16:18:32 +00:00
.de Bt
2001-04-17 12:28:00 +00:00
. nop \&is currently in beta test.
1996-09-07 16:18:32 +00:00
..
2001-04-17 12:28:00 +00:00
.
.
.\" NS Px user macro
.\" NS print POSIX
.
.ds Px \*[doc-Tn-font-size]\%POSIX
.
.
.\" NS Ai user macro
.\" NS print ANSI
.
.ds Ai \*[doc-Tn-font-size]\%ANSI
.
.
.\" NS St user macro
.\" NS standards (posix, ansi - formal standard names)
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-reg-St
.\" NS doc-str-St
.\" NS doc-str-St1
.\" NS doc-str-St-XXX
.\" NS
.\" NS width register `St' defined in doc-common
.
.\" ANSI/ISO C
.ds doc-str-St--ansiC-89 \*[Ai] \*[doc-str-St]X\^3.159-1989
.as doc-str-St--ansiC-89 " (\*[Lq]\)\*[Ai]\~C89\*[doc-str-St]\*[Rq])
2001-04-17 12:28:00 +00:00
.als doc-str-St--ansiC doc-str-St--ansiC-89
.ds doc-str-St--isoC \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9899:1990
.as doc-str-St--isoC " (\*[Lq]\*[doc-Tn-font-size]ISO\~C\^90\*[doc-str-St]\*[Rq])
.als doc-str-St--isoC-90 doc-str-St--isoC
.ds doc-str-St--isoC-2011 \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9899:2011
.as doc-str-St--isoC-2011 " (\*[Lq]\*[doc-Tn-font-size]ISO\~C\^11\*[doc-str-St]\*[Rq])
2001-04-17 12:28:00 +00:00
.ds doc-str-St--isoC-99 \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9899:1999
.as doc-str-St--isoC-99 " (\*[Lq]\*[doc-Tn-font-size]ISO\~C\^99\*[doc-str-St]\*[Rq])
2006-12-25 09:03:10 +00:00
.ds doc-str-St--isoC-amd1 \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9899/AMD1:1995
.as doc-str-St--isoC-amd1 " (\*[Lq]\*[doc-Tn-font-size]ISO\~C\^90\*[doc-str-St], Amendment 1\*[Rq])
.ds doc-str-St--isoC-tcor1 \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9899/TCOR1:1994
.as doc-str-St--isoC-tcor1 " (\*[Lq]\*[doc-Tn-font-size]ISO\~C\^90\*[doc-str-St], Technical Corrigendum 1\*[Rq])
.ds doc-str-St--isoC-tcor2 \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9899/TCOR2:1995
.as doc-str-St--isoC-tcor2 " (\*[Lq]\*[doc-Tn-font-size]ISO\~C\^90\*[doc-str-St], Technical Corrigendum 2\*[Rq])
2001-04-17 12:28:00 +00:00
.
.\" POSIX Part 1: System API
.ds doc-str-St--p1003.1 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1
.as doc-str-St--p1003.1 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
.ds doc-str-St--p1003.1b \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1b
.as doc-str-St--p1003.1b " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
2001-04-17 12:28:00 +00:00
.ds doc-str-St--p1003.1-88 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-1988
.as doc-str-St--p1003.1-88 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
.ds doc-str-St--p1003.1-90 \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9945-1:1990
.as doc-str-St--p1003.1-90 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
.als doc-str-St--iso9945-1-90 doc-str-St--p1003.1-90
.ds doc-str-St--p1003.1b-93 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1b-1993
.as doc-str-St--p1003.1b-93 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
.ds doc-str-St--p1003.1c-95 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1c-1995
.as doc-str-St--p1003.1c-95 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
.ds doc-str-St--p1003.1i-95 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1i-1995
.as doc-str-St--p1003.1i-95 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
.ds doc-str-St--p1003.1-96 \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9945-1:1996
.as doc-str-St--p1003.1-96 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
.als doc-str-St--iso9945-1-96 doc-str-St--p1003.1-96
.ds doc-str-St--p1003.1g-2000 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1g-2000
.as doc-str-St--p1003.1g-2000 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
.ds doc-str-St--p1003.1-2001 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-2001
.as doc-str-St--p1003.1-2001 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
2004-07-30 08:14:00 +00:00
.ds doc-str-St--p1003.1-2004 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-2004
.as doc-str-St--p1003.1-2004 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
.ds doc-str-St--p1003.1-2008 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-2008
.as doc-str-St--p1003.1-2008 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
2001-04-17 12:28:00 +00:00
.
.\" POSIX Part 2: Shell and Utilities
.ds doc-str-St--p1003.2 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.2
.as doc-str-St--p1003.2 " (\*[Lq]\)\*[Px]\*[doc-str-St].2\*[Rq])
.ds doc-str-St--p1003.2-92 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.2-1992
.as doc-str-St--p1003.2-92 " (\*[Lq]\)\*[Px]\*[doc-str-St].2\*[Rq])
.ds doc-str-St--p1003.2a-92 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.2a-1992
.as doc-str-St--p1003.2a-92 " (\*[Lq]\)\*[Px]\*[doc-str-St].2\*[Rq])
.ds doc-str-St--iso9945-2-93 \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9945-2:1993
.as doc-str-St--iso9945-2-93 " (\*[Lq]\)\*[Px]\*[doc-str-St].2\*[Rq])
.
.\" X/Open
.ds doc-str-St--susv2 Version\~2 of the Single \*[doc-Tn-font-size]UNIX\*[doc-str-St] Specification
.as doc-str-St--susv2 " (\*[Lq]\*[doc-Tn-font-size]SUSv2\*[doc-str-St]\*[Rq])
.ds doc-str-St--susv3 Version\~3 of the Single \*[doc-Tn-font-size]UNIX\*[doc-str-St] Specification
.as doc-str-St--susv3 " (\*[Lq]\*[doc-Tn-font-size]SUSv3\*[doc-str-St]\*[Rq])
.ds doc-str-St--susv4 Version\~4 of the Single \*[doc-Tn-font-size]UNIX\*[doc-str-St] Specification
.as doc-str-St--susv4 " (\*[Lq]\*[doc-Tn-font-size]SUSv4\*[doc-str-St]\*[Rq])
2001-04-17 12:28:00 +00:00
.ds doc-str-St--svid4 System\~V Interface Definition, Fourth Edition
.as doc-str-St--svid4 " (\*[Lq]\*[doc-Tn-font-size]SVID\*[doc-str-St]\^4\*[Rq])
2012-07-26 11:12:38 +00:00
.ds doc-str-St--xbd5 \*[doc-Tn-font-size]X/Open\*[doc-str-St] Base Definitions Issue\~5
2001-04-17 12:28:00 +00:00
.as doc-str-St--xbd5 " (\*[Lq]\*[doc-Tn-font-size]XBD\*[doc-str-St]\^5\*[Rq])
.ds doc-str-St--xcu5 \*[doc-Tn-font-size]X/Open\*[doc-str-St] Commands and Utilities Issue\~5
.as doc-str-St--xcu5 " (\*[Lq]\*[doc-Tn-font-size]XCU\*[doc-str-St]\^5\*[Rq])
.ds doc-str-St--xcurses4.2 \*[doc-Tn-font-size]X/Open\*[doc-str-St] Curses Issue\~4, Version\~2
2001-04-17 12:28:00 +00:00
.as doc-str-St--xcurses4.2 " (\*[Lq]\*[doc-Tn-font-size]XCURSES\*[doc-str-St]\^4.2\*[Rq])
.ds doc-str-St--xns5 \*[doc-Tn-font-size]X/Open\*[doc-str-St] Networking Services Issue\~5
.as doc-str-St--xns5 " (\*[Lq]\*[doc-Tn-font-size]XNS\*[doc-str-St]\^5\*[Rq])
.ds doc-str-St--xns5.2 \*[doc-Tn-font-size]X/Open\*[doc-str-St] Networking Services Issue\~5.2
.as doc-str-St--xns5.2 " (\*[Lq]\*[doc-Tn-font-size]XNS\*[doc-str-St]\^5.2\*[Rq])
.ds doc-str-St--xpg3 \*[doc-Tn-font-size]X/Open\*[doc-str-St] Portability Guide Issue\~3
.as doc-str-St--xpg3 " (\*[Lq]\*[doc-Tn-font-size]XPG\*[doc-str-St]\^3\*[Rq])
.ds doc-str-St--xpg4 \*[doc-Tn-font-size]X/Open\*[doc-str-St] Portability Guide Issue\~4
.as doc-str-St--xpg4 " (\*[Lq]\*[doc-Tn-font-size]XPG\*[doc-str-St]\^4\*[Rq])
.ds doc-str-St--xpg4.2 \*[doc-Tn-font-size]X/Open\*[doc-str-St] Portability Guide Issue\~4, Version\~2
2001-04-17 12:28:00 +00:00
.as doc-str-St--xpg4.2 " (\*[Lq]\*[doc-Tn-font-size]XPG\*[doc-str-St]\^4.2\*[Rq])
.ds doc-str-St--xsh5 \*[doc-Tn-font-size]X/Open\*[doc-str-St] System Interfaces and Headers Issue\~5
.as doc-str-St--xsh5 " (\*[Lq]\*[doc-Tn-font-size]XSH\*[doc-str-St]\^5\*[Rq])
.
.\" Miscellaneous
.ds doc-str-St--ieee754 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 754-1985
2006-12-25 09:03:10 +00:00
.ds doc-str-St--ieee1275-94 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1275-1994
.as doc-str-St--ieee1275-94 " (\*[Lq]\*[doc-Tn-font-size]Open Firmware\*[doc-str-St]\*[Rq])
2001-04-17 12:28:00 +00:00
.ds doc-str-St--iso8802-3 \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 8802-3:1989
.
1996-09-07 16:18:32 +00:00
.de St
2001-04-17 12:28:00 +00:00
. if !\n[doc-arg-limit] \{\
. ie \n[.$] \{\
. ds doc-macro-name St
. doc-parse-args \$@
. \}
. el \
. doc-St-usage
. \}
.
. if !\n[doc-arg-limit] \
. return
.
. nr doc-arg-ptr +1
. ie (\n[doc-arg-limit] >= \n[doc-arg-ptr]) \{\
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-St \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
. ds doc-str-St1
. ie \A\*[doc-arg\n[doc-arg-ptr]] \{\
. ie d doc-str-St-\*[doc-arg\n[doc-arg-ptr]] \
. ds doc-str-St1 "\*[doc-str-St-\*[doc-arg\n[doc-arg-ptr]]]
. el \{\
. tmc "mdoc warning: .St: Unknown standard abbreviation
. tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
. tm1 " Please refer to the groff_mdoc(7) manpage for a
. tm1 " list of available standard abbreviations.
. \}\}
. el \
. doc-St-usage
.
. \" replacing argument with result
. ds doc-arg\n[doc-arg-ptr] "\*[doc-str-St1]
.
. doc-print-recursive
. \}
. el \{\
. doc-St-usage
. doc-reset-args
. \}
..
.
.
.\" NS doc-St-usage macro
.
.de doc-St-usage
. tm1 "Usage: .St standard (#\n[.c])
. tm1 " Please refer to the groff_mdoc(7) manpage for a list of
. tm1 " available standard abbreviations.
..
.
.
.\" NS Lb user macro
.\" NS formal library names for LIBRARY sections
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
.\" NS doc-curr-font
.\" NS doc-curr-size
.\" NS doc-macro-name
.\" NS
.\" NS local variable:
.\" NS doc-reg-Lb
.\" NS doc-str-Lb
2004-07-30 08:14:00 +00:00
.\" NS doc-str-Lb1
2001-04-17 12:28:00 +00:00
.\" NS doc-str-Lb-XXX
.\" NS
.\" NS width register `Lb' defined in doc-common
.
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libarchive Reading and Writing Streaming Archives Library (libarchive, \-larchive)
.ds doc-str-Lb-libarm ARM Architecture Library (libarm, \-larm)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libarm32 ARM32 Architecture Library (libarm32, \-larm32)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libbluetooth Bluetooth Library (libbluetooth, \-lbluetooth)
.ds doc-str-Lb-libbsm Basic Security Module Library (libbsm, \-lbsm)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libc Standard C\~Library (libc, \-lc)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libc_r Reentrant C\~Library (libc_r, \-lc_r)
.ds doc-str-Lb-libcalendar Calendar Arithmetic Library (libcalendar, \-lcalendar)
.ds doc-str-Lb-libcam Common Access Method User Library (libcam, \-lcam)
.ds doc-str-Lb-libcdk Curses Development Kit Library (libcdk, \-lcdk)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libcipher FreeSec Crypt Library (libcipher, \-lcipher)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libcompat Compatibility Library (libcompat, \-lcompat)
.ds doc-str-Lb-libcrypt Crypt Library (libcrypt, \-lcrypt)
.ds doc-str-Lb-libcurses Curses Library (libcurses, \-lcurses)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libdevinfo Device and Resource Information Utility Library (libdevinfo, \-ldevinfo)
.ds doc-str-Lb-libdevstat Device Statistics Library (libdevstat, \-ldevstat)
.ds doc-str-Lb-libdisk Interface to Slice and Partition Labels Library (libdisk, \-ldisk)
.ds doc-str-Lb-libdwarf DWARF Access Library (libdwarf, \-ldwarf)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libedit Command Line Editor Library (libedit, \-ledit)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libelf ELF Access Library (libelf, \-lelf)
.ds doc-str-Lb-libevent Event Notification Library (libevent, \-levent)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libfetch File Transfer Library for URLs (libfetch, \-lfetch)
.ds doc-str-Lb-libform Curses Form Library (libform, \-lform)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libgeom Userland API Library for kernel GEOM subsystem (libgeom, \-lgeom)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libi386 i386 Architecture Library (libi386, \-li386)
.ds doc-str-Lb-libintl Internationalized Message Handling Library (libintl, \-lintl)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libipsec IPsec Policy Control Library (libipsec, \-lipsec)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libipx IPX Address Conversion Support Library (libipx, \-lipx)
.ds doc-str-Lb-libiscsi iSCSI protocol library (libiscsi, \-liscsi)
.ds doc-str-Lb-libjail Jail Library (libjail, \-ljail)
.ds doc-str-Lb-libkiconv Kernel side iconv library (libkiconv, \-lkiconv)
.ds doc-str-Lb-libkse N:M Threading Library (libkse, \-lkse)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libkvm Kernel Data Access Library (libkvm, \-lkvm)
.ds doc-str-Lb-libm Math Library (libm, \-lm)
.ds doc-str-Lb-libm68k m68k Architecture Library (libm68k, \-lm68k)
.ds doc-str-Lb-libmagic Magic Number Recognition Library (libmagic, \-lmagic)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libmd Message Digest (MD4, MD5, etc.) Support Library (libmd, \-lmd)
.ds doc-str-Lb-libmemstat Kernel Memory Allocator Statistics Library (libmemstat, \-lmemstat)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libmenu Curses Menu Library (libmenu, \-lmenu)
Significant upgrades to sa(4) and mt(1). The primary focus of these changes is to modernize FreeBSD's tape infrastructure so that we can take advantage of some of the features of modern tape drives and allow support for LTFS. Significant changes and new features include: o sa(4) driver status and parameter information is now exported via an XML structure. This will allow for changes and improvements later on that will not break userland applications. The old MTIOCGET status ioctl remains, so applications using the existing interface will not break. o 'mt status' now reports drive-reported tape position information as well as the previously available calculated tape position information. These numbers will be different at times, because the drive-reported block numbers are relative to BOP (Beginning of Partition), but the block numbers calculated previously via sa(4) (and still provided) are relative to the last filemark. Both numbers are now provided. 'mt status' now also shows the drive INQUIRY information, serial number and any position flags (BOP, EOT, etc.) provided with the tape position information. 'mt status -v' adds information on the maximum possible I/O size, and the underlying values used to calculate it. o The extra sa(4) /dev entries (/dev/saN.[0-3]) have been removed. The extra devices were originally added as place holders for density-specific device nodes. Some OSes (NetBSD, NetApp's OnTap and Solaris) have had device nodes that, when you write to them, will automatically select a given density for particular tape drives. This is a convenient way of switching densities, but it was never implemented in FreeBSD. Only the device nodes were there, and that sometimes confused users. For modern tape devices, the density is generally not selectable (e.g. with LTO) or defaults to the highest availble density when the tape is rewritten from BOT (e.g. TS11X0). So, for most users, density selection won't be necessary. If they do need to select the density, it is easy enough to use 'mt density' to change it. o Protection information is now supported. This is either a Reed-Solomon CRC or CRC32 that is included at the end of each block read and written. On write, the tape drive verifies the CRC, and on read, the tape drive provides a CRC for the userland application to verify. o New, extensible tape driver parameter get/set interface. o Density reporting information. For drives that support it, 'mt getdensity' will show detailed information on what formats the tape drive supports, and what formats the tape drive supports. o Some mt(1) functionality moved into a new mt(3) library so that external applications can reuse the code. o The new mt(3) library includes helper routines to aid in parsing the XML output of the sa(4) driver, and build a tree of driver metadata. o Support for the MTLOAD (load a tape in the drive) and MTWEOFI (write filemark immediate) ioctls needed by IBM's LTFS implementation. o Improve device departure behavior for the sa(4) driver. The previous implementation led to hangs when the device was open. o This has been tested on the following types of drives: IBM TS1150 IBM TS1140 IBM LTO-6 IBM LTO-5 HP LTO-2 Seagate DDS-4 Quantum DLT-4000 Exabyte 8505 Sony DDS-2 contrib/groff/tmac/doc-syms, share/mk/bsd.libnames.mk, lib/Makefile, Add libmt. lib/libmt/Makefile, lib/libmt/mt.3, lib/libmt/mtlib.c, lib/libmt/mtlib.h, New mt(3) library that contains functions moved from mt(1) and new functions needed to interact with the updated sa(4) driver. This includes XML parser helper functions that application writers can use when writing code to query tape parameters. rescue/rescue/Makefile: Add -lmt to CRUNCH_LIBS. src/share/man/man4/mtio.4 Clarify this man page a bit, and since it contains what is essentially the mtio.h header file, add new ioctls and structure definitions from mtio.h. src/share/man/man4/sa.4 Update BUGS and maintainer section. sys/cam/scsi/scsi_all.c, sys/cam/scsi/scsi_all.h: Add SCSI SECURITY PROTOCOL IN/OUT CDB definitions and CDB building functions. sys/cam/scsi/scsi_sa.c sys/cam/scsi/scsi_sa.h Many tape driver changes, largely outlined above. Increase the sa(4) driver read/write timeout from 4 to 32 minutes. This is based on the recommended values for IBM LTO 5/6 drives. This may also avoid timeouts for other tape hardware that can take a long time to do retries and error recovery. Longer term, a better way to handle this is to ask the drive for recommended timeout values using the REPORT SUPPORTED OPCODES command. Modern IBM and Oracle tape drives at least support that command, and it would allow for more accurate timeout values. Add XML status generation. This is done with a series of macros to eliminate as much duplicate code as possible. The new XML-based status values are reported through the new MTIOCEXTGET ioctl. Add XML driver parameter reporting, using the new MTIOCPARAMGET ioctl. Add a new driver parameter setting interface, using the new MTIOCPARAMSET and MTIOCSETLIST ioctls. Add a new MTIOCRBLIM ioctl to get block limits information. Add CCB/CDB building routines scsi_locate_16, scsi_locate_10, and scsi_read_position_10(). scsi_locate_10 implements the LOCATE command, as does the existing scsi_set_position() command. It just supports additional arguments and features. If/when we figure out a good way to provide backward compatibility for older applications using the old function API, we can just revamp scsi_set_position(). The same goes for scsi_read_position_10() and the existing scsi_read_position() function. Revamp sasetpos() to take the new mtlocate structure as an argument. It now will use either scsi_locate_10() or scsi_locate_16(), depending upon the arguments the user supplies. As before, once we change position we don't have a clear idea of what the current logical position of the tape drive is. For tape drives that support long form position data, we read the current position and store that for later reporting after changing the position. This should help applications like Bacula speed tape access under FreeBSD once they are modified to support the new ioctls. Add a new quirk, SA_QUIRK_NO_LONG_POS, that is set for all drives that report SCSI-2 or older, as well as drives that report an Illegal Request type error for READ POSITION with the long format. So we should automatically detect drives that don't support the long form and stop asking for it after an initial try. Add a partition number to the sa(4) softc. Improve device departure handling. The previous implementation led to hangs when the device was open. If an application had the sa(4) driver open, and attempted to close it after it went away, the cam_periph_release() call in saclose() would cause the periph to get destroyed because that was the last reference to it. Because destroy_dev() was called from the sa(4) driver's cleanup routine (sacleanup()), and would block waiting for the close to happen, a deadlock would result. So instead of calling destroy_dev() from the cleanup routine, call destroy_dev_sched_cb() from saoninvalidate() and wait for the callback. Acquire a reference for devfs in saregister(), and release it in the new sadevgonecb() routine when all devfs devices for the particular sa(4) driver instance are gone. Add a new function, sasetupdev(), to centralize setting per-instance devfs device parameters instead of repeating the code in saregister(). Add an open count to the softc, so we know how many peripheral driver references are a result of open sessions. Add the D_TRACKCLOSE flag to the cdevsw flags so that we get a 1:1 mapping of open to close calls instead of a N:1 mapping. This should be a no-op for everything except the control device, since we don't allow more than one open on non-control devices. However, since we do allow multiple opens on the control device, the combination of the open count and the D_TRACKCLOSE flag should result in an accurate peripheral driver reference count, and an accurate open count. The accurate open count allows us to release all peripheral driver references that are the result of open contexts once we get the callback from devfs. sys/sys/mtio.h: Add a number of new mt(4) ioctls and the requisite data structures. None of the existing interfaces been removed or changed. This includes definitions for the following new ioctls: MTIOCRBLIM /* get block limits */ MTIOCEXTLOCATE /* seek to position */ MTIOCEXTGET /* get tape status */ MTIOCPARAMGET /* get tape params */ MTIOCPARAMSET /* set tape params */ MTIOCSETLIST /* set N params */ usr.bin/mt/Makefile: mt(1) now depends on libmt, libsbuf and libbsdxml. usr.bin/mt/mt.1: Document new mt(1) features and subcommands. usr.bin/mt/mt.c: Implement support for mt(1) subcommands that need to use getopt(3) for their arguments. Implement a new 'mt status' command to replace the old 'mt status' command. The old status command has been renamed 'ostatus'. The new status function uses the MTIOCEXTGET ioctl, and therefore parses the XML data to determine drive status. The -x argument to 'mt status' allows the user to dump out the raw XML reported by the kernel. The new status display is mostly the same as the old status display, except that it doesn't print the redundant density mode information, and it does print the current partition number and position flags. Add a new command, 'mt locate', that will supersede the old 'mt setspos' and 'mt sethpos' commands. 'mt locate' implements all of the functionality of the MTIOCEXTLOCATE ioctl, and allows the user to change the logical position of the tape drive in a number of ways. (Partition, block number, file number, set mark number, end of data.) The immediate bit and the explicit address bits are implemented, but not documented in the man page. Add a new 'mt weofi' command to use the new MTWEOFI ioctl. This allows the user to ask the drive to write a filemark without waiting around for the operation to complete. Add a new 'mt getdensity' command that gets the XML-based tape drive density report from the sa(4) driver and displays it. This uses the SCSI REPORT DENSITY SUPPORT command to get comprehensive information from the tape drive about what formats it is able to read and write. Add a new 'mt protect' command that allows getting and setting tape drive protection information. The protection information is a CRC tacked on to the end of every read/write from and to the tape drive. Sponsored by: Spectra Logic MFC after: 1 month
2015-02-23 21:59:30 +00:00
.ds doc-str-Lb-libmt Magnetic Tape Library (libmt, \-lmt)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libnetgraph Netgraph User Library (libnetgraph, \-lnetgraph)
.ds doc-str-Lb-libnetpgp Netpgp signing, verification, encryption and decryption (libnetpgp, \-lnetpgp)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libossaudio OSS Audio Emulation Library (libossaudio, \-lossaudio)
2005-01-25 09:32:56 +00:00
.ds doc-str-Lb-libpam Pluggable Authentication Module Library (libpam, \-lpam)
.ds doc-str-Lb-libpcap Packet Capture Library (libpcap, \-lpcap)
.ds doc-str-Lb-libpci PCI Bus Access Library (libpci, \-lpci)
.ds doc-str-Lb-libpmc Performance Counters Library (libpmc, \-lpmc)
2004-07-30 08:14:00 +00:00
.ds doc-str-Lb-libposix \*[Px] \*[doc-str-Lb]Compatibility Library (libposix, \-lposix)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libprop Property Container Object Library (libprop, \-lprop)
2004-07-30 08:14:00 +00:00
.ds doc-str-Lb-libpthread \*[Px] \*[doc-str-Lb]Threads Library (libpthread, \-lpthread)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libpuffs puffs Convenience Library (libpuffs, \-lpuffs)
.ds doc-str-Lb-librefuse File System in Userspace Convenience Library (librefuse, \-lrefuse)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libresolv DNS Resolver Library (libresolv, \-lresolv)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-librpcsec_gss RPC GSS-API Authentication Library (librpcsec_gss, \-lrpcsec_gss)
.ds doc-str-Lb-librpcsvc RPC Service Library (librpcsvc, \-lrpcsvc)
2004-07-30 08:14:00 +00:00
.ds doc-str-Lb-librt \*[Px] \*[doc-str-Lb]Real-time Library (librt, \-lrt)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libsdp Bluetooth Service Discovery Protocol User Library (libsdp, \-lsdp)
.ds doc-str-Lb-libssp Buffer Overflow Protection Library (libssp, \-lssp)
.ds doc-str-Lb-libSystem System Library (libSystem, \-lSystem)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libtermcap Termcap Access Library (libtermcap, \-ltermcap)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libterminfo Terminal Information Library (libterminfo, \-lterminfo)
.ds doc-str-Lb-libthr 1:1 Threading Library (libthr, \-lthr)
.ds doc-str-Lb-libufs UFS File System Access Library (libufs, \-lufs)
.ds doc-str-Lb-libugidfw File System Firewall Interface Library (libugidfw, \-lugidfw)
.ds doc-str-Lb-libulog User Login Record Library (libulog, \-lulog)
.ds doc-str-Lb-libusbhid USB Human Interface Devices Library (libusbhid, \-lusbhid)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libutil System Utilities Library (libutil, \-lutil)
2011-12-08 13:54:06 +00:00
.ds doc-str-Lb-libvgl Video Graphics Library (libvgl, \-lvgl)
.ds doc-str-Lb-libx86_64 x86_64 Architecture Library (libx86_64, \-lx86_64)
2001-04-17 12:28:00 +00:00
.ds doc-str-Lb-libz Compression Library (libz, \-lz)
.
.de Lb
. if !\n[doc-arg-limit] \{\
. ie \n[.$] \{\
. ds doc-macro-name Lb
. doc-parse-args \$@
. \}
. el \
. tm Usage: .Lb library_name ... (#\n[.c])
. \}
.
. if !\n[doc-arg-limit] \
. return
.
. nr doc-arg-ptr +1
. ie (\n[doc-arg-limit] >= \n[doc-arg-ptr]) \{\
2004-07-30 08:14:00 +00:00
. nr doc-curr-font \n[.f]
. nr doc-curr-size \n[.ps]
. ds doc-str-Lb \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
.
2001-04-17 12:28:00 +00:00
. ie d doc-str-Lb-\*[doc-arg\n[doc-arg-ptr]] \
2004-07-30 08:14:00 +00:00
. ds doc-str-Lb1 "\*[doc-str-Lb-\*[doc-arg\n[doc-arg-ptr]]]
2001-04-17 12:28:00 +00:00
. el \{\
. tmc "mdoc warning: .Lb: no description for library
. tm1 " `\*[doc-arg\n[doc-arg-ptr]]' available (#\n[.c])
2004-07-30 08:14:00 +00:00
. ds doc-str-Lb1 library \*[Lq]\*[doc-arg\n[doc-arg-ptr]]\*[Rq]
2001-04-17 12:28:00 +00:00
. \}
.
. \" replacing argument with result
2004-07-30 08:14:00 +00:00
. ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Lb1]
2001-04-17 12:28:00 +00:00
.
2003-09-20 21:20:01 +00:00
. if \n[doc-in-library-section] \
. br
2001-04-17 12:28:00 +00:00
. doc-print-recursive
2003-09-20 21:20:01 +00:00
. if \n[doc-in-library-section] \
. br
2001-04-17 12:28:00 +00:00
. \}
. el \{\
. tm Usage: .Lb library_name ... (#\n[.c])
. doc-reset-args
. \}
1996-09-07 16:18:32 +00:00
..
2001-04-17 12:28:00 +00:00
.
.
.ec
.
.\" EOF