xref: /titanic_51/usr/src/cmd/Adm/ttysrch (revision c10c16dec587a0662068f6e2991c29ed3a9db943)
1#
2# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# CDDL HEADER START
6#
7# The contents of this file are subject to the terms of the
8# Common Development and Distribution License (the "License").
9# You may not use this file except in compliance with the License.
10#
11# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12# or http://www.opensolaris.org/os/licensing.
13# See the License for the specific language governing permissions
14# and limitations under the License.
15#
16# When distributing Covered Code, include this CDDL HEADER in each
17# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18# If applicable, add the following below this CDDL HEADER, with the
19# fields enclosed by brackets "[]" replaced with your own identifying
20# information: Portions Copyright [yyyy] [name of copyright owner]
21#
22# CDDL HEADER END
23#
24#	This file is used by ttyname(3C) to minimize search time
25#	during attempts to determine the name of a terminal device.
26#
27#	This is done by providing the names of directories which
28#	are most likely to contain device entries for terminal
29#	devices. These directories will be searched in the order
30#	listed prior to an exhaustive search of the rest of /dev.
31#
32#	Each line contains the name of a directory (which must
33#	begin with "/dev") and (optionally) a set of flags which
34#	modify the criteria used to determine a match. By default,
35#	an exact match requires that the major/minor device number
36#	(the M flag), the file system identifier (the F flag), and
37#	the inode number (the I flag) all match.  Normally, a partial
38#	match on the major/minor device and the file system identifier
39#	is accepted only after exhausting all entries under /dev.
40#	By specifying only the M and F flags, an exact match will
41#	be accepted regardless of the value of the inode number as
42#	soon as it is found.  This is especially useful for cloned
43#	devices, which generally will not match inode numbers.
44#
45#	For additional information see ttysrch(4).
46#
47# EXAMPLE:
48#
49#	/dev/slan	MF
50#
51#	This would improve performance for Starlan network connections
52#	if all Starlan network clone device entries were contained
53#	in the /dev/slan directory.
54#
55/dev/pts
56/dev/vt
57/dev/term
58/dev/zcons
59