summaryrefslogtreecommitdiff
path: root/usr/src/man/man1m/getdev.1m
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man1m/getdev.1m')
-rw-r--r--usr/src/man/man1m/getdev.1m26
1 files changed, 1 insertions, 25 deletions
diff --git a/usr/src/man/man1m/getdev.1m b/usr/src/man/man1m/getdev.1m
index 5101682d8b..e26d40885b 100644
--- a/usr/src/man/man1m/getdev.1m
+++ b/usr/src/man/man1m/getdev.1m
@@ -3,7 +3,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH getdev 1M "5 Jul 1990" "SunOS 5.11" "System Administration Commands"
+.TH GETDEV 1M "Jul 5, 1990"
.SH NAME
getdev \- lists devices based on criteria
.SH SYNOPSIS
@@ -35,24 +35,20 @@ list becomes a set of devices to be \fIexcluded\fR from the list. See
The following options are supported:
.sp
.ne 2
-.mk
.na
\fB\fB-a\fR\fR
.ad
.RS 6n
-.rt
Specifies that a device must match all criteria to be included in the list
generated by this command. The option has no effect if no criteria are defined.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-e\fR\fR
.ad
.RS 6n
-.rt
Specifies that the list of devices which follows on the command line should be
\fIexcluded\fR from the list generated by this command. Without the \fB-e\fR
the named devices are \fIincluded\fR in the generated list. The flag has no
@@ -65,12 +61,10 @@ effect if no devices are defined.
The following operands are supported:
.sp
.ne 2
-.mk
.na
\fB\fIcriteria\fR\fR
.ad
.RS 12n
-.rt
Defines the criteria that a device must match to be included in the generated
list. \fIcriteria\fR is specified by expressions.
.sp
@@ -78,47 +72,39 @@ There are four possible expression types which the criteria specified in the
\fIcriteria\fR argument may follow:
.sp
.ne 2
-.mk
.na
\fB\fIattribute\fR\fB=\fR\fIvalue\fR\fR
.ad
.RS 20n
-.rt
Selects all devices whose attribute \fIattribute\fR is defined and is equal to
\fIvalue\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fIattribute\fR\fB!=\fR\fIvalue\fR\fR
.ad
.RS 20n
-.rt
Selects all devices whose attribute \fIattribute\fR is defined and does not
equal \fIvalue\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fIattribute\fR\fB:*\fR\fR
.ad
.RS 20n
-.rt
Selects all devices which have the attribute \fIattribute\fR defined.
.RE
.sp
.ne 2
-.mk
.na
\fB\fIattribute\fR\fB!:*\fR\fR
.ad
.RS 20n
-.rt
Selects all devices which do not have the attribute \fIattribute\fR defined.
.RE
@@ -128,12 +114,10 @@ available attributes.
.sp
.ne 2
-.mk
.na
\fB\fIdevice\fR\fR
.ad
.RS 12n
-.rt
Defines the devices which should be included in the generated list. This can be
the pathname of the device or the device alias.
.RE
@@ -144,47 +128,39 @@ the pathname of the device or the device alias.
The following exit values are returned:
.sp
.ne 2
-.mk
.na
\fB\fB0\fR\fR
.ad
.RS 5n
-.rt
Successful completion.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB1\fR\fR
.ad
.RS 5n
-.rt
Command syntax was incorrect, invalid option was used, or an internal error
occurred.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB2\fR\fR
.ad
.RS 5n
-.rt
Device table could not be opened for reading.
.RE
.SH FILES
.sp
.ne 2
-.mk
.na
\fB\fB/etc/device.tab\fR\fR
.ad
.RS 19n
-.rt
.RE