posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
ioctl.h File Reference

POSIX device I/O control (<sys/ioctl.h>) More...

#include <zephyr/sys/fdtable.h>
Include dependency graph for ioctl.h:

Go to the source code of this file.

Macros

#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.
 

Functions

int ioctl (int fd, unsigned long request,...)
 Perform a device-specific control operation.
 

Detailed Description

POSIX device I/O control (<sys/ioctl.h>)

Provides ioctl() for performing device-specific control operations on file descriptors, along with the standard non-blocking and pending-read flags.

Note
sys/ioctl.h is not part of the strict POSIX.1-2017 standard but is a widely-supported extension available on Linux and BSD systems.

Definition in file ioctl.h.