Xenomai  3.0.8
syscall.h
1 /*
2  * Copyright (C) 2005 Philippe Gerum <rpm@xenomai.org>.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17  */
18 #ifndef _COBALT_UAPI_SYSCALL_H
19 #define _COBALT_UAPI_SYSCALL_H
20 
21 #include <cobalt/uapi/asm-generic/syscall.h>
22 
23 #define sc_cobalt_bind 0
24 #define sc_cobalt_thread_create 1
25 #define sc_cobalt_thread_getpid 2
26 #define sc_cobalt_thread_setmode 3
27 #define sc_cobalt_thread_setname 4
28 #define sc_cobalt_thread_join 5
29 #define sc_cobalt_thread_kill 6
30 #define sc_cobalt_thread_setschedparam_ex 7
31 #define sc_cobalt_thread_getschedparam_ex 8
32 #define sc_cobalt_thread_getstat 9
33 #define sc_cobalt_sem_init 10
34 #define sc_cobalt_sem_destroy 11
35 #define sc_cobalt_sem_post 12
36 #define sc_cobalt_sem_wait 13
37 #define sc_cobalt_sem_trywait 14
38 #define sc_cobalt_sem_getvalue 15
39 #define sc_cobalt_sem_open 16
40 #define sc_cobalt_sem_close 17
41 #define sc_cobalt_sem_unlink 18
42 #define sc_cobalt_sem_timedwait 19
43 #define sc_cobalt_sem_inquire 20
44 #define sc_cobalt_sem_broadcast_np 21
45 #define sc_cobalt_clock_getres 22
46 #define sc_cobalt_clock_gettime 23
47 #define sc_cobalt_clock_settime 24
48 #define sc_cobalt_clock_nanosleep 25
49 #define sc_cobalt_mutex_init 26
50 #define sc_cobalt_mutex_check_init 27
51 #define sc_cobalt_mutex_destroy 28
52 #define sc_cobalt_mutex_lock 29
53 #define sc_cobalt_mutex_timedlock 30
54 #define sc_cobalt_mutex_trylock 31
55 #define sc_cobalt_mutex_unlock 32
56 #define sc_cobalt_cond_init 33
57 #define sc_cobalt_cond_destroy 34
58 #define sc_cobalt_cond_wait_prologue 35
59 #define sc_cobalt_cond_wait_epilogue 36
60 #define sc_cobalt_mq_open 37
61 #define sc_cobalt_mq_close 38
62 #define sc_cobalt_mq_unlink 39
63 #define sc_cobalt_mq_getattr 40
64 #define sc_cobalt_mq_timedsend 41
65 #define sc_cobalt_mq_timedreceive 42
66 #define sc_cobalt_mq_notify 43
67 #define sc_cobalt_sched_minprio 44
68 #define sc_cobalt_sched_maxprio 45
69 #define sc_cobalt_sched_weightprio 46
70 #define sc_cobalt_sched_yield 47
71 #define sc_cobalt_sched_setscheduler_ex 48
72 #define sc_cobalt_sched_getscheduler_ex 49
73 #define sc_cobalt_sched_setconfig_np 50
74 #define sc_cobalt_sched_getconfig_np 51
75 #define sc_cobalt_timer_create 52
76 #define sc_cobalt_timer_delete 53
77 #define sc_cobalt_timer_settime 54
78 #define sc_cobalt_timer_gettime 55
79 #define sc_cobalt_timer_getoverrun 56
80 #define sc_cobalt_timerfd_create 57
81 #define sc_cobalt_timerfd_settime 58
82 #define sc_cobalt_timerfd_gettime 59
83 #define sc_cobalt_sigwait 60
84 #define sc_cobalt_sigwaitinfo 61
85 #define sc_cobalt_sigtimedwait 62
86 #define sc_cobalt_sigpending 63
87 #define sc_cobalt_kill 64
88 #define sc_cobalt_sigqueue 65
89 #define sc_cobalt_monitor_init 66
90 #define sc_cobalt_monitor_destroy 67
91 #define sc_cobalt_monitor_enter 68
92 #define sc_cobalt_monitor_wait 69
93 #define sc_cobalt_monitor_sync 70
94 #define sc_cobalt_monitor_exit 71
95 #define sc_cobalt_event_init 72
96 #define sc_cobalt_event_wait 73
97 #define sc_cobalt_event_sync 74
98 #define sc_cobalt_event_destroy 75
99 #define sc_cobalt_event_inquire 76
100 #define sc_cobalt_open 77
101 #define sc_cobalt_socket 78
102 #define sc_cobalt_close 79
103 #define sc_cobalt_ioctl 80
104 #define sc_cobalt_read 81
105 #define sc_cobalt_write 82
106 #define sc_cobalt_recvmsg 83
107 #define sc_cobalt_sendmsg 84
108 #define sc_cobalt_mmap 85
109 #define sc_cobalt_select 86
110 #define sc_cobalt_fcntl 87
111 #define sc_cobalt_migrate 88
112 #define sc_cobalt_archcall 89
113 #define sc_cobalt_trace 90
114 #define sc_cobalt_corectl 91
115 #define sc_cobalt_get_current 92
116 #define sc_cobalt_mayday 93
117 #define sc_cobalt_backtrace 94
118 #define sc_cobalt_serialdbg 95
119 #define sc_cobalt_extend 96
120 
121 #define __NR_COBALT_SYSCALLS 128 /* Power of 2 */
122 
123 #endif /* !_COBALT_UAPI_SYSCALL_H */