From owner-svn-src-all@FreeBSD.ORG Sat Mar 14 19:03:34 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99694106566B; Sat, 14 Mar 2009 19:03:34 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 87C6E8FC1B; Sat, 14 Mar 2009 19:03:34 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2EJ3YIu004906; Sat, 14 Mar 2009 19:03:34 GMT (envelope-from das@svn.freebsd.org) Received: (from das@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2EJ3Ytw004905; Sat, 14 Mar 2009 19:03:34 GMT (envelope-from das@svn.freebsd.org) Message-Id: <200903141903.n2EJ3Ytw004905@svn.freebsd.org> From: David Schultz Date: Sat, 14 Mar 2009 19:03:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189809 - head/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2009 19:03:35 -0000 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