01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

XT(7)<br />

NAME<br />

xt - multiplexed tty driver for AT&T windowing terminals<br />

XT( 7)<br />

DESCRIPTION<br />

The xt driver provides virtual tty(7) circuits multiplexed onto real tty (7)<br />

lines. It interposes its own channel multiplexing protocol as a line dis- �<br />

cipline between the real device driver and the standard tty (7) line discip- )<br />

lines.<br />

Virtual tty (1) circuits are named by character-special files of the form<br />

!devlxt? ?? . Filenames end in three digits, where the first two represent<br />

the channel group and the last represents the virtual tty (7) number (0-7)<br />

of the channel group. Allocation of a new channel group is done dynamically<br />

by attempting to open a name ending in 0 with the O_EXCL flag<br />

set. After a successful open, the tty (1) file onto which the channels are to<br />

be multiplexed should be passed to xt via the XTIOCLINK ioctl (2)<br />

request. Afterwards, all the channels in the group will behave as normal<br />

tty (7) files, with data passed in packets via the real tty (1) line.<br />

The xt driver implements the protocol described in xtproto (S) and in<br />

layers(S). Packets are formatted as described in xtproto (S), while the<br />

contents of packets conform to the description in layers(S).<br />

There are three groups of ioctl (2) requests recognized by xt . The first<br />

group contains all the normal tty ioctl (2) requests described in termio (7),<br />

with the addition of the following:<br />

TIOCEXCL Set exclusive use mode; no further opens are permitted<br />

until the file has been closed.<br />

TIOCNXCL Reset exclusive use mode; further opens are once<br />

again permitted.<br />

The second group of ioctl(2) requests concerns control of the windowing<br />

terminal, and is described in the header file . The requests<br />

are as follows:<br />

JTYPE, JMPX Both return the value JMPX • These are used to<br />

identify a terminal device as an xt channel.<br />

JBOOT,JTERM Both generate an appropriate command packet to<br />

the windowing terminal affecting the layer associated<br />

with the file descriptor argument to ioctl (2).<br />

They may return the error code EIO if the system<br />

clist is empty.<br />

JTIMO, JTIMOM JTIMO specifies the timeouts in seconds, and<br />

JTIMOM in milliseconds. Invalid except on channel<br />

0. They may return the error code EIO if the<br />

system clist is empty.<br />

JWINSIZE<br />

JZOMBOOT<br />

Requires the address of a jwinsize structure as an<br />

argument The window sizes of the layer associated<br />

with the file descriptor argument to ioctl(2) are<br />

copied to the structure.<br />

Generate a command packet to the windowing terminal<br />

to enter download mode on the channel associated<br />

with the file descriptor argument to ioctl (2),<br />

like JBOOT; but when the download is finished,<br />

make the layer a zombie (ready for debugging). It<br />

- 1-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!