2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #ifndef __KERN_LINUX_LINUX_SYSCALLS_HH__
32 #define __KERN_LINUX_LINUX_SYSCALLS_HH__
34 #include "kern/linux/linux.hh"
40 class SystemCalls<Linux>
54 _break = 10, /*renamed from break*/
104 get_kernel_syms = 60,
105 get_thread_area = 61,
156 lookup_dcookie = 112,
209 remap_file_pages = 165,
212 restart_syscall = 168,
216 rt_sigprocmask = 172,
217 rt_sigqueueinfo = 173,
220 rt_sigtimedwait = 176,
221 sched_get_priority_max = 177,
222 sched_get_priority_min = 178,
223 sched_getaffinity = 179,
224 sched_getparam = 180,
225 sched_getscheduler = 181,
226 sched_rr_get_interval = 182,
227 sched_setaffinity = 183,
228 sched_setparam = 184,
229 sched_setscheduler = 185,
234 set_thread_area = 190,
235 set_tid_address = 191,
290 timer_getoverrun = 246,
320 static const char *name(int num);
322 static bool validSyscallNumber(int num) {
328 #endif // __KERN_LINUX_LINUX_SYSCALLS_HH__