xref: /haiku/headers/posix/sys/ioctl.h (revision 51978af14a173e7fae0563b562be5603bc652aeb)
1 /**
2  * @file sys/ioctl.h
3  * @brief I/O control functions
4  */
5 
6 #ifndef _SYS_IOCTL_H
7 #define _SYS_IOCTL_H
8 
9 /**
10  * @defgroup IOCTL sys/ioctl.h
11  * @brief I/O control functions
12  * @ingroup OpenBeOS_POSIX
13  * @{
14  */
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include <sys/ioccom.h>
21 #include <sys/filio.h>
22 #include <sys/socket.h>
23 
24 #ifndef _KERNEL_MODE
25   /** @fn int ioctl(int fd, ulong cmd, ...)
26    * Manipulates the characteristics of the affected descriptor. May be used
27    * on all forms of descriptor, including sockets and pipes. cmd should be one
28    * of the values given in
29    * @ref IOCTL_cmds
30    */
31   int ioctl(int, ulong, ...);
32 #endif /* !_KERNEL_MODE */
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 /** @} */
39 #endif /* _SYS_IOCTL_H */
40