From owner-svn-src-all@FreeBSD.ORG Tue Jan 5 20:17:14 2010 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 00291106568F; Tue, 5 Jan 2010 20:17:13 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E3A3F8FC25; Tue, 5 Jan 2010 20:17:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o05KHDRt001569; Tue, 5 Jan 2010 20:17:13 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o05KHDmw001567; Tue, 5 Jan 2010 20:17:13 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201001052017.o05KHDmw001567@svn.freebsd.org> From: Konstantin Belousov Date: Tue, 5 Jan 2010 20:17:13 +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: r201602 - 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: Tue, 05 Jan 2010 20:17:14 -0000 Author: kib Date: Tue Jan 5 20:17:13 2010 New Revision: 201602 URL: http://svn.freebsd.org/changeset/base/201602 Log: Move scandir(3) and alphasort(3) into XSI namespace. Noted and reviewed by: bde MFC after: 2 weeks Modified: head/include/dirent.h Modified: head/include/dirent.h ============================================================================== --- head/include/dirent.h Tue Jan 5 19:40:32 2010 (r201601) +++ head/include/dirent.h Tue Jan 5 20:17:13 2010 (r201602) @@ -93,9 +93,11 @@ typedef void * DIR; #ifndef _KERNEL __BEGIN_DECLS +#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700 +int alphasort(const struct dirent **, const struct dirent **); +#endif #if __BSD_VISIBLE DIR *__opendir2(const char *, int); -int alphasort(const struct dirent **, const struct dirent **); int getdents(int, char *, int); int getdirentries(int, char *, int, long *); #endif @@ -107,7 +109,7 @@ struct dirent * int readdir_r(DIR *, struct dirent *, struct dirent **); #endif void rewinddir(DIR *); -#if __BSD_VISIBLE +#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700 int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));