Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 26) sorted by relevance

12

/DragonOS-0.1.5/user/libs/libc/src/
Dstdio.c61 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/
Dstat.c4 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/
DVFS.h93 #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);
Dcore.rs187 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()
Dfile.rs86 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()
Dmount.rs141 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()
Dmod.rs186 mode: u32, in create()
189 return self.create_with_data(name, file_type, mode, 0); in create()
467 pub mode: u32, field
Dsyscall.rs273 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/
Ddirent.h35 #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT) argument
Dstdio.h56 FILE *fopen(const char *restrict pathname, const char *restrict mode);
/DragonOS-0.1.5/
Dbochsrc8 # 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/
Dlist_contributors.py25 if args.mode == 'all':
27 elif args.mode == 'short':
D.gdbinit3 set follow-fork-mode child
/DragonOS-0.1.5/kernel/src/driver/interrupt/apic/
Dapic_timer.h49 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/
Dstat.h19 int mkdir(const char *path, mode_t mode);
/DragonOS-0.1.5/kernel/src/filesystem/devfs/
Dnull_dev.rs49 mode: 0o666, in new()
100 inode.metadata.mode = metadata.mode; in set_metadata()
Dzero_dev.rs49 mode: 0o666, in new()
100 inode.metadata.mode = metadata.mode; in set_metadata()
Dmod.rs221 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/
Dahci_inode.rs54 mode: 0o666, in new()
105 inode.metadata.mode = metadata.mode; in set_metadata()
/DragonOS-0.1.5/kernel/src/driver/keyboard/
Dps2_keyboard.rs48 mode: 0o666, in new()
137 inode.metadata.mode = metadata.mode; in set_metadata()
/DragonOS-0.1.5/kernel/src/libs/
Dlockref.rs53 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/
Dmod.rs95 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/
Dmod.rs253 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/
DV0.1.3.md52 - libc: new: 简单添加了`fopen()`对mode参数的处理。请注意,它没有完全遵循posix,也与Linux的不一致,将来使用Rust的时候完善它。 (#141)
180 简单添加了fopen对mode参数的处理。请注意,它没有完全遵循posix,也与Linux的不一致,将来使用Rust的时候完善它。 (#141)
/DragonOS-0.1.5/kernel/src/filesystem/fat/
Dfs.rs193 mode: 0o777, in new()
305 mode: 0o777, in new()

12