IPB
>  Man Pages > Unix > FreeBSD 6.2 > Section 2 > ioctl man page

ioctl man page

Section 2 - FreeBSD 6.2 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


IOCTL(2)                  FreeBSD System Calls Manual                 IOCTL(2)


NAME

     ioctl -- control device


LIBRARY

     Standard C Library (libc, -lc)


SYNOPSIS

     #include <sys/ioctl.h>

     int
     ioctl(int d, unsigned long request, ...);


DESCRIPTION

     The ioctl() system call manipulates the underlying device parameters of
     special files.  In particular, many operating characteristics of charac-
     ter special files (e.g. terminals) may be controlled with ioctl()
     requests.  The argument d must be an open file descriptor.

     The third argument to ioctl() is traditionally named char *argp.  Most
     uses of ioctl() in FreeBSD 3.0, however, require the third argument to be
     a caddr_t or an int.

     An ioctl() request has encoded in it whether the argument is an ``in''
     argument or ``out'' argument, and the size of the argument argp in bytes.
     Macros and defines used in specifying an ioctl request are located in the
     file <sys/ioctl.h>.


RETURN VALUES

     If an error has occurred, a value of -1 is returned and errno is set to
     indicate the error.


ERRORS

     The ioctl() system call will fail if:

     [EBADF]            The d argument is not a valid descriptor.

     [ENOTTY]           The d argument is not associated with a character spe-
                        cial device.

     [ENOTTY]           The specified request does not apply to the kind of
                        object that the descriptor d references.

     [EINVAL]           The request or argp argument is not valid.

     [EFAULT]           The argp argument points outside the process's allo-
                        cated address space.


SEE ALSO

     execve(2), fcntl(2), intro(4), tty(4)


HISTORY

     The ioctl() function appeared in Version 7 AT&T UNIX.

FreeBSD 6.2                    December 11, 1993                   FreeBSD 6.2


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Fri Sep 21 07:56:35 BST 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5059 hits)
(openSUSE 10.2)

adv_cap_autoneg man page (4731 hits)
(Solaris 10 11_06)

CPAN man page (4452 hits)
(Suse Linux 10.1)

ssh man page (4241 hits)
(Suse Linux 10.1)

svn man page (4118 hits)
(FreeBSD 6.2)

startproc man page (2159 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2104 hits)
(Solaris 10 11_06)

netcat man page (2088 hits)
(Suse Linux 10.1)

signal man page (1950 hits)
(Suse Linux 10.1)

pprosetup man page (1949 hits)
(Solaris 10 11_06)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Travel :: Electronic Design Bedfordshire :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum