@@ -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... */
@@ -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... */
@@ -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
@@ -21,3 +21,4 @@
# undef __USE_FILE_OFFSET64
@@ -3,6 +3,10 @@
#ifndef _CRIS_STAT_H
#define _CRIS_STAT_H
struct __old_kernel_stat {
unsigned short st_dev;
unsigned short st_ino;
@@ -4,6 +4,10 @@
#ifndef _PARISC_STAT_H
#define _PARISC_STAT_H
struct kernel_stat {
unsigned int st_dev; /* dev_t is 32 bits on parisc */
ino_t st_ino; /* 32 bits */
* struct stat should look like... It turns out each arch has a
#ifndef _ASM_IA64_STAT_H
#define _ASM_IA64_STAT_H
/*
* Modified 1998, 1999
* David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
struct kernel_stat
{
__kernel_dev_t st_dev;
unsigned short __pad1;
#ifndef _ASM_X86_64_STAT_H
#define _ASM_X86_64_STAT_H
#define STAT_HAVE_NSEC 1