1/* 2 * System call switch table. 3 * 4 * DO NOT EDIT-- this file is automatically generated.
| 1/* 2 * System call switch table. 3 * 4 * DO NOT EDIT-- this file is automatically generated.
|
5 * created from FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.9 1999/08/28 00:44:02 peter Exp
| 5 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_sysent.c 60290 2000-05-09 21:52:02Z bde $ 6 * created from FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.10 2000/05/09 17:54:30 bde Exp
|
6 */ 7 8#include <sys/param.h> 9#include <sys/sysent.h> 10#include <sys/sysproto.h> 11#include <i386/ibcs2/ibcs2_types.h> 12#include <i386/ibcs2/ibcs2_signal.h> 13#include <i386/ibcs2/ibcs2_proto.h> 14
| 7 */ 8 9#include <sys/param.h> 10#include <sys/sysent.h> 11#include <sys/sysproto.h> 12#include <i386/ibcs2/ibcs2_types.h> 13#include <i386/ibcs2/ibcs2_signal.h> 14#include <i386/ibcs2/ibcs2_proto.h> 15
|
| 16#define AS(name) (sizeof(struct name) / sizeof(register_t)) 17
|
15/* The casts are bogus but will do for now. */ 16struct sysent ibcs2_sysent[] = { 17 { 0, (sy_call_t *)nosys }, /* 0 = syscall */
| 18/* The casts are bogus but will do for now. */ 19struct sysent ibcs2_sysent[] = { 20 { 0, (sy_call_t *)nosys }, /* 0 = syscall */
|
18 { 1, (sy_call_t *)exit }, /* 1 = exit */
| 21 { AS(rexit_args), (sy_call_t *)exit }, /* 1 = exit */
|
19 { 0, (sy_call_t *)fork }, /* 2 = fork */
| 22 { 0, (sy_call_t *)fork }, /* 2 = fork */
|
20 { 3, (sy_call_t *)ibcs2_read }, /* 3 = ibcs2_read */ 21 { 3, (sy_call_t *)write }, /* 4 = write */ 22 { 3, (sy_call_t *)ibcs2_open }, /* 5 = ibcs2_open */ 23 { 1, (sy_call_t *)close }, /* 6 = close */ 24 { 3, (sy_call_t *)ibcs2_wait }, /* 7 = ibcs2_wait */ 25 { 2, (sy_call_t *)ibcs2_creat }, /* 8 = ibcs2_creat */ 26 { 2, (sy_call_t *)link }, /* 9 = link */ 27 { 1, (sy_call_t *)ibcs2_unlink }, /* 10 = ibcs2_unlink */ 28 { 2, (sy_call_t *)ibcs2_execv }, /* 11 = ibcs2_execv */ 29 { 1, (sy_call_t *)ibcs2_chdir }, /* 12 = ibcs2_chdir */ 30 { 1, (sy_call_t *)ibcs2_time }, /* 13 = ibcs2_time */ 31 { 3, (sy_call_t *)ibcs2_mknod }, /* 14 = ibcs2_mknod */ 32 { 2, (sy_call_t *)ibcs2_chmod }, /* 15 = ibcs2_chmod */ 33 { 3, (sy_call_t *)ibcs2_chown }, /* 16 = ibcs2_chown */ 34 { 1, (sy_call_t *)obreak }, /* 17 = obreak */ 35 { 2, (sy_call_t *)ibcs2_stat }, /* 18 = ibcs2_stat */ 36 { 3, (sy_call_t *)ibcs2_lseek }, /* 19 = ibcs2_lseek */
| 23 { AS(ibcs2_read_args), (sy_call_t *)ibcs2_read }, /* 3 = ibcs2_read */ 24 { AS(write_args), (sy_call_t *)write }, /* 4 = write */ 25 { AS(ibcs2_open_args), (sy_call_t *)ibcs2_open }, /* 5 = ibcs2_open */ 26 { AS(close_args), (sy_call_t *)close }, /* 6 = close */ 27 { AS(ibcs2_wait_args), (sy_call_t *)ibcs2_wait }, /* 7 = ibcs2_wait */ 28 { AS(ibcs2_creat_args), (sy_call_t *)ibcs2_creat }, /* 8 = ibcs2_creat */ 29 { AS(link_args), (sy_call_t *)link }, /* 9 = link */ 30 { AS(ibcs2_unlink_args), (sy_call_t *)ibcs2_unlink }, /* 10 = ibcs2_unlink */ 31 { AS(ibcs2_execv_args), (sy_call_t *)ibcs2_execv }, /* 11 = ibcs2_execv */ 32 { AS(ibcs2_chdir_args), (sy_call_t *)ibcs2_chdir }, /* 12 = ibcs2_chdir */ 33 { AS(ibcs2_time_args), (sy_call_t *)ibcs2_time }, /* 13 = ibcs2_time */ 34 { AS(ibcs2_mknod_args), (sy_call_t *)ibcs2_mknod }, /* 14 = ibcs2_mknod */ 35 { AS(ibcs2_chmod_args), (sy_call_t *)ibcs2_chmod }, /* 15 = ibcs2_chmod */ 36 { AS(ibcs2_chown_args), (sy_call_t *)ibcs2_chown }, /* 16 = ibcs2_chown */ 37 { AS(obreak_args), (sy_call_t *)obreak }, /* 17 = obreak */ 38 { AS(ibcs2_stat_args), (sy_call_t *)ibcs2_stat }, /* 18 = ibcs2_stat */ 39 { AS(ibcs2_lseek_args), (sy_call_t *)ibcs2_lseek }, /* 19 = ibcs2_lseek */
|
37 { 0, (sy_call_t *)getpid }, /* 20 = getpid */
| 40 { 0, (sy_call_t *)getpid }, /* 20 = getpid */
|
38 { 6, (sy_call_t *)ibcs2_mount }, /* 21 = ibcs2_mount */ 39 { 1, (sy_call_t *)ibcs2_umount }, /* 22 = ibcs2_umount */ 40 { 1, (sy_call_t *)ibcs2_setuid }, /* 23 = ibcs2_setuid */
| 41 { AS(ibcs2_mount_args), (sy_call_t *)ibcs2_mount }, /* 21 = ibcs2_mount */ 42 { AS(ibcs2_umount_args), (sy_call_t *)ibcs2_umount }, /* 22 = ibcs2_umount */ 43 { AS(ibcs2_setuid_args), (sy_call_t *)ibcs2_setuid }, /* 23 = ibcs2_setuid */
|
41 { 0, (sy_call_t *)getuid }, /* 24 = getuid */
| 44 { 0, (sy_call_t *)getuid }, /* 24 = getuid */
|
42 { 1, (sy_call_t *)ibcs2_stime }, /* 25 = ibcs2_stime */ 43 { 4, (sy_call_t *)ptrace }, /* 26 = ptrace */ 44 { 1, (sy_call_t *)ibcs2_alarm }, /* 27 = ibcs2_alarm */ 45 { 2, (sy_call_t *)ibcs2_fstat }, /* 28 = ibcs2_fstat */
| 45 { AS(ibcs2_stime_args), (sy_call_t *)ibcs2_stime }, /* 25 = ibcs2_stime */ 46 { AS(ptrace_args), (sy_call_t *)ptrace }, /* 26 = ptrace */ 47 { AS(ibcs2_alarm_args), (sy_call_t *)ibcs2_alarm }, /* 27 = ibcs2_alarm */ 48 { AS(ibcs2_fstat_args), (sy_call_t *)ibcs2_fstat }, /* 28 = ibcs2_fstat */
|
46 { 0, (sy_call_t *)ibcs2_pause }, /* 29 = ibcs2_pause */
| 49 { 0, (sy_call_t *)ibcs2_pause }, /* 29 = ibcs2_pause */
|
47 { 2, (sy_call_t *)ibcs2_utime }, /* 30 = ibcs2_utime */ 48 { 2, (sy_call_t *)ibcs2_stty }, /* 31 = ibcs2_stty */ 49 { 2, (sy_call_t *)ibcs2_gtty }, /* 32 = ibcs2_gtty */ 50 { 2, (sy_call_t *)ibcs2_access }, /* 33 = ibcs2_access */ 51 { 1, (sy_call_t *)ibcs2_nice }, /* 34 = ibcs2_nice */ 52 { 4, (sy_call_t *)ibcs2_statfs }, /* 35 = ibcs2_statfs */
| 50 { AS(ibcs2_utime_args), (sy_call_t *)ibcs2_utime }, /* 30 = ibcs2_utime */ 51 { AS(ibcs2_stty_args), (sy_call_t *)ibcs2_stty }, /* 31 = ibcs2_stty */ 52 { AS(ibcs2_gtty_args), (sy_call_t *)ibcs2_gtty }, /* 32 = ibcs2_gtty */ 53 { AS(ibcs2_access_args), (sy_call_t *)ibcs2_access }, /* 33 = ibcs2_access */ 54 { AS(ibcs2_nice_args), (sy_call_t *)ibcs2_nice }, /* 34 = ibcs2_nice */ 55 { AS(ibcs2_statfs_args), (sy_call_t *)ibcs2_statfs }, /* 35 = ibcs2_statfs */
|
53 { 0, (sy_call_t *)sync }, /* 36 = sync */
| 56 { 0, (sy_call_t *)sync }, /* 36 = sync */
|
54 { 2, (sy_call_t *)ibcs2_kill }, /* 37 = ibcs2_kill */ 55 { 4, (sy_call_t *)ibcs2_fstatfs }, /* 38 = ibcs2_fstatfs */ 56 { 4, (sy_call_t *)ibcs2_pgrpsys }, /* 39 = ibcs2_pgrpsys */ 57 { 5, (sy_call_t *)ibcs2_xenix }, /* 40 = ibcs2_xenix */ 58 { 1, (sy_call_t *)dup }, /* 41 = dup */
| 57 { AS(ibcs2_kill_args), (sy_call_t *)ibcs2_kill }, /* 37 = ibcs2_kill */ 58 { AS(ibcs2_fstatfs_args), (sy_call_t *)ibcs2_fstatfs }, /* 38 = ibcs2_fstatfs */ 59 { AS(ibcs2_pgrpsys_args), (sy_call_t *)ibcs2_pgrpsys }, /* 39 = ibcs2_pgrpsys */ 60 { AS(ibcs2_xenix_args), (sy_call_t *)ibcs2_xenix }, /* 40 = ibcs2_xenix */ 61 { AS(dup_args), (sy_call_t *)dup }, /* 41 = dup */
|
59 { 0, (sy_call_t *)pipe }, /* 42 = pipe */
| 62 { 0, (sy_call_t *)pipe }, /* 42 = pipe */
|
60 { 1, (sy_call_t *)ibcs2_times }, /* 43 = ibcs2_times */ 61 { 4, (sy_call_t *)profil }, /* 44 = profil */ 62 { 1, (sy_call_t *)ibcs2_plock }, /* 45 = ibcs2_plock */ 63 { 1, (sy_call_t *)ibcs2_setgid }, /* 46 = ibcs2_setgid */
| 63 { AS(ibcs2_times_args), (sy_call_t *)ibcs2_times }, /* 43 = ibcs2_times */ 64 { AS(profil_args), (sy_call_t *)profil }, /* 44 = profil */ 65 { AS(ibcs2_plock_args), (sy_call_t *)ibcs2_plock }, /* 45 = ibcs2_plock */ 66 { AS(ibcs2_setgid_args), (sy_call_t *)ibcs2_setgid }, /* 46 = ibcs2_setgid */
|
64 { 0, (sy_call_t *)getgid }, /* 47 = getgid */
| 67 { 0, (sy_call_t *)getgid }, /* 47 = getgid */
|
65 { 2, (sy_call_t *)ibcs2_sigsys }, /* 48 = ibcs2_sigsys */ 66 { 6, (sy_call_t *)ibcs2_msgsys }, /* 49 = ibcs2_msgsys */ 67 { 2, (sy_call_t *)ibcs2_sysi86 }, /* 50 = ibcs2_sysi86 */
| 68 { AS(ibcs2_sigsys_args), (sy_call_t *)ibcs2_sigsys }, /* 48 = ibcs2_sigsys */ 69 { AS(ibcs2_msgsys_args), (sy_call_t *)ibcs2_msgsys }, /* 49 = ibcs2_msgsys */ 70 { AS(ibcs2_sysi86_args), (sy_call_t *)ibcs2_sysi86 }, /* 50 = ibcs2_sysi86 */
|
68 { 0, (sy_call_t *)nosys }, /* 51 = ibcs2_acct */
| 71 { 0, (sy_call_t *)nosys }, /* 51 = ibcs2_acct */
|
69 { 4, (sy_call_t *)ibcs2_shmsys }, /* 52 = ibcs2_shmsys */ 70 { 5, (sy_call_t *)ibcs2_semsys }, /* 53 = ibcs2_semsys */ 71 { 3, (sy_call_t *)ibcs2_ioctl }, /* 54 = ibcs2_ioctl */ 72 { 3, (sy_call_t *)ibcs2_uadmin }, /* 55 = ibcs2_uadmin */
| 72 { AS(ibcs2_shmsys_args), (sy_call_t *)ibcs2_shmsys }, /* 52 = ibcs2_shmsys */ 73 { AS(ibcs2_semsys_args), (sy_call_t *)ibcs2_semsys }, /* 53 = ibcs2_semsys */ 74 { AS(ibcs2_ioctl_args), (sy_call_t *)ibcs2_ioctl }, /* 54 = ibcs2_ioctl */ 75 { AS(ibcs2_uadmin_args), (sy_call_t *)ibcs2_uadmin }, /* 55 = ibcs2_uadmin */
|
73 { 0, (sy_call_t *)nosys }, /* 56 = nosys */
| 76 { 0, (sy_call_t *)nosys }, /* 56 = nosys */
|
74 { 3, (sy_call_t *)ibcs2_utssys }, /* 57 = ibcs2_utssys */ 75 { 1, (sy_call_t *)fsync }, /* 58 = fsync */ 76 { 3, (sy_call_t *)ibcs2_execve }, /* 59 = ibcs2_execve */ 77 { 1, (sy_call_t *)umask }, /* 60 = umask */ 78 { 1, (sy_call_t *)chroot }, /* 61 = chroot */ 79 { 3, (sy_call_t *)ibcs2_fcntl }, /* 62 = ibcs2_fcntl */ 80 { 2, (sy_call_t *)ibcs2_ulimit }, /* 63 = ibcs2_ulimit */
| 77 { AS(ibcs2_utssys_args), (sy_call_t *)ibcs2_utssys }, /* 57 = ibcs2_utssys */ 78 { AS(fsync_args), (sy_call_t *)fsync }, /* 58 = fsync */ 79 { AS(ibcs2_execve_args), (sy_call_t *)ibcs2_execve }, /* 59 = ibcs2_execve */ 80 { AS(umask_args), (sy_call_t *)umask }, /* 60 = umask */ 81 { AS(chroot_args), (sy_call_t *)chroot }, /* 61 = chroot */ 82 { AS(ibcs2_fcntl_args), (sy_call_t *)ibcs2_fcntl }, /* 62 = ibcs2_fcntl */ 83 { AS(ibcs2_ulimit_args), (sy_call_t *)ibcs2_ulimit }, /* 63 = ibcs2_ulimit */
|
81 { 0, (sy_call_t *)nosys }, /* 64 = reserved for unix/pc */ 82 { 0, (sy_call_t *)nosys }, /* 65 = reserved for unix/pc */ 83 { 0, (sy_call_t *)nosys }, /* 66 = reserved for unix/pc */ 84 { 0, (sy_call_t *)nosys }, /* 67 = reserved for unix/pc */ 85 { 0, (sy_call_t *)nosys }, /* 68 = reserved for unix/pc */ 86 { 0, (sy_call_t *)nosys }, /* 69 = reserved for unix/pc */ 87 { 0, (sy_call_t *)nosys }, /* 70 = obsolete rfs_advfs */ 88 { 0, (sy_call_t *)nosys }, /* 71 = obsolete rfs_unadvfs */ 89 { 0, (sy_call_t *)nosys }, /* 72 = obsolete rfs_rmount */ 90 { 0, (sy_call_t *)nosys }, /* 73 = obsolete rfs_rumount */ 91 { 0, (sy_call_t *)nosys }, /* 74 = obsolete rfs_rfstart */ 92 { 0, (sy_call_t *)nosys }, /* 75 = obsolete rfs_sigret */ 93 { 0, (sy_call_t *)nosys }, /* 76 = obsolete rfs_rdebug */ 94 { 0, (sy_call_t *)nosys }, /* 77 = obsolete rfs_rfstop */ 95 { 0, (sy_call_t *)nosys }, /* 78 = rfs_rfsys */
| 84 { 0, (sy_call_t *)nosys }, /* 64 = reserved for unix/pc */ 85 { 0, (sy_call_t *)nosys }, /* 65 = reserved for unix/pc */ 86 { 0, (sy_call_t *)nosys }, /* 66 = reserved for unix/pc */ 87 { 0, (sy_call_t *)nosys }, /* 67 = reserved for unix/pc */ 88 { 0, (sy_call_t *)nosys }, /* 68 = reserved for unix/pc */ 89 { 0, (sy_call_t *)nosys }, /* 69 = reserved for unix/pc */ 90 { 0, (sy_call_t *)nosys }, /* 70 = obsolete rfs_advfs */ 91 { 0, (sy_call_t *)nosys }, /* 71 = obsolete rfs_unadvfs */ 92 { 0, (sy_call_t *)nosys }, /* 72 = obsolete rfs_rmount */ 93 { 0, (sy_call_t *)nosys }, /* 73 = obsolete rfs_rumount */ 94 { 0, (sy_call_t *)nosys }, /* 74 = obsolete rfs_rfstart */ 95 { 0, (sy_call_t *)nosys }, /* 75 = obsolete rfs_sigret */ 96 { 0, (sy_call_t *)nosys }, /* 76 = obsolete rfs_rdebug */ 97 { 0, (sy_call_t *)nosys }, /* 77 = obsolete rfs_rfstop */ 98 { 0, (sy_call_t *)nosys }, /* 78 = rfs_rfsys */
|
96 { 1, (sy_call_t *)ibcs2_rmdir }, /* 79 = ibcs2_rmdir */ 97 { 2, (sy_call_t *)ibcs2_mkdir }, /* 80 = ibcs2_mkdir */ 98 { 3, (sy_call_t *)ibcs2_getdents }, /* 81 = ibcs2_getdents */
| 99 { AS(ibcs2_rmdir_args), (sy_call_t *)ibcs2_rmdir }, /* 79 = ibcs2_rmdir */ 100 { AS(ibcs2_mkdir_args), (sy_call_t *)ibcs2_mkdir }, /* 80 = ibcs2_mkdir */ 101 { AS(ibcs2_getdents_args), (sy_call_t *)ibcs2_getdents }, /* 81 = ibcs2_getdents */
|
99 { 0, (sy_call_t *)nosys }, /* 82 = nosys */ 100 { 0, (sy_call_t *)nosys }, /* 83 = nosys */
| 102 { 0, (sy_call_t *)nosys }, /* 82 = nosys */ 103 { 0, (sy_call_t *)nosys }, /* 83 = nosys */
|
101 { 3, (sy_call_t *)ibcs2_sysfs }, /* 84 = ibcs2_sysfs */ 102 { 4, (sy_call_t *)ibcs2_getmsg }, /* 85 = ibcs2_getmsg */ 103 { 4, (sy_call_t *)ibcs2_putmsg }, /* 86 = ibcs2_putmsg */ 104 { 3, (sy_call_t *)ibcs2_poll }, /* 87 = ibcs2_poll */
| 104 { AS(ibcs2_sysfs_args), (sy_call_t *)ibcs2_sysfs }, /* 84 = ibcs2_sysfs */ 105 { AS(ibcs2_getmsg_args), (sy_call_t *)ibcs2_getmsg }, /* 85 = ibcs2_getmsg */ 106 { AS(ibcs2_putmsg_args), (sy_call_t *)ibcs2_putmsg }, /* 86 = ibcs2_putmsg */ 107 { AS(ibcs2_poll_args), (sy_call_t *)ibcs2_poll }, /* 87 = ibcs2_poll */
|
105 { 0, (sy_call_t *)nosys }, /* 88 = nosys */
| 108 { 0, (sy_call_t *)nosys }, /* 88 = nosys */
|
106 { 6, (sy_call_t *)ibcs2_secure }, /* 89 = ibcs2_secure */ 107 { 2, (sy_call_t *)ibcs2_symlink }, /* 90 = ibcs2_symlink */ 108 { 2, (sy_call_t *)ibcs2_lstat }, /* 91 = ibcs2_lstat */ 109 { 3, (sy_call_t *)ibcs2_readlink }, /* 92 = ibcs2_readlink */
| 109 { AS(ibcs2_secure_args), (sy_call_t *)ibcs2_secure }, /* 89 = ibcs2_secure */ 110 { AS(ibcs2_symlink_args), (sy_call_t *)ibcs2_symlink }, /* 90 = ibcs2_symlink */ 111 { AS(ibcs2_lstat_args), (sy_call_t *)ibcs2_lstat }, /* 91 = ibcs2_lstat */ 112 { AS(ibcs2_readlink_args), (sy_call_t *)ibcs2_readlink }, /* 92 = ibcs2_readlink */
|
110 { 0, (sy_call_t *)nosys }, /* 93 = nosys */ 111 { 0, (sy_call_t *)nosys }, /* 94 = nosys */ 112 { 0, (sy_call_t *)nosys }, /* 95 = nosys */ 113 { 0, (sy_call_t *)nosys }, /* 96 = nosys */ 114 { 0, (sy_call_t *)nosys }, /* 97 = nosys */ 115 { 0, (sy_call_t *)nosys }, /* 98 = nosys */ 116 { 0, (sy_call_t *)nosys }, /* 99 = nosys */ 117 { 0, (sy_call_t *)nosys }, /* 100 = nosys */ 118 { 0, (sy_call_t *)nosys }, /* 101 = nosys */ 119 { 0, (sy_call_t *)nosys }, /* 102 = nosys */
| 113 { 0, (sy_call_t *)nosys }, /* 93 = nosys */ 114 { 0, (sy_call_t *)nosys }, /* 94 = nosys */ 115 { 0, (sy_call_t *)nosys }, /* 95 = nosys */ 116 { 0, (sy_call_t *)nosys }, /* 96 = nosys */ 117 { 0, (sy_call_t *)nosys }, /* 97 = nosys */ 118 { 0, (sy_call_t *)nosys }, /* 98 = nosys */ 119 { 0, (sy_call_t *)nosys }, /* 99 = nosys */ 120 { 0, (sy_call_t *)nosys }, /* 100 = nosys */ 121 { 0, (sy_call_t *)nosys }, /* 101 = nosys */ 122 { 0, (sy_call_t *)nosys }, /* 102 = nosys */
|
120 { 1, (sy_call_t *)sigreturn }, /* 103 = sigreturn */
| 123 { AS(sigreturn_args), (sy_call_t *)sigreturn }, /* 103 = sigreturn */
|
121 { 0, (sy_call_t *)nosys }, /* 104 = nosys */ 122 { 0, (sy_call_t *)ibcs2_isc }, /* 105 = ibcs2_isc */ 123 { 0, (sy_call_t *)nosys }, /* 106 = nosys */ 124 { 0, (sy_call_t *)nosys }, /* 107 = nosys */ 125 { 0, (sy_call_t *)nosys }, /* 108 = nosys */ 126 { 0, (sy_call_t *)nosys }, /* 109 = nosys */ 127 { 0, (sy_call_t *)nosys }, /* 110 = nosys */ 128 { 0, (sy_call_t *)nosys }, /* 111 = nosys */
--- 17 unchanged lines hidden --- | 124 { 0, (sy_call_t *)nosys }, /* 104 = nosys */ 125 { 0, (sy_call_t *)ibcs2_isc }, /* 105 = ibcs2_isc */ 126 { 0, (sy_call_t *)nosys }, /* 106 = nosys */ 127 { 0, (sy_call_t *)nosys }, /* 107 = nosys */ 128 { 0, (sy_call_t *)nosys }, /* 108 = nosys */ 129 { 0, (sy_call_t *)nosys }, /* 109 = nosys */ 130 { 0, (sy_call_t *)nosys }, /* 110 = nosys */ 131 { 0, (sy_call_t *)nosys }, /* 111 = nosys */
--- 17 unchanged lines hidden --- |