/DragonOS-0.1.5/user/libs/libc/src/ |
D | string.c | 36 void *memset(void *dst, unsigned char C, uint64_t size) in memset() argument 55 : "a"(tmp), "q"(size), "0"(size / 8), "1"(dst) in memset() 57 return dst; in memset() 68 char *strncpy(char *dst, const char *src, size_t Count) in strncpy() argument 82 : "S"(src), "D"(dst), "c"(Count) in strncpy() 84 return dst; in strncpy() 107 char *strcpy(char *dst, const char *src) in strcpy() argument 111 *(dst++) = *(src++); in strcpy() 113 *dst = 0; in strcpy() 115 return dst; in strcpy()
|
/DragonOS-0.1.5/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 | glib.h | 68 void *memset(void *dst, unsigned char C, ul size) in memset() argument 87 : "a"(tmp), "q"(size), "0"(size / 8), "1"(dst) in memset() 89 return dst; in memset() 92 void *memset_c(void *dst, uint8_t c, size_t count) in memset_c() argument 94 uint8_t *xs = (uint8_t *)dst; in memset_c() 99 return dst; in memset_c() 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() 129 return dst; in memcpy() 217 static inline uint64_t copy_from_user(void *dst, void *src, uint64_t size) in copy_from_user() argument [all …]
|
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 …safe_continue(LZ4_streamDecode_t *LZ4_streamDecode, const char *src, char *dst, int srcSize, int d… 411 …LZ4LIB_API int LZ4_decompress_safe_usingDict(const char *src, char *dst, int srcSize, int dstCapci… 460 …t LZ4_compress_fast_extState_fastReset(void *state, const char *src, char *dst, int srcSize, int d… [all …]
|
D | string.h | 10 char *strcpy(char *dst, const char *src); 43 char *strncpy(char *dst, const char *src, long count); 45 long strncpy_from_user(char *dst, const char *src, unsigned long size);
|
/DragonOS-0.1.5/kernel/src/libs/ |
D | string.c | 11 char *strcpy(char *dst, const char *src) in strcpy() argument 15 *(dst++) = *(src++); in strcpy() 17 *dst = 0; in strcpy() 19 return dst; in strcpy() 65 char *strncpy(char *dst, const char *src, long count) in strncpy() argument 79 : "S"(src), "D"(dst), "c"(count) in strncpy() 81 return dst; in strncpy() 84 long strncpy_from_user(char *dst, const char *src, unsigned long size) in strncpy_from_user() argument 89 strncpy(dst, src, size); in strncpy_from_user()
|
D | glib.c | 38 void *memmove(void *dst, const void *src, uint64_t size) in memmove() argument 41 char *_dst = dst; in memmove() 44 return dst; in memmove() 47 if (dst <= src) in memmove() 48 return memcpy(dst, src, size); in memmove() 58 return dst; in memmove()
|
D | lz4.c | 330 #define LZ4_memcpy(dst, src, size) memcpy(dst, src, size) argument 1629 char *const dst, in LZ4_compress_generic() argument 1652 assert(dst != NULL); in LZ4_compress_generic() 1653 dst[0] = 0; in LZ4_compress_generic() 1663 return LZ4_compress_generic_validated(cctx, src, dst, srcSize, in LZ4_compress_generic() 1712 int LZ4_compress_fast_extState_fastReset(void *state, const char *src, char *dst, int srcSize, int … in LZ4_compress_fast_extState_fastReset() argument 1728 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, dictSm… in LZ4_compress_fast_extState_fastReset() 1732 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, noDict… in LZ4_compress_fast_extState_fastReset() 1739 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, noDict… in LZ4_compress_fast_extState_fastReset() 1750 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, dstCapacity, limitedOutput, tableType, n… in LZ4_compress_fast_extState_fastReset() [all …]
|
/DragonOS-0.1.5/user/libs/libc/src/include/export/ |
D | string.h | 9 void *memset(void *dst, unsigned char C, uint64_t size); 35 char *strncpy(char *dst, const char *src, size_t Count); 44 char* strcpy(char* dst, 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() 82 return dst; in memcpy()
|
/DragonOS-0.1.5/docs/userland/libc/apis/api-list/ |
D | string.md | 13 ``char* strncpy(char *dst,const char *src,size_t count)`` 17 dst: 目标地址 23 ``char* strcpy(char *dst,const char *src)`` : 复制整个字符串
|
/DragonOS-0.1.5/docs/kernel/core_api/ |
D | kernel_api.md | 493 #### `char *strncpy(char *dst, const char *src, long count)` 497   拷贝长度为count个字节的字符串,返回dst字符串 505 **dst** 513 #### `char *strcpy(char *dst, const char *src)` 517   拷贝源字符串,返回dst字符串 525 **dst** 529 #### `long strncpy_from_user(char *dst, const char *src, unsigned long size)` 543 **dst** 657 #### `void *memcpy(void *dst, const void *src, uint64_t size)` 661   将内存从src处拷贝到dst处。 [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | entry.rs | 1007 pub fn copy_name_to_slice(&self, dst: &mut [u16]) -> Result<(), i32> { in copy_name_to_slice() 1008 if dst.len() != Self::LONG_NAME_STR_LEN { in copy_name_to_slice() 1011 dst[0..5].copy_from_slice(&self.name1); in copy_name_to_slice() 1012 dst[5..11].copy_from_slice(&self.name2); in copy_name_to_slice() 1013 dst[11..13].copy_from_slice(&self.name3); in copy_name_to_slice()
|