1 /*
2  * Copyright 2004-2008 Analog Devices Inc.
3  *
4  * Licensed under the GPL-2 or later.
5  */
6 
7 #ifndef _BLACKFIN_STRING_H_
8 #define _BLACKFIN_STRING_H_
9 
10 #include <linux/types.h>
11 
12 #ifdef __KERNEL__		/* only set these up for kernel code */
13 
14 #define __HAVE_ARCH_STRCPY
15 extern char *strcpy(char *dest, const char *src);
16 
17 #define __HAVE_ARCH_STRNCPY
18 extern char *strncpy(char *dest, const char *src, size_t n);
19 
20 #define __HAVE_ARCH_STRCMP
21 extern int strcmp(const char *cs, const char *ct);
22 
23 #define __HAVE_ARCH_STRNCMP
24 extern int strncmp(const char *cs, const char *ct, size_t count);
25 
26 #define __HAVE_ARCH_MEMSET
27 extern void *memset(void *s, int c, size_t count);
28 #define __HAVE_ARCH_MEMCPY
29 extern void *memcpy(void *d, const void *s, size_t count);
30 #define __HAVE_ARCH_MEMCMP
31 extern int memcmp(const void *, const void *, __kernel_size_t);
32 #define	__HAVE_ARCH_MEMCHR
33 extern void *memchr(const void *s, int c, size_t n);
34 #define	__HAVE_ARCH_MEMMOVE
35 extern void *memmove(void *dest, const void *src, size_t count);
36 
37 #endif /*__KERNEL__*/
38 #endif				/* _BLACKFIN_STRING_H_ */
39