Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +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 | /* still unfinished */ |
| 31 | |
| 32 | #define sys_sysmp printargs |
| 33 | #define sys_sginap printargs |
| 34 | #define sys_sgikopt printargs |
| 35 | #define sys_sysmips printargs |
| 36 | #define sys_sigreturn printargs |
| 37 | #define sys_recvmsg printargs |
| 38 | #define sys_sendmsg printargs |
| 39 | #define sys_nfssvc printargs |
| 40 | #define sys_getfh printargs |
| 41 | #define sys_async_daemon printargs |
| 42 | #define sys_exportfs printargs |
| 43 | #define sys_BSD_getime printargs |
| 44 | #define sys_sproc printargs |
| 45 | #define sys_procblk printargs |
| 46 | #define sys_sprocsp printargs |
| 47 | #define sys_msync printargs |
| 48 | #define sys_madvise printargs |
| 49 | #define sys_pagelock printargs |
| 50 | #define sys_quotactl printargs |
| 51 | #define sys_cacheflush printargs |
| 52 | #define sys_cachectl printargs |
| 53 | #define sys_nuname printargs |
| 54 | #define sys_sigpoll printargs |
| 55 | #define sys_swapctl printargs |
| 56 | #define sys_sigstack printargs |
| 57 | #define sys_sigsendset printargs |
| 58 | #define sys_priocntl printargs |
| 59 | #define sys_ksigqueue printargs |
| 60 | #define sys_lwp_sema_wait printargs |
John Hughes | bdf48f5 | 2001-03-06 15:08:09 +0000 | [diff] [blame] | 61 | #define sys_lwp_sema_trywait printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 62 | #define sys_syscall printargs |
| 63 | #define sys_clocal printargs |
| 64 | #define sys_syssun printargs |
| 65 | #define sys_sysi86 printargs |
| 66 | #define sys_sysmachine printargs |
| 67 | #define sys_plock printargs |
| 68 | #define sys_pathconf printargs |
| 69 | #define sys_sigtimedwait printargs |
| 70 | #define sys_ulimit printargs |
| 71 | #define sys_ptrace printargs |
| 72 | #define sys_stty printargs |
| 73 | #define sys_lwp_info printargs |
| 74 | #define sys_priocntlsys printargs |
| 75 | #define sys_hrtsys printargs |
| 76 | #define sys_xenix printargs |
| 77 | #define sys_statfs printargs |
| 78 | #define sys_fstatfs printargs |
| 79 | #define sys_statvfs printargs |
| 80 | #define sys_fstatvfs printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 81 | #define sys_sigsendsys printargs |
| 82 | #define sys_gtty printargs |
| 83 | #define sys_vtrace printargs |
| 84 | #define sys_fpathconf printargs |
| 85 | #define sys_evsys printargs |
| 86 | #define sys_acct printargs |
| 87 | #define sys_exec printargs |
| 88 | #define sys_lwp_sema_post printargs |
| 89 | #define sys_nfssys printargs |
| 90 | #define sys_sigaltstack printargs |
| 91 | #define sys_uadmin printargs |
| 92 | #define sys_umount printargs |
| 93 | #define sys_modctl printargs |
| 94 | #define sys_acancel printargs |
| 95 | #define sys_async printargs |
| 96 | #define sys_evtrapret printargs |
| 97 | #define sys_lwp_create printargs |
| 98 | #define sys_lwp_exit printargs |
| 99 | #define sys_lwp_suspend printargs |
| 100 | #define sys_lwp_continue printargs |
| 101 | #define sys_lwp_kill printargs |
| 102 | #define sys_lwp_self printargs |
| 103 | #define sys_lwp_setprivate printargs |
| 104 | #define sys_lwp_getprivate printargs |
| 105 | #define sys_lwp_wait printargs |
| 106 | #define sys_lwp_mutex_unlock printargs |
| 107 | #define sys_lwp_mutex_lock printargs |
| 108 | #define sys_lwp_cond_wait printargs |
| 109 | #define sys_lwp_cond_signal printargs |
| 110 | #define sys_lwp_cond_broadcast printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 111 | #define sys_inst_sync printargs |
| 112 | #define sys_auditsys printargs |
| 113 | #define sys_processor_bind printargs |
| 114 | #define sys_processor_info printargs |
| 115 | #define sys_p_online printargs |
| 116 | #define sys_sigqueue printargs |
| 117 | #define sys_clock_gettime printargs |
| 118 | #define sys_clock_settime printargs |
| 119 | #define sys_clock_getres printargs |
| 120 | #define sys_nanosleep printargs |
| 121 | #define sys_timer_create printargs |
| 122 | #define sys_timer_delete printargs |
| 123 | #define sys_timer_settime printargs |
| 124 | #define sys_timer_gettime printargs |
| 125 | #define sys_timer_getoverrun printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 126 | #define sys_msgctl printargs |
| 127 | #define sys_msgget printargs |
| 128 | #define sys_msgrcv printargs |
| 129 | #define sys_msgsnd printargs |
| 130 | #define sys_shmat printargs |
| 131 | #define sys_shmctl printargs |
| 132 | #define sys_shmdt printargs |
| 133 | #define sys_shmget printargs |
| 134 | #define sys_semctl printargs |
| 135 | #define sys_semget printargs |
| 136 | #define sys_semop printargs |
| 137 | #define sys_olduname printargs |
| 138 | #define sys_ustat printargs |
| 139 | #define sys_fusers printargs |
| 140 | #define sys_sysfs1 printargs |
| 141 | #define sys_sysfs2 printargs |
| 142 | #define sys_sysfs3 printargs |
John Hughes | 8ba4b3f | 2001-03-06 10:19:26 +0000 | [diff] [blame] | 143 | #define sys_keyctl printargs |
| 144 | #define sys_secsys printargs |
| 145 | #define sys_filepriv printargs |
John Hughes | 8ba4b3f | 2001-03-06 10:19:26 +0000 | [diff] [blame] | 146 | #define sys_devstat printargs |
| 147 | #define sys_fdevstat printargs |
| 148 | #define sys_flvlfile printargs |
| 149 | #define sys_lvlfile printargs |
| 150 | #define sys_lvlequal printargs |
| 151 | #define sys_lvlproc printargs |
| 152 | #define sys_lvlipc printargs |
| 153 | #define sys_auditevt printargs |
| 154 | #define sys_auditctl printargs |
| 155 | #define sys_auditdmp printargs |
| 156 | #define sys_auditlog printargs |
| 157 | #define sys_auditbuf printargs |
| 158 | #define sys_lvldom printargs |
| 159 | #define sys_lvlvfs printargs |
| 160 | #define sys_mkmld printargs |
| 161 | #define sys_mldmode printargs |
| 162 | #define sys_secadvise printargs |
| 163 | #define sys_online printargs |
| 164 | #define sys_lwpinfo printargs |
| 165 | #define sys_lwpprivate printargs |
| 166 | #define sys_processor_exbind printargs |
| 167 | #define sys_prepblock printargs |
| 168 | #define sys_block printargs |
| 169 | #define sys_rdblock printargs |
| 170 | #define sys_unblock printargs |
| 171 | #define sys_cancelblock printargs |
| 172 | #define sys_lwpkill printargs |
John Hughes | 8ba4b3f | 2001-03-06 10:19:26 +0000 | [diff] [blame] | 173 | #define sys_modload printargs |
| 174 | #define sys_moduload printargs |
| 175 | #define sys_modpath printargs |
| 176 | #define sys_modstat printargs |
| 177 | #define sys_modadm printargs |
| 178 | #define sys_lwpsuspend printargs |
| 179 | #define sys_lwpcontinue printargs |
| 180 | #define sys_priocntllst printargs |
| 181 | #define sys_lwp_sema_trywait printargs |
Wichert Akkerman | 16a03d2 | 2000-08-10 02:14:04 +0000 | [diff] [blame] | 182 | #define sys_xsetsockaddr printargs |
John Hughes | 8ba4b3f | 2001-03-06 10:19:26 +0000 | [diff] [blame] | 183 | #define sys_dshmsys printargs |
| 184 | #define sys_invlpg printargs |
John Hughes | 8ba4b3f | 2001-03-06 10:19:26 +0000 | [diff] [blame] | 185 | #define sys_migrate printargs |
| 186 | #define sys_kill3 printargs |
John Hughes | 8ba4b3f | 2001-03-06 10:19:26 +0000 | [diff] [blame] | 187 | #define sys_xbindresvport printargs |
John Hughes | bdf48f5 | 2001-03-06 15:08:09 +0000 | [diff] [blame] | 188 | #define sys_lwp_sema_trywait printargs |
| 189 | #define sys_tsolsys printargs |
| 190 | #ifndef HAVE_SYS_ACL_H |
| 191 | #define sys_acl printargs |
| 192 | #define sys_facl printargs |
| 193 | #define sys_aclipc printargs |
| 194 | #endif |
| 195 | #define sys_install_utrap printargs |
| 196 | #define sys_signotify printargs |
| 197 | #define sys_schedctl printargs |
| 198 | #define sys_pset printargs |
| 199 | #define sys_resolvepath printargs |
| 200 | #define sys_signotifywait printargs |
| 201 | #define sys_lwp_sigredirect printargs |
| 202 | #define sys_lwp_alarm printargs |
| 203 | #define sys_rpcsys printargs |
| 204 | #define sys_sockconfig printargs |
| 205 | #define sys_ntp_gettime printargs |
| 206 | #define sys_ntp_adjtime printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 207 | |
| 208 | /* like another call */ |
| 209 | #define sys_lchown sys_chown |
| 210 | #define sys_setuid sys_close |
| 211 | #define sys_seteuid sys_close |
| 212 | #define sys_setgid sys_close |
| 213 | #define sys_setegid sys_close |
| 214 | #define sys_vhangup sys_close |
| 215 | #define sys_fdsync sys_close |
Wichert Akkerman | 8829a55 | 1999-06-11 13:18:40 +0000 | [diff] [blame] | 216 | #define sys_setreuid sys_dup2 |
| 217 | #define sys_setregid sys_dup2 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 218 | #define sys_sigfillset sys_sigpending |
| 219 | #define sys_vfork sys_fork |
| 220 | #define sys_ksigaction sys_sigaction |
| 221 | #define sys_BSDgetpgrp sys_getpgrp |
| 222 | #define sys_BSDsetpgrp sys_setpgrp |
| 223 | #define sys_waitsys sys_waitid |
Wichert Akkerman | 16a03d2 | 2000-08-10 02:14:04 +0000 | [diff] [blame] | 224 | #define sys_sigset sys_signal |
| 225 | #define sys_sigrelse sys_sighold |
| 226 | #define sys_sigignore sys_sighold |
| 227 | #define sys_sigpause sys_sighold |
John Hughes | 8ba4b3f | 2001-03-06 10:19:26 +0000 | [diff] [blame] | 228 | #define sys_sleep sys_alarm |
| 229 | #define sys_fork1 sys_fork |
| 230 | #define sys_forkall sys_fork |
John Hughes | aca07f3 | 2001-10-16 18:12:27 +0000 | [diff] [blame] | 231 | #define sys_memcntl sys_mctl |
John Hughes | 4e36a81 | 2001-04-18 15:11:51 +0000 | [diff] [blame] | 232 | #if UNIXWARE > 2 |
| 233 | #define sys_rfork1 sys_rfork |
| 234 | #define sys_rforkall sys_rfork |
| 235 | #ifndef HAVE_SYS_NSCSYS_H |
| 236 | #define sys_ssisys printargs |
| 237 | #endif |
| 238 | #endif |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 239 | |
John Hughes | bdf48f5 | 2001-03-06 15:08:09 +0000 | [diff] [blame] | 240 | /* aio */ |
| 241 | #define sys_aionotify printargs |
| 242 | #define sys_aioinit printargs |
| 243 | #define sys_aiostart printargs |
| 244 | #define sys_aiolio printargs |
| 245 | #define sys_aiosuspend printargs |
| 246 | #define sys_aioerror printargs |
| 247 | #define sys_aioliowait printargs |
| 248 | #define sys_aioaread printargs |
| 249 | #define sys_aioawrite printargs |
| 250 | #define sys_aiolio64 printargs |
| 251 | #define sys_aiosuspend64 printargs |
| 252 | #define sys_aioerror64 printargs |
| 253 | #define sys_aioliowait64 printargs |
| 254 | #define sys_aioaread64 printargs |
| 255 | #define sys_aioaread64 printargs |
| 256 | #define sys_aioawrite64 printargs |
| 257 | #define sys_aiocancel64 printargs |
| 258 | #define sys_aiofsync printargs |
| 259 | |
| 260 | /* the various 64-bit file stuff */ |
| 261 | #if !_LFS64_LARGEFILE |
| 262 | /* we've implemented these */ |
| 263 | #define sys_getdents64 printargs |
| 264 | #define sys_mmap64 printargs |
| 265 | #define sys_stat64 printargs |
| 266 | #define sys_lstat64 printargs |
| 267 | #define sys_fstat64 printargs |
| 268 | #define sys_setrlimit64 printargs |
| 269 | #define sys_getrlimit64 printargs |
| 270 | #define sys_pread64 printargs |
| 271 | #define sys_pwrite64 printargs |
John Hughes | 96f5147 | 2001-03-06 16:50:41 +0000 | [diff] [blame] | 272 | #define sys_ftruncate64 printargs |
| 273 | #define sys_truncate64 printargs |
John Hughes | 9dec06c | 2001-03-07 14:47:19 +0000 | [diff] [blame] | 274 | #define sys_lseek64 printargs |
John Hughes | bdf48f5 | 2001-03-06 15:08:09 +0000 | [diff] [blame] | 275 | #endif |
| 276 | |
| 277 | /* unimplemented 64-bit stuff */ |
| 278 | #define sys_statvfs64 printargs |
| 279 | #define sys_fstatvfs64 printargs |
John Hughes | bdf48f5 | 2001-03-06 15:08:09 +0000 | [diff] [blame] | 280 | |
| 281 | /* like another call */ |
| 282 | #define sys_creat64 sys_creat |
| 283 | #define sys_open64 sys_open |
| 284 | #define sys_llseek sys_lseek64 |
| 285 | |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 286 | /* printargs does the right thing */ |
| 287 | #define sys_sync printargs |
| 288 | #define sys_profil printargs |
| 289 | #define sys_yield printargs |
| 290 | #define sys_pause printargs |
| 291 | #define sys_sethostid printargs |
| 292 | |
| 293 | /* subfunction entry points */ |
| 294 | #define sys_pgrpsys printargs |
| 295 | #define sys_sigcall printargs |
| 296 | #define sys_msgsys printargs |
| 297 | #define sys_shmsys printargs |
| 298 | #define sys_semsys printargs |
| 299 | #define sys_utssys printargs |
| 300 | #define sys_sysfs printargs |
| 301 | #define sys_spcall printargs |
| 302 | #define sys_context printargs |
Wichert Akkerman | 8829a55 | 1999-06-11 13:18:40 +0000 | [diff] [blame] | 303 | #define sys_door printargs |
John Hughes | bdf48f5 | 2001-03-06 15:08:09 +0000 | [diff] [blame] | 304 | #define sys_kaio printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 305 | |
| 306 | #if DONE |
John Hughes | 4216208 | 2001-10-18 14:48:26 +0000 | [diff] [blame] | 307 | #define sys_sigwait printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 308 | #define sys_mount printargs |
| 309 | #define sys_sysinfo printargs |
| 310 | #define sys_sysconfig printargs |
| 311 | #define sys_getpmsg printargs |
| 312 | #define sys_putpmsg printargs |
| 313 | #define sys_pread printargs |
| 314 | #define sys_pwrite printargs |
| 315 | #define sys_readv printargs |
| 316 | #define sys_writev printargs |
| 317 | #define sys_wait printargs |
| 318 | #define sys_waitid printargs |
| 319 | #define sys_sigsuspend printargs |
| 320 | #define sys_getpgrp printargs |
| 321 | #define sys_setpgrp printargs |
| 322 | #define sys_getsid printargs |
| 323 | #define sys_setsid printargs |
| 324 | #define sys_getpgid printargs |
| 325 | #define sys_setpgid printargs |
| 326 | #define sys_getcontext printargs |
| 327 | #define sys_setcontext printargs |
| 328 | #define sys_stime printargs |
| 329 | #define sys_time printargs |
| 330 | #define sys_nice printargs |
| 331 | #define sys_times printargs |
| 332 | #define sys_alarm printargs |
| 333 | #define sys_xstat printargs |
| 334 | #define sys_fxstat printargs |
| 335 | #define sys_lxstat printargs |
| 336 | #define sys_xmknod printargs |
| 337 | #define sys_exit printargs |
| 338 | #define sys_fork printargs |
| 339 | #define sys_read printargs |
| 340 | #define sys_write printargs |
| 341 | #define sys_open printargs |
| 342 | #define sys_close printargs |
| 343 | #define sys_creat printargs |
| 344 | #define sys_link printargs |
| 345 | #define sys_unlink printargs |
| 346 | #define sys_chdir printargs |
| 347 | #define sys_mknod printargs |
| 348 | #define sys_chmod printargs |
| 349 | #define sys_chown printargs |
| 350 | #define sys_brk printargs |
| 351 | #define sys_stat printargs |
| 352 | #define sys_lseek printargs |
| 353 | #define sys_getpid printargs |
| 354 | #define sys_getuid printargs |
| 355 | #define sys_fstat printargs |
| 356 | #define sys_utime printargs |
| 357 | #define sys_access printargs |
| 358 | #define sys_kill printargs |
| 359 | #define sys_dup printargs |
| 360 | #define sys_pipe printargs |
| 361 | #define sys_getgid printargs |
| 362 | #define sys_ioctl printargs |
| 363 | #define sys_umask printargs |
| 364 | #define sys_chroot printargs |
| 365 | #define sys_fcntl printargs |
| 366 | #define sys_rmdir printargs |
| 367 | #define sys_mkdir printargs |
| 368 | #define sys_getdents printargs |
| 369 | #define sys_getmsg printargs |
| 370 | #define sys_putmsg printargs |
| 371 | #define sys_poll printargs |
| 372 | #define sys_lstat printargs |
| 373 | #define sys_symlink printargs |
| 374 | #define sys_readlink printargs |
| 375 | #define sys_setgroups printargs |
| 376 | #define sys_getgroups printargs |
| 377 | #define sys_fchmod printargs |
| 378 | #define sys_fchown printargs |
| 379 | #define sys_sigprocmask printargs |
| 380 | #define sys_sigaction printargs |
| 381 | #define sys_sigpending printargs |
| 382 | #define sys_mincore printargs |
| 383 | #define sys_mmap printargs |
| 384 | #define sys_mprotect printargs |
| 385 | #define sys_munmap printargs |
| 386 | #define sys_vfork printargs |
| 387 | #define sys_fchdir printargs |
| 388 | #define sys_setrlimit printargs |
| 389 | #define sys_getrlimit printargs |
| 390 | #define sys_rename printargs |
| 391 | #define sys_uname printargs |
| 392 | #define sys_adjtime printargs |
| 393 | #define sys_fchroot printargs |
| 394 | #define sys_utimes printargs |
| 395 | #define sys_gettimeofday printargs |
| 396 | #define sys_getitimer printargs |
| 397 | #define sys_setitimer printargs |
John Hughes | 8ba4b3f | 2001-03-06 10:19:26 +0000 | [diff] [blame] | 398 | #define sys_settimeofday printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 399 | #endif |