Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
string.h
Go to the documentation of this file.
1 #ifndef _H8300_STRING_H_
2 #define _H8300_STRING_H_
3 
4 #ifdef __KERNEL__ /* only set these up for kernel code */
5 
6 #include <asm/setup.h>
7 #include <asm/page.h>
8 
9 #define __HAVE_ARCH_MEMSET
10 extern void * memset(void * s, int c, size_t count);
11 
12 #define __HAVE_ARCH_MEMCPY
13 extern void * memcpy(void *d, const void *s, size_t count);
14 
15 #else /* KERNEL */
16 
17 /*
18  * let user libraries deal with these,
19  * IMHO the kernel has no place defining these functions for user apps
20  */
21 
22 #define __HAVE_ARCH_STRCPY 1
23 #define __HAVE_ARCH_STRNCPY 1
24 #define __HAVE_ARCH_STRCAT 1
25 #define __HAVE_ARCH_STRNCAT 1
26 #define __HAVE_ARCH_STRCMP 1
27 #define __HAVE_ARCH_STRNCMP 1
28 #define __HAVE_ARCH_STRNICMP 1
29 #define __HAVE_ARCH_STRCHR 1
30 #define __HAVE_ARCH_STRRCHR 1
31 #define __HAVE_ARCH_STRSTR 1
32 #define __HAVE_ARCH_STRLEN 1
33 #define __HAVE_ARCH_STRNLEN 1
34 #define __HAVE_ARCH_MEMSET 1
35 #define __HAVE_ARCH_MEMCPY 1
36 #define __HAVE_ARCH_MEMMOVE 1
37 #define __HAVE_ARCH_MEMSCAN 1
38 #define __HAVE_ARCH_MEMCMP 1
39 #define __HAVE_ARCH_MEMCHR 1
40 #define __HAVE_ARCH_STRTOK 1
41 
42 #endif /* KERNEL */
43 
44 #endif /* _M68K_STRING_H_ */