constype(1M) —
NAME
constype − report console type
SYNOPSIS
/etc/constype [−d devicename]
DESCRIPTION
constype writes the selected console’s type to standard output. It also writes the major and minor device numbers of the selected console to standard output. This command with no argument returns the console’s type number defined in the sys/sysenvmt.h header file.
This command with the −d devicename option compares the major and minor device numbers of the devicename with the selected console’s major and minor number. If they are the same, a 1 is returned; if they are not the same, a 0 is returned. For example: /etc/constype −d /dev/tty00 returns 1 if the port /dev/tty00 is the console.
SEE ALSO
bootctl(1M), chgcon(1M), dd(1M), mkpart(1M).
DIAGNOSTICS
Exit status is -1 in case of an error.
ADDED VALUE
This entry, supplied by SunSoft, Inc., is an extension of UNIX System V.
\*U — Version 1.0