This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch for arm ioperm


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 at gnu dot 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;
 }
 




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]