aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/sysdeps/aero/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-07 17:28:52 -0500
committerIan Moffett <ian@osmora.org>2024-03-07 18:24:51 -0500
commitf5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 (patch)
tree93b156621dc0303816b37f60ba88051b702d92f6 /lib/mlibc/sysdeps/aero/include
parentbd5969fc876a10b18613302db7087ef3c40f18e1 (diff)
build: Build mlibc + add distclean target
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/sysdeps/aero/include')
l---------lib/mlibc/sysdeps/aero/include/abi-bits/access.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/auxv.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/blkcnt_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/blksize_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/clockid_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/dev_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/epoll.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/errno.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/fcntl.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/fsblkcnt_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/fsfilcnt_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/gid_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/in.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/ino_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/inotify.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/ioctls.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/limits.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/mode_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/mqueue.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/msg.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/nlink_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/packet.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/pid_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/poll.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/ptrace.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/reboot.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/resource.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/seek-whence.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/shm.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/signal.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/socket.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/socklen_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/stat.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/statfs.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/statvfs.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/suseconds_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/termios.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/time.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/uid_t.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/utsname.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/vm-flags.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/wait.h1
l---------lib/mlibc/sysdeps/aero/include/abi-bits/xattr.h1
-rw-r--r--lib/mlibc/sysdeps/aero/include/aero/syscall.h231
-rw-r--r--lib/mlibc/sysdeps/aero/include/mlibc/thread-entry.hpp11
45 files changed, 0 insertions, 285 deletions
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/access.h b/lib/mlibc/sysdeps/aero/include/abi-bits/access.h
deleted file mode 120000
index 171f75f..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/access.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/access.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/auxv.h b/lib/mlibc/sysdeps/aero/include/abi-bits/auxv.h
deleted file mode 120000
index 86157e8..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/auxv.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/aero/auxv.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/blkcnt_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/blkcnt_t.h
deleted file mode 120000
index e9d9f1b..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/blkcnt_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/blkcnt_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/blksize_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/blksize_t.h
deleted file mode 120000
index c6dfb6e..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/blksize_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/blksize_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/clockid_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/clockid_t.h
deleted file mode 120000
index 71f37bb..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/clockid_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/clockid_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/dev_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/dev_t.h
deleted file mode 120000
index 0c1143b..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/dev_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/dev_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/epoll.h b/lib/mlibc/sysdeps/aero/include/abi-bits/epoll.h
deleted file mode 120000
index 9efc3a0..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/epoll.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/epoll.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/errno.h b/lib/mlibc/sysdeps/aero/include/abi-bits/errno.h
deleted file mode 120000
index 589859f..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/errno.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/errno.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/fcntl.h b/lib/mlibc/sysdeps/aero/include/abi-bits/fcntl.h
deleted file mode 120000
index ea5323a..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/fcntl.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/fcntl.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/fsblkcnt_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/fsblkcnt_t.h
deleted file mode 120000
index 898dfb2..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/fsblkcnt_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/fsblkcnt_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/fsfilcnt_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/fsfilcnt_t.h
deleted file mode 120000
index 791755c..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/fsfilcnt_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/fsfilcnt_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/gid_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/gid_t.h
deleted file mode 120000
index 6a77218..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/gid_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/gid_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/in.h b/lib/mlibc/sysdeps/aero/include/abi-bits/in.h
deleted file mode 120000
index b58c683..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/in.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/in.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/ino_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/ino_t.h
deleted file mode 120000
index 10d644e..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/ino_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/ino_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/inotify.h b/lib/mlibc/sysdeps/aero/include/abi-bits/inotify.h
deleted file mode 120000
index 3f19ef6..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/inotify.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/inotify.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/ioctls.h b/lib/mlibc/sysdeps/aero/include/abi-bits/ioctls.h
deleted file mode 120000
index 595106b..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/ioctls.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/ioctls.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/limits.h b/lib/mlibc/sysdeps/aero/include/abi-bits/limits.h
deleted file mode 120000
index 1aa5894..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/limits.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/limits.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/mode_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/mode_t.h
deleted file mode 120000
index 29d7733..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/mode_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/mode_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/mqueue.h b/lib/mlibc/sysdeps/aero/include/abi-bits/mqueue.h
deleted file mode 120000
index fa87b07..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/mqueue.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/mqueue.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/msg.h b/lib/mlibc/sysdeps/aero/include/abi-bits/msg.h
deleted file mode 120000
index f402b49..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/msg.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/msg.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/nlink_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/nlink_t.h
deleted file mode 120000
index 7618c27..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/nlink_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/nlink_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/packet.h b/lib/mlibc/sysdeps/aero/include/abi-bits/packet.h
deleted file mode 120000
index 47067e2..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/packet.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/packet.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/pid_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/pid_t.h
deleted file mode 120000
index 3fd26a7..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/pid_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/pid_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/poll.h b/lib/mlibc/sysdeps/aero/include/abi-bits/poll.h
deleted file mode 120000
index ab989c7..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/poll.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/poll.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/ptrace.h b/lib/mlibc/sysdeps/aero/include/abi-bits/ptrace.h
deleted file mode 120000
index f391fb7..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/ptrace.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/ptrace.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/reboot.h b/lib/mlibc/sysdeps/aero/include/abi-bits/reboot.h
deleted file mode 120000
index 77013a4..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/reboot.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/reboot.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/resource.h b/lib/mlibc/sysdeps/aero/include/abi-bits/resource.h
deleted file mode 120000
index 3e59c75..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/resource.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/resource.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/seek-whence.h b/lib/mlibc/sysdeps/aero/include/abi-bits/seek-whence.h
deleted file mode 120000
index 3bd41ef..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/seek-whence.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/seek-whence.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/shm.h b/lib/mlibc/sysdeps/aero/include/abi-bits/shm.h
deleted file mode 120000
index 067d8c4..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/shm.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/shm.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/signal.h b/lib/mlibc/sysdeps/aero/include/abi-bits/signal.h
deleted file mode 120000
index 4dcb0b7..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/signal.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/signal.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/socket.h b/lib/mlibc/sysdeps/aero/include/abi-bits/socket.h
deleted file mode 120000
index 0e1d6be..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/socket.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/socket.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/socklen_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/socklen_t.h
deleted file mode 120000
index 41f3b11..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/socklen_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/socklen_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/stat.h b/lib/mlibc/sysdeps/aero/include/abi-bits/stat.h
deleted file mode 120000
index 82642c3..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/stat.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/stat.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/statfs.h b/lib/mlibc/sysdeps/aero/include/abi-bits/statfs.h
deleted file mode 120000
index e3d202f..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/statfs.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/statfs.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/statvfs.h b/lib/mlibc/sysdeps/aero/include/abi-bits/statvfs.h
deleted file mode 120000
index 1fc80c2..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/statvfs.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/statvfs.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/suseconds_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/suseconds_t.h
deleted file mode 120000
index 9ed6597..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/suseconds_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/suseconds_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/termios.h b/lib/mlibc/sysdeps/aero/include/abi-bits/termios.h
deleted file mode 120000
index ee8f0b0..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/termios.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/termios.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/time.h b/lib/mlibc/sysdeps/aero/include/abi-bits/time.h
deleted file mode 120000
index 97f3d52..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/time.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/time.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/uid_t.h b/lib/mlibc/sysdeps/aero/include/abi-bits/uid_t.h
deleted file mode 120000
index 1113eba..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/uid_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/uid_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/utsname.h b/lib/mlibc/sysdeps/aero/include/abi-bits/utsname.h
deleted file mode 120000
index b285754..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/utsname.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/utsname.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/vm-flags.h b/lib/mlibc/sysdeps/aero/include/abi-bits/vm-flags.h
deleted file mode 120000
index f1a985e..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/vm-flags.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/mlibc/vm-flags.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/wait.h b/lib/mlibc/sysdeps/aero/include/abi-bits/wait.h
deleted file mode 120000
index feb2840..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/wait.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/wait.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/abi-bits/xattr.h b/lib/mlibc/sysdeps/aero/include/abi-bits/xattr.h
deleted file mode 120000
index 66412d7..0000000
--- a/lib/mlibc/sysdeps/aero/include/abi-bits/xattr.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/xattr.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/aero/include/aero/syscall.h b/lib/mlibc/sysdeps/aero/include/aero/syscall.h
deleted file mode 100644
index 3f36e4d..0000000
--- a/lib/mlibc/sysdeps/aero/include/aero/syscall.h
+++ /dev/null
@@ -1,231 +0,0 @@
-#ifndef SYSCALL_H
-#define SYSCALL_H
-
-#include <bits/ensure.h>
-#include <stdint.h>
-
-#define SYS_READ 0
-#define SYS_WRITE 1
-#define SYS_OPEN 2
-#define SYS_CLOSE 3
-#define SYS_SHUTDOWN 4
-#define SYS_EXIT 5
-#define SYS_FORK 6
-#define SYS_REBOOT 7
-#define SYS_MMAP 8
-#define SYS_MUNMAP 9
-#define SYS_ARCH_PRCTL 10
-#define SYS_GETDENTS 11
-#define SYS_GETCWD 12
-#define SYS_CHDIR 13
-#define SYS_MKDIR 14
-#define SYS_MKDIR_AT 15
-#define SYS_RMDIR 16
-#define SYS_EXEC 17
-#define SYS_LOG 18
-#define SYS_UNAME 19
-#define SYS_WAITPID 20
-#define SYS_IOCTL 21
-#define SYS_GETPID 22
-#define SYS_SOCKET 23
-#define SYS_CONNECT 24
-#define SYS_BIND 25
-#define SYS_LISTEN 26
-#define SYS_ACCEPT 27
-#define SYS_SEEK 28
-#define SYS_GETTID 29
-#define SYS_GETTIME 30
-#define SYS_SLEEP 31
-#define SYS_ACCESS 32
-#define SYS_PIPE 33
-#define SYS_UNLINK 34
-#define SYS_GETHOSTNAME 35
-#define SYS_SETHOSTNAME 36
-#define SYS_INFO 37
-#define SYS_CLONE 38
-#define SYS_SIGRETURN 39
-#define SYS_SIGACTION 40
-#define SYS_SIGPROCMASK 41
-#define SYS_DUP 42
-#define SYS_FCNTL 43
-#define SYS_DUP2 44
-#define SYS_IPC_SEND 45
-#define SYS_IPC_RECV 46
-#define SYS_DISCOVER_ROOT 47
-#define SYS_BECOME_ROOT 48
-#define SYS_STAT 49
-#define SYS_FSTAT 50
-#define SYS_READ_LINK 51
-#define SYS_EPOLL_CREATE 52
-#define SYS_EPOLL_PWAIT 53
-#define SYS_EPOLL_CTL 54
-#define SYS_EVENT_FD 55
-#define SYS_KILL 56
-#define SYS_FUTEX_WAIT 57
-#define SYS_FUTEX_WAKE 58
-#define SYS_LINK 59
-#define SYS_BACKTRACE 60
-#define SYS_POLL 61
-#define SYS_EXIT_THREAD 62
-#define SYS_SOCK_RECV 63
-#define SYS_SETITIMER 64
-#define SYS_GETITIMER 65
-#define SYS_GETPPID 66
-#define SYS_SOCKET_PAIR 67
-#define SYS_RENAME 68
-#define SYS_MPROTECT 69
-#define SYS_SOCK_SEND 70
-#define SYS_TRACE 71
-#define SYS_SETPGID 72
-#define SYS_SETSID 73
-#define SYS_GETPGID 74
-#define SYS_SOCK_SHUTDOWN 75
-
-// Invalid syscall used to trigger a log error in the kernel (as a hint)
-// so, that we can implement the syscall in the kernel.
-#define UNIMPLEMENTED(FUNCTION_NAME) \
- { \
- sys_libc_log("Unimplemented syscall: " FUNCTION_NAME); \
- sys_exit(1); \
- __builtin_unreachable(); \
- }
-
-extern "C" {
-using sc_word_t = long;
-
-static sc_word_t syscall0(int sc) {
- sc_word_t ret;
- asm volatile("syscall" : "=a"(ret) : "a"(sc) : "rcx", "r11", "memory");
- return ret;
-}
-
-static sc_word_t syscall1(int sc, sc_word_t arg1) {
- sc_word_t ret;
- asm volatile("syscall"
- : "=a"(ret)
- : "a"(sc), "D"(arg1)
- : "rcx", "r11", "memory");
- return ret;
-}
-
-static sc_word_t syscall2(int sc, sc_word_t arg1, sc_word_t arg2) {
- sc_word_t ret;
- asm volatile("syscall"
- : "=a"(ret)
- : "a"(sc), "D"(arg1), "S"(arg2)
- : "rcx", "r11", "memory");
- return ret;
-}
-
-static sc_word_t syscall3(int sc, sc_word_t arg1, sc_word_t arg2,
- sc_word_t arg3) {
- sc_word_t ret;
- asm volatile("syscall"
- : "=a"(ret)
- : "a"(sc), "D"(arg1), "S"(arg2), "d"(arg3)
- : "rcx", "r11", "memory");
- return ret;
-}
-
-static sc_word_t syscall4(int sc, sc_word_t arg1, sc_word_t arg2,
- sc_word_t arg3, sc_word_t arg4) {
- sc_word_t ret;
-
- register sc_word_t arg4_reg asm("r10") = arg4;
-
- asm volatile("syscall"
- : "=a"(ret)
- : "a"(sc), "D"(arg1), "S"(arg2), "d"(arg3), "r"(arg4_reg)
- : "rcx", "r11", "memory");
- return ret;
-}
-
-static sc_word_t syscall5(int sc, sc_word_t arg1, sc_word_t arg2,
- sc_word_t arg3, sc_word_t arg4, sc_word_t arg5) {
- sc_word_t ret;
-
- register sc_word_t arg4_reg asm("r10") = arg4;
- register sc_word_t arg5_reg asm("r8") = arg5;
-
- asm volatile("syscall"
- : "=a"(ret)
- : "a"(sc), "D"(arg1), "S"(arg2), "d"(arg3), "r"(arg4_reg),
- "r"(arg5_reg)
- : "rcx", "r11", "memory");
- return ret;
-}
-
-static sc_word_t syscall6(int sc, sc_word_t arg1, sc_word_t arg2,
- sc_word_t arg3, sc_word_t arg4, sc_word_t arg5,
- sc_word_t arg6) {
- sc_word_t ret;
-
- register sc_word_t arg4_reg asm("r10") = arg4;
- register sc_word_t arg5_reg asm("r8") = arg5;
- register sc_word_t arg6_reg asm("r9") = arg6;
-
- asm volatile("syscall"
- : "=a"(ret)
- : "a"(sc), "D"(arg1), "S"(arg2), "d"(arg3), "r"(arg4_reg),
- "r"(arg5_reg), "r"(arg6_reg)
- : "rcx", "r11", "memory");
- return ret;
-}
-} // extern "C"
-
-// Cast to the argument type of the extern "C" functions.
-__attribute__((__always_inline__)) inline sc_word_t sc_cast(long x) { return x; }
-__attribute__((__always_inline__)) inline sc_word_t sc_cast(const void *x) {
- return reinterpret_cast<sc_word_t>(x);
-}
-
-// C++ wrappers for the extern "C" functions.
-__attribute__((__always_inline__)) static inline long _syscall(int call) {
- return syscall0(call);
-}
-
-__attribute__((__always_inline__)) static inline long _syscall(int call,
- sc_word_t arg0) {
- return syscall1(call, arg0);
-}
-
-__attribute__((__always_inline__)) static inline long
-_syscall(int call, sc_word_t arg0, sc_word_t arg1) {
- return syscall2(call, arg0, arg1);
-}
-
-__attribute__((__always_inline__)) static inline long
-_syscall(int call, sc_word_t arg0, sc_word_t arg1, sc_word_t arg2) {
- return syscall3(call, arg0, arg1, arg2);
-}
-
-__attribute__((__always_inline__)) static inline long
-_syscall(int call, sc_word_t arg0, sc_word_t arg1, sc_word_t arg2,
- sc_word_t arg3) {
- return syscall4(call, arg0, arg1, arg2, arg3);
-}
-
-__attribute__((__always_inline__)) static inline long
-_syscall(int call, sc_word_t arg0, sc_word_t arg1, sc_word_t arg2,
- sc_word_t arg3, sc_word_t arg4) {
- return syscall5(call, arg0, arg1, arg2, arg3, arg4);
-}
-
-__attribute__((__always_inline__)) static inline long
-_syscall(int call, sc_word_t arg0, sc_word_t arg1, sc_word_t arg2,
- sc_word_t arg3, sc_word_t arg4, sc_word_t arg5) {
- return syscall6(call, arg0, arg1, arg2, arg3, arg4, arg5);
-}
-
-template <typename... T>
-__attribute__((__always_inline__)) static inline long syscall(sc_word_t call,
- T... args) {
- return _syscall(call, sc_cast(args)...);
-}
-
-inline int sc_error(long ret) {
- if (ret < 0)
- return -ret;
- return 0;
-}
-#endif // SYSCALL_H
diff --git a/lib/mlibc/sysdeps/aero/include/mlibc/thread-entry.hpp b/lib/mlibc/sysdeps/aero/include/mlibc/thread-entry.hpp
deleted file mode 100644
index a241479..0000000
--- a/lib/mlibc/sysdeps/aero/include/mlibc/thread-entry.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
-#pragma once
-
-#include <mlibc/tcb.hpp>
-
-extern "C" void __mlibc_start_thread(void);
-extern "C" void __mlibc_enter_thread(void *entry, void *user_arg, Tcb *tcb);
-
-namespace mlibc {
-int prepare_stack(void **stack, void *entry, void *user_arg, void *tcb, size_t *stack_size,
- size_t *guard_size);
-} // namespace mlibc