MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / open

Function open

euralios_std/src/syscalls.rs:348–350  ·  view source on GitHub ↗
(path: T, flags: u64)

Source from the content-addressed store, hash-verified

346/// O_CREATE and O_TRUNCATE
347#[inline]
348pub fn open<T: AsRef<OsStr>>(path: T, flags: u64) -> Result<CommHandle, SyscallError> {
349 _open(path.as_ref().to_str().unwrap(), flags)
350}
351
352fn _open(path: &str, flags: u64) -> Result<CommHandle, SyscallError> {
353 let error: u64;

Callers 14

_openMethod · 0.70
createMethod · 0.70
openMethod · 0.70
read_dirFunction · 0.70
remove_fileFunction · 0.70
exec_pathFunction · 0.50
gopherFunction · 0.50
mainFunction · 0.50
exec_pathFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 3

_openFunction · 0.85
to_strMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected