nc::platform::c
pub fn creat(filename: &str, mode: mode_t) -> Result<i32, Errno>
Create a file. equals to call open() with flags O_CREAT|O_WRONLY|O_TRUNC.
open()
O_CREAT|O_WRONLY|O_TRUNC