OSDN Git Service

fix from psm: enable readahead prototype
authorMike Frysinger <vapier@gentoo.org>
Thu, 24 Aug 2006 21:15:57 +0000 (21:15 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 24 Aug 2006 21:15:57 +0000 (21:15 -0000)
16 files changed:
libc/sysdeps/linux/alpha/bits/fcntl.h
libc/sysdeps/linux/arm/bits/fcntl.h
libc/sysdeps/linux/bfin/bits/fcntl.h
libc/sysdeps/linux/cris/bits/fcntl.h
libc/sysdeps/linux/hppa/bits/fcntl.h
libc/sysdeps/linux/i386/bits/fcntl.h
libc/sysdeps/linux/ia64/bits/fcntl.h
libc/sysdeps/linux/m68k/bits/fcntl.h
libc/sysdeps/linux/mips/bits/fcntl.h
libc/sysdeps/linux/nios/bits/fcntl.h
libc/sysdeps/linux/nios2/bits/fcntl.h
libc/sysdeps/linux/powerpc/bits/fcntl.h
libc/sysdeps/linux/sh/bits/fcntl.h
libc/sysdeps/linux/sparc/bits/fcntl.h
libc/sysdeps/linux/vax/bits/fcntl.h
libc/sysdeps/linux/x86_64/bits/fcntl.h

index f2fa87e..9fa9c5a 100644 (file)
@@ -190,13 +190,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -213,6 +214,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index c7d667a..1153d27 100644 (file)
@@ -206,13 +206,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -229,6 +230,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index ebf925a..544e214 100644 (file)
@@ -196,13 +196,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -219,6 +220,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index 8baa205..87e943f 100644 (file)
@@ -197,13 +197,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -220,6 +221,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index 4141a37..28600b5 100644 (file)
@@ -195,12 +195,13 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -216,6 +217,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
     
 #endif
     
index 30fcc83..10286a8 100644 (file)
@@ -198,13 +198,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -221,6 +222,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index 46b3893..e7e7c30 100644 (file)
@@ -192,13 +192,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -215,6 +216,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index 6983cd4..85cc591 100644 (file)
@@ -196,13 +196,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -219,6 +220,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index 38b08f8..1f615b4 100644 (file)
@@ -220,13 +220,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -243,6 +244,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index b3e12f4..1d7df4c 100644 (file)
@@ -196,13 +196,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -219,6 +220,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index ebf925a..544e214 100644 (file)
@@ -196,13 +196,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -219,6 +220,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index c2ed000..3dec692 100644 (file)
@@ -198,13 +198,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -221,6 +222,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index 30fcc83..10286a8 100644 (file)
@@ -198,13 +198,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -221,6 +222,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index 5314a52..cb4e6a8 100644 (file)
@@ -217,13 +217,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -240,6 +241,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index be3e6cc..fb72b21 100644 (file)
@@ -167,13 +167,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -190,6 +191,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif
 
index f69bcf6..7114eb8 100644 (file)
@@ -212,13 +212,14 @@ struct flock64
 
 __BEGIN_DECLS
 
-#if 0 /*def __USE_GNU*/
+#ifdef __USE_GNU
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
     __THROW;
 
 
+#if 0
 /* Selective file content synch'ing.  */
 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
                            unsigned int __flags);
@@ -235,6 +236,7 @@ extern int splice (int __fdin, int __fdout, size_t __len, unsigned int __flags)
 /* In-kernel implementation of tee for pipe buffers.  */
 extern int tee (int __fdin, int __fdout, size_t __len, unsigned int __flags)
     __THROW;
+#endif
 
 #endif