summaryrefslogtreecommitdiff
path: root/sys/arch/sun3
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-09-26 14:03:56 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-09-26 14:03:56 +0000
commit3cfa686a50030503dc2ff2f9a0111c54b9561795 (patch)
tree55a18b8eae8a4dda03700a902224aadc50ecbe3f /sys/arch/sun3
parenta4ba45aa8ff49696e29a6ed776ac4323979b6a0b (diff)
Implement getnulldev that returns the dev_t for "/dev/null".
Diffstat (limited to 'sys/arch/sun3')
-rw-r--r--sys/arch/sun3/sun3/conf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sun3/sun3/conf.c b/sys/arch/sun3/sun3/conf.c
index 5711d8521f5..032f654fff1 100644
--- a/sys/arch/sun3/sun3/conf.c
+++ b/sys/arch/sun3/sun3/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.26 2000/08/28 22:04:53 miod Exp $ */
+/* $OpenBSD: conf.c,v 1.27 2000/09/26 14:03:55 art Exp $ */
/* $NetBSD: conf.c,v 1.51 1996/11/04 16:16:09 gwr Exp $ */
/*-
@@ -240,6 +240,12 @@ iszerodev(dev)
return (major(dev) == mem_no && minor(dev) == 12);
}
+dev_t
+getnulldev()
+{
+ return makedev(mem_no, 2);
+}
+
static int chrtoblktbl[] = {
/* XXXX This needs to be dynamic for LKMs. */
/*VCHR*/ /*VBLK*/