summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-05-24 09:33:08 +0000
committerphk <phk@FreeBSD.org>2001-05-24 09:33:08 +0000
commit0af03f103469af0c18a747bc741c2b5db62d3a2f (patch)
tree2c41de7448f90ea5d0632b725416c90885b41ec4
parent226cc1536b236c0cebc1c0f0dbcdb353aeb702ba (diff)
downloadFreeBSD-src-0af03f103469af0c18a747bc741c2b5db62d3a2f.zip
FreeBSD-src-0af03f103469af0c18a747bc741c2b5db62d3a2f.tar.gz
Restrict even further what parts of <sys/conf.h> can be seen from
userland.
-rw-r--r--sys/sys/conf.h8
-rw-r--r--sys/sys/linedisc.h8
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 55959f6..3d156a4 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -44,6 +44,7 @@
#ifndef _SYS_CONF_H_
#define _SYS_CONF_H_
+#ifdef _KERNEL
#include <sys/eventhandler.h>
struct tty;
@@ -161,6 +162,8 @@ typedef int l_modem_t __P((struct tty *tp, int flag));
BIO_STRATEGY(&(bp)->b_io, dummy); \
} while (0)
+#endif /* _KERNEL */
+
/*
* Types for d_flags.
*/
@@ -169,6 +172,8 @@ typedef int l_modem_t __P((struct tty *tp, int flag));
#define D_TTY 0x0004
#define D_MEM 0x0008
+#ifdef _KERNEL
+
#define D_TYPEMASK 0xffff
/*
@@ -217,14 +222,13 @@ struct linesw {
u_char l_hotchar;
};
-#ifdef _KERNEL
extern struct linesw linesw[];
extern int nlinesw;
int ldisc_register __P((int , struct linesw *));
void ldisc_deregister __P((int));
#define LDISC_LOAD -1 /* Loadable line discipline */
-#endif
+#endif /* _KERNEL */
/*
* Swap device table
diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h
index 55959f6..3d156a4 100644
--- a/sys/sys/linedisc.h
+++ b/sys/sys/linedisc.h
@@ -44,6 +44,7 @@
#ifndef _SYS_CONF_H_
#define _SYS_CONF_H_
+#ifdef _KERNEL
#include <sys/eventhandler.h>
struct tty;
@@ -161,6 +162,8 @@ typedef int l_modem_t __P((struct tty *tp, int flag));
BIO_STRATEGY(&(bp)->b_io, dummy); \
} while (0)
+#endif /* _KERNEL */
+
/*
* Types for d_flags.
*/
@@ -169,6 +172,8 @@ typedef int l_modem_t __P((struct tty *tp, int flag));
#define D_TTY 0x0004
#define D_MEM 0x0008
+#ifdef _KERNEL
+
#define D_TYPEMASK 0xffff
/*
@@ -217,14 +222,13 @@ struct linesw {
u_char l_hotchar;
};
-#ifdef _KERNEL
extern struct linesw linesw[];
extern int nlinesw;
int ldisc_register __P((int , struct linesw *));
void ldisc_deregister __P((int));
#define LDISC_LOAD -1 /* Loadable line discipline */
-#endif
+#endif /* _KERNEL */
/*
* Swap device table
OpenPOWER on IntegriCloud