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