]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update bits/fcntl.h for hppa.
authorCarlos O'Donell <carlos@systemhalted.org>
Sun, 15 Nov 2009 20:46:46 +0000 (15:46 -0500)
committerCarlos O'Donell <carlos@systemhalted.org>
Sun, 15 Nov 2009 20:46:46 +0000 (15:46 -0500)
Define values for F_GETOWN_EX and F_SETOWN_EX.
Define fallocate64@@GLIBC_2.11 and provide declarations
in fcntl.h with appropriate aliases.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/Versions (libc): Add
fallocate64@@GLIBC_2.11.
* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
[__USE_GNU]: Define F_GETOWN_EX, and F_SETOWN_EX.
[!__USE_FILE_OFFSET64]: Define fallocate.
[__USE_FILE_OFFSET64 && __REDIRECT]: Define __REDIRECT.
[__USE_FILE_OFFSET64 && !__REDIRECT]: Define fallocate as
fallocate64.
[__USE_LARGEFILE64]: define fallocate64.

ChangeLog.hppa
sysdeps/unix/sysv/linux/hppa/Versions
sysdeps/unix/sysv/linux/hppa/bits/fcntl.h

index 342bf5e83733c497f795b9e3a24dac4ad4eda028..3d7081246562f9cb48b4a77f310f84e2628076b5 100644 (file)
@@ -1,3 +1,15 @@
+2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/hppa/Versions (libc): Add 
+       fallocate64@@GLIBC_2.11.
+       * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
+       [__USE_GNU]: Define F_GETOWN_EX, and F_SETOWN_EX.
+       [!__USE_FILE_OFFSET64]: Define fallocate.
+       [__USE_FILE_OFFSET64 && __REDIRECT]: Define __REDIRECT.
+       [__USE_FILE_OFFSET64 && !__REDIRECT]: Define fallocate as
+       fallocate64.
+       [__USE_LARGEFILE64]: define fallocate64.        
+
 2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>
 
        * sysdeps/hppa/dl-fptr.h: Update copyright year.
index 234c0baa60ecf3ee93551ff4e6947a3fc5050722..3dbc9ac50d89152a4c8bfc028b19494f197cfa67 100644 (file)
@@ -20,6 +20,9 @@ libc {
     #errlist-compat    256
     _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
   }
+  GLIBC_2.11 {
+    fallocate64;
+  }
 }
 librt {
   GLIBC_2.3 {
index ffc55a5a837e941ff0dde6cd29932d8a2b38eef9..a0b0e07b0631ed89349f7663dbd277dec272b48e 100644 (file)
@@ -89,6 +89,8 @@
 #ifdef __USE_GNU
 # define F_SETSIG      13      /* Set number of signal to be sent.  */
 # define F_GETSIG      14      /* Get number of signal to be sent.  */
+# define F_GETOWN_EX   15
+# define F_SETOWN_EX   16
 #endif
 
 #ifdef __USE_GNU
@@ -220,7 +222,24 @@ extern ssize_t splice (int __fdin, __off64_t *offin, int __fdout,
 /* In-kernel implementation of tee for pipe buffers.  */
 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