scoutos / prex-0.9.0 / usr / lib / prex / syscalls / syscall.h @ 03e9c04a
History | View | Annotate | Download (3.26 KB)
1 |
/*
|
---|---|
2 |
* Copyright (c) 2005-2009, 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 |
|
34 |
#ifndef _SYSCALL_H
|
35 |
#define _SYSCALL_H
|
36 |
|
37 |
#define SYS_exception_return 0 |
38 |
#define SYS_exception_setup 1 |
39 |
#define SYS_exception_raise 2 |
40 |
#define SYS_exception_wait 3 |
41 |
#define SYS_task_create 4 |
42 |
#define SYS_task_terminate 5 |
43 |
#define SYS_task_self 6 |
44 |
#define SYS_task_suspend 7 |
45 |
#define SYS_task_resume 8 |
46 |
#define SYS_task_setname 9 |
47 |
#define SYS_task_setcap 10 |
48 |
#define SYS_task_chkcap 11 |
49 |
#define SYS_thread_create 12 |
50 |
#define SYS_thread_terminate 13 |
51 |
#define SYS_thread_load 14 |
52 |
#define SYS_thread_self 15 |
53 |
#define SYS_thread_yield 16 |
54 |
#define SYS_thread_suspend 17 |
55 |
#define SYS_thread_resume 18 |
56 |
#define SYS_thread_schedparam 19 |
57 |
#define SYS_vm_allocate 20 |
58 |
#define SYS_vm_free 21 |
59 |
#define SYS_vm_attribute 22 |
60 |
#define SYS_vm_map 23 |
61 |
#define SYS_object_create 24 |
62 |
#define SYS_object_destroy 25 |
63 |
#define SYS_object_lookup 26 |
64 |
#define SYS_msg_send 27 |
65 |
#define SYS_msg_receive 28 |
66 |
#define SYS_msg_reply 29 |
67 |
#define SYS_timer_sleep 30 |
68 |
#define SYS_timer_alarm 31 |
69 |
#define SYS_timer_periodic 32 |
70 |
#define SYS_timer_waitperiod 33 |
71 |
#define SYS_device_open 34 |
72 |
#define SYS_device_close 35 |
73 |
#define SYS_device_read 36 |
74 |
#define SYS_device_write 37 |
75 |
#define SYS_device_ioctl 38 |
76 |
#define SYS_mutex_init 39 |
77 |
#define SYS_mutex_destroy 40 |
78 |
#define SYS_mutex_lock 41 |
79 |
#define SYS_mutex_trylock 42 |
80 |
#define SYS_mutex_unlock 43 |
81 |
#define SYS_cond_init 44 |
82 |
#define SYS_cond_destroy 45 |
83 |
#define SYS_cond_wait 46 |
84 |
#define SYS_cond_signal 47 |
85 |
#define SYS_cond_broadcast 48 |
86 |
#define SYS_sem_init 49 |
87 |
#define SYS_sem_destroy 50 |
88 |
#define SYS_sem_wait 51 |
89 |
#define SYS_sem_trywait 52 |
90 |
#define SYS_sem_post 53 |
91 |
#define SYS_sem_getvalue 54 |
92 |
#define SYS_sys_log 55 |
93 |
#define SYS_sys_panic 56 |
94 |
#define SYS_sys_info 57 |
95 |
#define SYS_sys_time 58 |
96 |
#define SYS_sys_debug 59 |
97 |
|
98 |
#endif /* _SYSCALL_H */ |