Changeset 615 for GPL/branches/uniaud32-next/include/linux/string.h
- Timestamp:
- Jan 1, 2021, 5:31:48 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/string.h
r614 r615 1 1 #ifndef _LINUX_STRING_H 2 2 #define _LINUX_STRING_H 3 4 #include <linux/slab.h> 5 3 6 #if 0 4 7 char *strstr1 (const char *string1, const char *string2); … … 12 15 13 16 char *kstrdup(const char *s, unsigned int gfp_flags); 14 void *memdup_user(const void __user *src, size_t len);17 _WCRTLINK extern size_t strnlen_s( const char *__s, size_t __maxsize ); 15 18 #define strnlen strnlen_s 16 _WCRTLINK extern size_t strnlen_s( const char *__s, size_t __maxsize ); 19 extern void *memdup_user(const void __user *, size_t); 20 21 static inline void *kmemdup(const void *src, size_t len, gfp_t gfp) 22 { 23 void *dst = kmalloc(len, gfp); 24 if (!dst) 25 return NULL; 26 memcpy(dst, src, len); 27 return dst; 28 } 29 ssize_t strscpy(char *, const char *, size_t); 30 #define vmemdup_user memdup_user 31 #define scnprintf snprintf 17 32 #endif 18 33
Note:
See TracChangeset
for help on using the changeset viewer.