forked from Imagelibrary/rtems
Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h).
This commit is contained in:
@@ -88,7 +88,7 @@
|
|||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#ifndef __ioctl_command_defined
|
#ifndef __ioctl_command_defined
|
||||||
typedef u_int32_t ioctl_command_t;
|
typedef u_int32_t ioctl_command_t;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
/* External definitions for functions in inet(3). */
|
/* External definitions for functions in inet(3). */
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <rtems/bsdnet/_types.h>
|
#include <rtems/bsdnet/_types.h>
|
||||||
|
|
||||||
/* Required for byteorder(3) functions. */
|
/* Required for byteorder(3) functions. */
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
#define BIND_4_COMPAT
|
#define BIND_4_COMPAT
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* revision information. this is the release date in YYYYMMDD format.
|
* revision information. this is the release date in YYYYMMDD format.
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ struct ifaddrs {
|
|||||||
#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */
|
#define ifa_broadaddr ifa_dstaddr /* broadcast address interface */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
extern int getifaddrs(struct ifaddrs **);
|
extern int getifaddrs(struct ifaddrs **);
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__weak_reference(__inet_addr, inet_addr);
|
__weak_reference(__inet_addr, inet_addr);
|
||||||
__weak_reference(__inet_aton, inet_aton);
|
__weak_reference(__inet_aton, inet_aton);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
#ifndef _MACHINE_IN_CKSUM_H_
|
#ifndef _MACHINE_IN_CKSUM_H_
|
||||||
#define _MACHINE_IN_CKSUM_H_ 1
|
#define _MACHINE_IN_CKSUM_H_ 1
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <netinet/ip.h> /* struct ip */
|
#include <netinet/ip.h> /* struct ip */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ extern char *ether_sprintf(const u_int8_t *);
|
|||||||
|
|
||||||
#else /* _KERNEL */
|
#else /* _KERNEL */
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ethernet address conversion/parsing routines.
|
* Ethernet address conversion/parsing routines.
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#ifndef _NET_IF_H_
|
#ifndef _NET_IF_H_
|
||||||
#define _NET_IF_H_
|
#define _NET_IF_H_
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#if defined(__rtems__)
|
#if defined(__rtems__)
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ struct sockaddr_dl {
|
|||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
void link_addr(const char *, struct sockaddr_dl *);
|
void link_addr(const char *, struct sockaddr_dl *);
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
#ifndef _NETDB_H_
|
#ifndef _NETDB_H_
|
||||||
#define _NETDB_H_
|
#define _NETDB_H_
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <rtems/bsdnet/_types.h>
|
#include <rtems/bsdnet/_types.h>
|
||||||
|
|
||||||
#ifndef _SOCKLEN_T_DECLARED
|
#ifndef _SOCKLEN_T_DECLARED
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#ifndef _NETINET_IP_H_
|
#ifndef _NETINET_IP_H_
|
||||||
#define _NETINET_IP_H_
|
#define _NETINET_IP_H_
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Definitions for internet protocol version 4.
|
* Definitions for internet protocol version 4.
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#ifndef _NETINET_TCP_H_
|
#ifndef _NETINET_TCP_H_
|
||||||
#define _NETINET_TCP_H_
|
#define _NETINET_TCP_H_
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "opt_tcpdebug.h"
|
#include "opt_tcpdebug.h"
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ typedef u_int32_t ioctl_command_t;
|
|||||||
/* make sure we get the network versions of these */
|
/* make sure we get the network versions of these */
|
||||||
#include <machine/types.h>
|
#include <machine/types.h>
|
||||||
#include <machine/param.h>
|
#include <machine/param.h>
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#ifndef _SYS_LIBKERN_H_
|
#ifndef _SYS_LIBKERN_H_
|
||||||
#define _SYS_LIBKERN_H_
|
#define _SYS_LIBKERN_H_
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
/* BCD conversions. */
|
/* BCD conversions. */
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ typedef struct fhandle fhandle_t;
|
|||||||
|
|
||||||
#else /* !_KERNEL */
|
#else /* !_KERNEL */
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#endif /* _KERNEL */
|
#endif /* _KERNEL */
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
#ifndef _SYS_POLL_H_
|
#ifndef _SYS_POLL_H_
|
||||||
#define _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.
|
* This file is intended to be compatible with the traditional poll.h.
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#ifndef _SYS_SOCKET_H_
|
#ifndef _SYS_SOCKET_H_
|
||||||
#define _SYS_SOCKET_H_
|
#define _SYS_SOCKET_H_
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <rtems/bsdnet/_types.h>
|
#include <rtems/bsdnet/_types.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);
|
int sysctl_wire_old_buffer(struct sysctl_req *req, size_t len);
|
||||||
|
|
||||||
#else /* !_KERNEL */
|
#else /* !_KERNEL */
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int sysctl(int *, u_int, void *, size_t *, void *, size_t);
|
int sysctl(int *, u_int, void *, size_t *, void *, size_t);
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ CODE facilitynames[] = {
|
|||||||
|
|
||||||
#else /* not _KERNEL */
|
#else /* not _KERNEL */
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|||||||
@@ -45,6 +45,10 @@
|
|||||||
#include <rtems/rtems_bsdnet_internal.h> /* for __BSD_VA_LIST__ */
|
#include <rtems/rtems_bsdnet_internal.h> /* for __BSD_VA_LIST__ */
|
||||||
#include <machine/cpufunc.h>
|
#include <machine/cpufunc.h>
|
||||||
|
|
||||||
|
#if !defined(__dead2)
|
||||||
|
#define __dead2 __attribute__((__noreturn__))
|
||||||
|
#endif
|
||||||
|
|
||||||
extern int securelevel; /* system security level (see init(8)) */
|
extern int securelevel; /* system security level (see init(8)) */
|
||||||
|
|
||||||
extern int cold; /* nonzero if we are doing a cold boot */
|
extern int cold; /* nonzero if we are doing a cold boot */
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#ifndef _SYS_UIO_H_
|
#ifndef _SYS_UIO_H_
|
||||||
#define _SYS_UIO_H_
|
#define _SYS_UIO_H_
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#ifndef _SYS_UN_H_
|
#ifndef _SYS_UN_H_
|
||||||
#define _SYS_UN_H_
|
#define _SYS_UN_H_
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <rtems/bsdnet/_types.h>
|
#include <rtems/bsdnet/_types.h>
|
||||||
|
|
||||||
#ifndef _SA_FAMILY_T_DECLARED
|
#ifndef _SA_FAMILY_T_DECLARED
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
#ifndef _RPC_AUTH_H
|
#ifndef _RPC_AUTH_H
|
||||||
#define _RPC_AUTH_H
|
#define _RPC_AUTH_H
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#define MAX_AUTH_BYTES 400
|
#define MAX_AUTH_BYTES 400
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
#ifndef _RPC_AUTH_UNIX_H
|
#ifndef _RPC_AUTH_UNIX_H
|
||||||
#define _RPC_AUTH_UNIX_H
|
#define _RPC_AUTH_UNIX_H
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
/* The machine name is part of a credential; it may not exceed 255 bytes */
|
/* The machine name is part of a credential; it may not exceed 255 bytes */
|
||||||
#define MAX_MACHINE_NAME 255
|
#define MAX_MACHINE_NAME 255
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
#ifndef _RPC_CLNT_H_
|
#ifndef _RPC_CLNT_H_
|
||||||
#define _RPC_CLNT_H_
|
#define _RPC_CLNT_H_
|
||||||
#include <rpc/clnt_stat.h>
|
#include <rpc/clnt_stat.h>
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
* with TS-RPC.
|
* with TS-RPC.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */
|
#define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
#ifndef _RPC_PMAPCLNT_H
|
#ifndef _RPC_PMAPCLNT_H
|
||||||
#define _RPC_PMAPCLNT_H
|
#define _RPC_PMAPCLNT_H
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
extern bool_t pmap_set (u_long, u_long, int, int);
|
extern bool_t pmap_set (u_long, u_long, int, int);
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
#ifndef _RPC_PMAPPROT_H
|
#ifndef _RPC_PMAPPROT_H
|
||||||
#define _RPC_PMAPPROT_H
|
#define _RPC_PMAPPROT_H
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#define PMAPPORT ((u_short)111)
|
#define PMAPPORT ((u_short)111)
|
||||||
#define PMAPPROG ((u_long)100000)
|
#define PMAPPROG ((u_long)100000)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
#ifndef _RPC_PMAPRMT_H
|
#ifndef _RPC_PMAPRMT_H
|
||||||
#define _RPC_PMAPRMT_H
|
#define _RPC_PMAPRMT_H
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
struct rmtcallargs {
|
struct rmtcallargs {
|
||||||
u_long prog, vers, proc, arglen;
|
u_long prog, vers, proc, arglen;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
#ifndef _RPC_RPCCOM_H
|
#ifndef _RPC_RPCCOM_H
|
||||||
#define _RPC_RPCCOM_H
|
#define _RPC_RPCCOM_H
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
/* #pragma ident "@(#)rpc_com.h 1.11 93/07/05 SMI" */
|
/* #pragma ident "@(#)rpc_com.h 1.11 93/07/05 SMI" */
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
#ifndef _RPC_RPCENT_H
|
#ifndef _RPC_RPCENT_H
|
||||||
#define _RPC_RPCENT_H
|
#define _RPC_RPCENT_H
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
/* #pragma ident "@(#)rpcent.h 1.13 94/04/25 SMI" */
|
/* #pragma ident "@(#)rpcent.h 1.13 94/04/25 SMI" */
|
||||||
/* @(#)rpcent.h 1.1 88/12/06 SMI */
|
/* @(#)rpcent.h 1.1 88/12/06 SMI */
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
#ifndef _RPC_SVC_H
|
#ifndef _RPC_SVC_H
|
||||||
#define _RPC_SVC_H
|
#define _RPC_SVC_H
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This interface must manage two items concerning remote procedure calling:
|
* This interface must manage two items concerning remote procedure calling:
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
#ifndef _RPC_SVC_SOC_H
|
#ifndef _RPC_SVC_SOC_H
|
||||||
#define _RPC_SVC_SOC_H
|
#define _RPC_SVC_SOC_H
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
/* #pragma ident "@(#)svc_soc.h 1.11 94/04/25 SMI" */
|
/* #pragma ident "@(#)svc_soc.h 1.11 94/04/25 SMI" */
|
||||||
/* svc_soc.h 1.8 89/05/01 SMI */
|
/* svc_soc.h 1.8 89/05/01 SMI */
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
#ifndef _RPC_XDR_H
|
#ifndef _RPC_XDR_H
|
||||||
#define _RPC_XDR_H
|
#define _RPC_XDR_H
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <rpc/types.h>
|
#include <rpc/types.h>
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
#ifndef _RPCSVC_YPCLNT_H_
|
#ifndef _RPCSVC_YPCLNT_H_
|
||||||
#define _RPCSVC_YPCLNT_H_
|
#define _RPCSVC_YPCLNT_H_
|
||||||
|
|
||||||
#include <rtems/bsd/sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#define YPERR_BADARGS 1 /* args to function are bad */
|
#define YPERR_BADARGS 1 /* args to function are bad */
|
||||||
#define YPERR_RPC 2 /* RPC failure */
|
#define YPERR_RPC 2 /* RPC failure */
|
||||||
|
|||||||
Reference in New Issue
Block a user