Annotation of prex-old/usr/lib/prex/syscalls/syscall.h, Revision 1.1.1.1
1.1 nbrk 1: /*
2: * Copyright (c) 2005-2006, Kohsuke Ohtani
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms, with or without
6: * modification, are permitted provided that the following conditions
7: * are met:
8: * 1. Redistributions of source code must retain the above copyright
9: * notice, this list of conditions and the following disclaimer.
10: * 2. Redistributions in binary form must reproduce the above copyright
11: * notice, this list of conditions and the following disclaimer in the
12: * documentation and/or other materials provided with the distribution.
13: * 3. Neither the name of the author nor the names of any co-contributors
14: * may be used to endorse or promote products derived from this software
15: * without specific prior written permission.
16: *
17: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20: * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27: * SUCH DAMAGE.
28: */
29:
30: /*
31: * syscall.h - system call number
32: */
33: #ifndef _SYSCALL_H
34: #define _SYSCALL_H
35:
36: #define SYS_object_create 0
37: #define SYS_object_destroy 1
38: #define SYS_object_lookup 2
39: #define SYS_msg_send 3
40: #define SYS_msg_receive 4
41: #define SYS_msg_reply 5
42: #define SYS_vm_allocate 6
43: #define SYS_vm_free 7
44: #define SYS_vm_attribute 8
45: #define SYS_vm_map 9
46: #define SYS_task_create 10
47: #define SYS_task_terminate 11
48: #define SYS_task_self 12
49: #define SYS_task_suspend 13
50: #define SYS_task_resume 14
51: #define SYS_task_name 15
52: #define SYS_task_getcap 16
53: #define SYS_task_setcap 17
54: #define SYS_thread_create 18
55: #define SYS_thread_terminate 19
56: #define SYS_thread_load 20
57: #define SYS_thread_self 21
58: #define SYS_thread_yield 22
59: #define SYS_thread_suspend 23
60: #define SYS_thread_resume 24
61: #define SYS_thread_schedparam 25
62: #define SYS_timer_sleep 26
63: #define SYS_timer_alarm 27
64: #define SYS_timer_periodic 28
65: #define SYS_timer_waitperiod 29
66: #define SYS_exception_setup 30
67: #define SYS_exception_return 31
68: #define SYS_exception_raise 32
69: #define SYS_exception_wait 33
70: #define SYS_device_open 34
71: #define SYS_device_close 35
72: #define SYS_device_read 36
73: #define SYS_device_write 37
74: #define SYS_device_ioctl 38
75: #define SYS_mutex_init 39
76: #define SYS_mutex_destroy 40
77: #define SYS_mutex_lock 41
78: #define SYS_mutex_trylock 42
79: #define SYS_mutex_unlock 43
80: #define SYS_cond_init 44
81: #define SYS_cond_destroy 45
82: #define SYS_cond_wait 46
83: #define SYS_cond_signal 47
84: #define SYS_cond_broadcast 48
85: #define SYS_sem_init 49
86: #define SYS_sem_destroy 50
87: #define SYS_sem_wait 51
88: #define SYS_sem_trywait 52
89: #define SYS_sem_post 53
90: #define SYS_sem_getvalue 54
91: #define SYS_sys_log 55
92: #define SYS_sys_panic 56
93: #define SYS_sys_info 57
94: #define SYS_sys_time 58
95: #define SYS_sys_debug 59
96:
97: #endif /* _SYSCALL_H */
CVSweb