From owner-svn-src-all@FreeBSD.ORG Sun Jul 22 20:08:39 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76A351065673; Sun, 22 Jul 2012 20:08:39 +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 61EEF8FC1A; Sun, 22 Jul 2012 20:08:39 +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 q6MK8dTD021581; Sun, 22 Jul 2012 20:08:39 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6MK8dc3021579; Sun, 22 Jul 2012 20:08:39 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201207222008.q6MK8dc3021579@svn.freebsd.org> From: Konstantin Belousov Date: Sun, 22 Jul 2012 20:08:39 +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: r238703 - head/sys/sys 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: Sun, 22 Jul 2012 20:08:39 -0000 Author: kib Date: Sun Jul 22 20:08:38 2012 New Revision: 238703 URL: http://svn.freebsd.org/changeset/base/238703 Log: 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. Noted by: bde MFC after: 1 week Modified: head/sys/sys/stat.h Modified: head/sys/sys/stat.h ============================================================================== --- head/sys/sys/stat.h Sun Jul 22 19:32:27 2012 (r238702) +++ head/sys/sys/stat.h Sun Jul 22 20:08:38 2012 (r238703) @@ -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 */