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.
29 #include "kern/linux/linux_syscalls.hh"
33 standard_strings
[SystemCalls
<Linux
>::Number
] = {
60 "clock_nanosleep", //20
105 "get_kernel_syms", //59
108 "get_thread_area", //60
169 "lookup_dcookie", //111
170 "lremovexattr", //112
222 "query_module", //156
232 "remap_file_pages", //164
235 "restart_syscall", //167
237 "rt_sigaction", //169
240 "rt_sigpending", //170
241 "rt_sigprocmask", //171
242 "rt_sigqueueinfo", //172
243 "rt_sigreturn", //173
244 "rt_sigsuspend", //174
245 "rt_sigtimedwait", //175
246 "sched_get_priority_max", //176
247 "sched_get_priority_min", //177
248 "sched_getaffinity", //178
249 "sched_getparam", //179
252 "sched_getscheduler", //180
253 "sched_rr_get_interval", //181
254 "sched_setaffinity", //182
255 "sched_setparam", //183
256 "sched_setscheduler", //184
261 "set_thread_area", //189
264 "set_tid_address", //190
265 "setdomainname", //191
292 "settimeofday", //214
327 "timer_create", //243
328 "timer_delete", //244
329 "timer_getoverrun", //245
330 "timer_gettime", //246
331 "timer_settime", //247
368 SystemCalls
<Linux
>::name(int num
)
370 if ((num
>= 0) && (num
< Number
))
371 return standard_strings
[num
];