Remove <sys/__/types.h> inclusion from <features.h>.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-09-23 16:37:33 +02:00
parent 5b6d49b060
commit ad1c6e0ed7
51 changed files with 99 additions and 8 deletions

View File

@ -26,6 +26,7 @@
#define INCLUDE____ENDIAN_H #define INCLUDE____ENDIAN_H
#include <features.h> #include <features.h>
#include <__/byteswap.h> #include <__/byteswap.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -25,8 +25,8 @@
#ifndef INCLUDE____STDINT_H #ifndef INCLUDE____STDINT_H
#define INCLUDE____STDINT_H #define INCLUDE____STDINT_H
#define _LIBC_HACK_FEATURE_NO_DECLARATIONS
#include <features.h> #include <features.h>
#include <__/wordsize.h> #include <__/wordsize.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(size_t.h) @include(size_t.h)

View File

@ -26,6 +26,7 @@
#define _BYTESWAP_H 1 #define _BYTESWAP_H 1
#include <features.h> #include <features.h>
#include <__/byteswap.h> #include <__/byteswap.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(ino_t.h) @include(ino_t.h)

View File

@ -28,6 +28,9 @@
#define INCLUDE_FCNTL_H #define INCLUDE_FCNTL_H
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <sortix/fcntl.h> #include <sortix/fcntl.h>
#include <sortix/seek.h> #include <sortix/seek.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -128,10 +128,4 @@
/* Don't provide things from standard headers that is not implemented. */ /* Don't provide things from standard headers that is not implemented. */
/*#define __SORTIX_SHOW_UNIMPLEMENTED*/ /*#define __SORTIX_SHOW_UNIMPLEMENTED*/
#if !defined(_LIBC_HACK_FEATURE_NO_DECLARATIONS)
#include <sys/__/types.h>
#endif
#undef _LIBC_HACK_FEATURE_NO_DECLARATIONS
#endif #endif

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(gid_t.h) @include(gid_t.h)

View File

@ -26,6 +26,9 @@
#define INCLUDE_INTTYPES_H #define INCLUDE_INTTYPES_H
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <stdint.h> #include <stdint.h>
#define PRId8 __PRId8 #define PRId8 __PRId8

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
struct lconv struct lconv

View File

@ -26,6 +26,9 @@
#define _NETDB_H 1 #define _NETDB_H 1
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <inttypes.h> #include <inttypes.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -26,9 +26,12 @@
#define INCLUDE_NETINET_IN_H #define INCLUDE_NETINET_IN_H
#include <features.h> #include <features.h>
#include <inttypes.h>
#include <sys/__/types.h>
#include <__/endian.h> #include <__/endian.h>
#include <inttypes.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(in_port_t.h) @include(in_port_t.h)

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(time_t.h) @include(time_t.h)

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(gid_t.h) @include(gid_t.h)

View File

@ -26,6 +26,9 @@
#define INCLUDE_SIGNAL_H #define INCLUDE_SIGNAL_H
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <sortix/signal.h> #include <sortix/signal.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -26,6 +26,7 @@
#define _STDINT_H 1 #define _STDINT_H 1
#include <features.h> #include <features.h>
#include <__/stdint.h> #include <__/stdint.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -26,6 +26,9 @@
#define INCLUDE_STDIO_H #define INCLUDE_STDIO_H
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <sortix/seek.h> #include <sortix/seek.h>
#if __STRICT_ANSI__ #if __STRICT_ANSI__
#define __need___va_list #define __need___va_list

View File

@ -26,6 +26,7 @@
#define _STDIO_EXT_H 1 #define _STDIO_EXT_H 1
#include <features.h> #include <features.h>
#include <stdio.h> #include <stdio.h>
enum enum

View File

@ -26,6 +26,9 @@
#define _STDLIB_H 1 #define _STDLIB_H 1
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <sortix/wait.h> #include <sortix/wait.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -26,6 +26,9 @@
#define INCLUDE_STRING_H #define INCLUDE_STRING_H
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <strings.h> #include <strings.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -26,6 +26,7 @@
#define INCLUDE_SYS____TYPES_H #define INCLUDE_SYS____TYPES_H
#include <features.h> #include <features.h>
#include <sortix/__/types.h> #include <sortix/__/types.h>
#endif #endif

View File

@ -26,6 +26,7 @@
#define INCLUDE_SYS_DISPLAY_H #define INCLUDE_SYS_DISPLAY_H
#include <features.h> #include <features.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <sortix/display.h> #include <sortix/display.h>

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(size_t.h) @include(size_t.h)

View File

@ -26,6 +26,7 @@
#define INCLUDE_SYS_KEYCODES_H #define INCLUDE_SYS_KEYCODES_H
#include <features.h> #include <features.h>
#include <sortix/keycodes.h> #include <sortix/keycodes.h>
#endif #endif

View File

