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 */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to