Home
last modified time | relevance | path

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

/DragonOS-0.1.2/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.2/kernel/src/libs/
Dprintk.rs98 pub fn __write_string(&mut self, s: &str) { in __write_string()
99 let str_to_print = self.__utf8_to_ascii(s); in __write_string()
105 pub fn __write_string_color(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color()
106 let str_to_print = self.__utf8_to_ascii(s); in __write_string_color()
115 pub fn __utf8_to_ascii(&self, s: &str) -> Vec<u8> { in __utf8_to_ascii()
116 let mut ascii_str: Vec<u8> = Vec::with_capacity(s.len() + 1); in __utf8_to_ascii()
117 for byte in s.bytes() { in __utf8_to_ascii()
132 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
133 self.__write_string(s); in write_str()
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 …]
Dlz4.c197 void *LZ4_malloc(size_t s);
198 void *LZ4_calloc(size_t n, size_t s);
200 #define ALLOC(s) LZ4_malloc(s) argument
201 #define ALLOC_AND_ZERO(s) LZ4_calloc(1, s) argument
205 #define ALLOC(s) kmalloc(s, 0) argument
206 #define ALLOC_AND_ZERO(s) kzalloc(s, 0) argument
211 #define MEM_INIT(p, v, s) memset((p), (v), (s)) argument
437 const BYTE *s = (const BYTE *)srcPtr; in LZ4_wildCopy8() local
442 LZ4_memcpy(d, s, 8); in LZ4_wildCopy8()
444 s += 8; in LZ4_wildCopy8()
[all …]
/DragonOS-0.1.2/kernel/src/process/
DMakefile15 $(CC) -E proc.S > _proc.s
16 as $(ASFLAGS) -o procs.o _proc.s
/DragonOS-0.1.2/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.2/user/libs/libc/src/
Dprintf.c12 static int skip_and_atoi(const char **s) in skip_and_atoi() argument
19 while (is_digit(**s)) in skip_and_atoi()
21 ans = ans * 10 + (**s) - '0'; in skip_and_atoi()
22 ++(*s); in skip_and_atoi()
77 char *str = NULL, *s = NULL; in vsprintf() local
225 s = va_arg(args, char *); in vsprintf()
226 if (!s) in vsprintf()
227 s = &__end_zero_char; in vsprintf()
228 len = strlen(s); in vsprintf()
250 *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
Dstring.h12 size_t strlen(const char *s);
/DragonOS-0.1.2/kernel/src/exception/
DMakefile8 $(CC) -E entry.S > _entry.s
9 as $(ASFLAGS) -o entry.o _entry.s
/DragonOS-0.1.2/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.2/user/
DMakefile5 GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ sys_api_lib
/DragonOS-0.1.2/
D.gitignore10 *.s
DREADME_EN.md26 - [How to run DragonOS on a computer's virtual machine? || Long Jin's blog](https://longjin666.cn/?…
97 If you find any violation of the open source license, we welcome you to send email feedback! Let's
117 - Intel® 64 and IA-32 Architectures Software Developer’s Manual
DREADME.md127 - Intel® 64 and IA-32 Architectures Software Developer’s Manual
DLICENSE16 Foundation's software and to any other program whose authors commit to
43 Also, for each author's protection and ours, we want to make certain
54 patent must be licensed for everyone's free use or not licensed at all.
79 1. You may copy and distribute verbatim copies of the Program's
293 <one line to give the program's name and a brief idea of what it does.>
/DragonOS-0.1.2/docs/userland/libc/apis/api-list/
Dstring.md9 ``size_t strlen(const char *s)`` : 返回字符串长度
/DragonOS-0.1.2/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.2/docs/community/code_contribution/
Dcoding-style.md126 void *func(char* s, int **p);
/DragonOS-0.1.2/kernel/src/filesystem/procfs/
Dprocfs.c93 void data_puts(struct procfs_file_private_data *fdata, const char *s) in data_puts() argument
95 int len = strlen(s); in data_puts()
101 strncpy(fdata->rbuffer + fdata->readlen, s, len); in data_puts()
/DragonOS-0.1.2/kernel/
Dcbindgen.toml16 header = "/* DragonOS's C FFI for rust. This file is licensed under GPLv2 */"
61 # Whether cbindgen's default C/C++ standard imports should be suppressed. These
121 # * "doxy": like C, but with leading *'s on each line
122 # * "auto": "c++" if that's the language, "doxy" otherwise
156 # A list of substitutions for converting cfg's to ifdefs. cfgs which aren't
376 # type's body. Otherwise they will be emitted trailing and with the type's name
421 # it also assumed that the enum's name is PascalCase.
494 # properly interoperate with eachother's notions of destructors. Also, this may
613 # being expanded. The crate's `Cargo.toml` must take care of enabling the
/DragonOS-0.1.2/docs/introduction/
Dbuild_system.md94 curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
/DragonOS-0.1.2/kernel/src/ipc/
Dsignal.rs534 let s = pending.signal; in next_signal() localVariable
538 let x = s & (!m); in next_signal()
/DragonOS-0.1.2/docs/kernel/core_api/
Dkernel_api.md447 #### `int strlen(const char *s)`