Function lrs::syscall::fcntl_setfd

Sets the file descriptor flags of a file descriptor.

Syntax

fn fcntl_setfd(fd: i32, arg: i32) -> i32

Arguments

NameDescription
fd

The file descriptor to modify.

arg

The new file descriptor flags.

Return value

Returns success or an error value.

See also