Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 1 – 8 of 8) sorted by relevance

/DragonOS/user/apps/test_uart/
H A Dmain.c8 int fd = open("/dev/char/uart:1088", O_WRONLY | O_NONBLOCK); in main()
15 fd = open("/dev/char/uart:1088", O_WRONLY | O_NONBLOCK); in main()
/DragonOS/kernel/src/process/
H A Dstdio.rs22 File::new(tty_inode.clone(), FileMode::O_WRONLY).expect("Init stdio: can't create stdout"); in stdio_init()
23 let stderr = File::new(tty_inode.clone(), FileMode::O_WRONLY | FileMode::O_SYNC) in stdio_init()
/DragonOS/kernel/src/common/
H A Dfcntl.h14 #define O_WRONLY 00000001 // Open Write-only macro
/DragonOS/user/apps/test_mkfifo/
H A Dmain.c59 pipe_fd = open(PIPE_NAME, O_WRONLY); in main()
/DragonOS/kernel/src/ipc/
H A Dpipe.rs87 if mode.contains(FileMode::O_WRONLY) { in poll()
289 if mode.contains(FileMode::O_WRONLY) { in open()
317 if mode.contains(FileMode::O_WRONLY) { in close()
H A Dsyscall.rs73 FileMode::O_WRONLY | (flags & (FileMode::O_NONBLOCK | FileMode::O_DIRECT)), in pipe2()
76 FileMode::O_WRONLY | (flags & (FileMode::O_NONBLOCK | FileMode::O_DIRECT)), in pipe2()
/DragonOS/kernel/src/filesystem/vfs/
H A Dopen.rs140 && (how.o_flags.contains(FileMode::O_RDWR) || how.o_flags.contains(FileMode::O_WRONLY)) in do_sys_openat2()
H A Dfile.rs75 const O_WRONLY = 0o1; constant
408 if *self.mode.read() == FileMode::O_WRONLY { in readable()