svn commit: trunk/uClibc: include include/sys libc/sysdeps/linux/ etc...

aldot at uclibc.org aldot at uclibc.org
Sat Nov 15 15:54:53 UTC 2008


Author: aldot
Date: 2008-11-15 07:54:53 -0800 (Sat, 15 Nov 2008)
New Revision: 24051

Log:
- Remove linux-specific prototypes if asked to.


Modified:
   trunk/uClibc/Makefile.in
   trunk/uClibc/include/sched.h
   trunk/uClibc/include/sys/mman.h
   trunk/uClibc/include/sys/sysinfo.h
   trunk/uClibc/include/unistd.h
   trunk/uClibc/libc/sysdeps/linux/alpha/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/arm/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/avr32/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/bfin/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/cris/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/e1/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/frv/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/h8300/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/hppa/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/i386/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/i960/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/ia64/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/m68k/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/microblaze/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/mips/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/nios/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/nios2/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/powerpc/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/sh/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/sh64/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/sparc/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/v850/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/vax/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/x86_64/bits/fcntl.h
   trunk/uClibc/libc/sysdeps/linux/xtensa/bits/fcntl.h


Changeset:
Modified: trunk/uClibc/Makefile.in
===================================================================
--- trunk/uClibc/Makefile.in	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/Makefile.in	2008-11-15 15:54:53 UTC (rev 24051)
@@ -315,7 +315,13 @@
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/inotify.h
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/perm.h
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/personality.h
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/prctl.h
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/reboot.h
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/sendfile.h
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/fsuid.h
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/signalfd.h
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/swap.h
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/sysctl.h
 endif
 ifneq ($(UCLIBC_SV4_DEPRECATED),y)
 	# Remove ustat.h since deprecated SV4 support was disabled upon request

