patch-2.3.99-pre7 linux/include/asm-alpha/string.h
Next file: linux/include/asm-alpha/system.h
Previous file: linux/include/asm-alpha/softirq.h
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Mon May 8 15:55:00 2000
- Orig file:
v2.3.99-pre6/linux/include/asm-alpha/string.h
- Orig date:
Fri Aug 6 10:41:47 1999
diff -u --recursive --new-file v2.3.99-pre6/linux/include/asm-alpha/string.h linux/include/asm-alpha/string.h
@@ -11,7 +11,10 @@
*/
#define __HAVE_ARCH_MEMCPY
+extern void * memcpy(void *, const void *, size_t);
#define __HAVE_ARCH_MEMMOVE
+extern void * memmove(void *, const void *, size_t);
+
/* For backward compatibility with modules. Unused otherwise. */
extern void * __memcpy(void *, const void *, size_t);
@@ -22,6 +25,7 @@
#define __HAVE_ARCH_MEMSET
extern void * __constant_c_memset(void *, unsigned long, size_t);
extern void * __memset(void *, int, size_t);
+extern void * memset(void *, int, size_t);
#if __GNUC__ > 2 || __GNUC_MINOR__ >= 91
#define memset(s, c, n) \
@@ -38,13 +42,21 @@
#endif
#define __HAVE_ARCH_STRCPY
+extern char * strcpy(char *,const char *);
#define __HAVE_ARCH_STRNCPY
+extern char * strncpy(char *, const char *, size_t);
#define __HAVE_ARCH_STRCAT
+extern char * strcat(char *, const char *);
#define __HAVE_ARCH_STRNCAT
+extern char * strncat(char *, const char *, size_t);
#define __HAVE_ARCH_STRCHR
+extern char * strchr(const char *,int);
#define __HAVE_ARCH_STRRCHR
+extern char * strrchr(const char *,int);
#define __HAVE_ARCH_STRLEN
+extern size_t strlen(const char *);
#define __HAVE_ARCH_MEMCHR
+extern void * memchr(const void *, int, size_t);
/* The following routine is like memset except that it writes 16-bit
aligned values. The DEST and COUNT parameters must be even for
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)