Home
last modified time | relevance | path

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

12

/DragonOS-0.1.5/kernel/src/libs/
Dstring.c11 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 …]
Dffi_convert.rs4 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()
9 pub fn __convert_mut<'a, S, D>(src: *mut S) -> Option<&'a mut D> { in __convert_mut()
10 return unsafe { core::mem::transmute::<*mut S, *mut D>(src).as_mut() }; in __convert_mut()
13 pub fn __convert_ref<'a, S, D>(src: *const S) -> Option<&'a D> { in __convert_ref()
14 return unsafe { core::mem::transmute::<*const S, *const D>(src).as_ref() }; in __convert_ref()
Dglib.c38 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()
Drefcount.rs27 src: *mut crate::include::bindings::bindings::refcount_struct, in convert_mut()
29 return __convert_mut(src); in convert_mut()
32 src: *const crate::include::bindings::bindings::refcount_struct, in convert_ref()
34 return __convert_ref(src); in convert_ref()
Dunistd.c24 void swab(void *restrict src, void *restrict dest, ssize_t nbytes) in swab() argument
27 char *_src = src; in swab()
Dlz4.c330 #define LZ4_memcpy(dst, src, size) memcpy(dst, src, size) argument
1628 const char *const src, in LZ4_compress_generic() argument
1661 assert(src != NULL); 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()
1737 …const tableType_t tableType = ((sizeof(void *) == 4) && ((uptrval)src > LZ4_DISTANCE_MAX)) ? byPtr… 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/kernel/src/common/
Dcompiler.h49 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 …]
Dstring.h10 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);
Dlz4.h146 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 …]
Dglib.h110 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);
Dunistd.h36 void swab(void *restrict src, void *restrict dest, ssize_t nbytes);
/DragonOS-0.1.5/user/libs/libc/src/
Dstring.c68 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()
Dunistd.c181 void swab(void *restrict src, void *restrict dest, ssize_t nbytes) in swab() argument
184 char *_src = src; in swab()
/DragonOS-0.1.5/user/libs/libc/src/include/export/
Dstring.h35 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()
/DragonOS-0.1.5/docs/userland/libc/apis/api-list/
Dstring.md13 ``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.5/kernel/
D.gitignore2 src/kernel
6 src/include/bindings/bindings.rs
8 src/include/bindings/bindings.h
DMakefile4 $(MAKE) -C src all
9 $(MAKE) -C src clean
/DragonOS-0.1.5/user/libs/libc/
DMakefile3 $(MAKE) CFLAGS="$(CFLAGS)" -C src all
7 $(MAKE) -C src clean
/DragonOS-0.1.5/kernel/src/ipc/
Dsignal_types.rs376 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.5/docs/kernel/process_management/
Dpcb.md3 PCB的全称为process control block, 它是每个进程/线程的核心控制结构。定义于`kernel/src/process/proc-types.h`中。
15 该API提供了根据pid寻找pcb的功能,定义在`kernel/src/process/process.h`中。
/DragonOS-0.1.5/docs/kernel/core_api/
Dkernel_api.md455 **src**
459 #### `long strnlen(const char *src, unsigned long maxlen)`
467 **src**
475 #### `long strnlen_user(const char *src, unsigned long maxlen)`
481 &emsp;&emsp;该函数会进行地址空间校验,要求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.5/user/
DMakefile12 …_CFLAGS) -I $(shell pwd)/libs -I $(shell pwd)/libs/libc/src/include -I $(shell pwd)/libs/libc/src/…
54 …$(shell cp -r $(ROOT_PATH)/user/libs/libc/src/include/export/* $(ROOT_PATH)/bin/sysroot/usr/includ…
55 $(shell cp -r $(ROOT_PATH)/user/libs/libc/src/arch/x86_64/c*.o $(ROOT_PATH)/bin/sysroot/usr/lib/)
/DragonOS-0.1.5/kernel/.cargo/
Dconfig.toml2 target = "src/arch/x86_64/x86_64-unknown-none.json"
/DragonOS-0.1.5/user/libs/libc/.cargo/
Dconfig.toml2 target = "src/arch/x86_64/x86_64-unknown-none.json"
/DragonOS-0.1.5/docs/userland/libc/apis/
Dindex.rst21 ``#include<libc/src/xxx.h>``

12