Searched refs:O_RDONLY (Results 1 – 11 of 11) sorted by relevance
/DragonOS/user/apps/test_dup3/ |
H A D | main.c | 6 int fd = open("/history_commands.txt", O_RDONLY); in main()
|
/DragonOS/kernel/src/common/ |
H A D | fcntl.h | 13 #define O_RDONLY 00000000 // Open Read-only macro
|
/DragonOS/user/apps/test_mkfifo/ |
H A D | main.c | 37 pipe_fd = open(PIPE_NAME, O_RDONLY); in main()
|
/DragonOS/user/apps/test_fstat/ |
H A D | main.c | 9 int fd = open("/bin/about.elf", O_RDONLY); in main()
|
/DragonOS/user/apps/test_fstatfs/ |
H A D | main.c | 7 int fd = open("/bin/about.elf", O_RDONLY); in main()
|
/DragonOS/kernel/src/process/ |
H A D | stdio.rs | 28 File::new(tty_inode.clone(), FileMode::O_RDONLY).expect("Init stdio: can't create stdin"); in stdio_init()
|
H A D | exec.rs | 124 let file = File::new(inode, FileMode::O_RDONLY)?; in new()
|
/DragonOS/kernel/src/ipc/ |
H A D | pipe.rs | 75 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 D | syscall.rs | 65 FileMode::O_RDONLY | (flags & FileMode::O_NONBLOCK), in pipe2() 68 FileMode::O_RDONLY, in pipe2()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | file.rs | 75 const O_RDONLY = 0o0; constant 431 if *self.mode.read() == FileMode::O_RDONLY { in writeable()
|
H A D | syscall.rs | 1344 FileMode::O_RDONLY.bits(), in stat() 1356 FileMode::O_RDONLY.bits(), in lstat() 1369 FileMode::O_RDONLY.bits(), in statfs() 1577 let file = File::new(inode, FileMode::O_RDONLY)?; in readlink_at()
|