summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-11-10 20:40:06 -0500
committerRich Felker <dalias@aerifal.cx>2011-11-10 20:40:06 -0500
commit3ed8c9f2df0b5f0bfe1006037c46d4f32ec6ca7b (patch)
tree181b82fd04fa77fa10c6b8e46fde04dee2c64f2e /include/sys
parent26120950e26478740a29fd0b1fd78a0bd6b880c8 (diff)
downloadmusl-3ed8c9f2df0b5f0bfe1006037c46d4f32ec6ca7b.tar.gz
fix all missing instances of __cplusplus checks/extern "C" in headers
patch by Arvid Picciani (aep)
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/mount.h8
-rw-r--r--include/sys/msg.h8
-rw-r--r--include/sys/resource.h8
-rw-r--r--include/sys/shm.h8
-rw-r--r--include/sys/statfs.h8
-rw-r--r--include/sys/statvfs.h6
-rw-r--r--include/sys/swap.h9
-rw-r--r--include/sys/sysctl.h8
-rw-r--r--include/sys/sysinfo.h8
-rw-r--r--include/sys/times.h9
-rw-r--r--include/sys/uio.h8
-rw-r--r--include/sys/utsname.h7
12 files changed, 95 insertions, 0 deletions
diff --git a/include/sys/mount.h b/include/sys/mount.h
index 9420c564..3f652e97 100644
--- a/include/sys/mount.h
+++ b/include/sys/mount.h
@@ -1,6 +1,10 @@
#ifndef _SYS_MOUNT_H
#define _SYS_MOUNT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <sys/ioctl.h>
#define BLKROSET _IO(0x12, 93)
@@ -43,4 +47,8 @@ int mount(const char *, const char *, const char *, unsigned long, const void *)
int umount(const char *);
int umount2(const char *, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/sys/msg.h b/include/sys/msg.h
index 06f25533..460275c5 100644
--- a/include/sys/msg.h
+++ b/include/sys/msg.h
@@ -1,6 +1,10 @@
#ifndef _SYS_MSG_H
#define _SYS_MSG_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <sys/ipc.h>
#define __NEED_pid_t
@@ -33,4 +37,8 @@ int msgget (key_t, int);
ssize_t msgrcv (int, void *, size_t, long, int);
int msgsnd (int, const void *, size_t, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/sys/resource.h b/include/sys/resource.h
index 7837adb3..b9189028 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -1,6 +1,10 @@
#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
@@ -76,4 +80,8 @@ int setpriority (int, id_t, int);
#define RLIM_NLIMITS RLIMIT_NLIMITS
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/sys/shm.h b/include/sys/shm.h
index fa927101..34117cc8 100644
--- a/include/sys/shm.h
+++ b/include/sys/shm.h
@@ -1,6 +1,10 @@
#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
@@ -43,4 +47,8 @@ int shmctl(int, int, struct shmid_ds *);
int shmdt(const void *);
int shmget(key_t, size_t, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/sys/statfs.h b/include/sys/statfs.h
index 05c9b130..f5239d8f 100644
--- a/include/sys/statfs.h
+++ b/include/sys/statfs.h
@@ -1,6 +1,10 @@
#ifndef _SYS_STATFS_H
#define _SYS_STATFS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <sys/statvfs.h>
typedef struct {
@@ -12,4 +16,8 @@ typedef struct {
int statfs (const char *, struct statfs *);
int fstatfs (int, struct statfs *);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h
index fd22faba..b9f72b7e 100644
--- a/include/sys/statvfs.h
+++ b/include/sys/statvfs.h
@@ -1,6 +1,9 @@
#ifndef _SYS_STATVFS_H
#define _SYS_STATVFS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#define __NEED_fsblkcnt_t
#define __NEED_fsfilcnt_t
@@ -38,5 +41,8 @@ int fstatvfs (int, struct statvfs *);
#define ST_NOATIME 1024
#define ST_NODIRATIME 2048
+#ifdef __cplusplus
+}
+#endif
#endif
diff --git a/include/sys/swap.h b/include/sys/swap.h
index c5824f1d..1bd6159e 100644
--- a/include/sys/swap.h
+++ b/include/sys/swap.h
@@ -1,6 +1,11 @@
#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
@@ -8,4 +13,8 @@
int swapon (const char *, int);
int swapoff (const char *);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/sys/sysctl.h b/include/sys/sysctl.h
index af5ca8ba..c358b794 100644
--- a/include/sys/sysctl.h
+++ b/include/sys/sysctl.h
@@ -1,9 +1,17 @@
#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
diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h
index ca52088a..3bf6cb0f 100644
--- a/include/sys/sysinfo.h
+++ b/include/sys/sysinfo.h
@@ -1,6 +1,10 @@
#ifndef _SYS_SYSINFO_H
#define _SYS_SYSINFO_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* ?? */
#define SI_LOAD_SHIFT 16
@@ -26,4 +30,8 @@ int get_nprocs (void);
long long get_phys_pages (void);
long long get_avphys_pages (void);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/sys/times.h b/include/sys/times.h
index aca743d3..cc55e573 100644
--- a/include/sys/times.h
+++ b/include/sys/times.h
@@ -1,6 +1,10 @@
#ifndef _SYS_TIMES_H
#define _SYS_TIMES_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __NEED_clock_t
#include <bits/alltypes.h>
@@ -14,4 +18,9 @@ struct tms
clock_t times (struct tms *);
+#ifdef __cplusplus
+}
#endif
+
+#endif
+
diff --git a/include/sys/uio.h b/include/sys/uio.h
index 11b6bd27..f77db33a 100644
--- a/include/sys/uio.h
+++ b/include/sys/uio.h
@@ -1,6 +1,10 @@
#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
@@ -10,4 +14,8 @@
ssize_t readv (int, const struct iovec *, int);
ssize_t writev (int, const struct iovec *, int);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/sys/utsname.h b/include/sys/utsname.h
index 383e8251..4c36960f 100644
--- a/include/sys/utsname.h
+++ b/include/sys/utsname.h
@@ -1,6 +1,10 @@
#ifndef _SYS_UTSNAME_H
#define _SYS_UTSNAME_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct utsname
{
char sysname[65];
@@ -17,5 +21,8 @@ struct utsname
int uname (struct utsname *);
+#ifdef __cplusplus
+}
+#endif
#endif