OSDN Git Service

bits/kernel_stat.h is for internal uClibc use only, fix a few other
authorEric Andersen <andersen@codepoet.org>
Wed, 6 Dec 2006 20:22:42 +0000 (20:22 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 6 Dec 2006 20:22:42 +0000 (20:22 -0000)
minor include file issues

24 files changed:
ldso/include/dl-syscall.h
libc/sysdeps/linux/alpha/bits/kernel_stat.h
libc/sysdeps/linux/arm/bits/kernel_stat.h
libc/sysdeps/linux/bfin/bits/kernel_stat.h
libc/sysdeps/linux/common/pread_write.c
libc/sysdeps/linux/common/syscalls.h
libc/sysdeps/linux/cris/bits/kernel_stat.h
libc/sysdeps/linux/e1/bits/kernel_stat.h
libc/sysdeps/linux/frv/bits/kernel_stat.h
libc/sysdeps/linux/h8300/bits/kernel_stat.h
libc/sysdeps/linux/hppa/bits/kernel_stat.h
libc/sysdeps/linux/i386/bits/kernel_stat.h
libc/sysdeps/linux/ia64/bits/kernel_stat.h
libc/sysdeps/linux/m68k/bits/kernel_stat.h
libc/sysdeps/linux/microblaze/bits/kernel_stat.h
libc/sysdeps/linux/mips/bits/kernel_stat.h
libc/sysdeps/linux/nios2/bits/kernel_stat.h
libc/sysdeps/linux/powerpc/bits/kernel_stat.h
libc/sysdeps/linux/sh/bits/kernel_stat.h
libc/sysdeps/linux/sh64/bits/kernel_stat.h
libc/sysdeps/linux/sparc/bits/kernel_stat.h
libc/sysdeps/linux/v850/bits/kernel_stat.h
libc/sysdeps/linux/vax/bits/kernel_stat.h
libc/sysdeps/linux/x86_64/bits/kernel_stat.h

index 5b85fd2..b42416a 100644 (file)
@@ -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... */
index 5ab113b..9fcbc03 100644 (file)
@@ -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... */
index b58b28e..b3f8c37 100644 (file)
@@ -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... */
index 1bfdb8e..2a59d8e 100644 (file)
@@ -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... */
index 2509b7a..7091255 100644 (file)
@@ -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 
index af01524..c4f6a44 100644 (file)
@@ -21,3 +21,4 @@
 # undef __USE_FILE_OFFSET64
 #endif
 
+#include <bits/kernel_types.h>
index d4be6a6..50202e5 100644 (file)
@@ -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;
index bfef64c..908a153 100644 (file)
@@ -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... */
index c6d6141..51cb57e 100644 (file)
@@ -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... */
index c227a30..f589b1f 100644 (file)
@@ -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... */
index c643920..51b5b07 100644 (file)
@@ -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 */
index a574bd5..9f659a4 100644 (file)
@@ -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... */
index b46369c..c67c92d 100644 (file)
@@ -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
index 3d2805e..5f05148 100644 (file)
@@ -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... */
index e8ef014..248345e 100644 (file)
@@ -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;
index 5298942..d2f748e 100644 (file)
@@ -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... */
index bfef64c..908a153 100644 (file)
@@ -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... */
index 556ffe2..d3c3f91 100644 (file)
@@ -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... */
index c841b0c..8a29b3f 100644 (file)
@@ -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... */
index 036448e..cde7bc8 100644 (file)
@@ -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;
index 2f6e13d..ac167fa 100644 (file)
@@ -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... */
index 5e55ed0..02343ed 100644 (file)
@@ -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;
index ece9d34..2b5cb28 100644 (file)
@@ -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... */
index 84125b9..a2af2cd 100644 (file)
@@ -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 {