Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2009 19:03:34 +0000 (UTC)
From:      David Schultz <das@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189809 - head/include
Message-ID:  <200903141903.n2EJ3Ytw004905@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903141903.n2EJ3Ytw004905>