summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2009-03-04 03:31:51 +0000
committerdas <das@FreeBSD.org>2009-03-04 03:31:51 +0000
commit9a61c8133b342321199860897ca114a343acd1bb (patch)
tree2186e3888010cb5a7889efec21518c8779afc22a /include
parent83a21fcd3a6a9d34618cbaa065f07b09e6287b86 (diff)
downloadFreeBSD-src-9a61c8133b342321199860897ca114a343acd1bb.zip
FreeBSD-src-9a61c8133b342321199860897ca114a343acd1bb.tar.gz
- Remove bcmp, bcopy, bzero, index, and rindex from the POSIX.1-2008
namespace. - Add ffs to the XSI namespace.
Diffstat (limited to 'include')
-rw-r--r--include/strings.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/strings.h b/include/strings.h
index f6a0024..078ce1b 100644
--- a/include/strings.h
+++ b/include/strings.h
@@ -38,10 +38,14 @@ typedef __size_t size_t;
#endif
__BEGIN_DECLS
+#if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112
int bcmp(const void *, const void *, size_t) __pure; /* LEGACY */
void bcopy(const void *, void *, size_t); /* LEGACY */
void bzero(void *, size_t); /* LEGACY */
+#endif
+#if __XSI_VISIBLE
int ffs(int) __pure2;
+#endif
#ifdef __BSD_VISIBLE
int ffsl(long) __pure2;
int ffsll(long long) __pure2;
@@ -49,8 +53,10 @@ int fls(int) __pure2;
int flsl(long) __pure2;
int flsll(long long) __pure2;
#endif
+#if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112
char *index(const char *, int) __pure; /* LEGACY */
char *rindex(const char *, int) __pure; /* LEGACY */
+#endif
int strcasecmp(const char *, const char *) __pure;
int strncasecmp(const char *, const char *, size_t) __pure;
__END_DECLS
OpenPOWER on IntegriCloud