Function sys_open

Source
pub fn sys_open(
    path: UserConstPtr<c_char>,
    flags: i32,
    mode: __kernel_mode_t,
) -> LinuxResult<isize>
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.