arm patch for ioperm
Philip Blundell
Philip.Blundell@pobox.com
Thu Jul 25 14:45:00 GMT 2002
This makes ioperm give more consistent and illuminating error codes on
unsupported systems; it's mostly a sop for XFree86, which doesn't run on
some machines otherwise. I'd ideally like this to go into both the 2.2
branch and mainline.
Thanks
p.
2002-07-24 Philip Blundell <philb@gnu.org>
* sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
on unknown systems.
Index: sysdeps/unix/sysv/linux/arm/ioperm.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/arm/ioperm.c,v
retrieving revision 1.5
diff -u -p -r1.5 ioperm.c
--- sysdeps/unix/sysv/linux/arm/ioperm.c 6 Jul 2001 04:56:13 -0000 1.5
+++ sysdeps/unix/sysv/linux/arm/ioperm.c 24 Jul 2002 11:39:30 -0000
@@ -166,7 +166,7 @@ init_iosys (void)
}
/* systype is not a known platform name... */
- __set_errno (EINVAL);
+ __set_errno (ENODEV);
return -1;
}
More information about the Libc-hacker
mailing list