diff --git a/libc/include/FILE.h b/libc/include/FILE.h index 365969a2..145aa475 100644 --- a/libc/include/FILE.h +++ b/libc/include/FILE.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_FILE_H #define INCLUDE_FILE_H -#include +#include #include diff --git a/libc/include/__/byteswap.h b/libc/include/__/byteswap.h index e222aedf..e9b536ef 100644 --- a/libc/include/__/byteswap.h +++ b/libc/include/__/byteswap.h @@ -25,7 +25,7 @@ #ifndef INCLUDE____BYTESWAP_H #define INCLUDE____BYTESWAP_H -#include +#include __BEGIN_DECLS diff --git a/libc/include/__/endian.h b/libc/include/__/endian.h index 3e0ce2cd..cb3e1f95 100644 --- a/libc/include/__/endian.h +++ b/libc/include/__/endian.h @@ -25,7 +25,7 @@ #ifndef INCLUDE____ENDIAN_H #define INCLUDE____ENDIAN_H -#include +#include #include <__/byteswap.h> diff --git a/libc/include/__/stdint.h b/libc/include/__/stdint.h index a3864ad3..b92fe41b 100644 --- a/libc/include/__/stdint.h +++ b/libc/include/__/stdint.h @@ -25,7 +25,7 @@ #ifndef INCLUDE____STDINT_H #define INCLUDE____STDINT_H -#include +#include #include <__/wordsize.h> diff --git a/libc/include/alloca.h b/libc/include/alloca.h index 84e429b3..543c0895 100644 --- a/libc/include/alloca.h +++ b/libc/include/alloca.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_ALLOCA_H #define INCLUDE_ALLOCA_H -#include +#include #include diff --git a/libc/include/arpa/inet.h b/libc/include/arpa/inet.h index bf0e4b8f..501a4107 100644 --- a/libc/include/arpa/inet.h +++ b/libc/include/arpa/inet.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_ARPA_INET_H #define INCLUDE_ARPA_INET_H -#include +#include #include diff --git a/libc/include/assert.h b/libc/include/assert.h index b13e9196..ec5ada24 100644 --- a/libc/include/assert.h +++ b/libc/include/assert.h @@ -25,7 +25,7 @@ #ifndef _ASSERT_H #define _ASSERT_H 1 -#include +#include /* stdlib.h is not needed, but GCC fixincludes thinks it is, so fool it. */ #if 0 diff --git a/libc/include/byteswap.h b/libc/include/byteswap.h index c60d5b0f..fa47ff42 100644 --- a/libc/include/byteswap.h +++ b/libc/include/byteswap.h @@ -25,7 +25,7 @@ #ifndef _BYTESWAP_H #define _BYTESWAP_H 1 -#include +#include #include <__/byteswap.h> diff --git a/libc/include/calltrace.h b/libc/include/calltrace.h index d0d6c565..df83bc94 100644 --- a/libc/include/calltrace.h +++ b/libc/include/calltrace.h @@ -25,7 +25,7 @@ #ifndef _CALLTRACE_H #define _CALLTRACE_H 1 -#include +#include __BEGIN_DECLS diff --git a/libc/include/ctype.h b/libc/include/ctype.h index f1678736..c9f7ecec 100644 --- a/libc/include/ctype.h +++ b/libc/include/ctype.h @@ -27,7 +27,7 @@ #ifndef _CTYPE_H #define _CTYPE_H 1 -#include +#include __BEGIN_DECLS diff --git a/libc/include/dirent.h b/libc/include/dirent.h index 30a098c7..68a24359 100644 --- a/libc/include/dirent.h +++ b/libc/include/dirent.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_DIRENT_H #define INCLUDE_DIRENT_H -#include +#include #include diff --git a/libc/include/dlfcn.h b/libc/include/dlfcn.h index f240eb7b..e2768e7a 100644 --- a/libc/include/dlfcn.h +++ b/libc/include/dlfcn.h @@ -25,7 +25,7 @@ #ifndef _DLFCN_H #define _DLFCN_H 1 -#include +#include __BEGIN_DECLS diff --git a/libc/include/endian.h b/libc/include/endian.h index de64c287..ee45c599 100644 --- a/libc/include/endian.h +++ b/libc/include/endian.h @@ -25,7 +25,7 @@ #ifndef _ENDIAN_H #define _ENDIAN_H 1 -#include +#include #include <__/endian.h> diff --git a/libc/include/errno.h b/libc/include/errno.h index 34e172f7..3b602e41 100644 --- a/libc/include/errno.h +++ b/libc/include/errno.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_ERRNO_H #define INCLUDE_ERRNO_H -#include +#include __BEGIN_DECLS diff --git a/libc/include/error.h b/libc/include/error.h index 49713124..7dd1020d 100644 --- a/libc/include/error.h +++ b/libc/include/error.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_ERROR_H #define INCLUDE_ERROR_H -#include +#include __BEGIN_DECLS diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h index 5077abd0..2edcf83e 100644 --- a/libc/include/fcntl.h +++ b/libc/include/fcntl.h @@ -27,7 +27,7 @@ #ifndef INCLUDE_FCNTL_H #define INCLUDE_FCNTL_H -#include +#include #include diff --git a/libc/include/features.h b/libc/include/features.h index 7c0907b7..e4c50bd4 100644 --- a/libc/include/features.h +++ b/libc/include/features.h @@ -18,12 +18,12 @@ along with the Sortix C Library. If not, see . features.h - Various things for various systems, programs, compabillity, and whatnot. + Detects the appropriate standard that this translation unit uses. *******************************************************************************/ #ifndef INCLUDE_FEATURES_H -#define INCLUDE_FEATURES_H 1 +#define INCLUDE_FEATURES_H #define __sortix_libc__ 1 @@ -46,25 +46,6 @@ (((gcc_major) == __GNUC__ && (gcc_minor) >= __GNUC_MINOR__) || \ ((gcc_major) < __GNUC__)) -/* Preprocessor trick to turn anything into a string. */ -#define __STRINGIFY(x) #x - -/* Issue warning when this is used, except in defines, where the warning is - inserted whenever the macro is expanded. This can be used to deprecated - macros - and it happens on preprocessor level - so it shouldn't change any - semantics of any code that uses such a macro. The argument msg should be a - string that contains the warning. */ -#define __PRAGMA_WARNING(msg) _Pragma(__STRINGIFY(GCC warning msg)) - -/* C++ needs to know that types and declarations are C, not C++. */ -#ifdef __cplusplus - #define __BEGIN_DECLS extern "C" { - #define __END_DECLS } -#else - #define __BEGIN_DECLS - #define __END_DECLS -#endif - /* Sortix system components implicitly use the native API. */ #if __is_sortix_system_component #define _SORTIX_SOURCE 1 @@ -100,21 +81,6 @@ #define __HAS_RESTRICT 1 #endif -/* Use the real restrict keyword if it is available. Not that this really - matters as gcc uses __restrict and __restrict__ as aliases for restrict, but - it will look nicer after preprocessing. */ -#if __HAS_RESTRICT -#undef __restrict -#define __restrict restrict -#endif - -/* Provide the restrict keyword if requested and unavailable. */ -#if !__HAS_RESTRICT && __want_restrict -#define restrict __restrict -#undef __HAS_RESTRICT -#define __HAS_RESTRICT 2 -#endif - /* Provide the full in all system components. */ #if __is_sortix_system_component #undef __STDC_CONSTANT_MACROS @@ -123,6 +89,4 @@ #define __STDC_LIMIT_MACROS #endif -#define __pure2 __attribute__((__const__)) - #endif diff --git a/libc/include/getopt.h b/libc/include/getopt.h index ee0047f8..3c48f46f 100644 --- a/libc/include/getopt.h +++ b/libc/include/getopt.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_GETOPT_H #define INCLUDE_GETOPT_H -#include +#include __BEGIN_DECLS diff --git a/libc/include/grp.h b/libc/include/grp.h index f5f4161b..7289852e 100644 --- a/libc/include/grp.h +++ b/libc/include/grp.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_GRP_H #define INCLUDE_GRP_H -#include +#include #include diff --git a/libc/include/inttypes.h b/libc/include/inttypes.h index 531be51a..53297c7b 100644 --- a/libc/include/inttypes.h +++ b/libc/include/inttypes.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_INTTYPES_H #define INCLUDE_INTTYPES_H -#include +#include #include diff --git a/libc/include/ioleast.h b/libc/include/ioleast.h index 3880a250..265454e7 100644 --- a/libc/include/ioleast.h +++ b/libc/include/ioleast.h @@ -28,7 +28,7 @@ #ifndef INCLUDE_IOLEAST_H #define INCLUDE_IOLEAST_H -#include +#include #include diff --git a/libc/include/libgen.h b/libc/include/libgen.h index 59a2724a..909531f2 100644 --- a/libc/include/libgen.h +++ b/libc/include/libgen.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_LIBGEN_H #define INCLUDE_LIBGEN_H -#include +#include __BEGIN_DECLS diff --git a/libc/include/locale.h b/libc/include/locale.h index 16ebb7cc..c640e6e0 100644 --- a/libc/include/locale.h +++ b/libc/include/locale.h @@ -25,7 +25,7 @@ #ifndef _LOCALE_H #define _LOCALE_H 1 -#include +#include #include diff --git a/libc/include/malloc.h b/libc/include/malloc.h index 7e433291..80bc06b7 100644 --- a/libc/include/malloc.h +++ b/libc/include/malloc.h @@ -25,7 +25,7 @@ #ifndef _MALLOC_H #define _MALLOC_H 1 -#include +#include __BEGIN_DECLS diff --git a/libc/include/netdb.h b/libc/include/netdb.h index e162e2d3..ed955f60 100644 --- a/libc/include/netdb.h +++ b/libc/include/netdb.h @@ -25,7 +25,7 @@ #ifndef _NETDB_H #define _NETDB_H 1 -#include +#include #include diff --git a/libc/include/netinet/in.h b/libc/include/netinet/in.h index 8ba79157..fdc68e6a 100644 --- a/libc/include/netinet/in.h +++ b/libc/include/netinet/in.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_NETINET_IN_H #define INCLUDE_NETINET_IN_H -#include +#include #include #include <__/endian.h> diff --git a/libc/include/poll.h b/libc/include/poll.h index 7a83eafe..5366da52 100644 --- a/libc/include/poll.h +++ b/libc/include/poll.h @@ -25,7 +25,7 @@ #ifndef _POLL_H #define _POLL_H 1 -#include +#include #include diff --git a/libc/include/pwd.h b/libc/include/pwd.h index 78f5455f..ba598c46 100644 --- a/libc/include/pwd.h +++ b/libc/include/pwd.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_PWD_H #define INCLUDE_PWD_H -#include +#include #include diff --git a/libc/include/setjmp.h b/libc/include/setjmp.h index 943c9ccc..b356dcc3 100644 --- a/libc/include/setjmp.h +++ b/libc/include/setjmp.h @@ -25,7 +25,7 @@ #ifndef _SETJMP_H #define _SETJMP_H 1 -#include +#include __BEGIN_DECLS diff --git a/libc/include/signal.h b/libc/include/signal.h index 9c13571e..501985ab 100644 --- a/libc/include/signal.h +++ b/libc/include/signal.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SIGNAL_H #define INCLUDE_SIGNAL_H -#include +#include #include diff --git a/libc/include/stdint.h b/libc/include/stdint.h index c633dbab..bc1baf7b 100644 --- a/libc/include/stdint.h +++ b/libc/include/stdint.h @@ -25,7 +25,7 @@ #ifndef _STDINT_H #define _STDINT_H 1 -#include +#include #include <__/stdint.h> diff --git a/libc/include/stdio.h b/libc/include/stdio.h index 6c547397..176d7554 100644 --- a/libc/include/stdio.h +++ b/libc/include/stdio.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_STDIO_H #define INCLUDE_STDIO_H -#include +#include #include diff --git a/libc/include/stdio_ext.h b/libc/include/stdio_ext.h index ec3f9871..57ada8f4 100644 --- a/libc/include/stdio_ext.h +++ b/libc/include/stdio_ext.h @@ -25,7 +25,7 @@ #ifndef _STDIO_EXT_H #define _STDIO_EXT_H 1 -#include +#include #include diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index 01bf7837..458874b6 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -25,7 +25,7 @@ #ifndef _STDLIB_H #define _STDLIB_H 1 -#include +#include #include diff --git a/libc/include/string.h b/libc/include/string.h index e9f6a701..8eb88e94 100644 --- a/libc/include/string.h +++ b/libc/include/string.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_STRING_H #define INCLUDE_STRING_H -#include +#include #include diff --git a/libc/include/sys/__/types.h b/libc/include/sys/__/types.h index b06be10d..c6ec1368 100644 --- a/libc/include/sys/__/types.h +++ b/libc/include/sys/__/types.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS____TYPES_H #define INCLUDE_SYS____TYPES_H -#include +#include #include diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h new file mode 100644 index 00000000..1b6361db --- /dev/null +++ b/libc/include/sys/cdefs.h @@ -0,0 +1,66 @@ +/******************************************************************************* + + Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013. + + This file is part of the Sortix C Library. + + The Sortix C Library is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or (at your + option) any later version. + + The Sortix C Library is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with the Sortix C Library. If not, see . + + sys/cdefs.h + Declares internal macros for the C programming language. + +*******************************************************************************/ + +#ifndef INCLUDE_SYS_CDEFS_H +#define INCLUDE_SYS_CDEFS_H + +#include + +/* Preprocessor trick to turn anything into a string. */ +#define __STRINGIFY(x) #x + +/* Issue warning when this is used, except in defines, where the warning is + inserted whenever the macro is expanded. This can be used to deprecated + macros - and it happens on preprocessor level - so it shouldn't change any + semantics of any code that uses such a macro. The argument msg should be a + string that contains the warning. */ +#define __PRAGMA_WARNING(msg) _Pragma(__STRINGIFY(GCC warning msg)) + +/* C++ needs to know that types and declarations are C, not C++. */ +#ifdef __cplusplus + #define __BEGIN_DECLS extern "C" { + #define __END_DECLS } +#else + #define __BEGIN_DECLS + #define __END_DECLS +#endif + +/* Use the real restrict keyword if it is available. Not that this really + matters as gcc uses __restrict and __restrict__ as aliases for restrict, but + it will look nicer after preprocessing. */ +#if __HAS_RESTRICT +#undef __restrict +#define __restrict restrict +#endif + +/* Provide the restrict keyword if requested and unavailable. */ +#if !__HAS_RESTRICT && __want_restrict +#define restrict __restrict +#undef __HAS_RESTRICT +#define __HAS_RESTRICT 2 +#endif + +#define __pure2 __attribute__((__const__)) + +#endif diff --git a/libc/include/sys/display.h b/libc/include/sys/display.h index 77f7f921..18ac5df8 100644 --- a/libc/include/sys/display.h +++ b/libc/include/sys/display.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS_DISPLAY_H #define INCLUDE_SYS_DISPLAY_H -#include +#include #include #include diff --git a/libc/include/sys/ioctl.h b/libc/include/sys/ioctl.h index bf6a9049..250eecdf 100644 --- a/libc/include/sys/ioctl.h +++ b/libc/include/sys/ioctl.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS_IOCTL_H #define INCLUDE_SYS_IOCTL_H -#include +#include __BEGIN_DECLS diff --git a/libc/include/sys/kernelinfo.h b/libc/include/sys/kernelinfo.h index 789264cd..d4bd3bfd 100644 --- a/libc/include/sys/kernelinfo.h +++ b/libc/include/sys/kernelinfo.h @@ -25,7 +25,7 @@ #ifndef _SYS_KERNELINFO_H #define _SYS_KERNELINFO_H 1 -#include +#include #include diff --git a/libc/include/sys/keycodes.h b/libc/include/sys/keycodes.h index a8e33b7d..1389f8eb 100644 --- a/libc/include/sys/keycodes.h +++ b/libc/include/sys/keycodes.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS_KEYCODES_H #define INCLUDE_SYS_KEYCODES_H -#include +#include #include diff --git a/libc/include/sys/mman.h b/libc/include/sys/mman.h index fdc2465d..b66b7758 100644 --- a/libc/include/sys/mman.h +++ b/libc/include/sys/mman.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS_MMAN_H #define INCLUDE_SYS_MMAN_H -#include +#include #include diff --git a/libc/include/sys/readdirents.h b/libc/include/sys/readdirents.h index 07c72d5a..828cc72d 100644 --- a/libc/include/sys/readdirents.h +++ b/libc/include/sys/readdirents.h @@ -25,7 +25,7 @@ #ifndef _SYS_READDIRENTS_H #define _SYS_READDIRENTS_H 1 -#include +#include #include diff --git a/libc/include/sys/resource.h b/libc/include/sys/resource.h index 8d026654..5601401c 100644 --- a/libc/include/sys/resource.h +++ b/libc/include/sys/resource.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS_RESOURCE_H #define INCLUDE_SYS_RESOURCE_H -#include +#include #include diff --git a/libc/include/sys/select.h b/libc/include/sys/select.h index ba67f94d..1c500c15 100644 --- a/libc/include/sys/select.h +++ b/libc/include/sys/select.h @@ -26,7 +26,7 @@ #ifndef _SYS_SELECT_H #define _SYS_SELECT_H 1 -#include +#include #include diff --git a/libc/include/sys/socket.h b/libc/include/sys/socket.h index e89d1412..0d324b01 100644 --- a/libc/include/sys/socket.h +++ b/libc/include/sys/socket.h @@ -25,7 +25,7 @@ #ifndef _SYS_SOCKET_H #define _SYS_SOCKET_H 1 -#include +#include #include diff --git a/libc/include/sys/stat.h b/libc/include/sys/stat.h index 14e87d19..892958da 100644 --- a/libc/include/sys/stat.h +++ b/libc/include/sys/stat.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS_STAT_H #define INCLUDE_SYS_STAT_H -#include +#include #include diff --git a/libc/include/sys/syscall.h b/libc/include/sys/syscall.h index 85bb9633..6b3b4c73 100644 --- a/libc/include/sys/syscall.h +++ b/libc/include/sys/syscall.h @@ -29,7 +29,7 @@ #ifndef _SYS_SYSCALL_H #define _SYS_SYSCALL_H 1 -#include +#include #include diff --git a/libc/include/sys/termmode.h b/libc/include/sys/termmode.h index 13a1b5c2..c577eec5 100644 --- a/libc/include/sys/termmode.h +++ b/libc/include/sys/termmode.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS_TERMMODE_H #define INCLUDE_SYS_TERMMODE_H -#include +#include #include diff --git a/libc/include/sys/time.h b/libc/include/sys/time.h index 81d09eb1..9a16fdf2 100644 --- a/libc/include/sys/time.h +++ b/libc/include/sys/time.h @@ -25,7 +25,7 @@ #ifndef _SYS_TIME_H #define _SYS_TIME_H 1 -#include +#include #include diff --git a/libc/include/sys/times.h b/libc/include/sys/times.h index d7d53947..d8168e2b 100644 --- a/libc/include/sys/times.h +++ b/libc/include/sys/times.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS_TIMES_H #define INCLUDE_SYS_TIMES_H -#include +#include #include diff --git a/libc/include/sys/types.h b/libc/include/sys/types.h index 26e8f05f..23fa9192 100644 --- a/libc/include/sys/types.h +++ b/libc/include/sys/types.h @@ -27,7 +27,7 @@ #ifndef INCLUDE_SYS_TYPES_H #define INCLUDE_SYS_TYPES_H -#include +#include #include diff --git a/libc/include/sys/uio.h b/libc/include/sys/uio.h index 2269d7f2..b8c17a2f 100644 --- a/libc/include/sys/uio.h +++ b/libc/include/sys/uio.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SYS_UIO_H #define INCLUDE_SYS_UIO_H -#include +#include #include diff --git a/libc/include/sys/un.h b/libc/include/sys/un.h index 4690f33c..fea5eaf9 100644 --- a/libc/include/sys/un.h +++ b/libc/include/sys/un.h @@ -25,7 +25,7 @@ #ifndef _SYS_UN_H #define _SYS_UN_H 1 -#include +#include #include diff --git a/libc/include/sys/wait.h b/libc/include/sys/wait.h index c7770878..5d6f18dd 100644 --- a/libc/include/sys/wait.h +++ b/libc/include/sys/wait.h @@ -27,7 +27,7 @@ #ifndef _SYS_WAIT_H #define _SYS_WAIT_H 1 -#include +#include #include diff --git a/libc/include/termios.h b/libc/include/termios.h index 85b0ac1c..3ea516fb 100644 --- a/libc/include/termios.h +++ b/libc/include/termios.h @@ -27,7 +27,7 @@ #ifndef _TERMIOS_H #define _TERMIOS_H 1 -#include +#include #include #include diff --git a/libc/include/time.h b/libc/include/time.h index ebb4f0c8..8af7a415 100644 --- a/libc/include/time.h +++ b/libc/include/time.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_TIME_H #define INCLUDE_TIME_H -#include +#include #include diff --git a/libc/include/timespec.h b/libc/include/timespec.h index d8c37064..11591bb2 100644 --- a/libc/include/timespec.h +++ b/libc/include/timespec.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_TIMESPEC_H #define INCLUDE_TIMESPEC_H -#include +#include #include diff --git a/libc/include/unistd.h b/libc/include/unistd.h index bb7e3cb9..7c56dae3 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -28,7 +28,7 @@ #ifndef _UNISTD_H #define _UNISTD_H 1 -#include +#include #include #include <__/stdint.h> diff --git a/libc/include/utime.h b/libc/include/utime.h index c0fb64b2..69065846 100644 --- a/libc/include/utime.h +++ b/libc/include/utime.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_UTIME_H #define INCLUDE_UTIME_H -#include +#include #include diff --git a/libc/include/wchar.h b/libc/include/wchar.h index 36a3f43a..b2344b3c 100644 --- a/libc/include/wchar.h +++ b/libc/include/wchar.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_WCHAR_H #define INCLUDE_WCHAR_H -#include +#include #include diff --git a/libc/include/wctype.h b/libc/include/wctype.h index 15dfe125..e1b5e5a6 100644 --- a/libc/include/wctype.h +++ b/libc/include/wctype.h @@ -25,7 +25,7 @@ #ifndef _WCTYPE_H #define _WCTYPE_H 1 -#include +#include #include diff --git a/libc/stdio/fdio.h b/libc/stdio/fdio.h index fc571ecb..cb511697 100644 --- a/libc/stdio/fdio.h +++ b/libc/stdio/fdio.h @@ -25,7 +25,7 @@ #ifndef STDIO_FDIO_H #define STDIO_FDIO_H 1 -#include +#include __BEGIN_DECLS diff --git a/libm/include/__/math.h b/libm/include/__/math.h index ee9eda29..f31737a4 100644 --- a/libm/include/__/math.h +++ b/libm/include/__/math.h @@ -26,7 +26,7 @@ #ifndef INCLUDE____MATH_H #define INCLUDE____MATH_H -#include +#include #if defined(__sortix__) #include <__/wordsize.h> diff --git a/libm/include/complex.h b/libm/include/complex.h index 89465e8b..13e1e2d8 100644 --- a/libm/include/complex.h +++ b/libm/include/complex.h @@ -8,7 +8,7 @@ #ifndef INCLUDE_COMPLEX_H #define INCLUDE_COMPLEX_H -#include +#include #ifndef __sortix_libm__ #define __sortix_libm__ 1 diff --git a/libm/include/fenv.h b/libm/include/fenv.h index 01cbf321..80a3a0e2 100644 --- a/libm/include/fenv.h +++ b/libm/include/fenv.h @@ -28,7 +28,7 @@ #ifndef INCLUDE_FENV_H #define INCLUDE_FENV_H -#include +#include #ifndef __sortix_libm__ #define __sortix_libm__ 1 diff --git a/libm/include/ieee754.h b/libm/include/ieee754.h index 7361f070..db0eabff 100644 --- a/libm/include/ieee754.h +++ b/libm/include/ieee754.h @@ -26,7 +26,7 @@ #ifndef INCLUDE_IEEE754_H #define INCLUDE_IEEE754_H -#include +#include #ifndef __sortix_libm__ #define __sortix_libm__ 1 diff --git a/libm/include/ieeefp.h b/libm/include/ieeefp.h index 00cf1657..e33eea13 100644 --- a/libm/include/ieeefp.h +++ b/libm/include/ieeefp.h @@ -8,7 +8,7 @@ #ifndef INCLUDE_IEEEFP_H #define INCLUDE_IEEEFP_H -#include +#include #ifndef __sortix_libm__ #define __sortix_libm__ 1 diff --git a/libm/include/math.h b/libm/include/math.h index ce9d2c70..d781c23d 100644 --- a/libm/include/math.h +++ b/libm/include/math.h @@ -26,7 +26,7 @@ #ifndef INCLUDE_MATH_H #define INCLUDE_MATH_H -#include +#include #ifndef __sortix_libm__ #define __sortix_libm__ 1 diff --git a/libm/include/tgmath.h b/libm/include/tgmath.h index 2798e10b..2bc397c0 100644 --- a/libm/include/tgmath.h +++ b/libm/include/tgmath.h @@ -30,7 +30,7 @@ #ifndef INCLUDE_TGMATH_H #define INCLUDE_TGMATH_H -#include +#include #ifndef __sortix_libm__ #define __sortix_libm__ 1 diff --git a/libm/src/sys/cdefs.h b/libm/src/sys/cdefs.h index 12ffae58..61021891 100644 --- a/libm/src/sys/cdefs.h +++ b/libm/src/sys/cdefs.h @@ -34,9 +34,7 @@ * @(#)cdefs.h 8.8 (Berkeley) 1/9/95 */ -#if !defined(__sortix__) #include_next -#endif #if !defined(_C_LABEL) #define _C_LABEL(x) x diff --git a/sortix/include/sortix/__/types.h b/sortix/include/sortix/__/types.h index 68ef44c7..bd9b7d0a 100644 --- a/sortix/include/sortix/__/types.h +++ b/sortix/include/sortix/__/types.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX____TYPES_H #define INCLUDE_SORTIX____TYPES_H -#include +#include #include <__/stdint.h> #include <__/wordsize.h> diff --git a/sortix/include/sortix/clock.h b/sortix/include/sortix/clock.h index b6e533f1..6db6c0f9 100644 --- a/sortix/include/sortix/clock.h +++ b/sortix/include/sortix/clock.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_CLOCK_H #define INCLUDE_SORTIX_CLOCK_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/dirent.h b/sortix/include/sortix/dirent.h index a00ae359..139b5152 100644 --- a/sortix/include/sortix/dirent.h +++ b/sortix/include/sortix/dirent.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_DIRENT_H #define INCLUDE_SORTIX_DIRENT_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/display.h b/sortix/include/sortix/display.h index 13c7d6f3..5828b64d 100644 --- a/sortix/include/sortix/display.h +++ b/sortix/include/sortix/display.h @@ -25,7 +25,7 @@ #ifndef SORTIX_INCLUDE_DISPLAY_H #define SORTIX_INCLUDE_DISPLAY_H -#include +#include #include diff --git a/sortix/include/sortix/fcntl.h b/sortix/include/sortix/fcntl.h index d631c4e0..574624f1 100644 --- a/sortix/include/sortix/fcntl.h +++ b/sortix/include/sortix/fcntl.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_FCNTL_H #define INCLUDE_SORTIX_FCNTL_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/fork.h b/sortix/include/sortix/fork.h index 48e140ff..7e75bd12 100644 --- a/sortix/include/sortix/fork.h +++ b/sortix/include/sortix/fork.h @@ -25,7 +25,7 @@ #ifndef SORTIX_FORK_H #define SORTIX_FORK_H -#include +#include #include #include diff --git a/sortix/include/sortix/initrd.h b/sortix/include/sortix/initrd.h index 66acc63a..c6a47b3e 100644 --- a/sortix/include/sortix/initrd.h +++ b/sortix/include/sortix/initrd.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_INITRD_H #define INCLUDE_SORTIX_INITRD_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/itimerspec.h b/sortix/include/sortix/itimerspec.h index 02af6ef9..0be029b7 100644 --- a/sortix/include/sortix/itimerspec.h +++ b/sortix/include/sortix/itimerspec.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_ITIMERSPEC_H #define INCLUDE_SORTIX_ITIMERSPEC_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/mount.h b/sortix/include/sortix/mount.h index fe5100b9..ac1c6933 100644 --- a/sortix/include/sortix/mount.h +++ b/sortix/include/sortix/mount.h @@ -25,7 +25,7 @@ #ifndef SORTIX_INCLUDE_MOUNT_H #define SORTIX_INCLUDE_MOUNT_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/poll.h b/sortix/include/sortix/poll.h index b79ae372..cbccd894 100644 --- a/sortix/include/sortix/poll.h +++ b/sortix/include/sortix/poll.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_POLL_H #define INCLUDE_SORTIX_POLL_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/resource.h b/sortix/include/sortix/resource.h index a1f0d22b..90a4acf3 100644 --- a/sortix/include/sortix/resource.h +++ b/sortix/include/sortix/resource.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_RESOURCE_H #define INCLUDE_SORTIX_RESOURCE_H -#include +#include #include <__/stdint.h> diff --git a/sortix/include/sortix/seek.h b/sortix/include/sortix/seek.h index ffc40275..689d585d 100644 --- a/sortix/include/sortix/seek.h +++ b/sortix/include/sortix/seek.h @@ -25,7 +25,7 @@ #ifndef SORTIX_SEEK_H #define SORTIX_SEEK_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/sigevent.h b/sortix/include/sortix/sigevent.h index 5dd4c106..4c1a6c15 100644 --- a/sortix/include/sortix/sigevent.h +++ b/sortix/include/sortix/sigevent.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_SIGEVENT_H #define INCLUDE_SORTIX_SIGEVENT_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/signal.h b/sortix/include/sortix/signal.h index 0320fdba..aa4d2d54 100644 --- a/sortix/include/sortix/signal.h +++ b/sortix/include/sortix/signal.h @@ -27,7 +27,7 @@ /* TODO: Yes, signals are implemented in a non-standard manner for now. */ -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/sigset.h b/sortix/include/sortix/sigset.h index 20486c25..2e93a720 100644 --- a/sortix/include/sortix/sigset.h +++ b/sortix/include/sortix/sigset.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_SIGSET_H #define INCLUDE_SORTIX_SIGSET_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/socket.h b/sortix/include/sortix/socket.h index b6c68a06..43cc8a46 100644 --- a/sortix/include/sortix/socket.h +++ b/sortix/include/sortix/socket.h @@ -25,7 +25,7 @@ #ifndef SORTIX_INCLUDE_SOCKET_H #define SORTIX_INCLUDE_SOCKET_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/stat.h b/sortix/include/sortix/stat.h index 25559d18..e133c041 100644 --- a/sortix/include/sortix/stat.h +++ b/sortix/include/sortix/stat.h @@ -26,7 +26,7 @@ #ifndef INCLUDE_SORTIX_STAT_H #define INCLUDE_SORTIX_STAT_H -#include +#include #include #include diff --git a/sortix/include/sortix/termios.h b/sortix/include/sortix/termios.h index 918bdfd2..b124a88f 100644 --- a/sortix/include/sortix/termios.h +++ b/sortix/include/sortix/termios.h @@ -25,7 +25,7 @@ #ifndef SORTIX_TERMIOS_H #define SORTIX_TERMIOS_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/time.h b/sortix/include/sortix/time.h index 670cc071..8d0755c8 100644 --- a/sortix/include/sortix/time.h +++ b/sortix/include/sortix/time.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_TIME_H #define INCLUDE_SORTIX_TIME_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/timespec.h b/sortix/include/sortix/timespec.h index 8e4d5620..a891b1f3 100644 --- a/sortix/include/sortix/timespec.h +++ b/sortix/include/sortix/timespec.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_TIMESPEC_H #define INCLUDE_SORTIX_TIMESPEC_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/tmns.h b/sortix/include/sortix/tmns.h index 209838bd..8aa53296 100644 --- a/sortix/include/sortix/tmns.h +++ b/sortix/include/sortix/tmns.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_TMNS_H #define INCLUDE_SORTIX_TMNS_H -#include +#include #include diff --git a/sortix/include/sortix/uio.h b/sortix/include/sortix/uio.h index 78a9ecdb..65761c1c 100644 --- a/sortix/include/sortix/uio.h +++ b/sortix/include/sortix/uio.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_UIO_H #define INCLUDE_SORTIX_UIO_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/unistd.h b/sortix/include/sortix/unistd.h index 20c20394..93fe4aef 100644 --- a/sortix/include/sortix/unistd.h +++ b/sortix/include/sortix/unistd.h @@ -25,7 +25,7 @@ #ifndef SORTIX_UNISTD_H #define SORTIX_UNISTD_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/vga.h b/sortix/include/sortix/vga.h index 3b1a8818..6cc07db8 100644 --- a/sortix/include/sortix/vga.h +++ b/sortix/include/sortix/vga.h @@ -25,7 +25,7 @@ #ifndef INC_SORTIX_VGA_H #define INC_SORTIX_VGA_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/wait.h b/sortix/include/sortix/wait.h index 2cdb6542..f7b0727b 100644 --- a/sortix/include/sortix/wait.h +++ b/sortix/include/sortix/wait.h @@ -25,7 +25,7 @@ #ifndef INCLUDE_SORTIX_WAIT_H #define INCLUDE_SORTIX_WAIT_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/x64/fork.h b/sortix/include/sortix/x64/fork.h index ec797c7b..79ccff33 100644 --- a/sortix/include/sortix/x64/fork.h +++ b/sortix/include/sortix/x64/fork.h @@ -25,7 +25,7 @@ #ifndef SORTIX_X64_FORK_H #define SORTIX_X64_FORK_H -#include +#include __BEGIN_DECLS diff --git a/sortix/include/sortix/x86/fork.h b/sortix/include/sortix/x86/fork.h index 9979046d..19692444 100644 --- a/sortix/include/sortix/x86/fork.h +++ b/sortix/include/sortix/x86/fork.h @@ -25,7 +25,7 @@ #ifndef SORTIX_X86_FORK_H #define SORTIX_X86_FORK_H -#include +#include __BEGIN_DECLS