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

01.01.2013 Views

I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I n\,.

IOCTL (2) IOCTL (2) NAME ioctl - control device SYNOPSIS ioctl (fildes, request, arg) DESCRIPTION Ioctl performs a variety of functions on character special files (devices). The writeups of various devices in Section 7 discuss how ioctl applies to them. Io ctl will fail if one or more of the following are true: Fildes is not a valid open file descriptor. [EBADF! Fildes is not associated with a character special device. [ENOTTYj Request or arg is not valid. See Section 7. [EINVALj RETURN VALUE If an error has occurred, a value of -1 is returned and errno is set to indicate the error. - 1 -

IOCTL (2) IOCTL (2)<br />

NAME<br />

ioctl - control device<br />

SYNOPSIS<br />

ioctl (fildes, request, arg)<br />

DESCRIPTION<br />

Ioctl performs a variety of functions on character special files<br />

(devices). The writeups of various devices in Section 7 discuss<br />

how ioctl applies to them.<br />

Io ctl will fail if one or more of the following are true:<br />

Fildes is not a valid open file descriptor. [EBADF!<br />

Fildes is not associated with a character special device.<br />

[ENOTTYj<br />

Request or arg is not valid. See Section 7. [EINVALj<br />

RETURN VALUE<br />

If an error has occurred, a value of -1 is returned and errno is set<br />

to indicate the error.<br />

- 1 -

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

Saved successfully!

Ooh no, something went wrong!