NFS: Fix nfs_alloc_client()
[linux-2.6/mini2440.git] / include / asm-frv / string.h
blob5ed310f64b7e95f9bc46c14516ed935404769966
1 /* string.h: FRV string handling
3 * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
12 #ifndef _ASM_STRING_H_
13 #define _ASM_STRING_H_
15 #ifdef __KERNEL__ /* only set these up for kernel code */
17 #define __HAVE_ARCH_MEMSET 1
18 #define __HAVE_ARCH_MEMCPY 1
20 extern void *memset(void *, int, __kernel_size_t);
21 extern void *memcpy(void *, const void *, __kernel_size_t);
23 #else /* KERNEL */
26 * let user libraries deal with these,
27 * IMHO the kernel has no place defining these functions for user apps
30 #define __HAVE_ARCH_STRCPY 1
31 #define __HAVE_ARCH_STRNCPY 1
32 #define __HAVE_ARCH_STRCAT 1
33 #define __HAVE_ARCH_STRNCAT 1
34 #define __HAVE_ARCH_STRCMP 1
35 #define __HAVE_ARCH_STRNCMP 1
36 #define __HAVE_ARCH_STRNICMP 1
37 #define __HAVE_ARCH_STRCHR 1
38 #define __HAVE_ARCH_STRRCHR 1
39 #define __HAVE_ARCH_STRSTR 1
40 #define __HAVE_ARCH_STRLEN 1
41 #define __HAVE_ARCH_STRNLEN 1
42 #define __HAVE_ARCH_MEMSET 1
43 #define __HAVE_ARCH_MEMCPY 1
44 #define __HAVE_ARCH_MEMMOVE 1
45 #define __HAVE_ARCH_MEMSCAN 1
46 #define __HAVE_ARCH_MEMCMP 1
47 #define __HAVE_ARCH_MEMCHR 1
48 #define __HAVE_ARCH_STRTOK 1
50 #endif /* KERNEL */
51 #endif /* _ASM_STRING_H_ */