Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 34) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/libs/
Dprintk.rs112 pub fn __write_string(&mut self, s: &str) { in __write_string()
114 self.__write_string_on_stack(s); in __write_string()
117 let str_to_print = self.__utf8_to_ascii(s); in __write_string()
123 pub fn __write_string_color(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color()
125 self.__write_string_on_stack(s); in __write_string_color()
129 let str_to_print = self.__utf8_to_ascii(s); in __write_string_color()
157 pub fn __utf8_to_ascii(&self, s: &str) -> Vec<u8> { in __utf8_to_ascii()
158 let mut ascii_str: Vec<u8> = Vec::with_capacity(s.len() + 1); in __utf8_to_ascii()
159 for byte in s.bytes() { in __utf8_to_ascii()
171 fn __write_string_on_stack(&self, s: &str) { in __write_string_on_stack()
[all …]
Dprintk.c29 static int skip_and_atoi(const char **s) in skip_and_atoi() argument
36 while (is_digit(**s)) in skip_and_atoi()
38 ans = ans * 10 + (**s) - '0'; in skip_and_atoi()
39 ++(*s); in skip_and_atoi()
60 char *str = NULL, *s = NULL, *end = NULL; in __do_vsprintf() local
212 s = va_arg(args, char *); in __do_vsprintf()
213 if (!s) in __do_vsprintf()
214 s = &__end_zero_char; in __do_vsprintf()
215 len = strlen(s); in __do_vsprintf()
237 *str = *s; in __do_vsprintf()
[all …]
/DragonOS-0.1.8/kernel/src/common/
Dstring.h13 static inline int strlen(const char *s) in strlen() argument
15 if (s == NULL) in strlen()
18 while (s[__res] != '\0') in strlen()
/DragonOS-0.1.8/kernel/src/smp/
DMakefile9 $(CC) -E apu_boot.S > _apu_boot.s # 预处理
10 $(AS) $(ASFLAGS) -o apu_boot.o _apu_boot.s
/DragonOS-0.1.8/kernel/src/process/
DMakefile15 $(CC) -E proc.S > _proc.s
16 $(AS) $(ASFLAGS) -o procs.o _proc.s
Dexec.rs231 .map(|s| { in push_at()
232 self.push_str(ustack, s.as_str()).expect("push_str failed"); in push_at()
241 .map(|s| { in push_at()
242 self.push_str(ustack, s.as_str()).expect("push_str failed"); in push_at()
283 fn push_str(&self, ustack: &mut UserStack, s: &str) -> Result<(), SystemError> { in push_str()
285 self.push_slice(ustack, s.as_bytes())?; in push_str()
Dc_adapter.rs88 let s = state.as_ref().unwrap(); in rs_dup_fpstate() localVariable
89 let state: &mut FpState = Box::leak(Box::new(s.clone())); in rs_dup_fpstate()
/DragonOS-0.1.8/user/libs/libc/src/
Dprintf.c13 static int skip_and_atoi(const char **s) in skip_and_atoi() argument
20 while (is_digit(**s)) in skip_and_atoi()
22 ans = ans * 10 + (**s) - '0'; in skip_and_atoi()
23 ++(*s); in skip_and_atoi()
79 char *str = NULL, *s = NULL; in vsprintf() local
227 s = va_arg(args, char *); in vsprintf()
228 if (!s) in vsprintf()
229 s = &__end_zero_char; in vsprintf()
230 len = strlen(s); in vsprintf()
252 *str = *s; in vsprintf()
[all …]
Dstring.c3 size_t strlen(const char *s) in strlen() argument
6 while (s[__res] != '\0') in strlen()
DMakefile1 GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ kernel
Dstdio.c35 int puts(const char *s) in puts() argument
37 return put_string(s, COLOR_WHITE, COLOR_BLACK); in puts()
/DragonOS-0.1.8/kernel/src/exception/
DMakefile8 $(CC) -E entry.S > _entry.s
9 $(AS) $(ASFLAGS) -o entry.o _entry.s
/DragonOS-0.1.8/kernel/src/
DMakefile3 GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ kernel
25 $(CC) -E head.S > _head.s # 预处理
26 $(AS) $(ASFLAGS) -o head.o _head.s
/DragonOS-0.1.8/kernel/src/syscall/
Dsyscall.c69 ul do_put_string(char *s, uint32_t front_color, uint32_t background_color) in do_put_string() argument
72 printk_color(front_color, background_color, s); in do_put_string()
/DragonOS-0.1.8/
D.gitignore12 *.s
DREADME_EN.md15 - **To learn about development dynamics and development tasks, please visit DragonOS's zulip commun…
35 &emsp;&emsp;If you are willing to join us, you can visit DragonOS's zulip community, learn about de…
41 &emsp;&emsp;You can send an email to the project's maintainer: longjin. His email address is [longj…
45 …e the official language to post on the corresponding section of **[DragonOS's zulip community](htt…
56 Maintainer longjin's Email:longjin@DragonOS.org
100 If you find any violation of the open source license, we welcome you to send email feedback! Let's
118 - Intel® 64 and IA-32 Architectures Software Developer’s Manual
/DragonOS-0.1.8/tools/
Dbuild_gcc_toolchain.sh71 sleep 0.3s
112 sleep 1s
143 sleep 1s
DDockerfile16 RUN sed -i "s@http://\(deb\|security\).debian.org@http://mirrors.ustc.edu.cn@g" /etc/apt/sources.li…
26 RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y && \
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Dstring.md9 ``size_t strlen(const char *s)`` : 返回字符串长度
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs773 let s = e.short_name(); in is_empty() localVariable
774 if s == "." || s == ".." { in is_empty()
874 let short_name = if let FATDirEntryOrShortName::ShortName(s) = in rename()
877 s in rename()
1454 FATRawDirEntry::Short(s) => { in get_dir_entry()
1460 Some(s.to_dir_entry(( in get_dir_entry()
1604 FATRawDirEntry::Short(s) => s, in new()
1637 Some(s) => { in short_name()
1638 return s.name_to_string(); in short_name()
1657 FATDirEntry::VolId(s) => { in short_dir_entry()
[all …]
/DragonOS-0.1.8/user/libs/libc/src/include/export/
Dstring.h16 size_t strlen(const char *s);
Dstdio.h58 int puts(const char *s);
/DragonOS-0.1.8/docs/kernel/ktest/
Dktest-framework.md97 [ kTEST FAILED ] Ktest Assertion Failed, file:%s, Line:%d
106 &emsp;&emsp;格式化输出一行以`[ kTEST ] file:%s, Line:%d`开头的日志信息。
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs343 fn uart_send(uart_port: &UartPort, s: &str) { in uart_send()
346 for c in s.bytes() { in uart_send()
394 pub extern "C" fn c_uart_send_str(port: u16, s: *const u8) { in c_uart_send_str()
397 while *offset(s, i) != '\0' as u8 { in c_uart_send_str()
398 c_uart_send(port, *offset(s, i)); in c_uart_send_str()
/DragonOS-0.1.8/user/port/binutils/2.38/
DDockerfile29 && rm /usr/bin/autoconf && ln -s /usr/bin/autoconf2.69 /usr/bin/autoconf

12