fcntl

Function fcntl 

Source
pub fn fcntl(fd: usize, cmd_raw: i32, arg: usize) -> isize
Expand description

fcntl - 文件描述符操作

§参数

  • fd: 文件描述符
  • cmd: fcntl 命令
  • arg: 命令参数(根据 cmd 的不同而不同)

§返回值

成功返回非负值,失败返回负 errno