summaryrefslogtreecommitdiff
path: root/lib/mlibc/sysdeps/keyronex/include
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/sysdeps/keyronex/include')
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/access.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/auxv.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/blkcnt_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/blksize_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/clockid_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/dev_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/epoll.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/errno.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/fcntl.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/fsblkcnt_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/fsfilcnt_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/gid_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/in.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/ino_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/inotify.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/ioctls.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/limits.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/mode_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/mqueue.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/msg.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/nlink_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/packet.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/pid_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/poll.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/ptrace.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/reboot.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/resource.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/seek-whence.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/shm.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/signal.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/socket.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/socklen_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/stat.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/statfs.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/statvfs.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/suseconds_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/termios.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/time.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/uid_t.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/utsname.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/vm-flags.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/wait.h1
l---------lib/mlibc/sysdeps/keyronex/include/abi-bits/xattr.h1
-rw-r--r--lib/mlibc/sysdeps/keyronex/include/keyronex/syscall.h213
44 files changed, 0 insertions, 256 deletions
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/access.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/access.h
deleted file mode 120000
index cb83931..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/access.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/access.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/auxv.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/auxv.h
deleted file mode 120000
index c43f878..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/auxv.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/auxv.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/blkcnt_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/blkcnt_t.h
deleted file mode 120000
index 0b0ec27..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/blkcnt_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/blkcnt_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/blksize_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/blksize_t.h
deleted file mode 120000
index 7dc8d7c..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/blksize_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/blksize_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/clockid_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/clockid_t.h
deleted file mode 120000
index 6a42da5..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/clockid_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/clockid_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/dev_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/dev_t.h
deleted file mode 120000
index bca881e..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/dev_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/dev_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/epoll.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/epoll.h
deleted file mode 120000
index eb4b76d..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/epoll.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/epoll.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/errno.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/errno.h
deleted file mode 120000
index 6e507de..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/errno.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/errno.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/fcntl.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/fcntl.h
deleted file mode 120000
index 463e2c9..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/fcntl.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/fcntl.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/fsblkcnt_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/fsblkcnt_t.h
deleted file mode 120000
index 898dfb2..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/fsfilcnt_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/fsfilcnt_t.h
deleted file mode 120000
index 791755c..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/gid_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/gid_t.h
deleted file mode 120000
index abce6d6..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/gid_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/gid_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/in.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/in.h
deleted file mode 120000
index 418d1d5..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/in.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/in.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/ino_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/ino_t.h
deleted file mode 120000
index 4c20aca..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/ino_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/ino_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/inotify.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/inotify.h
deleted file mode 120000
index b5cb282..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/inotify.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/inotify.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/ioctls.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/ioctls.h
deleted file mode 120000
index 595106b..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/limits.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/limits.h
deleted file mode 120000
index 6c88db2..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/limits.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/limits.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/mode_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/mode_t.h
deleted file mode 120000
index 5d78fdf..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/mode_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/mode_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/mqueue.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/mqueue.h
deleted file mode 120000
index fa87b07..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/msg.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/msg.h
deleted file mode 120000
index f402b49..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/nlink_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/nlink_t.h
deleted file mode 120000
index bb3b625..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/nlink_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/nlink_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/packet.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/packet.h
deleted file mode 120000
index 998ef1a..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/packet.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/packet.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/pid_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/pid_t.h
deleted file mode 120000
index baa90f6..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/pid_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/pid_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/poll.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/poll.h
deleted file mode 120000
index 8ea6a0a..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/poll.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/poll.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/ptrace.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/ptrace.h
deleted file mode 120000
index b2517b2..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/ptrace.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/ptrace.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/reboot.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/reboot.h
deleted file mode 120000
index 77013a4..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/resource.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/resource.h
deleted file mode 120000
index 88d7402..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/resource.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/resource.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/seek-whence.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/seek-whence.h
deleted file mode 120000
index df7bccf..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/seek-whence.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/seek-whence.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/shm.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/shm.h
deleted file mode 120000
index 067d8c4..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/signal.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/signal.h
deleted file mode 120000
index 4dcb0b7..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/socket.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/socket.h
deleted file mode 120000
index f1dc016..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/socket.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/socket.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/socklen_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/socklen_t.h
deleted file mode 120000
index 41f3b11..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/stat.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/stat.h
deleted file mode 120000
index 1f63b41..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/stat.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/stat.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/statfs.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/statfs.h
deleted file mode 120000
index e3d202f..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/statvfs.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/statvfs.h
deleted file mode 120000
index 1fc80c2..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/suseconds_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/suseconds_t.h
deleted file mode 120000
index 9ed6597..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/termios.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/termios.h
deleted file mode 120000
index ee8f0b0..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/time.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/time.h
deleted file mode 120000
index 2a02625..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/time.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/time.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/uid_t.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/uid_t.h
deleted file mode 120000
index b306777..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/uid_t.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/uid_t.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/utsname.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/utsname.h
deleted file mode 120000
index b285754..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/vm-flags.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/vm-flags.h
deleted file mode 120000
index bbe258c..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/abi-bits/vm-flags.h
+++ /dev/null
@@ -1 +0,0 @@
-../../../../abis/linux/vm-flags.h \ No newline at end of file
diff --git a/lib/mlibc/sysdeps/keyronex/include/abi-bits/wait.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/wait.h
deleted file mode 120000
index feb2840..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/abi-bits/xattr.h b/lib/mlibc/sysdeps/keyronex/include/abi-bits/xattr.h
deleted file mode 120000
index 66412d7..0000000
--- a/lib/mlibc/sysdeps/keyronex/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/keyronex/include/keyronex/syscall.h b/lib/mlibc/sysdeps/keyronex/include/keyronex/syscall.h
deleted file mode 100644
index 9cbafd0..0000000
--- a/lib/mlibc/sysdeps/keyronex/include/keyronex/syscall.h
+++ /dev/null
@@ -1,213 +0,0 @@
-#ifndef _KEYRONEX__SYSCALL_H
-#define _KEYRONEX__SYSCALL_H
-
-#include <stdint.h>
-
-enum posix_syscall {
- /*! debug print */
- kPXSysDebug,
- kPXSysMmap,
- kPXSysMunmap,
-
- kPXSysIOCtl,
- kPXSysOpenAt,
- kPXSysClose,
- kPXSysRead,
- kPXSysReadLink,
- kPXSysWrite,
- kPXSysSeek,
- kPXSysPPoll,
- kPXSysIsATTY,
- kPXSysReadDir,
- kPXSysStat,
- kPXSysUnlinkAt,
- kPXSysGetCWD,
- kPXSysPipe,
- kPXSysDup,
- kPXSysDup3,
- kPXSysLink,
- kPXSysChDir,
- kPXSysUMask,
- kPXSysMkDirAt,
- kPXSysRenameAt,
- kPXSysStatFS,
- kPXSysFCntl,
-
- kPXSysSetFSBase,
- kPXSysExecVE,
- kPXSysExit,
- kPXSysFork,
- kPXSysWaitPID,
- kPXSysGetPID,
- kPXSysGetPPID,
- kPXSysGetPGID,
- kPXSysSetPGID,
- kPXSysGetSID,
- kPXSysSetSID,
- kPXSysGetTID,
-
- kPXSysSigAction,
- kPXSysSigMask,
- kPXSysSigSend,
- kPXSysSigSuspend,
- kPXSysSigTimedWait,
-
- kPXSysSocket,
- kPXSysBind,
- kPXSysConnect,
- kPXSysListen,
- kPXSysAccept,
- kPXSysSendMsg,
- kPXSysRecvMsg,
- kPXSysSocketPair,
- kPXSysGetSockOpt,
- kPXSysSetSockOpt,
-
- kPXSysEPollCreate,
- kPXSysEPollCtl,
- kPXSysEPollWait,
-
- kPXSysSleep,
- kPXSysUTSName,
- kPXSysClockGet,
-
- kPXSysForkThread,
- kPXSysFutexWait,
- kPXSysFutexWake,
-
- /*! register signal entry function */
- kPXSysSigEntry,
- /*! return from a signal */
- kPXSysSigReturn,
-};
-
-enum posix_stat_kind {
- kPXStatKindFD,
- kPXStatKindAt,
- kPXStatKindCWD,
-};
-
-#if defined(__x86_64__)
-static inline uintptr_t
-syscall0(uintptr_t num, uintptr_t *out)
-{
- uintptr_t ret, ret2;
- asm volatile("int $0x80" : "=a"(ret), "=D"(ret2) : "a"(num) : "memory");
- if (out)
- *out = ret2;
- return ret;
-}
-
-static inline uintptr_t
-syscall1(uintptr_t num, uintptr_t arg1, uintptr_t *out)
-{
- uintptr_t ret, ret2;
- asm volatile("int $0x80"
- : "=a"(ret), "=D"(ret2)
- : "a"(num), "D"(arg1)
- : "memory");
- if (out)
- *out = ret2;
- return ret;
-}
-
-static inline uintptr_t
-syscall2(uintptr_t num, uintptr_t arg1, uintptr_t arg2, uintptr_t *out)
-{
- uintptr_t ret, ret2;
-
- asm volatile("int $0x80"
- : "=a"(ret), "=D"(ret2)
- : "a"(num), "D"(arg1), "S"(arg2)
- : "memory");
-
- if (out)
- *out = ret2;
-
- return ret;
-}
-
-static inline uintptr_t
-syscall3(intptr_t num, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3,
- uintptr_t *out)
-{
- uintptr_t ret, ret2;
-
- asm volatile("int $0x80"
- : "=a"(ret), "=D"(ret2)
- : "a"(num), "D"(arg1), "S"(arg2), "d"(arg3)
- : "memory");
-
- if (out)
- *out = ret2;
-
- return ret;
-}
-
-static inline uintptr_t
-syscall4(intptr_t num, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3,
- uintptr_t arg4, uintptr_t *out)
-{
- register uintptr_t r10 asm("r10") = arg4;
- uintptr_t ret, ret2;
-
- asm volatile("int $0x80"
- : "=a"(ret), "=D"(ret2)
- : "a"(num), "D"(arg1), "S"(arg2), "d"(arg3), "r"(r10)
- : "memory");
-
- if (out)
- *out = ret2;
-
- return ret;
-}
-
-static inline uintptr_t
-syscall5(uintptr_t num, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3,
- uintptr_t arg4, uintptr_t arg5, uintptr_t *out)
-{
- register uintptr_t r10 asm("r10") = arg4, r8 asm("r8") = arg5;
- uintptr_t ret, ret2;
-
- asm volatile("int $0x80"
- : "=a"(ret), "=D"(ret2)
- : "a"(num), "D"(arg1), "S"(arg2), "d"(arg3), "r"(r10),
- "r"(r8)
- : "memory");
-
- if (out)
- *out = ret2;
-
- return ret;
-}
-
-static inline uintptr_t
-syscall6(uintptr_t num, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3,
- uintptr_t arg4, uintptr_t arg5, uintptr_t arg6, uintptr_t *out)
-{
- register uintptr_t r10 asm("r10") = arg4, r8 asm("r8") = arg5,
- r9 asm("r9") = arg6;
- uintptr_t ret, ret2;
-
- asm volatile("int $0x80"
- : "=a"(ret), "=D"(ret2)
- : "a"(num), "D"(arg1), "S"(arg2), "d"(arg3), "r"(r10),
- "r"(r8), "r"(r9)
- : "memory");
-
- if (out)
- *out = ret2;
-
- return ret;
-}
-
-static inline int
-sc_error(uintptr_t ret)
-{
- if (ret > -4096UL)
- return -ret;
- return 0;
-}
-#endif
-
-#endif