#ifndef _ALLOCA_H
#define _ALLOCA_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __NEED_size_t
#include <bits/alltypes.h>
void *alloca(size_t);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _ARPA_INET_H
#define _ARPA_INET_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <netinet/in.h>
#include <inttypes.h>
#define INET_ADDRSTRLEN 16
#define INET6_ADDRSTRLEN 46
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _CTYPE_H
#define _CTYPE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int isalnum(int);
int isalpha(int);
int isblank(int);
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _FTW_H
#define _FTW_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Normally we do not nest header includes. However useless bloat
* like ftw may be treated as a special case. Otherwise we would
* have to deal with duplicating all the stat.h mess. */
int ftw(const char *, int (*)(const char *, const struct stat *, int), int);
int nftw(const char *, int (*)(const char *, const struct stat *, int, struct FTW *), int, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _MATH_H
#define _MATH_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __NEED___uint16_t
#define __NEED___uint32_t
#define __NEED___uint64_t
double scalb(double, double);
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef __NET_ETHERNET_H
#define __NET_ETHERNET_H 1
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include <sys/types.h>
#include <netinet/if_ether.h>
#define ETHERMTU ETH_DATA_LEN
#define ETHERMIN (ETHER_MIN_LEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _NET_IF_H
#define _NET_IF_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define IF_NAMESIZE 16
struct if_nameindex
#endif
-
+#ifdef __cplusplus
+}
+#endif
#endif
#ifndef _NET_ROUTE_H
#define _NET_ROUTE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include <sys/socket.h>
#include <sys/types.h>
#define RTMSG_AR_FAILED 0x51
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _NETINET_IN_H
#define _NETINET_IN_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __NEED_in_addr_t
#define __NEED_in_port_t
#define __NEED_sa_family_t
#define IPV6_RTHDR_TYPE_0 0
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_MOUNT_H
#define _SYS_MOUNT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <sys/ioctl.h>
#define BLKROSET _IO(0x12, 93)
int umount(const char *);
int umount2(const char *, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_MSG_H
#define _SYS_MSG_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <sys/ipc.h>
#define __NEED_pid_t
ssize_t msgrcv (int, void *, size_t, long, int);
int msgsnd (int, const void *, size_t, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_RESOURCE_H
#define _SYS_RESOURCE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __NEED_id_t
#define __NEED_time_t
#define __NEED_struct_timeval
#define RLIM_NLIMITS RLIMIT_NLIMITS
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_SHM_H
#define _SYS_SHM_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __NEED_time_t
#define __NEED_size_t
#define __NEED_pid_t
int shmdt(const void *);
int shmget(key_t, size_t, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_STATFS_H
#define _SYS_STATFS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <sys/statvfs.h>
typedef struct {
int statfs (const char *, struct statfs *);
int fstatfs (int, struct statfs *);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_STATVFS_H
#define _SYS_STATVFS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#define __NEED_fsblkcnt_t
#define __NEED_fsfilcnt_t
#define ST_NOATIME 1024
#define ST_NODIRATIME 2048
+#ifdef __cplusplus
+}
+#endif
#endif
#ifndef _SYS_SWAP_H
#define _SYS_SWAP_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define SWAP_FLAG_PREFER 0x8000
#define SWAP_FLAG_PRIO_MASK 0x7fff
#define SWAP_FLAG_PRIO_SHIFT 0
int swapon (const char *, int);
int swapoff (const char *);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_SYSCTL_H
#define _SYS_SYSCTL_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __NEED_size_t
#include <bits/alltypes.h>
int sysctl (int *, int, void *, size_t *, void *, size_t);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_SYSINFO_H
#define _SYS_SYSINFO_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* ?? */
#define SI_LOAD_SHIFT 16
long long get_phys_pages (void);
long long get_avphys_pages (void);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_TIMES_H
#define _SYS_TIMES_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __NEED_clock_t
#include <bits/alltypes.h>
clock_t times (struct tms *);
+#ifdef __cplusplus
+}
#endif
+
+#endif
+
#ifndef _SYS_UIO_H
#define _SYS_UIO_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __NEED_size_t
#define __NEED_ssize_t
#define __NEED_struct_iovec
ssize_t readv (int, const struct iovec *, int);
ssize_t writev (int, const struct iovec *, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _SYS_UTSNAME_H
#define _SYS_UTSNAME_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct utsname
{
char sysname[65];
int uname (struct utsname *);
+#ifdef __cplusplus
+}
+#endif
#endif