From owner-svn-src-stable-9@FreeBSD.ORG Thu Aug 30 10:23:28 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DF6B1065677; Thu, 30 Aug 2012 10:23:28 +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 1971D8FC08; Thu, 30 Aug 2012 10:23:28 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q7UANRCg022878; Thu, 30 Aug 2012 10:23:27 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7UANR26022874; Thu, 30 Aug 2012 10:23:27 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201208301023.q7UANR26022874@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 30 Aug 2012 10:23:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r239901 - stable/9/sys/sys X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 10:23:28 -0000 Author: kib Date: Thu Aug 30 10:23:27 2012 New Revision: 239901 URL: http://svn.freebsd.org/changeset/base/239901 Log: MFC r238703: Put struct ostat and struct nstat under #ifdef _KERNEL. The compatibility definitions are only needed for implementation of the syscalls, they cause namespace pollution and are not useful for applications. Modified: stable/9/sys/sys/stat.h Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/sys/stat.h ============================================================================== --- stable/9/sys/sys/stat.h Thu Aug 30 10:18:55 2012 (r239900) +++ stable/9/sys/sys/stat.h Thu Aug 30 10:23:27 2012 (r239901) @@ -99,7 +99,7 @@ typedef __uid_t uid_t; #include #endif -#if __BSD_VISIBLE +#ifdef _KERNEL struct ostat { __uint16_t st_dev; /* inode's device */ ino_t st_ino; /* inode's number */ @@ -117,7 +117,7 @@ struct ostat { fflags_t st_flags; /* user defined flags for file */ __uint32_t st_gen; /* file generation number */ }; -#endif /* __BSD_VISIBLE */ +#endif struct stat { __dev_t st_dev; /* inode's device */ @@ -149,7 +149,7 @@ struct stat { unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec)); }; -#if __BSD_VISIBLE +#ifdef _KERNEL struct nstat { __dev_t st_dev; /* inode's device */ ino_t st_ino; /* inode's number */