=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/string.h,v retrieving revision 1.15 retrieving revision 1.16 diff -c -r1.15 -r1.16 *** src/include/string.h 2005/03/30 03:04:16 1.15 --- src/include/string.h 2005/12/13 00:35:22 1.16 *************** *** 1,4 **** ! /* $OpenBSD: string.h,v 1.15 2005/03/30 03:04:16 deraadt Exp $ */ /* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: string.h,v 1.16 2005/12/13 00:35:22 millert Exp $ */ /* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */ /*- *************** *** 34,39 **** --- 34,41 ---- #ifndef _STRING_H_ #define _STRING_H_ + + #include #include #ifdef _BSD_SIZE_T_ *************** *** 49,56 **** #endif #endif - #include - __BEGIN_DECLS void *memchr(const void *, int, size_t); int memcmp(const void *, const void *, size_t); --- 51,56 ---- *************** *** 69,76 **** char *strcpy(char *, const char *); size_t strcspn(const char *, const char *); char *strerror(int); - int strerror_r(int, char *, size_t) - __attribute__ ((__bounded__(__string__,2,3))); size_t strlen(const char *); char *strncat(char *, const char *, size_t) __attribute__ ((__bounded__(__string__,1,3))); --- 69,74 ---- *************** *** 86,93 **** size_t strxfrm(char *, const char *, size_t) __attribute__ ((__bounded__(__string__,1,3))); ! /* Nonstandard routines */ ! #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) int bcmp(const void *, const void *, size_t); void bcopy(const void *, void *, size_t) __attribute__ ((__bounded__(__buffer__,1,3))) --- 84,95 ---- size_t strxfrm(char *, const char *, size_t) __attribute__ ((__bounded__(__string__,1,3))); ! #if __BSD_VISIBLE || __XPG_VISIBLE ! void *memccpy(void *, const void *, int, size_t) ! __attribute__ ((__bounded__(__buffer__,1,4))); ! #endif ! ! #if __BSD_VISIBLE || __XPG_VISIBLE >= 420 int bcmp(const void *, const void *, size_t); void bcopy(const void *, void *, size_t) __attribute__ ((__bounded__(__buffer__,1,3))) *************** *** 96,113 **** __attribute__ ((__bounded__(__buffer__,1,2))); int ffs(int); char *index(const char *, int); - void *memccpy(void *, const void *, int, size_t) - __attribute__ ((__bounded__(__buffer__,1,4))); char *rindex(const char *, int); int strcasecmp(const char *, const char *); char *strdup(const char *); char *strcasestr(const char *, const char *); size_t strlcat(char *, const char *, size_t) __attribute__ ((__bounded__(__string__,1,3))); size_t strlcpy(char *, const char *, size_t) __attribute__ ((__bounded__(__string__,1,3))); void strmode(int, char *); - int strncasecmp(const char *, const char *, size_t); char *strsep(char **, const char *); char *strsignal(int); #endif --- 98,121 ---- __attribute__ ((__bounded__(__buffer__,1,2))); int ffs(int); char *index(const char *, int); char *rindex(const char *, int); int strcasecmp(const char *, const char *); + int strncasecmp(const char *, const char *, size_t); char *strdup(const char *); + #endif + + #if __BSD_VISIBLE || __XPG_VISIBLE >= 600 + int strerror_r(int, char *, size_t) + __attribute__ ((__bounded__(__string__,2,3))); + #endif + + #if __BSD_VISIBLE char *strcasestr(const char *, const char *); size_t strlcat(char *, const char *, size_t) __attribute__ ((__bounded__(__string__,1,3))); size_t strlcpy(char *, const char *, size_t) __attribute__ ((__bounded__(__string__,1,3))); void strmode(int, char *); char *strsep(char **, const char *); char *strsignal(int); #endif