/DragonOS-0.1.3/kernel/src/libs/ |
D | string.c | 11 char *strcpy(char *dst, const char *src) in strcpy() argument 13 while (*src) in strcpy() 15 *(dst++) = *(src++); in strcpy() 22 long strnlen(const char *src, unsigned long maxlen) in strnlen() argument 25 if (src == NULL) in strnlen() 28 while (src[__res] != '\0' && __res < maxlen) in strnlen() 65 char *strncpy(char *dst, const char *src, long count) in strncpy() argument 79 : "S"(src), "D"(dst), "c"(count) in strncpy() 84 long strncpy_from_user(char *dst, const char *src, unsigned long size) in strncpy_from_user() argument 86 if (!verify_area((uint64_t)src, size)) in strncpy_from_user() [all …]
|
D | ffi_convert.rs | 4 fn convert_ref(src: *const T) -> Option<&'static Self>; in convert_ref() 6 fn convert_mut(src: *mut T) -> Option<&'static mut Self>; in convert_mut() 11 pub fn __convert_mut<'a, S, D>(src:*mut S) ->Option<&'a mut D>{ in __convert_mut() 16 >(src) in __convert_mut() 21 pub fn __convert_ref<'a, S, D>(src:*const S) ->Option<&'a D>{ in __convert_ref() 26 >(src) in __convert_ref()
|
D | glib.c | 38 void *memmove(void *dst, const void *src, uint64_t size) in memmove() argument 40 const char *_src = src; in memmove() 47 if (dst <= src) in memmove() 48 return memcpy(dst, src, size); in memmove()
|
D | refcount.rs | 19 src: *mut crate::include::bindings::bindings::refcount_struct, in convert_mut() 21 return __convert_mut(src); in convert_mut() 24 src: *const crate::include::bindings::bindings::refcount_struct, in convert_ref() 26 return __convert_ref(src) in convert_ref()
|
D | unistd.c | 24 void swab(void *restrict src, void *restrict dest, ssize_t nbytes) in swab() argument 27 char *_src = src; in swab()
|
/DragonOS-0.1.3/kernel/src/common/ |
D | compiler.h | 49 static __always_inline void __read_once_size(void *dst, const volatile void *src, int size) in __read_once_size() argument 54 *(__u8_alias_t *)dst = *(volatile __u8_alias_t *)src; in __read_once_size() 57 *(__u16_alias_t *)dst = *(volatile __u16_alias_t *)src; in __read_once_size() 60 *(__u32_alias_t *)dst = *(volatile __u32_alias_t *)src; in __read_once_size() 63 *(__u64_alias_t *)dst = *(volatile __u64_alias_t *)src; in __read_once_size() 67 __builtin_memcpy((void *)dst, (const void *)src, size); in __read_once_size() 80 static __always_inline void __write_once_size(volatile void *dst, void *src, int size) in __write_once_size() argument 85 *(volatile __u8_alias_t *)dst = *(__u8_alias_t *)src; in __write_once_size() 88 *(volatile __u16_alias_t *)dst = *(__u16_alias_t *)src; in __write_once_size() 91 *(volatile __u32_alias_t *)dst = *(__u32_alias_t *)src; in __write_once_size() [all …]
|
D | string.h | 10 char *strcpy(char *dst, const char *src); 32 long strnlen(const char *src, unsigned long maxlen); 43 char *strncpy(char *dst, const char *src, long count); 45 long strncpy_from_user(char *dst, const char *src, unsigned long size); 53 long strnlen_user(const char *src, unsigned long maxlen); 87 char *strcat(char *dest, const char *src);
|
D | lz4.h | 146 LZ4LIB_API int LZ4_compress_default(const char *src, char *dst, int srcSize, int dstCapacity); 162 …LZ4LIB_API int LZ4_decompress_safe(const char *src, char *dst, int compressedSize, int dstCapacity… 189 …LZ4LIB_API int LZ4_compress_fast(const char *src, char *dst, int srcSize, int dstCapacity, int acc… 198 …LZ4LIB_API int LZ4_compress_fast_extState(void *state, const char *src, char *dst, int srcSize, in… 223 …LZ4LIB_API int LZ4_compress_destSize(const char *src, char *dst, int *srcSizePtr, int targetDstSiz… 259 …LZ4LIB_API int LZ4_decompress_safe_partial(const char *src, char *dst, int srcSize, int targetOutp… 329 …LZ4LIB_API int LZ4_compress_fast_continue(LZ4_stream_t *streamPtr, const char *src, char *dst, int… 401 …decompress_safe_continue(LZ4_streamDecode_t *LZ4_streamDecode, const char *src, char *dst, int src… 411 …LZ4LIB_API int LZ4_decompress_safe_usingDict(const char *src, char *dst, int srcSize, int dstCapci… 460 …LZ4LIB_STATIC_API int LZ4_compress_fast_extState_fastReset(void *state, const char *src, char *dst… [all …]
|
D | glib.h | 110 static void *memcpy(void *dst, const void *src, long Num) in memcpy() argument 127 : "0"(Num / 8), "q"(Num), "1"(dst), "2"(src) in memcpy() 217 static inline uint64_t copy_from_user(void *dst, void *src, uint64_t size) in copy_from_user() argument 220 if (!verify_area((uint64_t)src, size)) in copy_from_user() 233 : "r"(size & 7), "0"(size >> 3), "1"(dst), "2"(src) in copy_from_user() 246 static inline uint64_t copy_to_user(void *dst, void *src, uint64_t size) in copy_to_user() argument 249 if (verify_area((uint64_t)src, size)) in copy_to_user() 265 memcpy(dst,src,size); in copy_to_user() 347 void *memmove(void *dst, const void *src, uint64_t size);
|
D | unistd.h | 36 void swab(void *restrict src, void *restrict dest, ssize_t nbytes);
|
/DragonOS-0.1.3/user/libs/libc/src/ |
D | string.c | 68 char *strncpy(char *dst, const char *src, size_t Count) in strncpy() argument 82 : "S"(src), "D"(dst), "c"(Count) in strncpy() 94 char *strcat(char *dest, const char *src) in strcat() argument 96 strcpy(dest + strlen(dest), src); in strcat() 107 char *strcpy(char *dst, const char *src) in strcpy() argument 109 while (*src) in strcpy() 111 *(dst++) = *(src++); in strcpy()
|
D | unistd.c | 181 void swab(void *restrict src, void *restrict dest, ssize_t nbytes) in swab() argument 184 char *_src = src; in swab()
|
/DragonOS-0.1.3/user/libs/libc/src/include/ |
D | string.h | 35 char *strncpy(char *dst, const char *src, size_t Count); 44 char* strcpy(char* dst, const char* src); 53 char *strcat(char *dest, const char *src); 63 static void *memcpy(void *dst, const void *src, long Num) in memcpy() argument 80 : "0"(Num / 8), "q"(Num), "1"(dst), "2"(src) in memcpy()
|
D | unistd.h | 121 void swab(void *restrict src, void *restrict dest, ssize_t nbytes);
|
/DragonOS-0.1.3/docs/userland/libc/apis/api-list/ |
D | string.md | 13 ``char* strncpy(char *dst,const char *src,size_t count)`` 19 src: 原字符串 23 ``char* strcpy(char *dst,const char *src)`` : 复制整个字符串 25 ``char* strcat(char *dest,const char* src)`` : 拼接两个字符串
|
/DragonOS-0.1.3/kernel/ |
D | .gitignore | 2 src/kernel 6 src/include/bindings/bindings.rs 8 src/include/bindings/bindings.h
|
D | Makefile | 4 $(MAKE) -C src all 9 $(MAKE) -C src clean
|
/DragonOS-0.1.3/user/libs/libc/ |
D | Makefile | 3 $(MAKE) CFLAGS="$(CFLAGS)" -C src all 7 $(MAKE) -C src clean
|
/DragonOS-0.1.3/kernel/src/ipc/ |
D | signal_types.rs | 376 src: *mut crate::include::bindings::bindings::signal_struct, in convert_mut() 378 return __convert_mut(src); in convert_mut() 381 src: *const crate::include::bindings::bindings::signal_struct, in convert_ref() 383 return __convert_ref(src); in convert_ref() 392 src: *mut crate::include::bindings::bindings::siginfo, in convert_mut() 394 return __convert_mut(src); in convert_mut() 397 src: *const crate::include::bindings::bindings::siginfo, in convert_ref() 399 return __convert_ref(src); in convert_ref() 408 src: *mut crate::include::bindings::bindings::sigset_t, in convert_mut() 410 return __convert_mut(src); in convert_mut() [all …]
|
/DragonOS-0.1.3/docs/kernel/process_management/ |
D | pcb.md | 3 PCB的全称为process control block, 它是每个进程/线程的核心控制结构。定义于`kernel/src/process/proc-types.h`中。 15 该API提供了根据pid寻找pcb的功能,定义在`kernel/src/process/process.h`中。
|
/DragonOS-0.1.3/docs/kernel/core_api/ |
D | kernel_api.md | 455 **src** 459 #### `long strnlen(const char *src, unsigned long maxlen)` 467 **src** 475 #### `long strnlen_user(const char *src, unsigned long maxlen)` 481   该函数会进行地址空间校验,要求src字符串必须来自用户空间。当源字符串来自内核空间时,将返回0. 485 **src** 493 #### `char *strncpy(char *dst, const char *src, long count)` 501 **src** 513 #### `char *strcpy(char *dst, const char *src)` argument 521 **src** [all …]
|
/DragonOS-0.1.3/user/ |
D | Makefile | 12 CFLAGS := $(GLOBAL_CFLAGS) -I $(shell pwd)/libs -I $(shell pwd)/libs/libc/src/include 49 $(shell cp -r $(ROOT_PATH)/user/libs/libc/src/include/* $(ROOT_PATH)/bin/sysroot/usr/include/) 50 $(shell cp -r $(ROOT_PATH)/user/libs/libc/src/arch/x86_64/c*.o $(ROOT_PATH)/bin/sysroot/usr/lib/)
|
/DragonOS-0.1.3/user/libs/libc/.cargo/ |
D | config.toml | 2 target = "src/arch/x86_64/x86_64-unknown-none.json"
|
/DragonOS-0.1.3/kernel/.cargo/ |
D | config.toml | 2 target = "src/arch/x86_64/x86_64-unknown-none.json"
|
/DragonOS-0.1.3/docs/userland/libc/apis/ |
D | index.rst | 21 ``#include<libc/src/xxx.h>``
|