Home
last modified time | relevance | path

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

123

/DragonOS/user/apps/test_eventfd/
H A Dmain.c14 ssize_t s; in main() local
31 s = write(efd, &u, sizeof(uint64_t)); in main()
32 if (s != sizeof(uint64_t)) in main()
43 s = read(efd, &u, sizeof(uint64_t)); in main()
44 if (s != sizeof(uint64_t)) in main()
/DragonOS/tools/debugging/logmonitor/src/
H A Dcommand.rs25 fn kmem_file_parser(s: &str) -> Result<String, String> { in kmem_file_parser()
26 log::warn!("kmem_file_parser: {}", s); in kmem_file_parser()
27 if s.len() == 0 { in kmem_file_parser()
30 return Ok(s.to_string()); in kmem_file_parser()
/DragonOS/kernel/src/common/
H A Dstring.h5 static inline int strlen(const char *s) { in strlen() argument
6 if (s == NULL) in strlen()
9 while (s[__res] != '\0') { in strlen()
/DragonOS/kernel/src/libs/
H A Dprintk.rs40 pub fn __write_string(&mut self, s: &str) { in __write_string()
46 let _ = tty.write(tty.core(), s.as_bytes(), s.len()); in __write_string()
48 let _ = textui_putstr(s, FontColor::WHITE, FontColor::BLACK); in __write_string()
51 let _ = textui_putstr(s, FontColor::WHITE, FontColor::BLACK); in __write_string()
58 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
59 self.__write_string(s); in write_str()
H A 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/user/apps/user-manage/
H A DREADME.md7 useradd -c \<comment\> -d \<home\> -G \<group\> -g \<gid\> -s \<shell\> -u \<uid\> username
16 -s Shell 文件 指定用户的登录 Shell
50 usermod -a -G<组 1,组 2,...> -c<备注> -d<登入目录> -G<组名> -l<名称> -s<登入终端> -u<用户 id> username
58 -s\<shell\>  修改用户登入后所使用的 shell。
/DragonOS/kernel/src/bpf/helper/
H A Dprint.rs16 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str()
17 print!("{}", s); in write_str()
/DragonOS/kernel/src/arch/riscv64/driver/
H A Dsbi.rs22 pub fn console_putstr(s: &[u8]) { in console_putstr()
24 for c in s { in console_putstr()
29 for c in s { in console_putstr()
/DragonOS/kernel/src/process/
H A Dexec.rs233 .map(|s| { in push_at()
234 self.push_str(ustack, s).expect("push_str failed"); in push_at()
242 .map(|s| { in push_at()
243 self.push_str(ustack, s).expect("push_str failed"); in push_at()
284 fn push_str(&self, ustack: &mut UserStack, s: &CString) -> Result<(), SystemError> { in push_str()
285 let bytes = s.as_bytes_with_nul(); in push_str()
/DragonOS/kernel/crates/rbpf/examples/
H A Dto_json.rs67 Some(s) => s, in main()
H A Dload_elf.rs60 Some(s) => s, in main()
/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs765 let s = e.short_name(); in is_empty() localVariable
766 if s == "." || s == ".." { in is_empty()
866 let short_name = if let FATDirEntryOrShortName::ShortName(s) = in rename()
869 s in rename()
915 let short_name = if let FATDirEntryOrShortName::ShortName(s) = in rename_across()
918 s in rename_across()
1495 FATRawDirEntry::Short(s) => { in get_dir_entry()
1501 Some(s.convert_to_dir_entry(( in get_dir_entry()
1645 FATRawDirEntry::Short(s) => s, in new()
1680 Some(s) => { in short_name()
[all …]
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/
H A Dbuild_ebpf.rs14 fn from_str(s: &str) -> Result<Self, Self::Err> { in from_str()
15 Ok(match s { in from_str()
/DragonOS/user/apps/user-manage/src/parser/
H A Dcmd.rs39 fn from(s: String) -> Self { in from()
40 match s.as_str() { in from()
/DragonOS/tools/
H A Dbuild_gcc_toolchain.sh89 sleep 0.3s
133 sleep 1s
164 sleep 1s
/DragonOS/user/apps/test-chown/
H A DREADME.md7 useradd -d /nonexistent -g 65534 -u 65534 -s /usr/local/bin/false nobody
/DragonOS/
H A D.gitignore12 *.s
/DragonOS/kernel/src/debug/
H A Dkallsyms.c54 char *s = fgets(str, sizeof(str), filp); in read_symbol() local
55 if (s != str) in read_symbol()
/DragonOS/user/port/binutils/2.38/
H A DDockerfile29 && rm /usr/bin/autoconf && ln -s /usr/bin/autoconf2.69 /usr/bin/autoconf
/DragonOS/kernel/src/driver/open_firmware/
H A Ddevice_node.rs86 self.inner.lock().sibling.as_ref().and_then(|s| s.upgrade()) in sibling()
/DragonOS/kernel/src/
H A DMakefile3 GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ kernel
/DragonOS/kernel/src/filesystem/sysfs/
H A Dfile.rs414 pub fn sysfs_emit_str(buf: &mut [u8], s: &str) -> Result<usize, SystemError> { in sysfs_emit_str()
415 let len = if buf.len() > s.len() { in sysfs_emit_str()
416 s.len() in sysfs_emit_str()
420 buf[..len].copy_from_slice(&s.as_bytes()[..len]); in sysfs_emit_str()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dserial8250_pio.rs194 fn send_bytes(&self, s: &[u8]) { in send_bytes()
199 for c in s { in send_bytes()
333 pub fn send_to_default_serial8250_pio_port(s: &[u8]) { in send_to_default_serial8250_pio_port()
335 port.send_bytes(s); in send_to_default_serial8250_pio_port()
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/
H A Dmm.rs41 .map(|s| s.clone()) in new()
/DragonOS/docs/community/code_contribution/
H A Dc-coding-style.md126 void *func(char* s, int **p);

123