summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-03-24 09:36:14 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-03-24 09:36:14 +0000
commitee613aa252e5ee3c899f5b51e8a75d664423ba97 (patch)
treef764978f3ea072e3856ee45cccabbc750d9330e6 /cpukit/libnetworking
parent2011-03-24 Ralf Cors├ępius <ralf.corsepius@rtems.org> (diff)
downloadrtems-ee613aa252e5ee3c899f5b51e8a75d664423ba97.tar.bz2
Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h).
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/arpa/inet.h2
-rw-r--r--cpukit/libnetworking/arpa/nameser.h2
-rw-r--r--cpukit/libnetworking/ifaddrs.h2
-rw-r--r--cpukit/libnetworking/libc/gethostbydns.c2
-rw-r--r--cpukit/libnetworking/libc/getifaddrs.c2
-rw-r--r--cpukit/libnetworking/libc/if_indextoname.c2
-rw-r--r--cpukit/libnetworking/libc/if_nameindex.c2
-rw-r--r--cpukit/libnetworking/libc/res_stubs.c2
-rw-r--r--cpukit/libnetworking/machine/in_cksum.h2
-rw-r--r--cpukit/libnetworking/net/ethernet.h2
-rw-r--r--cpukit/libnetworking/net/if.h2
-rw-r--r--cpukit/libnetworking/net/if_dl.h2
-rw-r--r--cpukit/libnetworking/netdb.h2
-rw-r--r--cpukit/libnetworking/netinet/ip.h2
-rw-r--r--cpukit/libnetworking/netinet/tcp.h2
-rw-r--r--cpukit/libnetworking/netinet/tcp_debug.c2
-rw-r--r--cpukit/libnetworking/resolv.h2
-rw-r--r--cpukit/libnetworking/rtems/rtems_bsdnet_internal.h2
-rw-r--r--cpukit/libnetworking/sys/libkern.h2
-rw-r--r--cpukit/libnetworking/sys/mount.h2
-rw-r--r--cpukit/libnetworking/sys/poll.h2
-rw-r--r--cpukit/libnetworking/sys/socket.h2
-rw-r--r--cpukit/libnetworking/sys/sysctl.h2
-rw-r--r--cpukit/libnetworking/sys/syslog.h2
-rw-r--r--cpukit/libnetworking/sys/systm.h4
-rw-r--r--cpukit/libnetworking/sys/uio.h2
-rw-r--r--cpukit/libnetworking/sys/un.h2
27 files changed, 30 insertions, 26 deletions
diff --git a/cpukit/libnetworking/arpa/inet.h b/cpukit/libnetworking/arpa/inet.h
index a1c409dc85..d3513267cf 100644
--- a/cpukit/libnetworking/arpa/inet.h
+++ b/cpukit/libnetworking/arpa/inet.h
@@ -64,7 +64,7 @@
/* External definitions for functions in inet(3). */
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <rtems/bsdnet/_types.h>
/* Required for byteorder(3) functions. */
diff --git a/cpukit/libnetworking/arpa/nameser.h b/cpukit/libnetworking/arpa/nameser.h
index 0ba6c30a1e..b4d6236aff 100644
--- a/cpukit/libnetworking/arpa/nameser.h
+++ b/cpukit/libnetworking/arpa/nameser.h
@@ -63,7 +63,7 @@
#define BIND_4_COMPAT
#include <sys/types.h>
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
/*
* revision information. this is the release date in YYYYMMDD format.
diff --git a/cpukit/libnetworking/ifaddrs.h b/cpukit/libnetworking/ifaddrs.h
index 874591bb93..7d3aa953ec 100644
--- a/cpukit/libnetworking/ifaddrs.h
+++ b/cpukit/libnetworking/ifaddrs.h
@@ -46,7 +46,7 @@ struct ifaddrs {
#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */
#endif
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
extern int getifaddrs(struct ifaddrs **);
diff --git a/cpukit/libnetworking/libc/gethostbydns.c b/cpukit/libnetworking/libc/gethostbydns.c
index 38a0cdc6d6..532dbfd1f6 100644
--- a/cpukit/libnetworking/libc/gethostbydns.c
+++ b/cpukit/libnetworking/libc/gethostbydns.c
@@ -57,7 +57,7 @@
#include "config.h"
#endif
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
diff --git a/cpukit/libnetworking/libc/getifaddrs.c b/cpukit/libnetworking/libc/getifaddrs.c
index 9d5a535000..b5979cd372 100644
--- a/cpukit/libnetworking/libc/getifaddrs.c
+++ b/cpukit/libnetworking/libc/getifaddrs.c
@@ -33,7 +33,7 @@
#include "config.h"
#endif
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/ioctl.h>
diff --git a/cpukit/libnetworking/libc/if_indextoname.c b/cpukit/libnetworking/libc/if_indextoname.c
index 8b2279e75c..32a499590e 100644
--- a/cpukit/libnetworking/libc/if_indextoname.c
+++ b/cpukit/libnetworking/libc/if_indextoname.c
@@ -29,7 +29,7 @@
#include "config.h"
#endif
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/cpukit/libnetworking/libc/if_nameindex.c b/cpukit/libnetworking/libc/if_nameindex.c
index f4e54a6733..8c1ebb8381 100644
--- a/cpukit/libnetworking/libc/if_nameindex.c
+++ b/cpukit/libnetworking/libc/if_nameindex.c
@@ -29,7 +29,7 @@
#include "config.h"
#endif
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/cpukit/libnetworking/libc/res_stubs.c b/cpukit/libnetworking/libc/res_stubs.c
index 5bb415a94c..2cd9ba70c7 100644
--- a/cpukit/libnetworking/libc/res_stubs.c
+++ b/cpukit/libnetworking/libc/res_stubs.c
@@ -43,7 +43,7 @@
#endif
#include <sys/types.h>
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
__weak_reference(__inet_addr, inet_addr);
__weak_reference(__inet_aton, inet_aton);
diff --git a/cpukit/libnetworking/machine/in_cksum.h b/cpukit/libnetworking/machine/in_cksum.h
index 5329fba869..db906a60be 100644
--- a/cpukit/libnetworking/machine/in_cksum.h
+++ b/cpukit/libnetworking/machine/in_cksum.h
@@ -39,7 +39,7 @@
#ifndef _MACHINE_IN_CKSUM_H_
#define _MACHINE_IN_CKSUM_H_ 1
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <netinet/ip.h> /* struct ip */
/*
diff --git a/cpukit/libnetworking/net/ethernet.h b/cpukit/libnetworking/net/ethernet.h
index 3051af077a..380ee1bad0 100644
--- a/cpukit/libnetworking/net/ethernet.h
+++ b/cpukit/libnetworking/net/ethernet.h
@@ -369,7 +369,7 @@ extern char *ether_sprintf(const u_int8_t *);
#else /* _KERNEL */
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
/*
* Ethernet address conversion/parsing routines.
diff --git a/cpukit/libnetworking/net/if.h b/cpukit/libnetworking/net/if.h
index 7a0b9f15ce..31e256fcd4 100644
--- a/cpukit/libnetworking/net/if.h
+++ b/cpukit/libnetworking/net/if.h
@@ -37,7 +37,7 @@
#ifndef _NET_IF_H_
#define _NET_IF_H_
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#if defined(__rtems__)
/*
diff --git a/cpukit/libnetworking/net/if_dl.h b/cpukit/libnetworking/net/if_dl.h
index 757f1f13f0..e739316be8 100644
--- a/cpukit/libnetworking/net/if_dl.h
+++ b/cpukit/libnetworking/net/if_dl.h
@@ -74,7 +74,7 @@ struct sockaddr_dl {
#ifndef _KERNEL
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
void link_addr(const char *, struct sockaddr_dl *);
diff --git a/cpukit/libnetworking/netdb.h b/cpukit/libnetworking/netdb.h
index 8d4c60c5b5..00f2ccdd3c 100644
--- a/cpukit/libnetworking/netdb.h
+++ b/cpukit/libnetworking/netdb.h
@@ -65,7 +65,7 @@
#ifndef _NETDB_H_
#define _NETDB_H_
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <rtems/bsdnet/_types.h>
#ifndef _SOCKLEN_T_DECLARED
diff --git a/cpukit/libnetworking/netinet/ip.h b/cpukit/libnetworking/netinet/ip.h
index 04625b95a6..a17d0194c3 100644
--- a/cpukit/libnetworking/netinet/ip.h
+++ b/cpukit/libnetworking/netinet/ip.h
@@ -37,7 +37,7 @@
#ifndef _NETINET_IP_H_
#define _NETINET_IP_H_
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
/*
* Definitions for internet protocol version 4.
diff --git a/cpukit/libnetworking/netinet/tcp.h b/cpukit/libnetworking/netinet/tcp.h
index 9bd4a1454c..96e28710c1 100644
--- a/cpukit/libnetworking/netinet/tcp.h
+++ b/cpukit/libnetworking/netinet/tcp.h
@@ -37,7 +37,7 @@
#ifndef _NETINET_TCP_H_
#define _NETINET_TCP_H_
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#if __BSD_VISIBLE
diff --git a/cpukit/libnetworking/netinet/tcp_debug.c b/cpukit/libnetworking/netinet/tcp_debug.c
index 779c5fb5c7..56198adcc0 100644
--- a/cpukit/libnetworking/netinet/tcp_debug.c
+++ b/cpukit/libnetworking/netinet/tcp_debug.c
@@ -34,7 +34,7 @@
#include "config.h"
#endif
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include "opt_inet.h"
#include "opt_tcpdebug.h"
diff --git a/cpukit/libnetworking/resolv.h b/cpukit/libnetworking/resolv.h
index 9e45285a6e..33b97a043f 100644
--- a/cpukit/libnetworking/resolv.h
+++ b/cpukit/libnetworking/resolv.h
@@ -59,7 +59,7 @@
#include <sys/param.h>
#include <sys/types.h>
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <stdio.h>
/*
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index a22a22391c..4f4ff618eb 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -36,7 +36,7 @@ typedef u_int32_t ioctl_command_t;
/* make sure we get the network versions of these */
#include <machine/types.h>
#include <machine/param.h>
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <sys/time.h>
diff --git a/cpukit/libnetworking/sys/libkern.h b/cpukit/libnetworking/sys/libkern.h
index 3c0b025714..fd09ced07f 100644
--- a/cpukit/libnetworking/sys/libkern.h
+++ b/cpukit/libnetworking/sys/libkern.h
@@ -37,7 +37,7 @@
#ifndef _SYS_LIBKERN_H_
#define _SYS_LIBKERN_H_
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <sys/types.h>
/* BCD conversions. */
diff --git a/cpukit/libnetworking/sys/mount.h b/cpukit/libnetworking/sys/mount.h
index fec316f2ed..c055677258 100644
--- a/cpukit/libnetworking/sys/mount.h
+++ b/cpukit/libnetworking/sys/mount.h
@@ -116,7 +116,7 @@ typedef struct fhandle fhandle_t;
#else /* !_KERNEL */
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#endif /* _KERNEL */
diff --git a/cpukit/libnetworking/sys/poll.h b/cpukit/libnetworking/sys/poll.h
index 8237ba303c..9ea42b9ddf 100644
--- a/cpukit/libnetworking/sys/poll.h
+++ b/cpukit/libnetworking/sys/poll.h
@@ -31,7 +31,7 @@
#ifndef _SYS_POLL_H_
#define _SYS_POLL_H_
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
/*
* This file is intended to be compatible with the traditional poll.h.
diff --git a/cpukit/libnetworking/sys/socket.h b/cpukit/libnetworking/sys/socket.h
index 0bc1dcdefa..63b14ca6fc 100644
--- a/cpukit/libnetworking/sys/socket.h
+++ b/cpukit/libnetworking/sys/socket.h
@@ -37,7 +37,7 @@
#ifndef _SYS_SOCKET_H_
#define _SYS_SOCKET_H_
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <rtems/bsdnet/_types.h>
/*
diff --git a/cpukit/libnetworking/sys/sysctl.h b/cpukit/libnetworking/sys/sysctl.h
index 125d33cbf7..58ac3e007b 100644
--- a/cpukit/libnetworking/sys/sysctl.h
+++ b/cpukit/libnetworking/sys/sysctl.h
@@ -630,7 +630,7 @@ int sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid,
int sysctl_wire_old_buffer(struct sysctl_req *req, size_t len);
#else /* !_KERNEL */
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
int sysctl(int *, u_int, void *, size_t *, void *, size_t);
diff --git a/cpukit/libnetworking/sys/syslog.h b/cpukit/libnetworking/sys/syslog.h
index 8927b8a8ff..affce6887e 100644
--- a/cpukit/libnetworking/sys/syslog.h
+++ b/cpukit/libnetworking/sys/syslog.h
@@ -178,7 +178,7 @@ CODE facilitynames[] = {
#else /* not _KERNEL */
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <stdarg.h>
__BEGIN_DECLS
diff --git a/cpukit/libnetworking/sys/systm.h b/cpukit/libnetworking/sys/systm.h
index a66c746121..d28463ffcf 100644
--- a/cpukit/libnetworking/sys/systm.h
+++ b/cpukit/libnetworking/sys/systm.h
@@ -45,6 +45,10 @@
#include <rtems/rtems_bsdnet_internal.h> /* for __BSD_VA_LIST__ */
#include <machine/cpufunc.h>
+#if !defined(__dead2)
+#define __dead2 __attribute__((__noreturn__))
+#endif
+
extern int securelevel; /* system security level (see init(8)) */
extern int cold; /* nonzero if we are doing a cold boot */
diff --git a/cpukit/libnetworking/sys/uio.h b/cpukit/libnetworking/sys/uio.h
index 6b12a91260..b89e430596 100644
--- a/cpukit/libnetworking/sys/uio.h
+++ b/cpukit/libnetworking/sys/uio.h
@@ -37,7 +37,7 @@
#ifndef _SYS_UIO_H_
#define _SYS_UIO_H_
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <sys/types.h>
/*
diff --git a/cpukit/libnetworking/sys/un.h b/cpukit/libnetworking/sys/un.h
index cf169d3274..35425ad1eb 100644
--- a/cpukit/libnetworking/sys/un.h
+++ b/cpukit/libnetworking/sys/un.h
@@ -37,7 +37,7 @@
#ifndef _SYS_UN_H_
#define _SYS_UN_H_
-#include <rtems/bsd/sys/cdefs.h>
+#include <sys/cdefs.h>
#include <rtems/bsdnet/_types.h>
#ifndef _SA_FAMILY_T_DECLARED