Searched refs:o_flags (Results 1 – 2 of 2) sorted by relevance
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | open.rs | 155 o_flags: FileMode, in do_sys_open() 159 let how = OpenHow::new(o_flags, mode, OpenHowResolve::empty()); in do_sys_open() 186 if how.o_flags.contains(FileMode::O_CREAT) in do_sys_openat2() 187 && !how.o_flags.contains(FileMode::O_DIRECTORY) in do_sys_openat2() 210 if how.o_flags.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in do_sys_openat2() 216 let file: File = File::new(inode, how.o_flags)?; in do_sys_openat2() 219 if how.o_flags.contains(FileMode::O_APPEND) { in do_sys_openat2() 224 if how.o_flags.contains(FileMode::O_TRUNC) in do_sys_openat2() 225 && (how.o_flags.contains(FileMode::O_RDWR) || how.o_flags.contains(FileMode::O_WRONLY)) in do_sys_openat2()
|
H A D | syscall.rs | 407 pub o_flags: FileMode, field 413 pub fn new(mut o_flags: FileMode, mut mode: ModeType, resolve: OpenHowResolve) -> Self { in new() 414 if !o_flags.contains(FileMode::O_CREAT) { in new() 418 if o_flags.contains(FileMode::O_PATH) { in new() 419 o_flags = o_flags.intersection(FileMode::O_PATH_FLAGS); in new() 423 o_flags, in new() 432 let o_flags = FileMode::from_bits_truncate(posix_open_how.flags as u32); in from() localVariable 435 return Self::new(o_flags, mode, resolve); in from() 486 o_flags: u32, in open() 494 let open_flags: FileMode = FileMode::from_bits(o_flags).ok_or(SystemError::EINVAL)?; in open() [all …]
|