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 #include "kern/linux/linux_syscalls.hh"
35 standard_strings
[SystemCalls
<Linux
>::Number
] = {
62 "clock_nanosleep", //20
107 "get_kernel_syms", //59
110 "get_thread_area", //60
171 "lookup_dcookie", //111
172 "lremovexattr", //112
224 "query_module", //156
234 "remap_file_pages", //164
237 "restart_syscall", //167
239 "rt_sigaction", //169
242 "rt_sigpending", //170
243 "rt_sigprocmask", //171
244 "rt_sigqueueinfo", //172
245 "rt_sigreturn", //173
246 "rt_sigsuspend", //174
247 "rt_sigtimedwait", //175
248 "sched_get_priority_max", //176
249 "sched_get_priority_min", //177
250 "sched_getaffinity", //178
251 "sched_getparam", //179
254 "sched_getscheduler", //180
255 "sched_rr_get_interval", //181
256 "sched_setaffinity", //182
257 "sched_setparam", //183
258 "sched_setscheduler", //184
263 "set_thread_area", //189
266 "set_tid_address", //190
267 "setdomainname", //191
294 "settimeofday", //214
329 "timer_create", //243
330 "timer_delete", //244
331 "timer_getoverrun", //245
332 "timer_gettime", //246
333 "timer_settime", //247
370 SystemCalls
<Linux
>::name(int num
)
372 if ((num
>= 0) && (num
< Number
))
373 return standard_strings
[num
];