summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-22 11:40:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-22 11:40:31 +0000
commitc3151de46de121b751744b824d6319461b568dac (patch)
tree0ed932ab1afabc97840f47f668d064c01f1c3d9f
parentb65289fc0ace5d6dc89dd4fe44f361529947d5c7 (diff)
do not expose struct ostat to userland
-rw-r--r--sys/sys/stat.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/stat.h b/sys/sys/stat.h
index 37c690d3f9c..33bca2b04ad 100644
--- a/sys/sys/stat.h
+++ b/sys/sys/stat.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: stat.h,v 1.2 1996/02/29 13:57:29 niklas Exp $ */
-/* $NetBSD: stat.h,v 1.17 1995/06/15 23:08:08 cgd Exp $ */
+/* $OpenBSD: stat.h,v 1.3 1996/05/22 11:40:30 deraadt Exp $ */
+/* $NetBSD: stat.h,v 1.20 1996/05/16 22:17:49 cgd Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@@ -46,7 +46,7 @@
#include <sys/time.h>
-#ifndef _POSIX_SOURCE
+#ifdef _KERNEL
struct ostat {
u_int16_t st_dev; /* inode's device */
ino_t st_ino; /* inode's number */
@@ -64,7 +64,7 @@ struct ostat {
u_int32_t st_flags; /* user defined flags for file */
u_int32_t st_gen; /* file generation number */
};
-#endif /* !_POSIX_SOURCE */
+#endif /* !_KERNEL */
struct stat {
dev_t st_dev; /* inode's device */