/DragonOS/kernel/src/include/DragonOS/ |
H A D | stdint.h | 145 # define __INT64_C(c) c ## L argument 146 # define __UINT64_C(c) c ## UL argument 148 # define __INT64_C(c) c ## LL argument 149 # define __UINT64_C(c) c ## ULL argument 287 # define INT8_C(c) c argument 288 # define INT16_C(c) c argument 289 # define INT32_C(c) c argument 291 # define INT64_C(c) c ## L argument 293 # define INT64_C(c) c ## LL argument 297 # define UINT8_C(c) c argument [all …]
|
/DragonOS/build-scripts/kernel_build/src/cfiles/ |
H A D | mod.rs | 17 let mut c = cc::Build::new(); in build() localVariable 19 Self::setup_global_flags(&mut c); in build() 20 Self::setup_defines(&mut c); in build() 21 Self::setup_global_include_dir(&mut c); in build() 22 Self::setup_files(&mut c); in build() 23 c.compile("dragonos_kernel_cfiles"); in build() 26 fn setup_global_flags(c: &mut Build) { in setup_global_flags() 27 c.flag("-fno-builtin") in setup_global_flags() 36 current_cfiles_arch().setup_global_flags(c); in setup_global_flags() 39 fn setup_defines(c: &mut Build) { in setup_defines() [all …]
|
/DragonOS/build-scripts/kernel_build/src/cfiles/arch/ |
H A D | riscv64.rs | 10 fn setup_defines(&self, c: &mut cc::Build) { in setup_defines() 11 c.define("__riscv64__", None); in setup_defines() 12 c.define("__riscv", None); in setup_defines() 29 fn setup_global_flags(&self, c: &mut cc::Build) { in setup_global_flags() 31 c.compiler("riscv64-unknown-elf-gcc"); in setup_global_flags() 34 c.flag("-mcmodel=medany"); in setup_global_flags() 36 c.flag("-mabi=lp64d"); in setup_global_flags() 37 c.flag("-march=rv64gc"); in setup_global_flags()
|
H A D | x86_64.rs | 12 fn setup_defines(&self, c: &mut cc::Build) { in setup_defines() 13 c.define("__x86_64__", None); in setup_defines() 36 fn setup_global_flags(&self, c: &mut Build) { in setup_global_flags() 37 c.asm_flag("-m64"); in setup_global_flags() 38 c.flag("-mcmodel=large").flag("-m64"); in setup_global_flags()
|
H A D | mod.rs | 14 fn setup_defines(&self, c: &mut Build); in setup_defines() 16 fn setup_global_include_dir(&self, c: &mut HashSet<PathBuf>); in setup_global_include_dir() 18 fn setup_files(&self, c: &mut Build, files: &mut HashSet<PathBuf>); in setup_files() 21 fn setup_global_flags(&self, c: &mut Build); in setup_global_flags()
|
/DragonOS/docs/community/code_contribution/ |
H A D | c-coding-style.md | 23 ```c 51 ```c 67 ```c 82 ```c 95 ```c 105 ```c 116 ```c 124 ```c 131 ```c 137 ```c [all …]
|
/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | ntty.rs | 356 let mut c = buf[offset]; in receive_buf_standard() localVariable 363 c &= 0x7f; in receive_buf_standard() 369 c = (c as char).to_ascii_lowercase() as u8; in receive_buf_standard() 370 self.receive_char(c, tty.clone()) in receive_buf_standard() 377 c &= 0x7f; in receive_buf_standard() 383 c = (c as char).to_ascii_lowercase() as u8; in receive_buf_standard() 387 self.add_read_byte(c); in receive_buf_standard() 391 if ((c as usize) < self.char_map.size()) && self.char_map.get(c as usize).unwrap() { in receive_buf_standard() 393 self.receive_special_char(c, tty.clone(), lookahead_done); in receive_buf_standard() 395 self.receive_char(c, tty.clone()); in receive_buf_standard() [all …]
|
/DragonOS/kernel/src/libs/lib_ui/font/ |
H A D | spleen_font.rs | 9 fn index(&self, c: char) -> usize { in index() 10 let c = c as usize; in index() localVariable 11 match c { in index() 12 0..=255 => c, in index()
|
/DragonOS/user/apps/test_shm/ |
H A D | Makefile | 11 all: sender.c receiver.c test_info.c 12 $(CC) -static -o $(NAME_PREFIX)sender sender.c 13 $(CC) -static -o $(NAME_PREFIX)receiver receiver.c 14 $(CC) -static -o $(NAME_PREFIX)info test_info.c
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | virtual_console.rs | 315 pub fn translate(&mut self, c: &mut u32) -> (Option<u32>, bool) { in translate() 318 return (Some(*c), false); in translate() 322 let (ret, rescan) = self.translate_unicode(*c); in translate() 324 *c = ret; in translate() 329 return (Some(self.translate_ascii(*c)), false); in translate() 347 fn translate_unicode(&mut self, c: u32) -> (Option<u32>, bool) { in translate_unicode() 349 if (c & 0xc0) == 0x80 { in translate_unicode() 355 self.utf_char = (self.utf_char << 6) | (c & 0x3f); in translate_unicode() 364 let c = self.utf_char; in translate_unicode() localVariable 367 if c <= Self::UTF8_LENGTH_CHANGES[self.npar as usize - 1] in translate_unicode() [all …]
|
/DragonOS/kernel/src/arch/x86_64/include/asm/ |
H A D | asm.h | 32 #define CC_SET(c) "\n\t/* output condition code " #c "*/\n" argument 34 #define CC_OUT(c) "=@cc" #c argument 36 #define CC_SET(c) "\n\tset" #c " %[_cc_" #c "]\n" argument 37 #define CC_OUT(c) [_cc_##c] "=qm" argument 166 void *memset_c(void *dst, uint8_t c, size_t count) in memset_c() argument 171 *xs++ = c; in memset_c()
|
/DragonOS/user/apps/dmesg/ |
H A D | Makefile | 10 all: main.c dmesg.c 11 $(CC) -static -o dmesg main.c dmesg.c
|
H A D | main.c | 89 char c[2]; in main() local 90 c[0] = buf[i]; in main() 91 c[1] = '\0'; in main() 92 syscall(100000, &c[0], color, 0); in main()
|
/DragonOS/kernel/src/debug/ |
H A D | Makefile | 8 kallsyms.o: kallsyms.c 9 gcc -o kallsyms kallsyms.c 12 traceback.o: traceback/traceback.c 13 $(CC) $(CFLAGS) -c traceback/traceback.c -o traceback/traceback.o
|
/DragonOS/docs/_static/ |
H A D | dragonos-logo.svg | 1 …c-7.77-4.37-19.7-4.8-29.51-4.8-26.26,0-50.82,18.35-74.25,60.28l-33.46,172.43h-82.06Z"/><path class…
|
/DragonOS/user/apps/test_sqlite3/ |
H A D | Makefile | 12 all: main.c $(SQLITE3_DIR)/sqlite3.c 13 $(CC) -I $(SQLITE3_DIR) -static -o test_sqlite3 main.c $(SQLITE3_DIR)/sqlite3.c
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | mod.rs | 461 pub fn get_attr(c: u16, color_depth: u32) -> Self { in get_attr() 464 if Self::underline(c) { in get_attr() 467 if Self::reverse(c) { in get_attr() 470 if Self::blod(c) { in get_attr() 486 let mut c = src[i]; in update_attr() localVariable 489 c = 0xff; in update_attr() 492 c |= c >> 1; in update_attr() 495 c = !c; in update_attr() 498 dst[i] = c; in update_attr() 502 pub fn underline(c: u16) -> bool { in underline() [all …]
|
/DragonOS/docs/kernel/sched/ |
H A D | c_waiting.md | 31 ```c 41 ```c 82 ```c 106 ```c 110 ```c 145 ```c 159 ```c 171    kernel/sched/completion.c文件夹中,你可以看到 __test 开头的几个函数,他们是completion模块的测试代码,基本覆盖了completio…
|
/DragonOS/kernel/src/common/ |
H A D | printk.h | 16 #define is_digit(c) ((c) >= '0' && (c) <= '9') // 用来判断是否是数字的宏 argument
|
/DragonOS/user/apps/about/ |
H A D | Makefile | 12 all: version_header about.c 13 $(CC) -static -o about about.c 23 version_header: about.c
|
/DragonOS/user/apps/user-manage/ |
H A D | README.md | 7 useradd -c \<comment\> -d \<home\> -G \<group\> -g \<gid\> -s \<shell\> -u \<uid\> username 12 -c comment 指定一段注释性描述 50 usermod -a -G<组 1,组 2,...> -c<备注> -d<登入目录> -G<组名> -l<名称> -s<登入终端> -u<用户 id> username 54 -c<备注> 修改用户帐号的备注文字。
|
/DragonOS/kernel/src/arch/riscv64/driver/ |
H A D | sbi.rs | 24 for c in s { in console_putstr() 25 sbi_rt::console_write_byte(*c); in console_putstr() 29 for c in s { in console_putstr() 31 sbi_rt::legacy::console_putchar(*c as usize); in console_putstr()
|
/DragonOS/docs/userland/appdev/ |
H A D | c-cpp-quick-start.md | 10 musl-gcc -static -o hello hello.c 12 来编译一个hello.c文件。
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | entry.rs | 94 let mut current_cluster = if let Some(c) = in read() 97 c in read() 114 if let Ok(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster) { in read() 115 current_cluster = c; in read() 167 let mut current_cluster: Cluster = if let Some(c) = in write() 170 c in write() 183 if let Ok(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster) { in write() 184 current_cluster = c; in write() 260 let last_cluster = if let Some(c) = fs.get_last_cluster(self.first_cluster) { in ensure_len() 261 c in ensure_len() [all …]
|
/DragonOS/kernel/crates/rbpf/examples/ |
H A D | rbpf_plugin.rs | 29 memory_text.retain(|c| !c.is_whitespace()); in main() 83 program_text.retain(|c| !c.is_whitespace()); in main()
|