/usr/include/diet/strings.h is in dietlibc-dev 0.33~cvs20120325-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #ifndef _STRINGS_H
#define _STRINGS_H
#include <stddef.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
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 __attribute_dontuse__;
void bcopy(const void *, void *, size_t) __THROW __attribute_dontuse__;
void bzero(void *, size_t) __THROW __attribute_dontuse__;
char *index(const char *, int) __THROW __pure __attribute_dontuse__;
char *rindex(const char *, int) __THROW __pure __attribute_dontuse__;
#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)
__END_DECLS
#endif
|