aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-20 22:22:35 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-20 22:22:35 +0000
commit2b6aa9b399cf5a73137ee13708a301f58cf07ac8 (patch)
tree7ac3aabcadb47c107d30f09d844618749985c958
parent2299417ee1ea7a5471e6f6990b6f67495bea43e5 (diff)
downloadglibc-2b6aa9b399cf5a73137ee13708a301f58cf07ac8.tar.xz
glibc-2b6aa9b399cf5a73137ee13708a301f58cf07ac8.zip
(init_iosys): Yield ENODEV on unknown systems.
-rw-r--r--sysdeps/unix/sysv/linux/arm/ioperm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/ioperm.c b/sysdeps/unix/sysv/linux/arm/ioperm.c
index 40ac8e6038..558b485b61 100644
--- a/sysdeps/unix/sysv/linux/arm/ioperm.c
+++ b/sysdeps/unix/sysv/linux/arm/ioperm.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Phil Blundell, based on the Alpha version by
David Mosberger.
@@ -166,7 +166,7 @@ init_iosys (void)
}
/* systype is not a known platform name... */
- __set_errno (EINVAL);
+ __set_errno (ENODEV);
return -1;
}
@@ -194,8 +194,8 @@ _ioperm (unsigned long int from, unsigned long int num, int turn_on)
return -1;
io.base =
- (unsigned long int) __mmap (0, MAX_PORT << io.shift,
- PROT_READ | PROT_WRITE,
+ (unsigned long int) __mmap (0, MAX_PORT << io.shift,
+ PROT_READ | PROT_WRITE,
MAP_SHARED, fd, io.io_base);
close (fd);
if ((long) io.base == -1)