DirectNET

Data Center Management Solutions including UPS Systems, Data Center Cooling, KVM over IP & IP Power Strips, Server Racks and Server Rack accessories; KVM Switches and KVM Extenders; Rackmount Monitors and Rackmount Keyboards.


NAVIGATION
Home
Store
INSIDE MAC
Television Shows
Broadcast Shows
Daily News Shows
Special Shows
EVENTS
DAILY TIPS
Design
Mac OS X
Mac OS X UNIX
COMMUNITY
Surveys
NEWS
Current
Press
Archive
FEATURES
Editorial
Dr. Mac
Reviews
Reader Reports
RESOURCES
FAQ
Documentation
Learning Center
MAN pages
Glossary
Tutorials
Tips
Links

OUR PARTNERS


     #include <sys/ioctl.h>

     int
     ioctl(int d, unsigned long request, char *argp)


DESCRIPTION

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

     An  ioctl request has encoded in it whether the argument is an ``in'' pa-
     rameter or ``out'' parameter, 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

     Ioctl() will fail if:

     [EBADF]       d is not a valid descriptor.

     [ENOTTY]      d is not associated with a character special device.

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

     [EINVAL]      Request or argp is not valid.


SEE ALSO

     mt(1),  cdio(1),  chio(1),  execve(2),  fcntl(2),  tty(4),  intro(4)


HISTORY

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

4th Berkeley Distribution      December 11, 1993                             1

Copyright © 2000-2010 Inside Mac Media, Inc. All rights reserved.
Apple assumes no responsibility with regard to the selection, performance, or use of the products or services. All understandings, agreements, or warranties, if any, take place directly between the vendors and prospective users.
Apple, the Apple logo, Mac, PowerMac G4, PowerMac G5, Xserve, Xserve RAID, PowerBook, iBook, Airport, AirPort Extreme, iMac, eMac, iLife, iMovie, iCal, iPhoto, iTunes, QuickTime, FireWire, iPod, iSight, AppleWorks, Macintosh, Jaguar, Panther, Mac OS, Mac OS X and Mac OS X Server are trademarks of Apple Computer, Inc.