Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.8/user/libs/libc/src/
Dstdio.c68 FILE *fopen(const char *restrict pathname, const char *restrict mode) in fopen() argument
87 int fd = open(pathname, o_flags); in fopen()
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs670 let pathname = args[1] as *const c_char; in handle() localVariable
672 let virt_pathname = VirtAddr::new(pathname as usize); in handle()
675 } else if pathname.is_null() { in handle()
679 let pathname: &CStr = unsafe { CStr::from_ptr(pathname) }; in handle() localVariable
681 let pathname: &str = pathname.to_str().map_err(|_| SystemError::EINVAL)?; in handle() localVariable
682 if pathname.len() >= MAX_PATHLEN { in handle()
685 return Ok(pathname.trim()); in handle()
687 let pathname = get_path(); in handle() localVariable
688 if pathname.is_err() { in handle()
689 Err(pathname.unwrap_err()) in handle()
[all …]
/DragonOS-0.1.8/user/libs/libc/src/include/export/
Dstdio.h56 FILE *fopen(const char *restrict pathname, const char *restrict mode);
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs346 pub fn unlinkat(_dirfd: i32, pathname: &str, flags: u32) -> Result<usize, SystemError> { in unlinkat()
354 match do_remove_dir(&pathname) { in unlinkat()
365 match do_unlink_at(&pathname, FileMode::from_bits_truncate(flags as u32)) { in unlinkat()