2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A * Return the name of a fault. 2N/A * Manufacture a name for unknown fault. 2N/A if (
bufsz == 0)
/* force a program failure */ 2N/A * Return the name of a signal. 2N/A * Manufacture a name for unknown signal. 2N/A if (
bufsz == 0)
/* force a program failure */ 2N/A /* sig2str() omits the leading "SIG" */ 2N/A "symlinkat",
/* 11 */ 2N/A "readlinkat",
/* 22 */ 2N/A "pcsample",
/* 26 */ 2N/A "frealpathat",
/* 30 */ 2N/A "uucopystr",
/* 40 */ 2N/A "faccessat",
/* 45 */ 2N/A "fchownat",
/* 56 */ 2N/A "renameat",
/* 64 */ 2N/A "fstatat64",
/* 67 */ 2N/A "openat64",
/* 69 */ 2N/A "exacctsys",
/* 72 */ 2N/A "getpagesizes",
/* 73 */ 2N/A "unlinkat",
/* 76 */ 2N/A "lwp_park",
/* 77 */ 2N/A "sendfilev",
/* 78 */ 2N/A "getdents",
/* 81 */ 2N/A "ucredsys",
/* 83 */ 2N/A "setgroups",
/* 91 */ 2N/A "getgroups",
/* 92 */ 2N/A "sigprocmask",
/* 95 */ 2N/A "sigsuspend",
/* 96 */ 2N/A "sigaltstack",
/* 97 */ 2N/A "sigaction",
/* 98 */ 2N/A "sigpending",
/* 99 */ 2N/A "context",
/* 100 */ 2N/A "fchmodat",
/* 101 */ 2N/A "mkdirat",
/* 102 */ 2N/A "statvfs",
/* 103 */ 2N/A "fstatvfs",
/* 104 */ 2N/A "getloadavg",
/* 105 */ 2N/A "sigsendsys",
/* 108 */ 2N/A "utimensat",
/* 110 */ 2N/A "sigresend",
/* 111 */ 2N/A "priocntlsys",
/* 112 */ 2N/A "pathconf",
/* 113 */ 2N/A "mincore",
/* 114 */ 2N/A "mprotect",
/* 116 */ 2N/A "fpathconf",
/* 118 */ 2N/A "mmapobj",
/* 127 */ 2N/A "setrlimit",
/* 128 */ 2N/A "getrlimit",
/* 129 */ 2N/A "memcntl",
/* 131 */ 2N/A "getpmsg",
/* 132 */ 2N/A "putpmsg",
/* 133 */ 2N/A "setegid",
/* 136 */ 2N/A "sysconfig",
/* 137 */ 2N/A "adjtime",
/* 138 */ 2N/A "systeminfo",
/* 139 */ 2N/A "sharefs",
/* 140 */ 2N/A "seteuid",
/* 141 */ 2N/A "forksys",
/* 142 */ 2N/A "sigwait",
/* 144 */ 2N/A "lwp_info",
/* 145 */ 2N/A "lwp_sema_post",
/* 148 */ 2N/A "lwp_sema_trywait",
/* 149 */ 2N/A "lwp_detatch",
/* 150 */ 2N/A "corectl",
/* 151 */ 2N/A "fchroot",
/* 153 */ 2N/A "vhangup",
/* 155 */ 2N/A "gettimeofday",
/* 156 */ 2N/A "getitimer",
/* 157 */ 2N/A "setitimer",
/* 158 */ 2N/A "lwp_create",
/* 159 */ 2N/A "lwp_exit",
/* 160 */ 2N/A "lwp_suspend",
/* 161 */ 2N/A "lwp_continue",
/* 162 */ 2N/A "lwp_kill",
/* 163 */ 2N/A "lwp_self",
/* 164 */ 2N/A "lwp_sigmask",
/* 165 */ 2N/A "lwp_private",
/* 166 */ 2N/A "lwp_wait",
/* 167 */ 2N/A "lwp_mutex_wakeup",
/* 168 */ 2N/A "lwp_cond_wait",
/* 170 */ 2N/A "lwp_cond_signal",
/* 171 */ 2N/A "lwp_cond_broadcast",
/* 172 */ 2N/A "inst_sync",
/* 176 */ 2N/A "lgrpsys",
/* 180 */ 2N/A "rusagesys",
/* 181 */ 2N/A "pollsys",
/* 183 */ 2N/A "labelsys",
/* 184 */ 2N/A "auditsys",
/* 186 */ 2N/A "processor_bind",
/* 187 */ 2N/A "processor_info",
/* 188 */ 2N/A "p_online",
/* 189 */ 2N/A "sigqueue",
/* 190 */ 2N/A "clock_gettime",
/* 191 */ 2N/A "clock_settime",
/* 192 */ 2N/A "clock_getres",
/* 193 */ 2N/A "timer_create",
/* 194 */ 2N/A "timer_delete",
/* 195 */ 2N/A "timer_settime",
/* 196 */ 2N/A "timer_gettime",
/* 197 */ 2N/A "timer_getoverrun",
/* 198 */ 2N/A "nanosleep",
/* 199 */ 2N/A "setreuid",
/* 202 */ 2N/A "setregid",
/* 203 */ 2N/A "install_utrap",
/* 204 */ 2N/A "signotify",
/* 205 */ 2N/A "schedctl",
/* 206 */ 2N/A "sparc_utrap_install",
/* 208 */ 2N/A "resolvepath",
/* 209 */ 2N/A "lwp_mutex_timedlock",
/* 210 */ 2N/A "lwp_sema_timedwait",
/* 211 */ 2N/A "lwp_rwlock_sys",
/* 212 */ 2N/A "getdents64",
/* 213 */ 2N/A "statvfs64",
/* 218 */ 2N/A "fstatvfs64",
/* 219 */ 2N/A "setrlimit64",
/* 220 */ 2N/A "getrlimit64",
/* 221 */ 2N/A "pread64",
/* 222 */ 2N/A "pwrite64",
/* 223 */ 2N/A "autofssys",
/* 228 */ 2N/A "so_socket",
/* 230 */ 2N/A "so_socketpair",
/* 231 */ 2N/A "connect",
/* 235 */ 2N/A "shutdown",
/* 236 */ 2N/A "recvfrom",
/* 238 */ 2N/A "recvmsg",
/* 239 */ 2N/A "sendmsg",
/* 241 */ 2N/A "getpeername",
/* 243 */ 2N/A "getsockname",
/* 244 */ 2N/A "getsockopt",
/* 245 */ 2N/A "setsockopt",
/* 246 */ 2N/A "sockconfig",
/* 247 */ 2N/A "ntp_gettime",
/* 248 */ 2N/A "ntp_adjtime",
/* 249 */ 2N/A "lwp_mutex_unlock",
/* 250 */ 2N/A "lwp_mutex_trylock",
/* 251 */ 2N/A "lwp_mutex_register",
/* 252 */ 2N/A/* SYSEND == max syscall number + 1 */ 2N/A * Return the name of a system call. 2N/A * Manufacture a name for unknown system call. 2N/A if (
bufsz == 0)
/* force a program failure */ 2N/A * Convert a string representation of a fault to the corresponding number. 2N/A * Convert a string representation of a signal to the signal number. This 2N/A * functionality is already available in libc, but the interface doesn't 2N/A * optionally accept a "SIG" prefix. We strip that first, and then call libc. 2N/A * Convert a string representation of a system call to the corresponding number. 2N/A * We do this by performing a simple linear search of the table above. 2N/A * Convert a fltset_t to a string representation consisting of canonical 2N/A * machine fault names separated by the given delimeter string. If 2N/A * m is non-zero (TRUE), set members are printed. If m is zero (FALSE), set 2N/A * non-members are printed. If the specified buf is too small to hold the 2N/A * complete formatted set, NULL is returned; otherwise buf is returned. 2N/A buf[0] =
'\0';
/* Set first byte to \0 */ 2N/A * Convert a sigset_t to a string representation consisting of canonical signal 2N/A * names (without the SIG prefix). Parameters and return values analogous to 2N/A * proc_fltset2str(). 2N/A m = (m != 0);
/* Make sure m is 0 or 1 */ 2N/A buf[0] =
'\0';
/* Set first byte to \0 */ 2N/A * Unlike proc_fltset2str() and proc_sysset2str(), we don't loop 2N/A * until i <= NSIG here, because sigismember() rejects i == NSIG. 2N/A * Convert a sysset_t to a string representation consisting of canonical system 2N/A * call names. Parameters and return values analogous to proc_fltset2str(). 2N/A buf[0] =
'\0';
/* Set first byte to \0 */ 2N/A * Convert a string representation of a fault set (names separated by 2N/A * one or more of the given delimeters) to a fltset_t. 2N/A * If m is non-zero (TRUE), members of the string representation are set. 2N/A * If m is zero (FALSE), non-members of the string representation are set. 2N/A * This function returns NULL for success. Otherwise it returns a pointer 2N/A * to the token of the string that couldn't be identified as a string 2N/A * representation of a fault. 2N/A return ((
char *)s + (p - t));
2N/A * Convert a string representation of a signal set (names with or without the 2N/A * SIG prefix separated by one or more of the given delimeters) to a sigset_t. 2N/A * Parameters and return values analogous to proc_str2fltset(). 2N/A return ((
char *)s + (p - t));
2N/A * Convert a string representation of a system call set (names separated by 2N/A * one or more of the given delimeters) to a sysset_t. Parameters and return 2N/A * values analogous to proc_str2fltset(). 2N/A return ((
char *)s + (p - t));