[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r5018 - in glibc-package/trunk/debian: . patches patches/alpha



Author: aurel32
Date: 2011-10-30 16:12:35 +0000 (Sun, 30 Oct 2011)
New Revision: 5018

Added:
   glibc-package/trunk/debian/patches/alpha/submitted-fallocated.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
  * Add patches/alpha/submitted-fallocated.diff to define fallocate() in
    <fcntl.h> on alpha.  Closes: #641868.



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2011-10-30 15:45:27 UTC (rev 5017)
+++ glibc-package/trunk/debian/changelog	2011-10-30 16:12:35 UTC (rev 5018)
@@ -8,6 +8,8 @@
     sometimes causes a deadlock when calling fork() from a thread.
   * debhelper/libc.NEWS: replace $arch by <triplet> and explain how to get
     it.  Closes: #644990.
+  * Add patches/alpha/submitted-fallocated.diff to define fallocate() in
+    <fcntl.h> on alpha.  Closes: #641868.
 
   [ Samuel Thibault ]
   * patches/hurd-i386/submitted-setresid.diff: New patch to fix -1 passed to

Added: glibc-package/trunk/debian/patches/alpha/submitted-fallocated.diff
===================================================================
--- glibc-package/trunk/debian/patches/alpha/submitted-fallocated.diff	                        (rev 0)
+++ glibc-package/trunk/debian/patches/alpha/submitted-fallocated.diff	2011-10-30 16:12:35 UTC (rev 5018)
@@ -0,0 +1,40 @@
+From e23765440e54566ed86469e1ba4899160a73cfb1 Mon Sep 17 00:00:00 2001
+From: Michael Cree <mcree@orcon.net.nz>
+Date: Sat, 17 Sep 2011 17:45:37 +1200
+Subject: [PATCH] Alpha: add fallocate declaration to fcntl.h
+
+---
+ ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h |   17 +++++++++++++++++
+ 1 files changed, 17 insertions(+), 0 deletions(-)
+
+diff --git a/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h b/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
+index e5e726b..7d10249 100644
+--- a/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
++++ b/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
+@@ -252,6 +252,23 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
+ 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, __off64_t __offset,
++                                   __off64_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
+-- 
+1.7.4.3
+

Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series	2011-10-30 15:45:27 UTC (rev 5017)
+++ glibc-package/trunk/debian/patches/series	2011-10-30 16:12:35 UTC (rev 5018)
@@ -63,6 +63,7 @@
 alpha/local-strncmp.diff
 alpha/submitted-sysconf-cache.diff
 alpha/submitted-statfs64.patch
+alpha/submitted-fallocated.diff
 
 amd64/local-biarch.diff
 amd64/local-clone.diff


Reply to: