Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Expose the DTYPE_xxx (names) defines even if _KERNEL...



details:   https://anonhg.NetBSD.org/src/rev/cdb71e5d0462
branches:  trunk
changeset: 783661:cdb71e5d0462
user:      dsl <dsl%NetBSD.org@localhost>
date:      Wed Jan 02 19:35:43 2013 +0000

description:
Expose the DTYPE_xxx (names) defines even if _KERNEL isn't defined.
There is no other excuse for including this file in userspace.

diffstat:

 sys/sys/file.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 09af1dbfd20d -r cdb71e5d0462 sys/sys/file.h
--- a/sys/sys/file.h    Wed Jan 02 19:29:40 2013 +0000
+++ b/sys/sys/file.h    Wed Jan 02 19:35:43 2013 +0000
@@ -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 @@
        SLIST_ENTRY(file) f_unplist;    /* deferred close: see uipc_usrreq.c */
 };
 
+#endif
+
 /*
  * Descriptor types.
  */
@@ -133,6 +135,8 @@
     "0", "file", "socket", "pipe", "kqueue", "misc", "crypto", "mqueue", \
     "semaphore"
 
+#ifdef _KERNEL
+
 /*
  * Flags for fo_read and fo_write and do_fileread/write/v
  */



Home | Main Index | Thread Index | Old Index