From 09e967c2d732783b2579e4e120cd9b608404cb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Wed, 4 Jun 2003 18:31:57 +0000 Subject: Merge from R9_0-AMD64, most notably: - AMD64 support to insmod-busybox, minilibc, et al. - Sync with insmod-modutils 2.4.19 something but everyone should use dietlibc nowadays - Factor out compilation and prefix with $(DIET) for dietlibc builds - 64-bit & varargs fixes --- mdk-stage1/dietlibc/include/strings.h | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'mdk-stage1/dietlibc/include/strings.h') diff --git a/mdk-stage1/dietlibc/include/strings.h b/mdk-stage1/dietlibc/include/strings.h index ec947a9b9..fd2616465 100644 --- a/mdk-stage1/dietlibc/include/strings.h +++ b/mdk-stage1/dietlibc/include/strings.h @@ -1,2 +1,23 @@ -#warning "your code included obsolescent . Please change that to !" -#include +#ifndef _STRINGS_H +#define _STRINGS_H + +#include +#include + +int strcasecmp(const char *s1, const char *s2) __THROW __pure__; +int strncasecmp(const char *s1, const char *s2, size_t n) __THROW __pure__; +int ffs(int i) __THROW __attribute__((__const__)); + +int bcmp(const void *, const void *, size_t) __THROW __pure__; +void bcopy(const void *, void *, size_t) __THROW; +void bzero(void *, size_t) __THROW; +char *index(const char *, int) __THROW __pure__; +char *rindex(const char *, int) __THROW __pure__; + +#define bzero(s,n) memset(s,0,n) +#define bcopy(src,dest,n) memmove(dest,src,n) +#define bcmp(a,b,n) memcmp(a,b,n) +#define index(a,b) strchr(a,b) +#define rindex(a,b) strrchr(a,b) + +#endif -- cgit v1.2.1