summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/etc.alpha/MAKEDEV3
-rw-r--r--etc/etc.amiga/MAKEDEV3
-rw-r--r--etc/etc.arc/MAKEDEV3
-rw-r--r--etc/etc.hp300/MAKEDEV3
-rw-r--r--etc/etc.i386/MAKEDEV3
-rw-r--r--etc/etc.mvme68k/MAKEDEV5
-rw-r--r--etc/etc.sparc/MAKEDEV3
-rw-r--r--sys/arch/alpha/alpha/conf.c5
-rw-r--r--sys/arch/amiga/amiga/conf.c4
-rw-r--r--sys/arch/amiga/include/conf.h4
-rw-r--r--sys/arch/arc/arc/conf.c9
-rw-r--r--sys/arch/hp300/hp300/conf.c5
-rw-r--r--sys/arch/i386/i386/conf.c5
-rw-r--r--sys/arch/mvme68k/mvme68k/conf.c5
-rw-r--r--sys/arch/sparc/include/conf.h4
-rw-r--r--sys/arch/sparc/sparc/conf.c4
16 files changed, 49 insertions, 19 deletions
diff --git a/etc/etc.alpha/MAKEDEV b/etc/etc.alpha/MAKEDEV
index ddc82ba6182..93f58aec030 100644
--- a/etc/etc.alpha/MAKEDEV
+++ b/etc/etc.alpha/MAKEDEV
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: MAKEDEV,v 1.33 1998/06/25 06:38:43 deraadt Exp $
+# $OpenBSD: MAKEDEV,v 1.34 1998/08/24 05:29:48 millert Exp $
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -130,6 +130,7 @@ std)
mknod stdin c 10 0 ; chmod 666 stdin
mknod stdout c 10 1 ; chmod 666 stdout
mknod stderr c 10 2 ; chmod 666 stderr
+ mknod ksyms c 39 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
fd)
diff --git a/etc/etc.amiga/MAKEDEV b/etc/etc.amiga/MAKEDEV
index fd57f6d5f2c..e84d9bba63d 100644
--- a/etc/etc.amiga/MAKEDEV
+++ b/etc/etc.amiga/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.33 1998/02/22 23:35:37 niklas Exp $
+# $OpenBSD: MAKEDEV,v 1.34 1998/08/24 05:30:07 millert Exp $
# $NetBSD: MAKEDEV,v 1.21 1996/05/19 21:03:49 veego Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -149,6 +149,7 @@ std)
mknod stdout c 21 1 ; chmod 666 stdout
mknod stderr c 21 2 ; chmod 666 stderr
mknod ipf c 34 0 ; chmod 444 ipf
+ mknod ksyms c 42 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
fd)
diff --git a/etc/etc.arc/MAKEDEV b/etc/etc.arc/MAKEDEV
index f18d8d2f6e0..08924a750fe 100644
--- a/etc/etc.arc/MAKEDEV
+++ b/etc/etc.arc/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.23 1998/05/05 05:54:50 imp Exp $
+# $OpenBSD: MAKEDEV,v 1.24 1998/08/24 05:29:51 millert Exp $
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
#
@@ -104,6 +104,7 @@ std)
mknod stdin c 7 0 ; chmod 666 stdin
mknod stdout c 7 1 ; chmod 666 stdout
mknod stderr c 7 2 ; chmod 666 stderr
+ mknod ksyms c 35 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
ttyC*)
diff --git a/etc/etc.hp300/MAKEDEV b/etc/etc.hp300/MAKEDEV
index 1e219b2e211..152b2c2ca33 100644
--- a/etc/etc.hp300/MAKEDEV
+++ b/etc/etc.hp300/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.24 1998/01/26 04:19:39 dgregor Exp $
+# $OpenBSD: MAKEDEV,v 1.25 1998/08/24 05:29:53 millert Exp $
# $NetBSD: MAKEDEV,v 1.12 1995/11/05 23:50:22 thorpej Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -125,6 +125,7 @@ std)
mknod stdin c 21 0 ; chmod 666 stdin
mknod stdout c 21 1 ; chmod 666 stdout
mknod stderr c 21 2 ; chmod 666 stderr
+ mknod ksyms c 36 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
fd)
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index eb11184ea8c..5d535fa6822 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.59 1998/07/23 17:45:40 mickey Exp $
+# $OpenBSD: MAKEDEV,v 1.60 1998/08/24 05:29:56 millert Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -148,6 +148,7 @@ std)
mknod stdin c 22 0 ; chmod 666 stdin
mknod stdout c 22 1 ; chmod 666 stdout
mknod stderr c 22 2 ; chmod 666 stderr
+ mknod ksyms c 50 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
ttyC*)
diff --git a/etc/etc.mvme68k/MAKEDEV b/etc/etc.mvme68k/MAKEDEV
index c5da2bac389..86559264ff9 100644
--- a/etc/etc.mvme68k/MAKEDEV
+++ b/etc/etc.mvme68k/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.21 1998/01/26 04:19:43 dgregor Exp $
+# $OpenBSD: MAKEDEV,v 1.22 1998/08/24 05:29:59 millert Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -33,7 +33,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id: MAKEDEV,v 1.21 1998/01/26 04:19:43 dgregor Exp $
+# $Id: MAKEDEV,v 1.22 1998/08/24 05:29:59 millert Exp $
#
# Device "make" file. Valid arguments:
# all makes all known devices, including local devices,
@@ -115,6 +115,7 @@ std)
mknod stdin c 21 0 ; chmod 666 stdin
mknod stdout c 21 1 ; chmod 666 stdout
mknod stderr c 21 2 ; chmod 666 stderr
+ mknod ksyms c 43 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
raminst)
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV
index d570aa26299..c9cb17e8139 100644
--- a/etc/etc.sparc/MAKEDEV
+++ b/etc/etc.sparc/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.44 1998/07/21 22:43:03 marc Exp $
+# $OpenBSD: MAKEDEV,v 1.45 1998/08/24 05:30:03 millert Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -205,6 +205,7 @@ std)
mknod fb c 22 0 ; chmod 666 fb
mknod mouse c 13 0 ; chmod 666 mouse
mknod kbd c 29 0 ; chmod 666 kbd
+ mknod ksyms c 122 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
fd)
diff --git a/sys/arch/alpha/alpha/conf.c b/sys/arch/alpha/alpha/conf.c
index 47ea92a1da5..09baf9f7af1 100644
--- a/sys/arch/alpha/alpha/conf.c
+++ b/sys/arch/alpha/alpha/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.16 1998/07/07 06:55:54 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.17 1998/08/24 05:29:46 millert Exp $ */
/* $NetBSD: conf.c,v 1.16 1996/10/18 21:26:57 cgd Exp $ */
/*-
@@ -124,6 +124,8 @@ cdev_decl(wd);
cdev_decl(acd);
#include "cy.h"
cdev_decl(cy);
+#include "ksyms.h"
+cdev_decl(ksyms);
struct cdevsw cdevsw[] =
{
@@ -166,6 +168,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(NWDC,wd), /* 36: ST506/ESDI/IDE disk */
cdev_disk_init(NACD,acd), /* 37: ATAPI CD-ROM */
cdev_tty_init(NCY,cy), /* 38: Cyclom serial port */
+ cdev_ksyms_init(NKSYMS,ksyms), /* 39: Kernel symbols device */
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
diff --git a/sys/arch/amiga/amiga/conf.c b/sys/arch/amiga/amiga/conf.c
index 6c9cc58eaaa..a04998c3819 100644
--- a/sys/arch/amiga/amiga/conf.c
+++ b/sys/arch/amiga/amiga/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.23 1998/07/20 00:49:23 espie Exp $ */
+/* $OpenBSD: conf.c,v 1.24 1998/08/24 05:30:06 millert Exp $ */
/* $NetBSD: conf.c,v 1.42 1997/01/07 11:35:03 mrg Exp $ */
/*-
@@ -62,6 +62,7 @@
#include "acd.h"
#include "rd.h"
#include "ch.h"
+#include "ksyms.h"
struct bdevsw bdevsw[] =
{
@@ -148,6 +149,7 @@ struct cdevsw cdevsw[] =
cdev_audio_init(NAUDIO,audio), /* 39: cc audio interface */
cdev_ch_init(NCH,ch), /* 40: SCSI autochanger */
cdev_disk_init(NRD,rd), /* 41: RAM disk */
+ cdev_ksyms_init(NKSYMS,ksyms), /* 42: Kernel symbols device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
diff --git a/sys/arch/amiga/include/conf.h b/sys/arch/amiga/include/conf.h
index ec8b7b25957..f1dee706468 100644
--- a/sys/arch/amiga/include/conf.h
+++ b/sys/arch/amiga/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.9 1997/09/18 13:40:01 niklas Exp $ */
+/* $OpenBSD: conf.h,v 1.10 1998/08/24 05:30:05 millert Exp $ */
/* $NetBSD: conf.h,v 1.4 1996/11/30 01:13:07 is Exp $ */
/*
@@ -75,6 +75,8 @@ cdev_decl(view);
bdev_decl(wd);
cdev_decl(wd);
+cdev_decl(ksyms);
+
/* open, close, ioctl, select, mmap -- XXX should be a map device */
#define cdev_grf_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) nullop, \
diff --git a/sys/arch/arc/arc/conf.c b/sys/arch/arc/arc/conf.c
index 4d51304eace..50369598635 100644
--- a/sys/arch/arc/arc/conf.c
+++ b/sys/arch/arc/arc/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.22 1998/07/07 06:55:57 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.23 1998/08/24 05:29:49 millert Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)conf.c 8.2 (Berkeley) 11/14/93
- * $Id: conf.c,v 1.22 1998/07/07 06:55:57 deraadt Exp $
+ * $Id: conf.c,v 1.23 1998/08/24 05:29:49 millert Exp $
*/
#include <sys/param.h>
@@ -163,6 +163,8 @@ cdev_decl(wd);
cdev_decl(acd);
#include "joy.h"
cdev_decl(joy);
+#include "ksyms.h"
+cdev_decl(ksyms);
#ifdef IPFILTER
#define NIPF 1
@@ -206,7 +208,8 @@ struct cdevsw cdevsw[] =
cdev_gen_ipf(NIPF,ipl), /* 31: IP filter log */
cdev_uk_init(NUK,uk), /* 32: unknown SCSI */
cdev_random_init(1,random), /* 33: random data source */
- cdev_ss_init(NSS,ss), /* 34: SCSI scanner */
+ cdev_ss_init(NSS,ss), /* 34: SCSI scanner */
+ cdev_kyms_init(NSS,ksyms), /* 35: Kernel symbols device */
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
diff --git a/sys/arch/hp300/hp300/conf.c b/sys/arch/hp300/hp300/conf.c
index b444fba002c..58b46b9a569 100644
--- a/sys/arch/hp300/hp300/conf.c
+++ b/sys/arch/hp300/hp300/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.20 1998/07/07 06:56:02 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.21 1998/08/24 05:29:52 millert Exp $ */
/* $NetBSD: conf.c,v 1.39 1997/05/12 08:17:53 thorpej Exp $ */
/*-
@@ -145,6 +145,8 @@ cdev_decl(bpf);
cdev_decl(tun);
cdev_decl(random);
cdev_decl(rd);
+#include "ksyms.h"
+cdev_decl(ksyms);
#ifdef IPFILTER
#define NIPF 1
@@ -190,6 +192,7 @@ struct cdevsw cdevsw[] =
cdev_gen_ipf(NIPF,ipl), /* 33: ip filtering */
cdev_disk_init(NRD,rd), /* 34: RAM disk */
cdev_tty_init(NAPCI,apci), /* 35: Apollo APCI UARTs */
+ cdev_ksyms_init(NKSYMS,ksyms), /* 36: Kernel symbols device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index 349a418bd5d..019a8241026 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.46 1998/07/23 08:38:24 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.47 1998/08/24 05:29:55 millert Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -175,6 +175,8 @@ cdev_decl(svr4_net);
#include "bios.h"
#include "bktr.h"
cdev_decl(bktr);
+#include "ksyms.h"
+cdev_decl(ksyms);
#ifdef IPFILTER
#define NIPF 1
@@ -251,6 +253,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(NRD,rd), /* 47: ram disk driver */
cdev_ocis_init(NBIOS,bios), /* 48: onboard BIOS PROM */
cdev_bktr_init(NBKTR,bktr), /* 49: Bt848 video capture device */
+ cdev_ksyms_init(NKSYMS,ksyms), /* 50: Kernel symbols device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
diff --git a/sys/arch/mvme68k/mvme68k/conf.c b/sys/arch/mvme68k/mvme68k/conf.c
index d8f6eb09f56..ba46e7c6232 100644
--- a/sys/arch/mvme68k/mvme68k/conf.c
+++ b/sys/arch/mvme68k/mvme68k/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.17 1997/11/23 05:21:56 mickey Exp $ */
+/* $OpenBSD: conf.c,v 1.18 1998/08/24 05:29:57 millert Exp $ */
/*-
* Copyright (c) 1995 Theo de Raadt
@@ -161,6 +161,8 @@ cdev_decl(bugtty);
cdev_decl(lp);
#include "lptwo.h"
cdev_decl(lptwo);
+#include "ksyms.h"
+cdev_decl(ksyms);
cdev_decl(xd);
cdev_decl(rd);
@@ -222,6 +224,7 @@ struct cdevsw cdevsw[] =
cdev_random_init(1,random), /* 40: random data source */
cdev_uk_init(NUK,uk), /* 41: unknown SCSI */
cdev_ss_init(NSS,ss), /* 42: SCSI scanner */
+ cdev_ksyms_init(NKSYMS,ksyms), /* 43: Kernel symbols device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
diff --git a/sys/arch/sparc/include/conf.h b/sys/arch/sparc/include/conf.h
index 7f87c9feff6..e32de9509c8 100644
--- a/sys/arch/sparc/include/conf.h
+++ b/sys/arch/sparc/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.6 1998/05/20 19:29:18 deraadt Exp $ */
+/* $OpenBSD: conf.h,v 1.7 1998/08/24 05:30:00 millert Exp $ */
/* $NetBSD: conf.h,v 1.8 1996/12/31 07:12:43 mrg Exp $ */
/*
@@ -97,3 +97,5 @@ cdev_decl(rd);
cdev_decl(mtty);
cdev_decl(mbpp);
+
+cdev_decl(ksyms);
diff --git a/sys/arch/sparc/sparc/conf.c b/sys/arch/sparc/sparc/conf.c
index 86e2b8d0be6..3cf1892ab5d 100644
--- a/sys/arch/sparc/sparc/conf.c
+++ b/sys/arch/sparc/sparc/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.17 1998/07/07 06:56:11 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.18 1998/08/24 05:30:02 millert Exp $ */
/* $NetBSD: conf.c,v 1.40 1996/04/11 19:20:03 thorpej Exp $ */
/*
@@ -82,6 +82,7 @@
#include "xd.h"
#include "xy.h"
#include "magma.h" /* has NMTTY and NMBPP */
+#include "ksyms.h"
struct bdevsw bdevsw[] =
{
@@ -237,6 +238,7 @@ struct cdevsw cdevsw[] =
cdev_random_init(1,random), /* 119: random generator */
cdev_uk_init(NUK,uk), /* 120: unknown SCSI */
cdev_ss_init(NSS,ss), /* 121: SCSI scanner */
+ cdev_ksyms_init(NKSYMS,ksyms), /* 122: Kernel symbols device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);