Modified: trunk/uClibc/include/sched.h
===================================================================
--- trunk/uClibc/include/sched.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/include/sched.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -63,7 +63,7 @@
 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Access macros for `cpu_set'.  */
 #define CPU_SETSIZE __CPU_SETSIZE
 #define CPU_SET(cpu, cpusetp)	__CPU_SET (cpu, cpusetp)

Modified: trunk/uClibc/include/sys/mman.h
===================================================================
--- trunk/uClibc/include/sys/mman.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/include/sys/mman.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -157,11 +157,13 @@
 extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
 		     int __flags, ...) __THROW;
 
+#ifdef __UCLIBC_LINUX_SPECIFIC__
 /* Remap arbitrary pages of a shared backing store within an existing
    VMA.  */
 extern int remap_file_pages (void *__start, size_t __size, int __prot,
 			     size_t __pgoff, int __flags) __THROW;
 #endif
+#endif
 
 
 /* Open shared memory segment.  */

Modified: trunk/uClibc/include/sys/sysinfo.h
===================================================================
--- trunk/uClibc/include/sys/sysinfo.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/include/sys/sysinfo.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -48,7 +48,7 @@
 /* Returns information on overall system statistics.  */
 extern int sysinfo (struct sysinfo *__info) __THROW;
 
-
+#if 0
 /* Return number of configured processors.  */
 extern int get_nprocs_conf (void) __THROW;
 
@@ -61,6 +61,7 @@
 
 /* Return number of available physical pages of memory in the system.  */
 extern long int get_avphys_pages (void) __THROW;
+#endif
 
 __END_DECLS
 

Modified: trunk/uClibc/include/unistd.h
===================================================================
--- trunk/uClibc/include/unistd.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/include/unistd.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -869,10 +869,12 @@
      __THROW __nonnull ((1)) __wur;
 #endif
 
+#if defined __UCLIBC_LINUX_SPECIFIC__
 /* Revoke access permissions to all processes currently communicating
    with the control terminal, and then send a SIGHUP signal to the process
    group of the control terminal.  */
 extern int vhangup (void) __THROW;
+#endif
 
 #if 0
 /* Revoke the access of all descriptors currently open on FILE.  */

Modified: trunk/uClibc/libc/sysdeps/linux/alpha/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/alpha/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/alpha/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -159,7 +159,6 @@
   };
 #endif
 
-
 /* Define some more compatibility macros to be backward compatible with
    BSD systems which did not managed to hide these kernel macros.  */
 #ifdef	__USE_BSD
@@ -181,7 +180,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -204,7 +203,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/arm/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/arm/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/arm/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -189,7 +189,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -212,7 +212,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/avr32/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/avr32/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/avr32/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -167,8 +167,8 @@
 # define POSIX_FADV_NOREUSE     5 /* Data will be accessed once.  */
 #endif
 
-#ifdef __USE_GNU
 
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing

Modified: trunk/uClibc/libc/sysdeps/linux/bfin/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/bfin/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/bfin/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -185,7 +185,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -208,7 +208,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/cris/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/cris/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/cris/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -186,7 +186,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -209,7 +209,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/e1/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/e1/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/e1/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -182,7 +182,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -205,7 +205,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
@@ -231,4 +231,4 @@
 
 #endif
 __END_DECLS
-
+#endif /* LINUX_SPECIFIC */

Modified: trunk/uClibc/libc/sysdeps/linux/frv/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/frv/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/frv/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -164,7 +164,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -187,7 +187,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/h8300/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/h8300/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/h8300/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -182,7 +182,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -205,7 +205,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/hppa/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/hppa/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/hppa/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -176,7 +176,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -199,7 +199,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/i386/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i386/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/i386/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -189,7 +189,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -212,7 +212,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/i960/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i960/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/i960/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -182,7 +182,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -205,7 +205,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/ia64/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/ia64/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/ia64/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -161,7 +161,6 @@
   };
 #endif
 
-
 /* Define some more compatibility macros to be backward compatible with
    BSD systems which did not managed to hide these kernel macros.  */
 #ifdef	__USE_BSD
@@ -183,7 +182,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -206,7 +205,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/m68k/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/m68k/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/m68k/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -185,7 +185,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -208,7 +208,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/microblaze/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/microblaze/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/microblaze/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -182,7 +182,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -205,7 +205,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/mips/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/mips/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/mips/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -209,7 +209,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -232,7 +232,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/nios/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/nios/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/nios/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -185,7 +185,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -208,7 +208,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/nios2/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/nios2/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/nios2/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -185,7 +185,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -208,7 +208,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/powerpc/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/powerpc/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -189,7 +189,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -212,7 +212,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/sh/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sh/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/sh/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -189,7 +189,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -212,7 +212,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/sh64/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sh64/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/sh64/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -164,7 +164,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -187,7 +187,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/sparc/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sparc/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/sparc/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -208,7 +208,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -231,7 +231,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/v850/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/v850/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/v850/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -182,7 +182,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -205,7 +205,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/vax/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/vax/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/vax/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -162,7 +162,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -185,7 +185,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/x86_64/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/x86_64/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/x86_64/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -203,7 +203,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -226,7 +226,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)

Modified: trunk/uClibc/libc/sysdeps/linux/xtensa/bits/fcntl.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/xtensa/bits/fcntl.h	2008-11-15 15:42:40 UTC (rev 24050)
+++ trunk/uClibc/libc/sysdeps/linux/xtensa/bits/fcntl.h	2008-11-15 15:54:53 UTC (rev 24051)
@@ -186,7 +186,7 @@
 #endif
 
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 /* Flags for SYNC_FILE_RANGE.  */
 # define SYNC_FILE_RANGE_WAIT_BEFORE	1 /* Wait upon writeout of all pages
 					     in the range before performing the
@@ -209,7 +209,7 @@
 
 __BEGIN_DECLS
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__
 
 /* Provide kernel hint to read ahead.  */
 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)




More information about the uClibc-cvs mailing list