summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/cdefs.h1
-rw-r--r--include/sys/mman.h1
-rw-r--r--include/sys/msg.h2
-rw-r--r--include/sys/resource.h1
-rw-r--r--include/sys/select.h6
-rw-r--r--include/sys/sem.h2
-rw-r--r--include/sys/socket.h1
-rw-r--r--include/sys/stat.h1
-rw-r--r--include/sys/times.h1
-rw-r--r--include/sys/uio.h1
10 files changed, 13 insertions, 4 deletions
diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
index 0d6f6327..4c86d599 100644
--- a/include/sys/cdefs.h
+++ b/include/sys/cdefs.h
@@ -12,6 +12,7 @@
#define __malloc __attribute__((__malloc__))
#define __pure __attribute__((__pure__))
#define __nodiscard __attribute__((__warn_unused_result__))
+#define __weak __attribute__((__weak__))
#define __predict_true(exp) __builtin_expect((exp) != 0, 1)
#define __predict_false(exp) __builtin_expect((exp) != 0, 0)
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 3e5dbf96..78b72c48 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -1,6 +1,7 @@
#ifndef __SYS_MMAN_H
#define __SYS_MMAN_H
+#include <stddef.h>
typedef __SIZE_TYPE__ size_t;
typedef __INT64_TYPE__ off_t;
typedef __UINT32_TYPE__ mode_t;
diff --git a/include/sys/msg.h b/include/sys/msg.h
index b9a16349..60c389bd 100644
--- a/include/sys/msg.h
+++ b/include/sys/msg.h
@@ -1,7 +1,9 @@
#ifndef __SYS_MSG_H
#define __SYS_MSG_H
+#include <stddef.h>
#include <sys/ipc.h>
+#include <time.h>
typedef __INT64_TYPE__ pid_t;
typedef __INT64_TYPE__ ssize_t;
diff --git a/include/sys/resource.h b/include/sys/resource.h
index 79fcf235..086d8cd8 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -1,6 +1,7 @@
#ifndef __SYS_RESOURCE_H
#define __SYS_RESOURCE_H
+#include <time.h>
typedef __INT64_TYPE__ time_t;
typedef __INT64_TYPE__ suseconds_t;
diff --git a/include/sys/select.h b/include/sys/select.h
index 16b391d1..9c1edcae 100644
--- a/include/sys/select.h
+++ b/include/sys/select.h
@@ -1,14 +1,12 @@
#ifndef __SYS_SELECT_H
#define __SYS_SELECT_H
+#include <time.h>
#define __BITS_SELECT_H_
-#include <bits/select.h>
+#include <bits/select.h> // for fd_set
#define __BITS_TIMESPEC_H_
-#include <bits/timespec.h>
-
struct timespec;
-struct timeval;
typedef __UINT64_TYPE__ sigset_t;
diff --git a/include/sys/sem.h b/include/sys/sem.h
index 2fdaa834..bdfe969e 100644
--- a/include/sys/sem.h
+++ b/include/sys/sem.h
@@ -1,7 +1,9 @@
#ifndef __SYS_SEM_H
#define __SYS_SEM_H
+#include <stddef.h>
#include <sys/ipc.h>
+#include <time.h>
#define SEM_UNDO 0x1000
#define GETNCNT 14
diff --git a/include/sys/socket.h b/include/sys/socket.h
index d8a48dd0..0dd4f454 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -1,6 +1,7 @@
#ifndef __SYS_SOCKET_H
#define __SYS_SOCKET_H
+#include <stddef.h>
#define SCM_RIGHTS 0x01
#define CMSG_DATA(cmsg) ((void *)(cmsg) + sizeof(struct cmsghdr))
diff --git a/include/sys/stat.h b/include/sys/stat.h
index ceb0826f..85efb075 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -1,6 +1,7 @@
#ifndef __SYS_STAT_H
#define __SYS_STAT_H
+#include <time.h>
#define __BITS_STAT_H_
#include <bits/stat.h>
#undef __BITS_STAT_H_
diff --git a/include/sys/times.h b/include/sys/times.h
index 4cc0e184..a14a6b6a 100644
--- a/include/sys/times.h
+++ b/include/sys/times.h
@@ -1,6 +1,7 @@
#ifndef __SYS_TIMES_H
#define __SYS_TIMES_H
+#include <time.h>
typedef __INT64_TYPE__ clock_t;
struct tms {
diff --git a/include/sys/uio.h b/include/sys/uio.h
index f14e2328..324dc00a 100644
--- a/include/sys/uio.h
+++ b/include/sys/uio.h
@@ -1,6 +1,7 @@
#ifndef __SYS_UIO_H
#define __SYS_UIO_H
+#include <stddef.h>
typedef __SIZE_TYPE__ size_t;
typedef __INT64_TYPE__ ssize_t;