Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2012 10:23:27 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r239901 - stable/9/sys/sys
Message-ID:  <201208301023.q7UANR26022874@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <sys/time.h>
 #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 */



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