patch for arm ioperm
Philip Blundell
Philip.Blundell@pobox.com
Thu Feb 20 20:55:00 GMT 2003
This small patch changes the return value from ioperm to be more useful
when the function is called on a system where it isn't supported. Could
someone please check it in?
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