Home
last modified time | relevance | path

Searched refs:str (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.2/user/libs/libc/src/
Dprintf.c9 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags…
10 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags…
35 int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color) in put_string() argument
37 return syscall_invoke(SYS_PUT_STRING, (uint64_t)str, front_color, bg_color, 0, 0, 0, 0, 0); in put_string()
77 char *str = NULL, *s = NULL; in vsprintf() local
79 str = buf; in vsprintf()
93 *str = *fmt; in vsprintf()
94 ++str; in vsprintf()
198 *str++ = '%'; in vsprintf()
208 *str = ' '; in vsprintf()
[all …]
Dstdlib.c21 int atoi(const char *str) in atoi() argument
25 while (isspace(*str)) in atoi()
27 str++; in atoi()
30 switch (*str) in atoi()
36 str++; in atoi()
41 while (isdigit(*str)) in atoi()
43 n = 10 * n - (*str++ - '0'); in atoi()
Dstdlib.h35 int atoi(const char * str);
Dstdio.h31 int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color);
/DragonOS-0.1.2/kernel/src/libs/
Dprintk.c25 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags);
27 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags…
60 char *str = NULL, *s = NULL, *end = NULL; in __do_vsprintf() local
62 str = buf; in __do_vsprintf()
80 *str = *fmt; in __do_vsprintf()
81 ++str; in __do_vsprintf()
185 *str++ = '%'; in __do_vsprintf()
195 *str = ' '; in __do_vsprintf()
196 ++str; in __do_vsprintf()
200 *str++ = (unsigned char)va_arg(args, int); in __do_vsprintf()
[all …]
Dprintk.rs98 pub fn __write_string(&mut self, s: &str) { in __write_string() argument
105 pub fn __write_string_color(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color() argument
115 pub fn __utf8_to_ascii(&self, s: &str) -> Vec<u8> { in __utf8_to_ascii()
132 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
/DragonOS-0.1.2/kernel/src/driver/uart/
Duart.rs2 use core::{str, char, intrinsics::offset};
28 pub fn from_u16(val: u16) -> Result<Self, &'static str> { in from_u16() argument
92 pub fn uart_init(uart_port: &UartPort, baud_rate: u32) -> Result<i32, &'static str> { in uart_init() argument
93 let message: &'static str = "uart init."; in uart_init() variable
156 fn uart_send(uart_port: &UartPort, str: &str) { in uart_send() argument
159 for c in str.bytes() { in uart_send()
199 pub extern "C" fn c_uart_send_str(port: u16, str: *const u8) in c_uart_send_str()
203 while *offset(str, i) != '\0' as u8 { in c_uart_send_str()
204 c_uart_send(port, *offset(str, i)); in c_uart_send_str()
216 let message: &'static str = "uart init\n"; in c_uart_init() variable
Duart.h17 extern void c_uart_send_str(uint16_t port, const char *str);
/DragonOS-0.1.2/tools/
Dbatch_delete_loop.py7 print("Deleting: " + str(i))
8 os.system("sudo losetup -d /dev/loop" + str(i))
/DragonOS-0.1.2/kernel/src/debug/
Dkallsyms.c53 char str[512] = {0}; in read_symbol() local
54 int retval = fscanf(filp, "%llx %c %510s\n", &entry->vaddr, &entry->type, str); in read_symbol()
62 fgets(str, 512, filp); in read_symbol()
68 entry->symbol = strdup(str); in read_symbol()
69 entry->symbol_length = strlen(str) + 1; // +1的原因是.asciz指令会在字符串末尾自动添加结束符\0 in read_symbol()
/DragonOS-0.1.2/kernel/src/debug/traceback/
Dtraceback.c7 const char *str = (const char *)&kallsyms_names; in lookup_kallsyms() local
22 …printk("function:%s() \t(+) %04d address:%#018lx\n", &str[kallsyms_names_index[index]], addr - kal… in lookup_kallsyms()
/DragonOS-0.1.2/docs/userland/libc/apis/api-list/
Dstdlib.md18 ``int atoi(const char *str)`` 字符串转数字
Dstdio.md8 ``int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color)``
/DragonOS-0.1.2/kernel/src/common/
Dlz4.h108 #define LZ4_QUOTE(str) #str argument
109 #define LZ4_EXPAND_AND_QUOTE(str) LZ4_QUOTE(str) argument