ttymap(1M) DG/UX R4.11 ttymap(1M)
NAME
ttymap - install and update /etc/ttymap based on /dev and
/etc/ttysrch
SYNOPSIS
/usr/sbin/ttymap
DESCRIPTION
The ttymap command creates and updates /etc/ttymap with information
from the /dev directory tree and the /etc/ttysrch file.
The ttymap command is run during system initialization to create the
/etc/ttymap file. The /etc/ttymap file is used by the ttyname
library function to search for terminal and terminal-related device
files. The command populates /etc/ttymap with a list of device files
indexed by device ID and file system ID, and with a time-stamped map
of directories within /dev.
The ttyname(3C) library function attempts to find devices by lookup
based on device number and file system ID. If a candidate with
matching device and file system IDs is found, ttyname checks its
inode number. If no match is found, ttyname checks each directory in
the map to see if it is newer than the time stamp in the /etc/ttymap
file. If a newer directory is found, ttyname searches the directory
for device files and recursively searches any newer subdirectories.
The /etc/ttysrch file can be used to specify directories that should
be ignored, which decreases the size of the /etc/ttymap file,
providing faster lookup, and to specify directories that contain
clone devices, which allows ttyname to accept device files that do
not match on inode number.
FILES
/etc/ttysrch
/etc/ttymap
/dev/*
REFERENCES
ttyname(3C), ttysrch(4)
DIAGNOSTICS
ttymap returns 0 on success or 1 on error.
Licensed material--property of copyright holder(s)