XSI Streams option group.
More...
|
| #define | FIONBIO ZFD_IOCTL_FIONBIO |
| | Set or clear non-blocking I/O mode on a file descriptor.
|
| |
| #define | FIONREAD ZFD_IOCTL_FIONREAD |
| | Return the number of bytes available to read without blocking.
|
| |
|
| int | ioctl (int fd, unsigned long request,...) |
| | Perform a device-specific control operation.
|
| |
XSI Streams option group.
◆ FIONBIO
| #define FIONBIO ZFD_IOCTL_FIONBIO |
Set or clear non-blocking I/O mode on a file descriptor.
Definition at line 26 of file ioctl.h.
◆ FIONREAD
| #define FIONREAD ZFD_IOCTL_FIONREAD |
Return the number of bytes available to read without blocking.
Definition at line 28 of file ioctl.h.
◆ ioctl()
| int ioctl |
( |
int |
fd, |
|
|
unsigned long |
request, |
|
|
|
... |
|
) |
| |
Perform a device-specific control operation.
- Parameters
-
| fd | File descriptor. |
| request | Implementation-defined request code. |
| ... | Optional argument (typically a pointer or int) whose type is determined by request. |
- Returns
- Request-specific return value on success, or -1 with errno set.
- See also
- https://pubs.opengroup.org/onlinepubs/9699919799/functions/ioctl.html