6 * NOTE: Generated from Kernel/syscalls.lst
12 SYS_EXIT, // Kill this thread
13 SYS_CLONE, // Create a new thread
14 SYS_KILL, // Send a signal
15 SYS_SETFAULTHANDLER, // Set signal Handler
16 SYS_YIELD, // Yield remainder of timestamp
17 SYS_SLEEP, // Sleep until messaged or signaled
18 SYS_WAIT, // Wait for a time or a message
19 SYS_WAITTID, // Wait for a thread to do something
20 SYS_SETNAME, // Set's the name of the current thread
21 SYS_GETNAME, // Get's the name of a thread
22 SYS_GETTID, // Get current thread ID
23 SYS_GETPID, // Get current thread group ID
24 SYS_SETPRI, // Set process priority
25 SYS_SENDMSG, // Send an IPC message
26 SYS_GETMSG, // Recieve an IPC message
27 SYS_GETTIME, // Get the current timestamp
28 SYS_SPAWN, // Spawn a new process
29 SYS_EXECVE, // Replace the current process
30 SYS_LOADBIN, // Load a binary into the current address space
31 SYS_UNLOADBIN, // Unload a loaded binary
32 SYS_LOADMOD, // Load a module into the kernel
34 SYS_GETPHYS = 32, // Get the physical address of a page
35 SYS_MAP, // Map a physical address
36 SYS_ALLOCATE, // Allocate a page
37 SYS_UNMAP, // Unmap a page
38 SYS_PREALLOC, // Preallocate a page
39 SYS_SETFLAGS, // Set a page's flags
40 SYS_SHAREWITH, // Share a page with another thread
41 SYS_GETUID, // Get current User ID
42 SYS_GETGID, // Get current Group ID
43 SYS_SETUID, // Set current user ID
44 SYS_SETGID, // Set current Group ID
46 SYS_OPEN = 64, // Open a file
47 SYS_REOPEN, // Close a file and reuse its handle
48 SYS_CLOSE, // Close a file
49 SYS_READ, // Read from an open file
50 SYS_WRITE, // Write to an open file
51 SYS_IOCTL, // Perform an IOCtl Call
52 SYS_SEEK, // Seek to a new position in the file
53 SYS_READDIR, // Read from an open directory
54 SYS_OPENCHILD, // Open a child entry in a directory
55 SYS_GETACL, // Get an ACL Value
56 SYS_SETACL, // Set an ACL Value
57 SYS_FINFO, // Get file information
58 SYS_MKDIR, // Create a new directory
59 SYS_LINK, // Create a new link to a file
60 SYS_SYMLINK, // Create a symbolic link
61 SYS_UNLINK, // Delete a file
62 SYS_TELL, // Return the current file position
63 SYS_CHDIR, // Change current directory
64 SYS_GETCWD, // Get current directory
65 SYS_MOUNT, // Mount a filesystem
66 SYS_SELECT, // Wait for file handles
72 static const char *cSYSCALL_NAMES[] = {
76 "SYS_SETFAULTHANDLER",