about summary refs log tree commit diff stats
path: root/tools/iso/kernel.soso/syscalltable.h
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-01 18:22:19 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-01 18:42:48 -0800
commit65409d2312e702a48d3cf5b32479d25266bda3c3 (patch)
tree62a7262fce61f2302109246da4536ce6f8e9ef80 /tools/iso/kernel.soso/syscalltable.h
parenta6da50ad30d2e1825575ffef497ab450a8f26e94 (diff)
downloadmu-65409d2312e702a48d3cf5b32479d25266bda3c3.tar.gz
5858
Move script to create a Soso boot image into a sub-directory.

I'm trying to streamline newcomer attention to just a couple of use cases.
Diffstat (limited to 'tools/iso/kernel.soso/syscalltable.h')
-rw-r--r--tools/iso/kernel.soso/syscalltable.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/tools/iso/kernel.soso/syscalltable.h b/tools/iso/kernel.soso/syscalltable.h
new file mode 100644
index 00000000..61ff5e42
--- /dev/null
+++ b/tools/iso/kernel.soso/syscalltable.h
@@ -0,0 +1,50 @@
+#ifndef SYSCALLTABLE_H
+#define SYSCALLTABLE_H
+
+//This file will also be included by C library.
+enum {
+    SYS_open,  // 0
+    SYS_close,  // 1
+    SYS_read,  // 2
+    SYS_write,  // 3
+    SYS_lseek,  // 4
+    SYS_stat,  // 5
+    SYS_fstat,  // 6
+    SYS_ioctl,  // 7
+    SYS_exit,  // 8
+    SYS_sbrk,  // 9
+    SYS_fork,  // 10
+    SYS_getpid,  // 11
+
+    //non-posix
+    SYS_execute,  // 12
+    SYS_execve,  // 13
+    SYS_wait,  // 14
+    SYS_kill,  // 15
+    SYS_mount,  // 16
+    SYS_unmount,  // 17
+    SYS_mkdir,  // 18
+    SYS_rmdir,  // 19
+    SYS_getdents,  // 20
+    SYS_getWorkingDirectory,  // 21
+    SYS_setWorkingDirectory,  // 22
+    SYS_managePipe,  // 23
+    SYS_readDir,  // 24
+    SYS_getUptimeMilliseconds,  // 25
+    SYS_sleepMilliseconds,  // 26
+    SYS_executeOnTTY,  // 27
+    SYS_manageMessage,  // 28
+    SYS_UNUSED,  // 29
+
+    SYS_mmap,  // 30
+    SYS_munmap,  // 31
+    SYS_shm_open,  // 32
+    SYS_shm_unlink,  // 33
+    SYS_ftruncate,  // 34
+    SYS_posix_openpt,  // 35
+    SYS_ptsname_r,  // 36
+
+    SYSCALL_COUNT  // 37
+};
+
+#endif // SYSCALLTABLE_H