Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/systm.h
Show First 20 Lines • Show All 318 Lines • ▼ Show 20 Lines | |||||
#define memset(buf, c, len) __builtin_memset((buf), (c), (len)) | #define memset(buf, c, len) __builtin_memset((buf), (c), (len)) | ||||
void *memcpy(void * _Nonnull to, const void * _Nonnull from, size_t len); | void *memcpy(void * _Nonnull to, const void * _Nonnull from, size_t len); | ||||
#define memcpy(to, from, len) __builtin_memcpy((to), (from), (len)) | #define memcpy(to, from, len) __builtin_memcpy((to), (from), (len)) | ||||
void *memmove(void * _Nonnull dest, const void * _Nonnull src, size_t n); | void *memmove(void * _Nonnull dest, const void * _Nonnull src, size_t n); | ||||
#define memmove(dest, src, n) __builtin_memmove((dest), (src), (n)) | #define memmove(dest, src, n) __builtin_memmove((dest), (src), (n)) | ||||
int memcmp(const void *b1, const void *b2, size_t len); | int memcmp(const void *b1, const void *b2, size_t len); | ||||
#define memcmp(b1, b2, len) __builtin_memcmp((b1), (b2), (len)) | #define memcmp(b1, b2, len) __builtin_memcmp((b1), (b2), (len)) | ||||
void *memset_early(void * _Nonnull buf, int c, size_t len); | |||||
#define bzero_early(buf, len) memset_early((buf), 0, (len)) | |||||
void *memcpy_early(void * _Nonnull to, const void * _Nonnull from, size_t len); | |||||
void *memmove_early(void * _Nonnull dest, const void * _Nonnull src, size_t n); | |||||
#define bcopy_early(from, to, len) memmove_early((to), (from), (len)) | |||||
int copystr(const void * _Nonnull __restrict kfaddr, | int copystr(const void * _Nonnull __restrict kfaddr, | ||||
void * _Nonnull __restrict kdaddr, size_t len, | void * _Nonnull __restrict kdaddr, size_t len, | ||||
size_t * __restrict lencopied); | size_t * __restrict lencopied); | ||||
int copyinstr(const void * __restrict udaddr, | int copyinstr(const void * __restrict udaddr, | ||||
void * _Nonnull __restrict kaddr, size_t len, | void * _Nonnull __restrict kaddr, size_t len, | ||||
size_t * __restrict lencopied); | size_t * __restrict lencopied); | ||||
int copyin(const void * __restrict udaddr, | int copyin(const void * __restrict udaddr, | ||||
void * _Nonnull __restrict kaddr, size_t len); | void * _Nonnull __restrict kaddr, size_t len); | ||||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |