Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2012 20:08:39 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238703 - head/sys/sys
Message-ID:  <201207222008.q6MK8dc3021579@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <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?201207222008.q6MK8dc3021579>