Function arceos_posix_api::sys_open
source · pub fn sys_open(filename: *const c_char, flags: c_int, mode: mode_t) -> c_int
Available on crate feature
fs
only.Expand description
Open a file by filename
and insert it into the file descriptor table.
Return its index in the file table (fd
). Return EMFILE
if it already
has the maximum number of files open.