Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 1 – 11 of 11) sorted by relevance

/DragonOS/user/apps/test_dup3/
H A Dmain.c6 int fd = open("/history_commands.txt", O_RDONLY); in main()
/DragonOS/kernel/src/common/
H A Dfcntl.h13 #define O_RDONLY 00000000 // Open Read-only macro
/DragonOS/user/apps/test_mkfifo/
H A Dmain.c37 pipe_fd = open(PIPE_NAME, O_RDONLY); in main()
/DragonOS/user/apps/test_fstat/
H A Dmain.c9 int fd = open("/bin/about.elf", O_RDONLY); in main()
/DragonOS/user/apps/test_fstatfs/
H A Dmain.c7 int fd = open("/bin/about.elf", O_RDONLY); in main()
/DragonOS/kernel/src/process/
H A Dstdio.rs20 File::new(tty_inode.clone(), FileMode::O_RDONLY).expect("Init stdio: can't create stdin"); in stdio_init()
H A Dexec.rs124 let file = File::new(inode, FileMode::O_RDONLY)?; in new()
/DragonOS/kernel/src/ipc/
H A Dpipe.rs75 if mode.contains(FileMode::O_RDONLY) { in poll()
286 if mode.contains(FileMode::O_RDONLY) { in open()
328 if mode.contains(FileMode::O_RDONLY) { in close()
H A Dsyscall.rs65 FileMode::O_RDONLY | (flags & FileMode::O_NONBLOCK), in pipe2()
68 FileMode::O_RDONLY, in pipe2()
/DragonOS/kernel/src/filesystem/vfs/
H A Dfile.rs73 const O_RDONLY = 0o0; constant
419 if *self.mode.read() == FileMode::O_RDONLY { in writeable()
H A Dsyscall.rs1320 FileMode::O_RDONLY.bits(), in stat()
1332 FileMode::O_RDONLY.bits(), in lstat()
1345 FileMode::O_RDONLY.bits(), in statfs()
1553 let file = File::new(inode, FileMode::O_RDONLY)?; in readlink_at()