Searched refs:O_WRONLY (Results 1 – 9 of 9) sorted by relevance
16 #define O_WRONLY 00000001 // Open Write-only29 #define O_TRUNC 00001000 // 文件存在且是普通文件,并以O_RDWR或O_WRONLY打开,则它会被清空
14 #define O_WRONLY 00000001 // Open Write-only macro
18 #define O_WRONLY 00000001 // Open Write-only macro
79 o_flags = O_WRONLY; in fopen()
362 File::new(tty_inode.clone(), FileMode::O_WRONLY).expect("Init stdio: can't create stdout"); in init_stdio()363 let stderr = File::new(tty_inode.clone(), FileMode::O_WRONLY | FileMode::O_SYNC) in init_stdio()
41 const O_WRONLY = 0o1; constant225 if self.mode == FileMode::O_WRONLY { in readable()
169 && (mode.contains(FileMode::O_RDWR) || mode.contains(FileMode::O_WRONLY)) in open()
33 let write_file = File::new(pipe_ptr.clone(), FileMode::O_WRONLY)?; in pipe()
127 } else if accmode == FileMode::O_WRONLY.accmode() { in open()