- Implemented first part of signal support.
[planlOS.git] / shared / include / planlos / syscalls.h
blob2e12a5f6fca3baf123b1ec36e8c6acbcab573e31
1 /*
2 Copyright (C) 2008 Mathias Gottschlag
4 Permission is hereby granted, free of charge, to any person obtaining a copy of
5 this software and associated documentation files (the "Software"), to deal in the
6 Software without restriction, including without limitation the rights to use,
7 copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8 Software, and to permit persons to whom the Software is furnished to do so,
9 subject to the following conditions:
11 The above copyright notice and this permission notice shall be included in all
12 copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15 INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16 PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 #ifndef PLANLOS_SYSCALLS_INCLUDED
23 #define PLANLOS_SYSCALLS_INCLUDED
25 #define SYS_EXIT 1
26 #define SYS_OPEN 2
27 #define SYS_CLOSE 3
28 #define SYS_READ 4
29 #define SYS_WRITE 5
30 #define SYS_FORK 6
31 #define SYS_SLEEP 7
32 #define SYS_WAITPID 8
33 #define SYS_EXEC 9
34 #define SYS_ALLOC 10
35 #define SYS_FREE 11
36 #define SYS_WAIT 12
37 #define SYS_SEEK 13
38 #define SYS_MKNOD 14
39 #define SYS_GETWD 15
40 #define SYS_CHDIR 16
41 #define SYS_PIPE 17
42 #define SYS_SOCKET 18
43 #define SYS_IOCTL 19
44 #define SYS_FCNTL 20
45 #define SYS_SIGNAL 21
46 #define SYS_RAISE 22
48 #endif