summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/amiga/conf.c
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/amiga/amiga/conf.c
parenta4ba45aa8ff49696e29a6ed776ac4323979b6a0b (diff)
Implement getnulldev that returns the dev_t for "/dev/null".
Diffstat (limited to 'sys/arch/amiga/amiga/conf.c')
-rw-r--r--sys/arch/amiga/amiga/conf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/amiga/amiga/conf.c b/sys/arch/amiga/amiga/conf.c
index fc6ee3feb29..60c187c23ec 100644
--- a/sys/arch/amiga/amiga/conf.c
+++ b/sys/arch/amiga/amiga/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.27 2000/09/02 13:45:38 espie Exp $ */
+/* $OpenBSD: conf.c,v 1.28 2000/09/26 14:03:51 art Exp $ */
/* $NetBSD: conf.c,v 1.42 1997/01/07 11:35:03 mrg Exp $ */
/*-
@@ -234,6 +234,12 @@ iszerodev(dev)
return (major(dev) == mem_no && minor(dev) == 12);
}
+dev_t
+getnulldev()
+{
+ return makedev(mem_no, 2);
+}
+
static int chrtoblktab[] = {
/* XXXX This needs to be dynamic for LKMs. */
/*VCHR*/ /*VBLK*/