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