This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[ARM,MIPS,M68K] Further kernel-features.h update for preadv/pwritev
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Sat, 18 Apr 2009 14:10:13 +0000 (UTC)
- Subject: [ARM,MIPS,M68K] Further kernel-features.h update for preadv/pwritev
The libc copy of kernel-features.h now assumes preadv and pwritev are
present in 2.6.30 on all architectures. Thus the MIPS version no longer
needs to define __ASSUME_PREADV and __ASSUME_PWRITEV, while the ARM and
M68K versions need to undefine these macros explicitly. I've committed
the ARM and MIPS changes; OK to commit the M68K changes?
Index: ChangeLog.arm
===================================================================
RCS file: /cvs/glibc/ports/ChangeLog.arm,v
retrieving revision 1.95
diff -u -r1.95 ChangeLog.arm
--- ChangeLog.arm 17 Mar 2009 12:32:06 -0000 1.95
+++ ChangeLog.arm 18 Apr 2009 14:07:20 -0000
@@ -1,3 +1,8 @@
+2009-04-18 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_PREADV,
+ __ASSUME_PWRITEV): Undefine.
+
2009-03-16 Khem Raj <raj.khem@gmail.com>
* sysdeps/unix/sysv/linux/arm/sysdep.h: Include errno.h.
Index: ChangeLog.m68k
===================================================================
RCS file: /cvs/glibc/ports/ChangeLog.m68k,v
retrieving revision 1.13
diff -u -r1.13 ChangeLog.m68k
--- ChangeLog.m68k 17 Mar 2009 17:41:36 -0000 1.13
+++ ChangeLog.m68k 18 Apr 2009 14:07:20 -0000
@@ -1,3 +1,8 @@
+2009-04-18 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/m68k/kernel-features.h (__ASSUME_PREADV,
+ __ASSUME_PWRITEV): Undefine.
+
2009-03-17 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/m68k/getsysstats.c (GET_NPROCS_PARSER):
Index: ChangeLog.mips
===================================================================
RCS file: /cvs/glibc/ports/ChangeLog.mips,v
retrieving revision 1.81
diff -u -r1.81 ChangeLog.mips
--- ChangeLog.mips 15 Apr 2009 20:22:41 -0000 1.81
+++ ChangeLog.mips 18 Apr 2009 14:07:20 -0000
@@ -1,3 +1,8 @@
+2009-04-18 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_PREADV,
+ __ASSUME_PWRITEV): Don't define here.
+
2009-04-15 Maciej W. Rozycki <macro@codesourcery.com>
* sysdeps/mips/sys/fpregdef.h: Update for new ABIs.
Index: sysdeps/unix/sysv/linux/arm/kernel-features.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h,v
retrieving revision 1.5
diff -u -r1.5 kernel-features.h
--- sysdeps/unix/sysv/linux/arm/kernel-features.h 17 Sep 2007 16:31:32 -0000 1.5
+++ sysdeps/unix/sysv/linux/arm/kernel-features.h 18 Apr 2009 14:07:20 -0000
@@ -56,3 +56,5 @@
/* These syscalls are not implemented yet for ARM. */
#undef __ASSUME_PSELECT
#undef __ASSUME_PPOLL
+#undef __ASSUME_PREADV
+#undef __ASSUME_PWRITEV
Index: sysdeps/unix/sysv/linux/m68k/kernel-features.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h,v
retrieving revision 1.1
diff -u -r1.1 kernel-features.h
--- sysdeps/unix/sysv/linux/m68k/kernel-features.h 10 Aug 2008 08:43:09 -0000 1.1
+++ sysdeps/unix/sysv/linux/m68k/kernel-features.h 18 Apr 2009 14:07:20 -0000
@@ -39,3 +39,5 @@
/* These syscalls are not implemented yet for m68k. */
#undef __ASSUME_PSELECT
#undef __ASSUME_PPOLL
+#undef __ASSUME_PREADV
+#undef __ASSUME_PWRITEV
Index: sysdeps/unix/sysv/linux/mips/kernel-features.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/kernel-features.h,v
retrieving revision 1.2
diff -u -r1.2 kernel-features.h
--- sysdeps/unix/sysv/linux/mips/kernel-features.h 9 Apr 2009 22:14:47 -0000 1.2
+++ sysdeps/unix/sysv/linux/mips/kernel-features.h 18 Apr 2009 14:07:20 -0000
@@ -31,10 +31,4 @@
# define __ASSUME_FCNTL64 1
#endif
-/* Support for preadv and pwritev was added in 2.6.30. */
-#if __LINUX_KERNEL_VERSION >= 0x02061e
-# define __ASSUME_PREADV 1
-# define __ASSUME_PWRITEV 1
-#endif
-
#include_next <kernel-features.h>
--
Joseph S. Myers
joseph@codesourcery.com