Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2004-2008 Analog Devices Inc. |
| 3 | * |
| 4 | * Licensed under the GPL-2 or later. |
| 5 | */ |
| 6 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 7 | #ifndef _BLACKFIN_STRING_H_ |
| 8 | #define _BLACKFIN_STRING_H_ |
| 9 | |
Mike Frysinger | d0025e5 | 2007-11-21 15:34:51 +0800 | [diff] [blame] | 10 | #include <linux/types.h> |
| 11 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 12 | #ifdef __KERNEL__ /* only set these up for kernel code */ |
| 13 | |
| 14 | #define __HAVE_ARCH_STRCPY |
Robin Getz | 479ba60 | 2010-05-03 17:23:20 +0000 | [diff] [blame^] | 15 | extern char *strcpy(char *dest, const char *src); |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 16 | |
| 17 | #define __HAVE_ARCH_STRNCPY |
Robin Getz | 479ba60 | 2010-05-03 17:23:20 +0000 | [diff] [blame^] | 18 | extern char *strncpy(char *dest, const char *src, size_t n); |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 19 | |
| 20 | #define __HAVE_ARCH_STRCMP |
Robin Getz | 479ba60 | 2010-05-03 17:23:20 +0000 | [diff] [blame^] | 21 | extern int strcmp(const char *cs, const char *ct); |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 22 | |
| 23 | #define __HAVE_ARCH_STRNCMP |
Robin Getz | 479ba60 | 2010-05-03 17:23:20 +0000 | [diff] [blame^] | 24 | extern int strncmp(const char *cs, const char *ct, size_t count); |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 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_ */ |