Browse Source

bits/kernel_stat.h is for internal uClibc use only, fix a few other
minor include file issues

Eric Andersen 17 years ago
parent
commit
eb813ecafa

+ 2 - 1
ldso/include/dl-syscall.h

@@ -11,7 +11,8 @@
 /* Pull in the arch specific syscall implementation */
 #include <dl-syscalls.h>
 /*  For MAP_ANONYMOUS -- differs between platforms */
-#include <asm/mman.h>
+#define _SYS_MMAN_H 1
+#include <bits/mman.h>
 /* Pull in whatever this particular arch's kernel thinks the kernel version of
  * struct stat should look like.  It turns out that each arch has a different
  * opinion on the subject, and different kernel revs use different names... */

+ 4 - 0
libc/sysdeps/linux/alpha/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/arm/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/bfin/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 2 - 0
libc/sysdeps/linux/common/pread_write.c

@@ -24,6 +24,8 @@ extern __typeof(pread64) __libc_pread64;
 extern __typeof(pwrite64) __libc_pwrite64;
 #endif
 
+#include <bits/kernel_types.h>
+
 #ifdef __NR_pread
 
 # define __NR___syscall_pread __NR_pread 

+ 1 - 0
libc/sysdeps/linux/common/syscalls.h

@@ -21,3 +21,4 @@
 # undef __USE_FILE_OFFSET64
 #endif
 
+#include <bits/kernel_types.h>

+ 4 - 0
libc/sysdeps/linux/cris/bits/kernel_stat.h

@@ -3,6 +3,10 @@
 #ifndef _CRIS_STAT_H
 #define _CRIS_STAT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 struct __old_kernel_stat {
 	unsigned short st_dev;
 	unsigned short st_ino;

+ 4 - 0
libc/sysdeps/linux/e1/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/frv/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/h8300/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/hppa/bits/kernel_stat.h

@@ -4,6 +4,10 @@
 #ifndef _PARISC_STAT_H
 #define _PARISC_STAT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 struct kernel_stat {
 	unsigned int	st_dev;		/* dev_t is 32 bits on parisc */
 	ino_t		st_ino;		/* 32 bits */

+ 4 - 0
libc/sysdeps/linux/i386/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/ia64/bits/kernel_stat.h

@@ -4,6 +4,10 @@
 #ifndef _ASM_IA64_STAT_H
 #define _ASM_IA64_STAT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /*
  * Modified 1998, 1999
  *	David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co

+ 4 - 0
libc/sysdeps/linux/m68k/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/microblaze/bits/kernel_stat.h

@@ -3,6 +3,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 struct kernel_stat
 {
   __kernel_dev_t	st_dev;

+ 4 - 0
libc/sysdeps/linux/mips/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/nios2/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/powerpc/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/sh/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/sh64/bits/kernel_stat.h

@@ -3,6 +3,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 struct kernel_stat {
 	unsigned short st_dev;
 	unsigned short __pad1;

+ 4 - 0
libc/sysdeps/linux/sparc/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks 
  * struct kernel_stat should look like...  It turns out each arch has a 
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/v850/bits/kernel_stat.h

@@ -3,6 +3,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 struct kernel_stat
 {
   __kernel_dev_t	st_dev;

+ 4 - 0
libc/sysdeps/linux/vax/bits/kernel_stat.h

@@ -1,6 +1,10 @@
 #ifndef _BITS_STAT_STRUCT_H
 #define _BITS_STAT_STRUCT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 /* This file provides whatever this particular arch's kernel thinks
  * struct stat should look like...  It turns out each arch has a
  * different opinion on the subject... */

+ 4 - 0
libc/sysdeps/linux/x86_64/bits/kernel_stat.h

@@ -4,6 +4,10 @@
 #ifndef _ASM_X86_64_STAT_H
 #define _ASM_X86_64_STAT_H
 
+#ifndef _LIBC
+#error bits/kernel_stat.h is for internal uClibc use only!
+#endif
+
 #define STAT_HAVE_NSEC 1
 
 struct kernel_stat {