Function nrfxlib_sys::nrf_fcntl
source · pub unsafe extern "C" fn nrf_fcntl(
fd: c_int,
cmd: c_int,
flags: c_int
) -> c_int
Expand description
Function for controlling file descriptor options.
@details Set or get file descriptor options or flags. For a list of supported commands, refer to @ref nrf_fcnt_commands. For a list of supported flags, refer to @ref nrf_fcnt_flags.
fd
- The descriptor to set options on.cmd
- The command class for options.flags
- The 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.