02.07.2013 Views

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

streams(7)<br />

shlr<br />

lines use this module.<br />

streams(7)<br />

The shell layering module. shlr responds to<br />

shell layering ioctls to implement shell layering<br />

on stream based ttys. Normally shl(1) is the<br />

only utility that uses this module.<br />

The streams system implements a number of ioctlst all of the ioctls<br />

described in termio(7) are provided for compatability. Some<br />

devices <strong>and</strong>/or modules may not respond to these calls. In particular<br />

many of the line discipline related ioctls will either fail or be<br />

ignored unless the module line has been pushed onto the stream.<br />

In addition the following streams related ioctls are supported, they<br />

are defined in the include file .<br />

I STR<br />

February, 1990<br />

RevisionC<br />

ioctl(fd, I_STR, &strioctl)<br />

struct strioctl strioctl;<br />

This ioctl builds an ioctl packet <strong>and</strong> sends it<br />

down the stream. It may be interpreted by any<br />

module on the stream or by the device at the<br />

end. The packet is returned with data <strong>and</strong> an indication<br />

of success or failure. The data structure<br />

strioctl is used to describe the packet to be<br />

sent. It has 4 fields:<br />

ic cmd<br />

ic timout<br />

ic len<br />

The comm<strong>and</strong> to be sent<br />

How long to wait for the ioctl<br />

to succeed before failing (in<br />

seconds), values 0 <strong>and</strong> -1 have<br />

special meaningst 0 means<br />

wait for the system default<br />

time, -1 means wait forever.<br />

Points to the address of the<br />

data to be sent down the<br />

stream, or the address at<br />

which data returned from the<br />

stream is to be stored.<br />

Is the length of the data to be<br />

sentt in by test or the size of<br />

the buffer into which returned<br />

data is to be stored.<br />

2

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

Saved successfully!

Ooh no, something went wrong!