/DragonOS-0.1.5/user/libs/libc/src/ |
D | stdio.c | 61 FILE *fopen(const char *restrict pathname, const char *restrict mode) in fopen() argument 67 if (strcmp(mode, "r") == 0) in fopen() 69 else if (strcmp(mode, "r+") == 0) in fopen() 71 else if (strcmp(mode, "w") == 0) in fopen() 73 else if (strcmp(mode, "w+") == 0) in fopen() 75 else if (strcmp(mode, "a") == 0) in fopen() 77 else if (strcmp(mode, "a+") == 0) in fopen()
|
/DragonOS-0.1.5/user/libs/libc/src/sys/ |
D | stat.c | 4 int mkdir(const char *path, mode_t mode) in mkdir() argument 6 return syscall_invoke(SYS_MKDIR, (uint64_t)path, (uint64_t)mode, 0, 0, 0, 0, 0, 0); in mkdir()
|
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | VFS.h | 93 #define vfs_file_can_read(file) (((file)->mode) & VFS_FILE_MODE_READ) 94 #define vfs_file_can_write(file) (((file)->mode) & VFS_FILE_MODE_WRITE) 95 #define vfs_file_can_rw(file) ((((file)->mode) & VFS_FILE_MODE_RW) == VFS_FILE_MODE_RW) 104 uint64_t mode; member 139 …ng (*create)(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *dest_dEntry, int mode); 153 long (*mkdir)(struct vfs_index_node_t *inode, struct vfs_dir_entry_t *dEntry, int mode);
|
D | core.rs | 187 pub fn do_open(path: &str, mode: FileMode) -> Result<i32, i32> { in do_open() 198 if mode.contains(FileMode::O_CREAT) in do_open() 199 && !mode.contains(FileMode::O_DIRECTORY) in do_open() 219 if mode.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in do_open() 224 if mode.contains(FileMode::O_TRUNC) in do_open() 225 && (mode.contains(FileMode::O_RDWR) || mode.contains(FileMode::O_WRONLY)) in do_open() 232 let mut file: File = File::new(inode, mode)?; in do_open() 235 if mode.contains(FileMode::O_APPEND) { in do_open()
|
D | file.rs | 86 mode: FileMode, field 99 pub fn new(inode: Arc<dyn IndexNode>, mode: FileMode) -> Result<Self, i32> { in new() 104 mode, in new() 201 if self.mode == FileMode::O_WRONLY { in readable() 212 if self.mode == FileMode::O_RDONLY { in writeable()
|
D | mount.rs | 141 mode: u32, in create_with_data() 146 .create_with_data(name, file_type, mode, data); in create_with_data() 210 mode: u32, in create() 213 inner_inode: self.inner_inode.create(name, file_type, mode)?, in create()
|
D | mod.rs | 186 mode: u32, in create() 189 return self.create_with_data(name, file_type, mode, 0); in create() 467 pub mode: u32, field
|
D | syscall.rs | 273 let mode = regs.r9; in sys_mkdir() localVariable 284 return match do_mkdir(&path.trim(), FileMode::from_bits_truncate(mode as u32)) { in sys_mkdir()
|
/DragonOS-0.1.5/user/libs/libc/src/include/export/ |
D | dirent.h | 35 #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT) argument
|
D | stdio.h | 56 FILE *fopen(const char *restrict pathname, const char *restrict mode);
|
/DragonOS-0.1.5/ |
D | bochsrc | 8 # ata0-master: type=disk, path="/data/home/longjin/code/hd.img", mode=flat 14 ata0-master: type=disk, path="bin/disk.img", mode=flat 45 speaker: enabled=1, mode=system 48 com1: enabled=1, mode=null
|
/DragonOS-0.1.5/tools/ |
D | list_contributors.py | 25 if args.mode == 'all': 27 elif args.mode == 'short':
|
D | .gdbinit | 3 set follow-fork-mode child
|
/DragonOS-0.1.5/kernel/src/driver/interrupt/apic/ |
D | apic_timer.h | 49 static __always_inline void apic_timer_set_LVT(uint32_t vector, uint32_t mask, uint32_t mode) in apic_timer_set_LVT() argument 51 register uint32_t val = (mode << 17) | vector | (mask ? (APIC_LVT_INT_MASKED) : 0); in apic_timer_set_LVT()
|
/DragonOS-0.1.5/user/libs/libc/src/include/export/sys/ |
D | stat.h | 19 int mkdir(const char *path, mode_t mode);
|
/DragonOS-0.1.5/kernel/src/filesystem/devfs/ |
D | null_dev.rs | 49 mode: 0o666, in new() 100 inode.metadata.mode = metadata.mode; in set_metadata()
|
D | zero_dev.rs | 49 mode: 0o666, in new() 100 inode.metadata.mode = metadata.mode; in set_metadata()
|
D | mod.rs | 221 mode: mode_, in new_with_parent() 301 mode: _mode, in do_create_with_data() 337 mode: u32, in create_with_data() 343 return self.do_create_with_data(guard, name, file_type, mode, data); in create_with_data() 430 inode.metadata.mode = metadata.mode; in set_metadata()
|
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 54 mode: 0o666, in new() 105 inode.metadata.mode = metadata.mode; in set_metadata()
|
/DragonOS-0.1.5/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 48 mode: 0o666, in new() 137 inode.metadata.mode = metadata.mode; in set_metadata()
|
/DragonOS-0.1.5/kernel/src/libs/ |
D | lockref.rs | 53 fn cmpxchg_loop(&mut self, mode: CmpxchgMode) -> Result<i32, i32> { in cmpxchg_loop() 70 match mode { in cmpxchg_loop() 123 fn cmpxchg_loop(&mut self, mode: CmpxchgMode) -> Result<i32, i32> { in cmpxchg_loop()
|
/DragonOS-0.1.5/kernel/src/filesystem/ramfs/ |
D | mod.rs | 95 mode: 0o777, in new() 217 inode.metadata.mode = metadata.mode; in set_metadata() 238 mode: u32, in create_with_data() 268 mode: mode, in create_with_data()
|
/DragonOS-0.1.5/kernel/src/filesystem/procfs/ |
D | mod.rs | 253 mode: 0o777, in new() 454 inode.metadata.mode = metadata.mode; in set_metadata() 475 mode: u32, in create_with_data() 506 mode: mode, in create_with_data()
|
/DragonOS-0.1.5/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.3.md | 52 - libc: new: 简单添加了`fopen()`对mode参数的处理。请注意,它没有完全遵循posix,也与Linux的不一致,将来使用Rust的时候完善它。 (#141) 180 简单添加了fopen对mode参数的处理。请注意,它没有完全遵循posix,也与Linux的不一致,将来使用Rust的时候完善它。 (#141)
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 193 mode: 0o777, in new() 305 mode: 0o777, in new()
|