pub fn open(path: &str, flags: OpenFlags) -> Result<u32, SyscallError>
Open a file and return a file descriptor.
This is the main entry point for opening files from userspace.