@ -26,6 +26,9 @@
#define INCLUDE_SYS_MMAN_H #define INCLUDE_SYS_MMAN_H
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <sortix/mman.h> #include <sortix/mman.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -26,6 +26,9 @@
#define _SYS_READDIRENTS_H 1 #define _SYS_READDIRENTS_H 1
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <sys/types.h> #include <sys/types.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@ -26,6 +26,9 @@
#define INCLUDE_SYS_RESOURCE_H #define INCLUDE_SYS_RESOURCE_H
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <sortix/resource.h> #include <sortix/resource.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -27,6 +27,9 @@
#define _SYS_SELECT_H 1 #define _SYS_SELECT_H 1
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <string.h> /* TODO: HACK: for FD_ZERO */ #include <string.h> /* TODO: HACK: for FD_ZERO */
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -26,6 +26,9 @@
#define _SYS_SOCKET_H 1 #define _SYS_SOCKET_H 1
#include <features.h> #include <features.h>
#include <sys/__/types.h>
/* TODO: #include <sys/uio.h> */ /* TODO: #include <sys/uio.h> */
#include <sortix/socket.h> #include <sortix/socket.h>

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(blkcnt_t.h) @include(blkcnt_t.h)
@include(blksize_t.h) @include(blksize_t.h)

View File

@ -30,6 +30,7 @@
#define _SYS_SYSCALL_H 1 #define _SYS_SYSCALL_H 1
#include <features.h> #include <features.h>
#include <sortix/syscallnum.h> #include <sortix/syscallnum.h>
/* Expand a macro and convert it to string. */ /* Expand a macro and convert it to string. */

View File

@ -26,6 +26,7 @@
#define INCLUDE_SYS_TERMMODE_H #define INCLUDE_SYS_TERMMODE_H
#include <features.h> #include <features.h>
#include <sortix/termmode.h> #include <sortix/termmode.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(time_t.h) @include(time_t.h)

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(clock_t.h); @include(clock_t.h);

View File

@ -28,6 +28,7 @@
#define INCLUDE_SYS_TYPES_H #define INCLUDE_SYS_TYPES_H
#include <features.h> #include <features.h>
#include <sys/__/types.h> #include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(size_t.h) @include(size_t.h)

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(sa_family_t.h) @include(sa_family_t.h)

View File

@ -28,6 +28,9 @@
#define _SYS_WAIT_H 1 #define _SYS_WAIT_H 1
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <sortix/wait.h> #include <sortix/wait.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -28,6 +28,7 @@
#define _TERMIOS_H 1 #define _TERMIOS_H 1
#include <features.h> #include <features.h>
#include <stddef.h> #include <stddef.h>
#include <sortix/termios.h> #include <sortix/termios.h>

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(clock_t.h) @include(clock_t.h)

View File

@ -26,6 +26,9 @@
#define INCLUDE_TIMESPEC_H #define INCLUDE_TIMESPEC_H
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <stdbool.h> #include <stdbool.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -29,7 +29,10 @@
#define _UNISTD_H 1 #define _UNISTD_H 1
#include <features.h> #include <features.h>
#include <sys/__/types.h>
#include <__/stdint.h> #include <__/stdint.h>
#if defined(_SORTIX_SOURCE) #if defined(_SORTIX_SOURCE)
#include <stdarg.h> #include <stdarg.h>
#include <stdint.h> #include <stdint.h>

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(time_t.h) @include(time_t.h)

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(size_t.h) @include(size_t.h)

View File

@ -27,6 +27,8 @@
#include <features.h> #include <features.h>
#include <sys/__/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@include(wint_t.h) @include(wint_t.h)

View File

@ -26,6 +26,7 @@
#define INCLUDE_SORTIX____TYPES_H #define INCLUDE_SORTIX____TYPES_H
#include <features.h> #include <features.h>
#include <__/stdint.h> #include <__/stdint.h>
#include <__/wordsize.h> #include <__/wordsize.h>

View File

@ -26,6 +26,7 @@
#define SORTIX_INCLUDE_DISPLAY_H #define SORTIX_INCLUDE_DISPLAY_H
#include <features.h> #include <features.h>
#include <stdint.h> #include <stdint.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -26,6 +26,7 @@
#define SORTIX_FORK_H #define SORTIX_FORK_H
#include <features.h> #include <features.h>
#include <sortix/x86/fork.h> #include <sortix/x86/fork.h>
#include <sortix/x64/fork.h> #include <sortix/x64/fork.h>

View File

@ -26,6 +26,7 @@
#define INCLUDE_SORTIX_RESOURCE_H #define INCLUDE_SORTIX_RESOURCE_H
#include <features.h> #include <features.h>
#include <__/stdint.h> #include <__/stdint.h>
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -27,6 +27,7 @@
#define INCLUDE_SORTIX_STAT_H #define INCLUDE_SORTIX_STAT_H
#include <features.h> #include <features.h>
#include <sys/types.h> #include <sys/types.h>
#include <sortix/timespec.h> #include <sortix/timespec.h>

View File

@ -26,6 +26,7 @@
#define INCLUDE_SORTIX_TMNS_H #define INCLUDE_SORTIX_TMNS_H
#include <features.h> #include <features.h>
#include <sortix/timespec.h> #include <sortix/timespec.h>
__BEGIN_DECLS __BEGIN_DECLS