DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

NAME

pty - Display the pseudo ttys.

SYNOPSIS

pty

DESCRIPTION

The pty macro needs no arguments. It displays the currently configured pseudo ttys. It is the same as the pty command from crash.

The structure shown using pty is struct pt_ttys which is defined in /usr/include/sys/ptms.h.

A state of mopen means that the master side is open and sopen means that the slave side is open.

Typical output looks like this:


  S> pty
  ptms_tty TABLE SIZE = 64
  SLOT   MWQPTR   SWQPTR  PT_BUFP   TTYPID STATE
  0000 D139074C D130584C D13E3260 00003991 mopen sopen
  0001 D14A844C D150A84C D124D640 00003991 mopen sopen
  0002 D154224C D13E5C4C D1249B60 00003991 mopen sopen

DEFINED IN

sertty.k

SEE ALSO

queues

APPENDIX A: Alphabetic Index of Macros