diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-22 12:34:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-07 12:57:27 +0200 |
commit | d60bc7c88910ee41f86829d81a9e0c30b0dfa57d (patch) | |
tree | d3f2723251e00aad89355732f40ff5d6ca244ba0 /cpukit/libcsupport/include/machine/_kernel_param.h | |
parent | network: Do not use MSIZE (diff) | |
download | rtems-d60bc7c88910ee41f86829d81a9e0c30b0dfa57d.tar.bz2 |
Provide kernel space headers used by Newlib
Update #2833.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/include/machine/_kernel_param.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cpukit/libcsupport/include/machine/_kernel_param.h b/cpukit/libcsupport/include/machine/_kernel_param.h new file mode 100644 index 0000000000..183bb895a2 --- /dev/null +++ b/cpukit/libcsupport/include/machine/_kernel_param.h @@ -0,0 +1,29 @@ +#include <sys/cdefs.h> +#include <sys/errno.h> +#include <sys/time.h> +#include <sys/priority.h> + +#ifndef FALSE +#define FALSE 0 +#endif +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef _BYTEORDER_PROTOTYPED +#define _BYTEORDER_PROTOTYPED +__BEGIN_DECLS +__uint32_t htonl(__uint32_t); +__uint16_t htons(__uint16_t); +__uint32_t ntohl(__uint32_t); +__uint16_t ntohs(__uint16_t); +__END_DECLS +#endif + +#ifndef _BYTEORDER_FUNC_DEFINED +#define _BYTEORDER_FUNC_DEFINED +#define htonl(x) __htonl(x) +#define htons(x) __htons(x) +#define ntohl(x) __ntohl(x) +#define ntohs(x) __ntohs(x) +#endif /* !_BYTEORDER_FUNC_DEFINED */ |