[ARM,MIPS,M68K] Update bits/fcntl.h for fallocate declarations
Joseph S. Myers
joseph@codesourcery.com
Tue Mar 3 23:22:00 GMT 2009
This patch updates the ARM, MIPS and M68K bits/fcntl.h files in line with
a recent change to the libc versions. I've committed the ARM and MIPS
changes; OK to commit the M68K ones?
(Various other ports may be affected as well, but I'm only trying to keep
these three ports (plus Power soft-float if that should happen to be
affected by libc changes) up to date with changes to libc sysdeps files,
not all of them.)
Index: ChangeLog.arm
===================================================================
RCS file: /cvs/glibc/ports/ChangeLog.arm,v
retrieving revision 1.92
diff -u -r1.92 ChangeLog.arm
--- ChangeLog.arm 13 Feb 2009 17:35:07 -0000 1.92
+++ ChangeLog.arm 3 Mar 2009 23:18:15 -0000
@@ -1,3 +1,8 @@
+2009-03-03 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Declare
+ fallocate{,64}.
+
2009-02-13 Khem Raj <raj.khem@gmail.com>
* sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c
Index: ChangeLog.m68k
===================================================================
RCS file: /cvs/glibc/ports/ChangeLog.m68k,v
retrieving revision 1.10
diff -u -r1.10 ChangeLog.m68k
--- ChangeLog.m68k 27 Feb 2009 13:16:51 -0000 1.10
+++ ChangeLog.m68k 3 Mar 2009 23:18:15 -0000
@@ -1,3 +1,8 @@
+2009-03-03 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Declare
+ fallocate{,64}.
+
2009-02-26 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/m68k/bits/stat.h: Protect UTIME_NOW and
Index: ChangeLog.mips
===================================================================
RCS file: /cvs/glibc/ports/ChangeLog.mips,v
retrieving revision 1.73
diff -u -r1.73 ChangeLog.mips
--- ChangeLog.mips 26 Feb 2009 23:25:24 -0000 1.73
+++ ChangeLog.mips 3 Mar 2009 23:18:15 -0000
@@ -1,3 +1,8 @@
+2009-03-03 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Declare
+ fallocate{,64}.
+
2009-02-26 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/stat.h: Protect UTIME_NOW and
Index: sysdeps/unix/sysv/linux/arm/bits/fcntl.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/arm/bits/fcntl.h,v
retrieving revision 1.16
diff -u -r1.16 fcntl.h
--- sysdeps/unix/sysv/linux/arm/bits/fcntl.h 22 Oct 2007 13:11:48 -0000 1.16
+++ sysdeps/unix/sysv/linux/arm/bits/fcntl.h 3 Mar 2009 23:18:15 -0000
@@ -235,6 +235,23 @@
extern ssize_t tee (int __fdin, int __fdout, size_t __len,
unsigned int __flags);
+/* Reserve storage for the data of the file associated with FD. */
+# ifndef __USE_FILE_OFFSET64
+extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
+# else
+# ifdef __REDIRECT
+extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
+ __off_t __len),
+ fallocate64);
+# else
+# define fallocate fallocate64
+# endif
+# endif
+# ifdef __USE_LARGEFILE64
+extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
+ __off64_t __len);
+# endif
+
#endif
__END_DECLS
Index: sysdeps/unix/sysv/linux/m68k/bits/fcntl.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h,v
retrieving revision 1.10
diff -u -r1.10 fcntl.h
--- sysdeps/unix/sysv/linux/m68k/bits/fcntl.h 10 Aug 2008 08:43:09 -0000 1.10
+++ sysdeps/unix/sysv/linux/m68k/bits/fcntl.h 3 Mar 2009 23:18:15 -0000
@@ -234,6 +234,23 @@
extern ssize_t tee (int __fdin, int __fdout, size_t __len,
unsigned int __flags);
+/* Reserve storage for the data of the file associated with FD. */
+# ifndef __USE_FILE_OFFSET64
+extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
+# else
+# ifdef __REDIRECT
+extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
+ __off_t __len),
+ fallocate64);
+# else
+# define fallocate fallocate64
+# endif
+# endif
+# ifdef __USE_LARGEFILE64
+extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
+ __off64_t __len);
+# endif
+
#endif
__END_DECLS
Index: sysdeps/unix/sysv/linux/mips/bits/fcntl.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/bits/fcntl.h,v
retrieving revision 1.29
diff -u -r1.29 fcntl.h
--- sysdeps/unix/sysv/linux/mips/bits/fcntl.h 22 Oct 2007 13:11:49 -0000 1.29
+++ sysdeps/unix/sysv/linux/mips/bits/fcntl.h 3 Mar 2009 23:18:15 -0000
@@ -248,6 +248,23 @@
extern ssize_t tee (int __fdin, int __fdout, size_t __len,
unsigned int __flags);
+/* Reserve storage for the data of the file associated with FD. */
+# ifndef __USE_FILE_OFFSET64
+extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
+# else
+# ifdef __REDIRECT
+extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset,
+ __off_t __len),
+ fallocate64);
+# else
+# define fallocate fallocate64
+# endif
+# endif
+# ifdef __USE_LARGEFILE64
+extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
+ __off64_t __len);
+# endif
+
#endif
__END_DECLS
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-ports
mailing list