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

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

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

streams(7)<br />

I MNAME<br />

the argument is not valid.<br />

ioetl(fd, I_MNAME, &par)<br />

union {<br />

int depth;<br />

ehar buff[FMNAMESZ+l];<br />

} par;<br />

streams(7)<br />

This ioctl returns the name of the module or<br />

driver at the depth on the stream specified by the<br />

parameter. The stream head is at depth O. The<br />

last module found on the stream will be the<br />

driver.<br />

Note: this ioctl is not necessarily provided on all<br />

systems that provide a stream interface. It<br />

should not be used if program portability is a<br />

factor.<br />

Errors:<br />

EFAULT if the address of the parameter is invalid<br />

EINVAL if the depth is less than 0 or references<br />

a module past the driver at the end of the stream<br />

Terminal Lines<br />

When using a stream based terminal, it is usually necessary to<br />

push a line discipline module onto the stream before use. In almost<br />

all cases this is done by jete/getty or /ete/init<br />

when you log onto your system. When you are opening an unused<br />

terminal line it may then be required. Pushing more than one line<br />

discipline onto a stream should be avoided as the results are<br />

undefined <strong>and</strong> will not be useful. Two methods are provided to<br />

make pushing line disciplines easier. They both can be used on<br />

non stream based character drivers without any undue effect <strong>and</strong><br />

they will avoid the multiple pushing of line disciplines if one is already<br />

pushed.<br />

line push(3) is a library routine that is passed the file descriptor<br />

of <strong>and</strong> open device (from open(2». It will push a line discipline<br />

onto the device if it is a streaming device <strong>and</strong> there is not one<br />

pushed already.<br />

February, 1990<br />

Revision C<br />

6

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

Saved successfully!

Ooh no, something went wrong!