Author: das
Date: Sat Mar 14 19:03:34 2009
New Revision: 189809
URL: http://svn.freebsd.org/changeset/base/189809

Log:
  Namespace: memccpy() and memchr() are XSI, and memrchr() is a BSD extension.

Modified:
  head/include/string.h

Modified: head/include/string.h
==============================================================================
--- head/include/string.h       Sat Mar 14 19:02:28 2009        (r189808)
+++ head/include/string.h       Sat Mar 14 19:03:34 2009        (r189809)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to