ia64/xen-unstable

view xen/include/xen/string.h @ 7583:7d0d88685f79

Remove stupid unused strtok() function.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Sun Oct 30 23:30:41 2005 +0100 (2005-10-30)
parents 649cd37aa1ab
children ab982f583b73
line source
1 #ifndef _LINUX_STRING_H_
2 #define _LINUX_STRING_H_
4 #include <xen/types.h> /* for size_t */
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
10 #define __kernel_size_t size_t
12 extern char * strpbrk(const char *,const char *);
13 extern char * strsep(char **,const char *);
14 extern __kernel_size_t strspn(const char *,const char *);
17 /*
18 * Include machine specific inline routines
19 */
20 #include <asm/string.h>
22 #ifndef __HAVE_ARCH_STRCPY
23 extern char * strcpy(char *,const char *);
24 #endif
25 #ifndef __HAVE_ARCH_STRNCPY
26 extern char * strncpy(char *,const char *, __kernel_size_t);
27 #endif
28 #ifndef __HAVE_ARCH_STRCAT
29 extern char * strcat(char *, const char *);
30 #endif
31 #ifndef __HAVE_ARCH_STRNCAT
32 extern char * strncat(char *, const char *, __kernel_size_t);
33 #endif
34 #ifndef __HAVE_ARCH_STRCMP
35 extern int strcmp(const char *,const char *);
36 #endif
37 #ifndef __HAVE_ARCH_STRNCMP
38 extern int strncmp(const char *,const char *,__kernel_size_t);
39 #endif
40 #ifndef __HAVE_ARCH_STRNICMP
41 extern int strnicmp(const char *, const char *, __kernel_size_t);
42 #endif
43 #ifndef __HAVE_ARCH_STRCHR
44 extern char * strchr(const char *,int);
45 #endif
46 #ifndef __HAVE_ARCH_STRRCHR
47 extern char * strrchr(const char *,int);
48 #endif
49 #ifndef __HAVE_ARCH_STRSTR
50 extern char * strstr(const char *,const char *);
51 #endif
52 #ifndef __HAVE_ARCH_STRLEN
53 extern __kernel_size_t strlen(const char *);
54 #endif
55 #ifndef __HAVE_ARCH_STRNLEN
56 extern __kernel_size_t strnlen(const char *,__kernel_size_t);
57 #endif
59 #ifndef __HAVE_ARCH_MEMSET
60 extern void * memset(void *,int,__kernel_size_t);
61 #endif
62 #ifndef __HAVE_ARCH_MEMCPY
63 extern void * memcpy(void *,const void *,__kernel_size_t);
64 #endif
65 #ifndef __HAVE_ARCH_MEMMOVE
66 extern void * memmove(void *,const void *,__kernel_size_t);
67 #endif
68 #ifndef __HAVE_ARCH_MEMSCAN
69 extern void * memscan(void *,int,__kernel_size_t);
70 #endif
71 #ifndef __HAVE_ARCH_MEMCMP
72 extern int memcmp(const void *,const void *,__kernel_size_t);
73 #endif
74 #ifndef __HAVE_ARCH_MEMCHR
75 extern void * memchr(const void *,int,__kernel_size_t);
76 #endif
78 #ifdef __cplusplus
79 }
80 #endif
82 #define safe_strcpy(d,s) \
83 do { strncpy((d),(s),sizeof((d))); \
84 (d)[sizeof((d))-1] = '\0'; \
85 } while (0)
87 #endif /* _LINUX_STRING_H_ */