Roland McGrath | 6d1a65c | 2004-07-12 07:44:08 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com> |
| 3 | * All rights reserved. |
| 4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions |
| 7 | * are met: |
| 8 | * 1. Redistributions of source code must retain the above copyright |
| 9 | * notice, this list of conditions and the following disclaimer. |
| 10 | * 2. Redistributions in binary form must reproduce the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer in the |
| 12 | * documentation and/or other materials provided with the distribution. |
| 13 | * 3. The name of the author may not be used to endorse or promote products |
| 14 | * derived from this software without specific prior written permission. |
| 15 | * |
| 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| 17 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 18 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 19 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 20 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 21 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 22 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 23 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 25 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | * |
| 27 | * $Id$ |
| 28 | */ |
| 29 | |
| 30 | #define SOLARIS_syscall 0 |
| 31 | #define SOLARIS_exit 1 |
| 32 | #define SOLARIS_fork 2 |
| 33 | #define SOLARIS_read 3 |
| 34 | #define SOLARIS_write 4 |
| 35 | #define SOLARIS_open 5 |
| 36 | #define SOLARIS_close 6 |
| 37 | #define SOLARIS_wait 7 |
| 38 | #define SOLARIS_creat 8 |
| 39 | #define SOLARIS_link 9 |
| 40 | #define SOLARIS_unlink 10 |
| 41 | #define SOLARIS_exec 11 |
| 42 | #define SOLARIS_chdir 12 |
| 43 | #define SOLARIS_time 13 |
| 44 | #define SOLARIS_mknod 14 |
| 45 | #define SOLARIS_chmod 15 |
| 46 | #define SOLARIS_chown 16 |
| 47 | #define SOLARIS_brk 17 |
| 48 | #define SOLARIS_stat 18 |
| 49 | #define SOLARIS_lseek 19 |
| 50 | #define SOLARIS_getpid 20 |
| 51 | #define SOLARIS_mount 21 |
| 52 | #define SOLARIS_umount 22 |
| 53 | #define SOLARIS_setuid 23 |
| 54 | #define SOLARIS_getuid 24 |
| 55 | #define SOLARIS_stime 25 |
| 56 | #define SOLARIS_ptrace 26 |
| 57 | #define SOLARIS_alarm 27 |
| 58 | #define SOLARIS_fstat 28 |
| 59 | #define SOLARIS_pause 29 |
| 60 | #define SOLARIS_utime 30 |
| 61 | #define SOLARIS_stty 31 |
| 62 | #define SOLARIS_gtty 32 |
| 63 | #define SOLARIS_access 33 |
| 64 | #define SOLARIS_nice 34 |
| 65 | #define SOLARIS_statfs 35 |
| 66 | #define SOLARIS_sync 36 |
| 67 | #define SOLARIS_kill 37 |
| 68 | #define SOLARIS_fstatfs 38 |
| 69 | #define SOLARIS_pgrpsys 39 |
| 70 | #define SOLARIS_xenix 40 |
| 71 | #define SOLARIS_dup 41 |
| 72 | #define SOLARIS_pipe 42 |
| 73 | #define SOLARIS_times 43 |
| 74 | #define SOLARIS_profil 44 |
| 75 | #define SOLARIS_plock 45 |
| 76 | #define SOLARIS_setgid 46 |
| 77 | #define SOLARIS_getgid 47 |
| 78 | #define SOLARIS_signal 48 |
| 79 | #define SOLARIS_msgsys 49 |
| 80 | #define SOLARIS_syssun 50 |
| 81 | #define SOLARIS_acct 51 |
| 82 | #define SOLARIS_shmsys 52 |
| 83 | #define SOLARIS_semsys 53 |
| 84 | #define SOLARIS_ioctl 54 |
| 85 | #define SOLARIS_uadmin 55 |
| 86 | #define SOLARIS_utssys 57 |
| 87 | #define SOLARIS_fdsync 58 |
| 88 | #define SOLARIS_execve 59 |
| 89 | #define SOLARIS_umask 60 |
| 90 | #define SOLARIS_chroot 61 |
| 91 | #define SOLARIS_fcntl 62 |
| 92 | #define SOLARIS_ulimit 63 |
| 93 | #define SOLARIS_rmdir 79 |
| 94 | #define SOLARIS_mkdir 80 |
| 95 | #define SOLARIS_getdents 81 |
| 96 | #define SOLARIS_sysfs 84 |
| 97 | #define SOLARIS_getmsg 85 |
| 98 | #define SOLARIS_putmsg 86 |
| 99 | #define SOLARIS_poll 87 |
| 100 | #define SOLARIS_lstat 88 |
| 101 | #define SOLARIS_symlink 89 |
| 102 | #define SOLARIS_readlink 90 |
| 103 | #define SOLARIS_setgroups 91 |
| 104 | #define SOLARIS_getgroups 92 |
| 105 | #define SOLARIS_fchmod 93 |
| 106 | #define SOLARIS_fchown 94 |
| 107 | #define SOLARIS_sigprocmask 95 |
| 108 | #define SOLARIS_sigsuspend 96 |
| 109 | #define SOLARIS_sigaltstack 97 |
| 110 | #define SOLARIS_sigaction 98 |
| 111 | #define SOLARIS_sigpending 99 |
| 112 | #define SOLARIS_context 100 |
| 113 | #define SOLARIS_evsys 101 |
| 114 | #define SOLARIS_evtrapret 102 |
| 115 | #define SOLARIS_statvfs 103 |
| 116 | #define SOLARIS_fstatvfs 104 |
| 117 | #define SOLARIS_nfssys 106 |
| 118 | #define SOLARIS_waitsys 107 |
| 119 | #define SOLARIS_sigsendsys 108 |
| 120 | #define SOLARIS_hrtsys 109 |
| 121 | #define SOLARIS_acancel 110 |
| 122 | #define SOLARIS_async 111 |
| 123 | #define SOLARIS_priocntlsys 112 |
| 124 | #define SOLARIS_pathconf 113 |
| 125 | #define SOLARIS_mincore 114 |
| 126 | #define SOLARIS_mmap 115 |
| 127 | #define SOLARIS_mprotect 116 |
| 128 | #define SOLARIS_munmap 117 |
| 129 | #define SOLARIS_fpathconf 118 |
| 130 | #define SOLARIS_vfork 119 |
| 131 | #define SOLARIS_fchdir 120 |
| 132 | #define SOLARIS_readv 121 |
| 133 | #define SOLARIS_writev 122 |
| 134 | #define SOLARIS_xstat 123 |
| 135 | #define SOLARIS_lxstat 124 |
| 136 | #define SOLARIS_fxstat 125 |
| 137 | #define SOLARIS_xmknod 126 |
| 138 | #define SOLARIS_clocal 127 |
| 139 | #define SOLARIS_setrlimit 128 |
| 140 | #define SOLARIS_getrlimit 129 |
| 141 | #define SOLARIS_lchown 130 |
| 142 | #define SOLARIS_memcntl 131 |
| 143 | #define SOLARIS_getpmsg 132 |
| 144 | #define SOLARIS_putpmsg 133 |
| 145 | #define SOLARIS_rename 134 |
| 146 | #define SOLARIS_uname 135 |
| 147 | #define SOLARIS_setegid 136 |
| 148 | #define SOLARIS_sysconfig 137 |
| 149 | #define SOLARIS_adjtime 138 |
| 150 | #define SOLARIS_systeminfo 139 |
| 151 | #define SOLARIS_seteuid 141 |
| 152 | #define SOLARIS_vtrace 142 |
| 153 | #define SOLARIS_fork1 143 |
| 154 | #define SOLARIS_sigtimedwait 144 |
| 155 | #define SOLARIS_lwp_info 145 |
| 156 | #define SOLARIS_yield 146 |
| 157 | #define SOLARIS_lwp_sema_wait 147 |
| 158 | #define SOLARIS_lwp_sema_post 148 |
| 159 | #define SOLARIS_modctl 152 |
| 160 | #define SOLARIS_fchroot 153 |
| 161 | #define SOLARIS_utimes 154 |
| 162 | #define SOLARIS_vhangup 155 |
| 163 | #define SOLARIS_gettimeofday 156 |
| 164 | #define SOLARIS_getitimer 157 |
| 165 | #define SOLARIS_setitimer 158 |
| 166 | #define SOLARIS_lwp_create 159 |
| 167 | #define SOLARIS_lwp_exit 160 |
| 168 | #define SOLARIS_lwp_suspend 161 |
| 169 | #define SOLARIS_lwp_continue 162 |
| 170 | #define SOLARIS_lwp_kill 163 |
| 171 | #define SOLARIS_lwp_self 164 |
| 172 | #define SOLARIS_lwp_setprivate 165 |
| 173 | #define SOLARIS_lwp_getprivate 166 |
| 174 | #define SOLARIS_lwp_wait 167 |
| 175 | #define SOLARIS_lwp_mutex_unlock 168 |
| 176 | #define SOLARIS_lwp_mutex_lock 169 |
| 177 | #define SOLARIS_lwp_cond_wait 170 |
| 178 | #define SOLARIS_lwp_cond_signal 171 |
| 179 | #define SOLARIS_lwp_cond_broadcast 172 |
| 180 | #define SOLARIS_pread 173 |
| 181 | #define SOLARIS_pwrite 174 |
| 182 | #define SOLARIS_llseek 175 |
| 183 | #define SOLARIS_inst_sync 176 |
| 184 | #define SOLARIS_kaio 178 |
| 185 | #define SOLARIS_tsolsys 184 |
| 186 | #define SOLARIS_acl 185 |
| 187 | #define SOLARIS_auditsys 186 |
| 188 | #define SOLARIS_processor_bind 187 |
| 189 | #define SOLARIS_processor_info 188 |
| 190 | #define SOLARIS_p_online 189 |
| 191 | #define SOLARIS_sigqueue 190 |
| 192 | #define SOLARIS_clock_gettime 191 |
| 193 | #define SOLARIS_clock_settime 192 |
| 194 | #define SOLARIS_clock_getres 193 |
| 195 | #define SOLARIS_timer_create 194 |
| 196 | #define SOLARIS_timer_delete 195 |
| 197 | #define SOLARIS_timer_settime 196 |
| 198 | #define SOLARIS_timer_gettime 197 |
| 199 | #define SOLARIS_timer_getoverrun 198 |
| 200 | #define SOLARIS_nanosleep 199 |
| 201 | #define SOLARIS_facl 200 |
| 202 | #define SOLARIS_door 201 |
| 203 | #define SOLARIS_setreuid 202 |
| 204 | #define SOLARIS_setregid 203 |
| 205 | #define SOLARIS_signotifywait 210 |
| 206 | #define SOLARIS_lwp_sigredirect 211 |
| 207 | #define SOLARIS_lwp_alarm 212 |
| 208 | |
| 209 | #include "dummy2.h" |
| 210 | |
| 211 | extern int solaris_syscall(); |
| 212 | extern int solaris_exit(); |
| 213 | extern int solaris_fork(); |
| 214 | extern int solaris_read(); |
| 215 | extern int solaris_write(); |
| 216 | extern int solaris_open(); |
| 217 | extern int solaris_close(); |
| 218 | extern int solaris_wait(); |
| 219 | extern int solaris_creat(); |
| 220 | extern int solaris_link(); |
| 221 | extern int solaris_unlink(); |
| 222 | extern int solaris_exec(); |
| 223 | extern int solaris_chdir(); |
| 224 | extern int solaris_time(); |
| 225 | extern int solaris_mknod(); |
| 226 | extern int solaris_chmod(); |
| 227 | extern int solaris_chown(); |
| 228 | extern int solaris_brk(); |
| 229 | extern int solaris_stat(); |
| 230 | extern int solaris_lseek(); |
| 231 | extern int solaris_getpid(); |
| 232 | extern int solaris_mount(); |
| 233 | extern int solaris_umount(); |
| 234 | extern int solaris_setuid(); |
| 235 | extern int solaris_getuid(); |
| 236 | extern int solaris_stime(); |
| 237 | extern int solaris_ptrace(); |
| 238 | extern int solaris_alarm(); |
| 239 | extern int solaris_fstat(); |
| 240 | extern int solaris_pause(); |
| 241 | extern int solaris_utime(); |
| 242 | extern int solaris_stty(); |
| 243 | extern int solaris_gtty(); |
| 244 | extern int solaris_access(); |
| 245 | extern int solaris_nice(); |
| 246 | extern int solaris_statfs(); |
| 247 | extern int solaris_sync(); |
| 248 | extern int solaris_kill(); |
| 249 | extern int solaris_fstatfs(); |
| 250 | extern int solaris_pgrpsys(); |
| 251 | extern int solaris_setpgrp(); |
| 252 | extern int solaris_xenix(); |
| 253 | extern int solaris_syssgi(); |
| 254 | extern int solaris_dup(); |
| 255 | extern int solaris_pipe(); |
| 256 | extern int solaris_times(); |
| 257 | extern int solaris_profil(); |
| 258 | extern int solaris_plock(); |
| 259 | extern int solaris_setgid(); |
| 260 | extern int solaris_getgid(); |
| 261 | extern int solaris_sigcall(); |
| 262 | extern int solaris_msgsys(); |
| 263 | extern int solaris_syssun(); |
| 264 | extern int solaris_sysi86(); |
| 265 | extern int solaris_sysmips(); |
| 266 | extern int solaris_sysmachine(); |
| 267 | extern int solaris_acct(); |
| 268 | extern int solaris_shmsys(); |
| 269 | extern int solaris_semsys(); |
| 270 | extern int solaris_ioctl(); |
| 271 | extern int solaris_uadmin(); |
| 272 | extern int solaris_utssys(); |
| 273 | extern int solaris_fdsync(); |
| 274 | extern int solaris_execve(); |
| 275 | extern int solaris_umask(); |
| 276 | extern int solaris_chroot(); |
| 277 | extern int solaris_fcntl(); |
| 278 | extern int solaris_ulimit(); |
| 279 | extern int solaris_rmdir(); |
| 280 | extern int solaris_mkdir(); |
| 281 | extern int solaris_getdents(); |
| 282 | extern int solaris_sysfs(); |
| 283 | extern int solaris_getmsg(); |
| 284 | extern int solaris_putmsg(); |
| 285 | extern int solaris_poll(); |
| 286 | extern int solaris_lstat(); |
| 287 | extern int solaris_symlink(); |
| 288 | extern int solaris_readlink(); |
| 289 | extern int solaris_setgroups(); |
| 290 | extern int solaris_getgroups(); |
| 291 | extern int solaris_fchmod(); |
| 292 | extern int solaris_fchown(); |
| 293 | extern int solaris_sigprocmask(); |
| 294 | extern int solaris_sigsuspend(); |
| 295 | extern int solaris_sigaltstack(); |
| 296 | extern int solaris_sigaction(); |
| 297 | extern int solaris_spcall(); |
| 298 | extern int solaris_context(); |
| 299 | extern int solaris_evsys(); |
| 300 | extern int solaris_evtrapret(); |
| 301 | extern int solaris_statvfs(); |
| 302 | extern int solaris_fstatvfs(); |
| 303 | extern int solaris_nfssys(); |
| 304 | extern int solaris_waitid(); |
| 305 | extern int solaris_sigsendsys(); |
| 306 | extern int solaris_hrtsys(); |
| 307 | extern int solaris_acancel(); |
| 308 | extern int solaris_async(); |
| 309 | extern int solaris_priocntlsys(); |
| 310 | extern int solaris_pathconf(); |
| 311 | extern int solaris_mincore(); |
| 312 | extern int solaris_mmap(); |
| 313 | extern int solaris_mprotect(); |
| 314 | extern int solaris_munmap(); |
| 315 | extern int solaris_fpathconf(); |
| 316 | extern int solaris_vfork(); |
| 317 | extern int solaris_fchdir(); |
| 318 | extern int solaris_readv(); |
| 319 | extern int solaris_writev(); |
| 320 | extern int solaris_xstat(); |
| 321 | extern int solaris_lxstat(); |
| 322 | extern int solaris_fxstat(); |
| 323 | extern int solaris_xmknod(); |
| 324 | extern int solaris_clocal(); |
| 325 | extern int solaris_setrlimit(); |
| 326 | extern int solaris_getrlimit(); |
| 327 | extern int solaris_lchown(); |
| 328 | extern int solaris_memcntl(); |
| 329 | extern int solaris_getpmsg(); |
| 330 | extern int solaris_putpmsg(); |
| 331 | extern int solaris_rename(); |
| 332 | extern int solaris_uname(); |
| 333 | extern int solaris_setegid(); |
| 334 | extern int solaris_sysconfig(); |
| 335 | extern int solaris_adjtime(); |
| 336 | extern int solaris_sysinfo(); |
| 337 | extern int solaris_seteuid(); |
| 338 | extern int solaris_vtrace(); |
| 339 | extern int solaris_fork1(); |
| 340 | extern int solaris_sigtimedwait(); |
| 341 | extern int solaris_lwp_info(); |
| 342 | extern int solaris_yield(); |
| 343 | extern int solaris_lwp_sema_wait(); |
| 344 | extern int solaris_lwp_sema_post(); |
| 345 | extern int solaris_modctl(); |
| 346 | extern int solaris_fchroot(); |
| 347 | extern int solaris_utimes(); |
| 348 | extern int solaris_vhangup(); |
| 349 | extern int solaris_gettimeofday(); |
| 350 | extern int solaris_getitimer(); |
| 351 | extern int solaris_setitimer(); |
| 352 | extern int solaris_lwp_create(); |
| 353 | extern int solaris_lwp_exit(); |
| 354 | extern int solaris_lwp_suspend(); |
| 355 | extern int solaris_lwp_continue(); |
| 356 | extern int solaris_lwp_kill(); |
| 357 | extern int solaris_lwp_self(); |
| 358 | extern int solaris_lwp_setprivate(); |
| 359 | extern int solaris_lwp_getprivate(); |
| 360 | extern int solaris_lwp_wait(); |
| 361 | extern int solaris_lwp_mutex_unlock(); |
| 362 | extern int solaris_lwp_mutex_lock(); |
| 363 | extern int solaris_lwp_cond_wait(); |
| 364 | extern int solaris_lwp_cond_signal(); |
| 365 | extern int solaris_lwp_cond_broadcast(); |
| 366 | extern int solaris_pread(); |
| 367 | extern int solaris_pwrite(); |
| 368 | extern int solaris_llseek(); |
| 369 | extern int solaris_inst_sync(); |
| 370 | extern int solaris_auditsys(); |
| 371 | extern int solaris_processor_bind(); |
| 372 | extern int solaris_processor_info(); |
| 373 | extern int solaris_p_online(); |
| 374 | extern int solaris_sigqueue(); |
| 375 | extern int solaris_clock_gettime(); |
| 376 | extern int solaris_clock_settime(); |
| 377 | extern int solaris_clock_getres(); |
| 378 | extern int solaris_timer_create(); |
| 379 | extern int solaris_timer_delete(); |
| 380 | extern int solaris_timer_settime(); |
| 381 | extern int solaris_timer_gettime(); |
| 382 | extern int solaris_timer_getoverrun(); |
| 383 | extern int solaris_nanosleep(); |
| 384 | |
| 385 | /* solaris_pgrpsys subcalls */ |
| 386 | |
| 387 | extern int solaris_getpgrp(), solaris_setpgrp(), solaris_getsid(); |
| 388 | extern int solaris_setsid(), solaris_getpgid(), solaris_setpgid(); |
| 389 | |
| 390 | #define SOLARIS_pgrpsys_subcall 300 |
| 391 | #define SOLARIS_getpgrp (SOLARIS_pgrpsys_subcall + 0) |
| 392 | #define SOLARIS_setpgrp (SOLARIS_pgrpsys_subcall + 1) |
| 393 | #define SOLARIS_getsid (SOLARIS_pgrpsys_subcall + 2) |
| 394 | #define SOLARIS_setsid (SOLARIS_pgrpsys_subcall + 3) |
| 395 | #define SOLARIS_getpgid (SOLARIS_pgrpsys_subcall + 4) |
| 396 | #define SOLARIS_setpgid (SOLARIS_pgrpsys_subcall + 5) |
| 397 | |
| 398 | #define SOLARIS_pgrpsys_nsubcalls 6 |
| 399 | |
| 400 | /* solaris_sigcall subcalls */ |
| 401 | |
| 402 | #undef SOLARIS_signal |
| 403 | #define SOLARIS_sigcall 48 |
| 404 | |
| 405 | extern int solaris_signal(), solaris_sigset(), solaris_sighold(); |
| 406 | extern int solaris_sigrelse(), solaris_sigignore(), solaris_sigpause(); |
| 407 | |
| 408 | #define SOLARIS_sigcall_subcall 310 |
| 409 | #define SOLARIS_signal (SOLARIS_sigcall_subcall + 0) |
| 410 | #define SOLARIS_sigset (SOLARIS_sigcall_subcall + 1) |
| 411 | #define SOLARIS_sighold (SOLARIS_sigcall_subcall + 2) |
| 412 | #define SOLARIS_sigrelse (SOLARIS_sigcall_subcall + 3) |
| 413 | #define SOLARIS_sigignore (SOLARIS_sigcall_subcall + 4) |
| 414 | #define SOLARIS_sigpause (SOLARIS_sigcall_subcall + 5) |
| 415 | |
| 416 | #define SOLARIS_sigcall_nsubcalls 6 |
| 417 | |
| 418 | /* msgsys subcalls */ |
| 419 | |
| 420 | extern int solaris_msgget(), solaris_msgctl(), solaris_msgrcv(), solaris_msgsnd(); |
| 421 | |
| 422 | #define SOLARIS_msgsys_subcall 320 |
| 423 | #define SOLARIS_msgget (SOLARIS_msgsys_subcall + 0) |
| 424 | #define SOLARIS_msgctl (SOLARIS_msgsys_subcall + 1) |
| 425 | #define SOLARIS_msgrcv (SOLARIS_msgsys_subcall + 2) |
| 426 | #define SOLARIS_msgsnd (SOLARIS_msgsys_subcall + 3) |
| 427 | |
| 428 | #define SOLARIS_msgsys_nsubcalls 4 |
| 429 | |
| 430 | /* shmsys subcalls */ |
| 431 | |
| 432 | extern int solaris_shmat(), solaris_shmctl(), solaris_shmdt(), solaris_shmget(); |
| 433 | |
| 434 | #define SOLARIS_shmsys_subcall 330 |
| 435 | #define SOLARIS_shmat (SOLARIS_shmsys_subcall + 0) |
| 436 | #define SOLARIS_shmctl (SOLARIS_shmsys_subcall + 1) |
| 437 | #define SOLARIS_shmdt (SOLARIS_shmsys_subcall + 2) |
| 438 | #define SOLARIS_shmget (SOLARIS_shmsys_subcall + 3) |
| 439 | |
| 440 | #define SOLARIS_shmsys_nsubcalls 4 |
| 441 | |
| 442 | /* semsys subcalls */ |
| 443 | |
| 444 | extern int solaris_semctl(), solaris_semget(), solaris_semop(); |
| 445 | |
| 446 | #define SOLARIS_semsys_subcall 340 |
| 447 | #define SOLARIS_semctl (SOLARIS_semsys_subcall + 0) |
| 448 | #define SOLARIS_semget (SOLARIS_semsys_subcall + 1) |
| 449 | #define SOLARIS_semop (SOLARIS_semsys_subcall + 2) |
| 450 | |
| 451 | #define SOLARIS_semsys_nsubcalls 3 |
| 452 | |
| 453 | /* utssys subcalls */ |
| 454 | |
| 455 | extern int solaris_olduname(), solaris_ustat(), solaris_fusers(); |
| 456 | |
| 457 | #define SOLARIS_utssys_subcall 350 |
| 458 | |
| 459 | #define SOLARIS_olduname (SOLARIS_utssys_subcall + 0) |
| 460 | /* 1 is unused */ |
| 461 | #define SOLARIS_ustat (SOLARIS_utssys_subcall + 2) |
| 462 | #define SOLARIS_fusers (SOLARIS_utssys_subcall + 3) |
| 463 | |
| 464 | #define SOLARIS_utssys_nsubcalls 4 |
| 465 | |
| 466 | /* sysfs subcalls */ |
| 467 | |
| 468 | extern int solaris_sysfs1(), solaris_sysfs2(), solaris_sysfs3(); |
| 469 | |
| 470 | #define SOLARIS_sysfs_subcall 360 |
| 471 | /* 0 is unused */ |
| 472 | #define SOLARIS_sysfs1 (SOLARIS_sysfs_subcall + 1) |
| 473 | #define SOLARIS_sysfs2 (SOLARIS_sysfs_subcall + 2) |
| 474 | #define SOLARIS_sysfs3 (SOLARIS_sysfs_subcall + 3) |
| 475 | |
| 476 | #define SOLARIS_sysfs_nsubcalls 4 |
| 477 | |
| 478 | /* solaris_spcall subcalls */ |
| 479 | |
| 480 | #undef SOLARIS_sigpending |
| 481 | #define SOLARIS_spcall 99 |
| 482 | |
| 483 | extern int solaris_sigpending(), solaris_sigfillset(); |
| 484 | |
| 485 | #define SOLARIS_spcall_subcall 370 |
| 486 | /* 0 is unused */ |
| 487 | #define SOLARIS_sigpending (SOLARIS_spcall_subcall + 1) |
| 488 | #define SOLARIS_sigfillset (SOLARIS_spcall_subcall + 2) |
| 489 | |
| 490 | #define SOLARIS_spcall_nsubcalls 3 |
| 491 | |
| 492 | /* solaris_context subcalls */ |
| 493 | |
| 494 | extern int solaris_getcontext(), solaris_setcontext(); |
| 495 | |
| 496 | #define SOLARIS_context_subcall 380 |
| 497 | #define SOLARIS_getcontext (SOLARIS_context_subcall + 0) |
| 498 | #define SOLARIS_setcontext (SOLARIS_context_subcall + 1) |
| 499 | |
| 500 | #define SOLARIS_context_nsubcalls 2 |