Usermode implementation of select()
[tpg/acess2.git] / Kernel / include / syscalls.h
1 /*
2  * Acess2
3  * syscalls.h
4  * - System Call List
5  *
6  * NOTE: Generated from Kernel/syscalls.lst
7  */
8 #ifndef _SYSCALLS_H
9 #define _SYSCALLS_H
10
11 enum eSyscalls {
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
33
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
45
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
67
68         NUM_SYSCALLS,
69         SYS_DEBUG = 0x100
70 };
71
72 static const char *cSYSCALL_NAMES[] = {
73         "SYS_EXIT",
74         "SYS_CLONE",
75         "SYS_KILL",
76         "SYS_SETFAULTHANDLER",
77         "SYS_YIELD",
78         "SYS_SLEEP",
79         "SYS_WAIT",
80         "SYS_WAITTID",
81         "SYS_SETNAME",
82         "SYS_GETNAME",
83         "SYS_GETTID",
84         "SYS_GETPID",
85         "SYS_SETPRI",
86         "SYS_SENDMSG",
87         "SYS_GETMSG",
88         "SYS_GETTIME",
89         "SYS_SPAWN",
90         "SYS_EXECVE",
91         "SYS_LOADBIN",
92         "SYS_UNLOADBIN",
93         "SYS_LOADMOD",
94         "",
95         "",
96         "",
97         "",
98         "",
99         "",
100         "",
101         "",
102         "",
103         "",
104         "",
105         "SYS_GETPHYS",
106         "SYS_MAP",
107         "SYS_ALLOCATE",
108         "SYS_UNMAP",
109         "SYS_PREALLOC",
110         "SYS_SETFLAGS",
111         "SYS_SHAREWITH",
112         "SYS_GETUID",
113         "SYS_GETGID",
114         "SYS_SETUID",
115         "SYS_SETGID",
116         "",
117         "",
118         "",
119         "",
120         "",
121         "",
122         "",
123         "",
124         "",
125         "",
126         "",
127         "",
128         "",
129         "",
130         "",
131         "",
132         "",
133         "",
134         "",
135         "",
136         "",
137         "SYS_OPEN",
138         "SYS_REOPEN",
139         "SYS_CLOSE",
140         "SYS_READ",
141         "SYS_WRITE",
142         "SYS_IOCTL",
143         "SYS_SEEK",
144         "SYS_READDIR",
145         "SYS_OPENCHILD",
146         "SYS_GETACL",
147         "SYS_SETACL",
148         "SYS_FINFO",
149         "SYS_MKDIR",
150         "SYS_LINK",
151         "SYS_SYMLINK",
152         "SYS_UNLINK",
153         "SYS_TELL",
154         "SYS_CHDIR",
155         "SYS_GETCWD",
156         "SYS_MOUNT",
157         "SYS_SELECT",
158
159         ""
160 };
161
162 #endif

UCC git Repository :: git.ucc.asn.au