diff options
30 files changed, 63 insertions, 54 deletions
| diff --git a/Makefile.in b/Makefile.in index b115eb2b5..174daca00 100644 --- a/Makefile.in +++ b/Makefile.in @@ -315,7 +315,13 @@ ifneq ($(UCLIBC_LINUX_SPECIFIC),y)  	$(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 diff --git a/include/sched.h b/include/sched.h index 7cfdbf1f9..5f3bd8fc1 100644 --- a/include/sched.h +++ b/include/sched.h @@ -63,7 +63,7 @@ extern int sched_get_priority_min (int __algorithm) __THROW;  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) diff --git a/include/sys/mman.h b/include/sys/mman.h index 10471e683..7640955d7 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -157,11 +157,13 @@ extern int mincore (void *__start, size_t __len, unsigned char *__vec)  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.  */ diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h index 9fd4fa829..489f56b3b 100644 --- a/include/sys/sysinfo.h +++ b/include/sys/sysinfo.h @@ -48,7 +48,7 @@ __BEGIN_DECLS  /* 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 @@ extern long int get_phys_pages (void) __THROW;  /* Return number of available physical pages of memory in the system.  */  extern long int get_avphys_pages (void) __THROW; +#endif  __END_DECLS diff --git a/include/unistd.h b/include/unistd.h index 164f28909..f981d2116 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -869,10 +869,12 @@ extern int setdomainname (__const char *__name, size_t __len)       __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.  */ diff --git a/libc/sysdeps/linux/alpha/bits/fcntl.h b/libc/sysdeps/linux/alpha/bits/fcntl.h index 85e0fca30..2a6b9eadc 100644 --- a/libc/sysdeps/linux/alpha/bits/fcntl.h +++ b/libc/sysdeps/linux/alpha/bits/fcntl.h @@ -159,7 +159,6 @@ struct flock64    };  #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 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/arm/bits/fcntl.h b/libc/sysdeps/linux/arm/bits/fcntl.h index 01d2d3d14..86cea4b7f 100644 --- a/libc/sysdeps/linux/arm/bits/fcntl.h +++ b/libc/sysdeps/linux/arm/bits/fcntl.h @@ -189,7 +189,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/avr32/bits/fcntl.h b/libc/sysdeps/linux/avr32/bits/fcntl.h index df3eae871..2301e2241 100644 --- a/libc/sysdeps/linux/avr32/bits/fcntl.h +++ b/libc/sysdeps/linux/avr32/bits/fcntl.h @@ -167,8 +167,8 @@ struct flock64 {  # 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 diff --git a/libc/sysdeps/linux/bfin/bits/fcntl.h b/libc/sysdeps/linux/bfin/bits/fcntl.h index 7e32a04e9..52aed58b9 100644 --- a/libc/sysdeps/linux/bfin/bits/fcntl.h +++ b/libc/sysdeps/linux/bfin/bits/fcntl.h @@ -185,7 +185,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/cris/bits/fcntl.h b/libc/sysdeps/linux/cris/bits/fcntl.h index 2637a6b63..a2106ef9a 100644 --- a/libc/sysdeps/linux/cris/bits/fcntl.h +++ b/libc/sysdeps/linux/cris/bits/fcntl.h @@ -186,7 +186,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/e1/bits/fcntl.h b/libc/sysdeps/linux/e1/bits/fcntl.h index 87d193923..45ca3a107 100644 --- a/libc/sysdeps/linux/e1/bits/fcntl.h +++ b/libc/sysdeps/linux/e1/bits/fcntl.h @@ -182,7 +182,7 @@ struct flock64  #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 @@ struct flock64  __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 @@ extern ssize_t tee (int __fdin, int __fdout, size_t __len,  #endif  __END_DECLS - +#endif /* LINUX_SPECIFIC */ diff --git a/libc/sysdeps/linux/frv/bits/fcntl.h b/libc/sysdeps/linux/frv/bits/fcntl.h index 49da6279d..f0f1b9384 100644 --- a/libc/sysdeps/linux/frv/bits/fcntl.h +++ b/libc/sysdeps/linux/frv/bits/fcntl.h @@ -164,7 +164,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/h8300/bits/fcntl.h b/libc/sysdeps/linux/h8300/bits/fcntl.h index 87d193923..a3da35ae2 100644 --- a/libc/sysdeps/linux/h8300/bits/fcntl.h +++ b/libc/sysdeps/linux/h8300/bits/fcntl.h @@ -182,7 +182,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/hppa/bits/fcntl.h b/libc/sysdeps/linux/hppa/bits/fcntl.h index c6aaa3afb..cc23bf81b 100644 --- a/libc/sysdeps/linux/hppa/bits/fcntl.h +++ b/libc/sysdeps/linux/hppa/bits/fcntl.h @@ -176,7 +176,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/i386/bits/fcntl.h b/libc/sysdeps/linux/i386/bits/fcntl.h index 0b53b459b..7f0b552fd 100644 --- a/libc/sysdeps/linux/i386/bits/fcntl.h +++ b/libc/sysdeps/linux/i386/bits/fcntl.h @@ -189,7 +189,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/i960/bits/fcntl.h b/libc/sysdeps/linux/i960/bits/fcntl.h index a8efa57ec..31e54305e 100644 --- a/libc/sysdeps/linux/i960/bits/fcntl.h +++ b/libc/sysdeps/linux/i960/bits/fcntl.h @@ -182,7 +182,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/ia64/bits/fcntl.h b/libc/sysdeps/linux/ia64/bits/fcntl.h index 2a4b9ca35..d134c4b4f 100644 --- a/libc/sysdeps/linux/ia64/bits/fcntl.h +++ b/libc/sysdeps/linux/ia64/bits/fcntl.h @@ -161,7 +161,6 @@ struct flock64    };  #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 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/m68k/bits/fcntl.h b/libc/sysdeps/linux/m68k/bits/fcntl.h index 37e99f9e0..d36198d7a 100644 --- a/libc/sysdeps/linux/m68k/bits/fcntl.h +++ b/libc/sysdeps/linux/m68k/bits/fcntl.h @@ -185,7 +185,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/microblaze/bits/fcntl.h b/libc/sysdeps/linux/microblaze/bits/fcntl.h index 87d193923..a3da35ae2 100644 --- a/libc/sysdeps/linux/microblaze/bits/fcntl.h +++ b/libc/sysdeps/linux/microblaze/bits/fcntl.h @@ -182,7 +182,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/mips/bits/fcntl.h b/libc/sysdeps/linux/mips/bits/fcntl.h index 896786943..ef015a4b0 100644 --- a/libc/sysdeps/linux/mips/bits/fcntl.h +++ b/libc/sysdeps/linux/mips/bits/fcntl.h @@ -209,7 +209,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/nios/bits/fcntl.h b/libc/sysdeps/linux/nios/bits/fcntl.h index 9fc29cd8b..b66f303e8 100644 --- a/libc/sysdeps/linux/nios/bits/fcntl.h +++ b/libc/sysdeps/linux/nios/bits/fcntl.h @@ -185,7 +185,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/nios2/bits/fcntl.h b/libc/sysdeps/linux/nios2/bits/fcntl.h index 7e32a04e9..52aed58b9 100644 --- a/libc/sysdeps/linux/nios2/bits/fcntl.h +++ b/libc/sysdeps/linux/nios2/bits/fcntl.h @@ -185,7 +185,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/powerpc/bits/fcntl.h b/libc/sysdeps/linux/powerpc/bits/fcntl.h index f26a25e76..ceb75b4f1 100644 --- a/libc/sysdeps/linux/powerpc/bits/fcntl.h +++ b/libc/sysdeps/linux/powerpc/bits/fcntl.h @@ -189,7 +189,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/sh/bits/fcntl.h b/libc/sysdeps/linux/sh/bits/fcntl.h index 93c41d225..570484c2f 100644 --- a/libc/sysdeps/linux/sh/bits/fcntl.h +++ b/libc/sysdeps/linux/sh/bits/fcntl.h @@ -189,7 +189,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/sh64/bits/fcntl.h b/libc/sysdeps/linux/sh64/bits/fcntl.h index 49da6279d..f0f1b9384 100644 --- a/libc/sysdeps/linux/sh64/bits/fcntl.h +++ b/libc/sysdeps/linux/sh64/bits/fcntl.h @@ -164,7 +164,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/sparc/bits/fcntl.h b/libc/sysdeps/linux/sparc/bits/fcntl.h index 5739459b0..29c09a957 100644 --- a/libc/sysdeps/linux/sparc/bits/fcntl.h +++ b/libc/sysdeps/linux/sparc/bits/fcntl.h @@ -208,7 +208,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/v850/bits/fcntl.h b/libc/sysdeps/linux/v850/bits/fcntl.h index 87d193923..a3da35ae2 100644 --- a/libc/sysdeps/linux/v850/bits/fcntl.h +++ b/libc/sysdeps/linux/v850/bits/fcntl.h @@ -182,7 +182,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/vax/bits/fcntl.h b/libc/sysdeps/linux/vax/bits/fcntl.h index 971245da5..66c2812c4 100644 --- a/libc/sysdeps/linux/vax/bits/fcntl.h +++ b/libc/sysdeps/linux/vax/bits/fcntl.h @@ -162,7 +162,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/x86_64/bits/fcntl.h b/libc/sysdeps/linux/x86_64/bits/fcntl.h index 42c790a51..be00e4ac7 100644 --- a/libc/sysdeps/linux/x86_64/bits/fcntl.h +++ b/libc/sysdeps/linux/x86_64/bits/fcntl.h @@ -203,7 +203,7 @@ struct flock64  #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 @@ struct flock64  __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) diff --git a/libc/sysdeps/linux/xtensa/bits/fcntl.h b/libc/sysdeps/linux/xtensa/bits/fcntl.h index 23de96c02..a89362e46 100644 --- a/libc/sysdeps/linux/xtensa/bits/fcntl.h +++ b/libc/sysdeps/linux/xtensa/bits/fcntl.h @@ -186,7 +186,7 @@ struct flock64  #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 @@ struct flock64  __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) | 
