Browse Source

Move kernel-features.h header from the linuxthread directory
to a common one (libc/sysdeps/linux/common/bits) so that any
function can access to supported kernel feature (i.e. getdents).

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>

Carmelo Amoroso 15 years ago
parent
commit
0f0f20abd2

+ 0 - 0
libpthread/linuxthreads/sysdeps/pthread/kernel-features.h → libc/sysdeps/linux/common/bits/kernel-features.h


+ 1 - 0
libc/sysdeps/linux/common/getdents.c

@@ -16,6 +16,7 @@
 #include <sys/types.h>
 #include <sys/syscall.h>
 #include <bits/kernel_types.h>
+#include <bits/kernel-features.h>
 
 /* With newer versions of linux, the getdents syscall returns d_type
  * information after the name field.

+ 1 - 1
libpthread/linuxthreads/restart.h

@@ -13,7 +13,7 @@
 /* GNU Library General Public License for more details.                 */
 
 #include <signal.h>
-#include <kernel-features.h>
+#include <bits/kernel-features.h>
 
 /* Primitives for controlling thread execution */
 

+ 1 - 1
libpthread/linuxthreads/sysdeps/i386/i686/pt-machine.h

@@ -25,7 +25,7 @@
 #ifndef PT_EI
 # define PT_EI __extern_always_inline
 #endif
-#include "kernel-features.h"
+#include <bits/kernel-features.h>
 
 #ifndef __ASSEMBLER__
 extern long int testandset (int *spinlock);

+ 1 - 1
libpthread/linuxthreads/sysdeps/i386/pspinlock.c

@@ -20,7 +20,7 @@
 #include <errno.h>
 #include <pthread.h>
 #include "internals.h"
-#include <kernel-features.h>
+#include <bits/kernel-features.h>
 
 
 /* This implementation is similar to the one used in the Linux kernel.

+ 1 - 1
libpthread/linuxthreads/sysdeps/pthread/getcpuclockid.c

@@ -23,7 +23,7 @@
 #include <time.h>
 #include <internals.h>
 #include <spinlock.h>
-#include <kernel-features.h>
+#include <bits/kernel-features.h>
 #include <kernel-posix-cpu-timers.h>
 
 

+ 1 - 1
libpthread/linuxthreads/sysdeps/pthread/uClibc-glue.h

@@ -6,7 +6,7 @@
 #include <bits/uClibc_page.h>
 
 #ifdef IS_IN_libpthread
-#include "kernel-features.h"
+#include <bits/kernel-features.h>
 
 #ifndef __GLIBC_HAVE_LONG_LONG
 # define __GLIBC_HAVE_LONG_LONG

+ 1 - 1
libpthread/linuxthreads/sysdeps/unix/sysv/linux/i386/vfork.S

@@ -20,7 +20,7 @@
 #include <sysdep-cancel.h>
 #define _ERRNO_H	1
 #include <bits/errno.h>
-#include <kernel-features.h>
+#include <bits/kernel-features.h>
 
 /* Clone the calling process, but without copying the whole address space.
    The calling process is suspended until the new process exits or is

+ 1 - 1
libpthread/linuxthreads/sysdeps/unix/sysv/linux/m68k/vfork.S

@@ -20,7 +20,7 @@
 #include <sysdep-cancel.h>
 #define _ERRNO_H	1
 #include <bits/errno.h>
-#include <kernel-features.h>
+#include <bits/kernel-features.h>
 
 /* Clone the calling process, but without copying the whole address space.
    The calling process is suspended until the new process exits or is

+ 1 - 1
libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S

@@ -19,7 +19,7 @@
 #include <sysdep-cancel.h>
 #define _ERRNO_H	1
 #include <bits/errno.h>
-#include <kernel-features.h>
+#include <bits/kernel-features.h>
 
 /* Clone the calling process, but without copying the whole address space.
    The calling process is suspended until the new process exits or is

+ 1 - 1
libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S

@@ -19,7 +19,7 @@
 #include <sysdep-cancel.h>
 #define _ERRNO_H	1
 #include <bits/errno.h>
-#include <kernel-features.h>
+#include <bits/kernel-features.h>
 
 /* Clone the calling process, but without copying the whole address space.
    The calling process is suspended until the new process exits or is

+ 1 - 1
libpthread/linuxthreads/sysdeps/unix/sysv/linux/pt-sigsuspend.c

@@ -24,7 +24,7 @@
 #include <sys/syscall.h>
 #include <linuxthreads/internals.h>
 
-#include <kernel-features.h>
+#include <bits/kernel-features.h>
 
 void
 __pthread_sigsuspend (const sigset_t *set)