nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_fcntl()

int nrf_fcntl ( int  fd,
int  cmd,
int  flags 
)

#include <nrf_modem/include/nrf_socket.h>

Function for controlling file descriptor options.

Set or get file descriptor options or flags. For a list of supported commands, refer to File descriptor control option commands.. For a list of supported flags, refer to File descriptor control option flags..

Parameters
fdThe descriptor to set options on.
cmdThe command class for options.
flagsThe flags to set.
Returns
Value dependent on command class: NRF_F_GETFL - Value of file status flags. -1 on error, and errno indicates the reason for failure. 0 otherwise.