2 * Copyright (c) 2003 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/tru64/tru64_syscalls.hh"
33 standard_strings
[SystemCalls
<Tru64
>::StandardNumber
] = {
53 "pre_F64_getfsstat", // 18
61 "exec_with_loader", // 25
81 "set_program_attributes", // 43
84 "obsolete_osigaction", // 46
107 "pre_F64_stat", // 67
108 "pre_F64_lstat", // 68
131 "getdtablesize", // 89
134 "pre_F64_fstat", // 91
144 "getpriority", // 100
153 "old_sigblock", // 109
155 "old_sigsetmask", // 110
158 "old_recvmsg", // 113
159 "old_sendmsg", // 114
160 "obsolete_vtrcae", // 115
161 "gettimeofday", // 116
164 "numa_syscalls", // 119
168 "settimeofday", // 122
171 "old_recvfrom", // 125
186 "obsolete_42_sigreturn", // 139
189 "old_getpeername", // 141
199 "old_getsockname", // 150
203 "pid_unblock", // 154
204 "signal_urti", // 155
206 "sigwaitprim", // 157
208 "getdirentries", // 159
210 "pre_F64_statfs", // 160
211 "pre_F64_fstatfs", // 161
213 "async_daemon", // 163
215 "getdomainname", // 165
216 "setdomainname", // 166
239 "alt_sigpending", // 187
269 "getaddressconf", // 214
274 "utc_gettime", // 219
276 "utc_adjtime", // 220
287 "gettimeofday64", // 230
288 "settimeofday64", // 231
292 "sigaltstack", // 235
294 "priocntlset", // 237
296 "set_speculative", // 239
298 "msfs_syscall", // 240
302 "proplist_syscall", // 244
303 "ntp_adjtime", // 245
304 "ntp_gettime", // 246
310 "usleep_thread", // 251
314 "subsys_info", // 255
317 "afs_syscall", // 258
324 "_F64_writev", // 264
330 mach_strings
[SystemCalls
<Tru64
>::MachNumber
] = {
343 "thread_reply", // 11
353 "msg_send_trap", // 20
354 "msg_receive_trap", // 21
355 "msg_rpc_trap", // 22
362 "nxm_thread_destroy", // 29
366 "nxm_thread_create", // 32
367 "nxm_task_init", // 33
370 "nxm_wakeup_idle", // 36
371 "nxm_set_pthid", // 37
372 "nxm_thread_kill", // 38
373 "nxm_thread_block", // 39
375 "nxm_thread_wakeup", // 40
376 "init_process", // 41
377 "nxm_get_binding", // 42
380 "nxm_set_cancel", // 45
381 "nxm_set_binding", // 46
382 "stack_create", // 47
383 "nxm_get_state", // 48
384 "nxm_thread_suspend", // 49
386 "nxm_thread_resume", // 50
387 "nxm_signal_check", // 51
388 "htg_unix_syscall", // 52
392 "host_priv_self", // 56
398 "thread_switch", // 61
400 "nxm_pshared_init", // 63
401 "nxm_pshared_block", // 64
402 "nxm_pshared_unblock", // 65
403 "nxm_pshared_destroy", // 66
404 "nxm_swtch_pri", // 67
408 "mach_sctimes_0", // 70
409 "mach_sctimes_1", // 71
410 "mach_sctimes_2", // 72
411 "mach_sctimes_3", // 73
412 "mach_sctimes_4", // 74
413 "mach_sctimes_5", // 75
414 "mach_sctimes_6", // 76
415 "mach_sctimes_7", // 77
416 "mach_sctimes_8", // 78
417 "mach_sctimes_9", // 79
419 "mach_sctimes_10", // 80
420 "mach_sctimes_11", // 81
421 "mach_sctimes_port_alloc_dealloc", // 82
426 SystemCalls
<Tru64
>::name(int num
)
430 else if (num
>= StandardNumber
)
431 return mach_strings
[num
- StandardNumber
];
433 return standard_strings
[num
];
434 else if (num
> -MachNumber
)
435 return mach_strings
[-num
];