summaryrefslogtreecommitdiff
path: root/sysroot/include/sys/asm/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysroot/include/sys/asm/unistd.h')
-rw-r--r--sysroot/include/sys/asm/unistd.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysroot/include/sys/asm/unistd.h b/sysroot/include/sys/asm/unistd.h
new file mode 100644
index 0000000..4ff629c
--- /dev/null
+++ b/sysroot/include/sys/asm/unistd.h
@@ -0,0 +1,23 @@
+
+#ifndef __MCPU_SYS_ASM_UNISTD_H
+#define __MCPU_SYS_ASM_UNISTD_H
+
+#define STDIN_FILENO 0
+#define STDOUT_FILENO 1
+#define STDERR_FILENO 2
+
+/* pipe2(2) writes two u64 guest descriptors to this fixed output array. */
+#define __MCPU_PIPEFD_SIZE 16
+#define __MCPU_PIPEFD_READ 0
+#define __MCPU_PIPEFD_WRITE 8
+
+#define F_OK 0
+#define X_OK 1
+#define W_OK 2
+#define R_OK 4
+
+#define SEEK_SET 0
+#define SEEK_CUR 1
+#define SEEK_END 2
+
+#endif /* __MCPU_SYS_ASM_UNISTD_H */