summaryrefslogtreecommitdiff
path: root/include/sys/select.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/sys/select.h
Add build system scaffolding and libc headers
Diffstat (limited to 'include/sys/select.h')
-rw-r--r--include/sys/select.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sys/select.h b/include/sys/select.h
new file mode 100644
index 00000000..44abc2e1
--- /dev/null
+++ b/include/sys/select.h
@@ -0,0 +1,19 @@
+#ifndef __SYS_SELECT_H
+#define __SYS_SELECT_H
+
+#define __BITS_SELECT_H_
+#include <bits/select.h>
+#undef __BITS_SELECT_H_
+
+#define __BITS_TIMESPEC_H_
+#include <bits/timespec.h>
+#undef __BITS_TIMESPEC_H_
+
+typedef __INT32_TYPE__ sigset_t;
+
+int pselect(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
+ const struct timespec *restrict, const sigset_t *restrict);
+int select(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
+ struct timeval *restrict);
+
+#endif