include/sys/ioctl.h File Reference
Go to the source code of this file.
|
Defines |
#define | _ABLE_CLIB_SYS_IOCTL_H 1 |
Functions |
int | ioctl (int fd, long cmd, void *argp) |
| Miscellaneous control of a file descriptor.
|
Define Documentation
#define _ABLE_CLIB_SYS_IOCTL_H 1 |
Function Documentation
int ioctl |
( |
int |
fd, |
|
|
long |
cmd, |
|
|
void * |
argp | |
|
) |
| | |
Miscellaneous control of a file descriptor.
- Parameters:
-
| fd | A file descriptor returned from open or socket |
| cmd | The ioctl command. |
| argp | The arguments to the ioctl. |
- Returns:
- 0 on success, -1 on error and errno set.