Last change
on this file was 777, checked in by David Azarewicz, 4 months ago |
Merge from uniaud32-exp branch
|
File size:
1004 bytes
|
Rev | Line | |
---|
[32] | 1 | #ifndef _LINUX_STRING_H
|
---|
| 2 | #define _LINUX_STRING_H
|
---|
[679] | 3 |
|
---|
| 4 | #include <linux/slab.h>
|
---|
| 5 |
|
---|
[305] | 6 | #if 0
|
---|
[32] | 7 | char *strstr1 (const char *string1, const char *string2);
|
---|
| 8 |
|
---|
| 9 | char *strncpy (char *string1, const char *string2, size_t count);
|
---|
| 10 |
|
---|
| 11 | int strcmp (const char *string1, const char *string2);
|
---|
| 12 |
|
---|
| 13 | int strncmp (const char *string1, const char *string2, size_t count);
|
---|
| 14 | #endif
|
---|
[441] | 15 |
|
---|
[772] | 16 | extern void *memset32(uint32_t *, uint32_t, __kernel_size_t);
|
---|
[442] | 17 | char *kstrdup(const char *s, unsigned int gfp_flags);
|
---|
[679] | 18 | _WCRTLINK extern size_t strnlen_s( const char *__s, size_t __maxsize );
|
---|
| 19 | #define strnlen strnlen_s
|
---|
| 20 | extern void *memdup_user(const void __user *, size_t);
|
---|
[442] | 21 |
|
---|
[679] | 22 | static inline void *kmemdup(const void *src, size_t len, gfp_t gfp)
|
---|
| 23 | {
|
---|
| 24 | void *dst = kmalloc(len, gfp);
|
---|
| 25 | if (!dst)
|
---|
| 26 | return NULL;
|
---|
| 27 | memcpy(dst, src, len);
|
---|
| 28 | return dst;
|
---|
| 29 | }
|
---|
[772] | 30 |
|
---|
[679] | 31 | #define vmemdup_user memdup_user
|
---|
| 32 | #define scnprintf snprintf
|
---|
[717] | 33 | ssize_t strscpy(char *dest, const char *src, size_t count);
|
---|
[772] | 34 | extern bool sysfs_streq(const char *s1, const char *s2);
|
---|
[305] | 35 | #endif
|
---|
[32] | 36 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.