posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
XSI_STREAMS (_XOPEN_STREAMS)

XSI Streams option group. More...

Files

file  stropts.h
 XSI STREAMS interface (<stropts.h>)
 
file  ioctl.h
 POSIX device I/O control (<sys/ioctl.h>)
 

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

XSI Streams option group.

Macro Definition Documentation

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

Function Documentation

◆ ioctl()

int ioctl ( int  fd,
unsigned long  request,
  ... 
)

Perform a device-specific control operation.

Parameters
fdFile descriptor.
requestImplementation-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