Module Name: src
Committed By: dsl
Date: Wed Jan 2 19:35:44 UTC 2013
Modified Files:
src/sys/sys: file.h
Log Message:
Expose the DTYPE_xxx (names) defines even if _KERNEL isn't defined.
There is no other excuse for including this file in userspace.
To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/sys/file.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/file.h
diff -u src/sys/sys/file.h:1.74 src/sys/sys/file.h:1.75
--- src/sys/sys/file.h:1.74 Sun Apr 24 18:46:24 2011
+++ src/sys/sys/file.h Wed Jan 2 19:35:43 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: file.h,v 1.74 2011/04/24 18:46:24 rmind Exp $ */
+/* $NetBSD: file.h,v 1.75 2013/01/02 19:35:43 dsl Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -116,6 +116,8 @@ struct file {
SLIST_ENTRY(file) f_unplist; /* deferred close: see uipc_usrreq.c */
};
+#endif
+
/*
* Descriptor types.
*/
@@ -133,6 +135,8 @@ struct file {
"0", "file", "socket", "pipe", "kqueue", "misc", "crypto", "mqueue", \
"semaphore"
+#ifdef _KERNEL
+
/*
* Flags for fo_read and fo_write and do_fileread/write/v
*/