diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-31 16:11:35 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-31 16:11:35 +0000 |
commit | d43ec8d2f54af07f14bcad136dfe1c0ac9bdcf06 (patch) | |
tree | 0b5612ca24fdae94bbbfe90381ab68d82c13b91b /sys/arch/sparc | |
parent | 5517b43a88be9a22c6c674406c4477fdc9c556d2 (diff) |
mmap should return -1 on failure, not EOPNOTSUPP.
As it was now, an mmap of /dev/mem always returned page 45.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/mem.c b/sys/arch/sparc/sparc/mem.c index 79881f5166a..fedee0ef622 100644 --- a/sys/arch/sparc/sparc/mem.c +++ b/sys/arch/sparc/sparc/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.12 2000/03/04 16:42:15 art Exp $ */ +/* $OpenBSD: mem.c,v 1.13 2001/01/31 16:11:34 art Exp $ */ /* $NetBSD: mem.c,v 1.13 1996/03/30 21:12:16 christos Exp $ */ /* @@ -235,7 +235,7 @@ mmmmap(dev, off, prot) int off, prot; { - return (EOPNOTSUPP); + return (-1); } /*ARGSUSED*/ |