summaryrefslogtreecommitdiffstats
path: root/include/string.h
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2009-03-14 19:03:34 +0000
committerdas <das@FreeBSD.org>2009-03-14 19:03:34 +0000
commitfc0485a9c4c43b13852c033d0697d980e8b1b87f (patch)
tree65b0ffcde2a74511714bd466a02f0b6887c37282 /include/string.h
parent247bcb9be4910e7ceebf090fb9a1c597a403c9b2 (diff)
downloadFreeBSD-src-fc0485a9c4c43b13852c033d0697d980e8b1b87f.zip
FreeBSD-src-fc0485a9c4c43b13852c033d0697d980e8b1b87f.tar.gz
Namespace: memccpy() and memchr() are XSI, and memrchr() is a BSD extension.
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index 5923cb5..bd4ed2e 100644
--- a/include/string.h
+++ b/include/string.h
@@ -55,11 +55,13 @@ typedef __size_t size_t;
#endif
__BEGIN_DECLS
-#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
+#if __XSI_VISIBLE >= 600
void *memccpy(void * __restrict, const void * __restrict, int, size_t);
#endif
void *memchr(const void *, int, size_t) __pure;
+#if __BSD_VISIBLE
void *memrchr(const void *, int, size_t) __pure;
+#endif
int memcmp(const void *, const void *, size_t) __pure;
void *memcpy(void * __restrict, const void * __restrict, size_t);
#if __BSD_VISIBLE
OpenPOWER on IntegriCloud