/* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. * created from: NetBSD syscalls.master,v 1.1 1994/05/22 10:04:45 */ #include #include int nosys(); int nosys(); int exit(); int fork(); int read(); int write(); int ibcs2_open(); int close(); int ibcs2_waitsys(); int ocreat(); int link(); int unlink(); int ibcs2_execv(); int chdir(); int ibcs2_time(); int ibcs2_mknod(); int chmod(); int chown(); int obreak(); int ibcs2_stat(); int olseek(); int getpid(); int ibcs2_mount(); int ibcs2_umount(); int ibcs2_setuid(); int getuid(); int ibcs2_stime(); int ibcs2_ptrace(); int ibcs2_alarm(); int ibcs2_fstat(); int ibcs2_pause(); int ibcs2_utime(); int access(); int ibcs2_nice(); int ibcs2_statfs(); int sync(); int kill(); int ibcs2_fstatfs(); int ibcs2_pgrpsys(); int ibcs2_xenix(); int dup(); int pipe(); int ibcs2_times(); int profil(); int ibcs2_plock(); int ibcs2_setgid(); int getgid(); int ibcs2_sigsys(); #ifdef SYSVMSG int msgsys(); #else #endif int acct(); #ifdef SYSVSHM int shmsys(); #else #endif #ifdef SYSVSEM int semsys(); #else #endif int ibcs2_ioctl(); int ibcs2_uadmin(); int ibcs2_utssys(); int execve(); int umask(); int chroot(); int ibcs2_fcntl(); int ibcs2_ulimit(); int rmdir(); int mkdir(); int ibcs2_getdents(); int ibcs2_sysfs(); int ibcs2_getmsg(); int ibcs2_putmsg(); int ibcs2_poll(); int symlink(); int ibcs2_lstat(); int readlink(); int sigreturn(); int ibcs2_ftime(); int ibcs2_select(); int ibcs2_sigaction(); int ibcs2_sigprocmask(); int ibcs2_sigpending(); int ibcs2_sigsuspend(); int ibcs2_getgroups(); int ibcs2_setgroups(); int ibcs2_sysconf(); int ibcs2_pathconf(); int ibcs2_fpathconf(); int rename(); #ifdef XXX_UNUSED #define compat(n, name) n, __CONCAT(o,name) #ifdef SYSVMSG #else #endif #ifdef SYSVSHM #else #endif #ifdef SYSVSEM #else #endif #else /* XXX_UNUSED */ #define compat(n, name) 0, nosys #endif /* XXX_UNUSED */ struct sysent ibcs2_sysent[] = { { 0, nosys }, /* 0 = nosys */ { 1, exit }, /* 1 = exit */ { 0, fork }, /* 2 = fork */ { 3, read }, /* 3 = read */ { 3, write }, /* 4 = write */ { 3, ibcs2_open }, /* 5 = ibcs2_open */ { 1, close }, /* 6 = close */ { 3, ibcs2_waitsys }, /* 7 = ibcs2_waitsys */ { 2, ocreat }, /* 8 = ocreat */ { 2, link }, /* 9 = link */ { 1, unlink }, /* 10 = unlink */ { 2, ibcs2_execv }, /* 11 = ibcs2_execv */ { 1, chdir }, /* 12 = chdir */ { 1, ibcs2_time }, /* 13 = ibcs2_time */ { 3, ibcs2_mknod }, /* 14 = ibcs2_mknod */ { 2, chmod }, /* 15 = chmod */ { 3, chown }, /* 16 = chown */ { 1, obreak }, /* 17 = break */ { 2, ibcs2_stat }, /* 18 = ibcs2_stat */ { 3, olseek }, /* 19 = olseek */ { 0, getpid }, /* 20 = getpid */ { 6, ibcs2_mount }, /* 21 = ibcs2_mount */ { 1, ibcs2_umount }, /* 22 = ibcs2_umount */ { 1, ibcs2_setuid }, /* 23 = ibcs2_setuid */ { 0, getuid }, /* 24 = getuid */ { 1, ibcs2_stime }, /* 25 = ibcs2_stime */ { 4, ibcs2_ptrace }, /* 26 = ibcs2_ptrace */ { 1, ibcs2_alarm }, /* 27 = ibcs2_alarm */ { 2, ibcs2_fstat }, /* 28 = ibcs2_fstat */ { 0, ibcs2_pause }, /* 29 = ibcs2_pause */ { 2, ibcs2_utime }, /* 30 = ibcs2_utime */ { 0, nosys }, /* 31 = was stty */ { 0, nosys }, /* 32 = was gtty */ { 2, access }, /* 33 = access */ { 1, ibcs2_nice }, /* 34 = ibcs2_nice */ { 4, ibcs2_statfs }, /* 35 = ibcs2_statfs */ { 0, sync }, /* 36 = sync */ { 2, kill }, /* 37 = kill */ { 4, ibcs2_fstatfs }, /* 38 = ibcs2_fstatfs */ { 4, ibcs2_pgrpsys }, /* 39 = ibcs2_pgrpsys */ { 4, ibcs2_xenix }, /* 40 = ibcs2_xenix */ { 2, dup }, /* 41 = dup */ { 1, pipe }, /* 42 = pipe */ { 1, ibcs2_times }, /* 43 = ibcs2_times */ { 4, profil }, /* 44 = profil */ { 1, ibcs2_plock }, /* 45 = ibcs2_plock */ { 1, ibcs2_setgid }, /* 46 = ibcs2_setgid */ { 0, getgid }, /* 47 = getgid */ { 2, ibcs2_sigsys }, /* 48 = ibcs2_sigsys */ #ifdef SYSVMSG { 6, msgsys }, /* 49 = msgsys */ #else { 0, nosys }, /* 49 = nosys */ #endif { 0, nosys }, /* 50 = ibcs2_sys3b */ { 1, acct }, /* 51 = acct */ #ifdef SYSVSHM { 4, shmsys }, /* 52 = shmsys */ #else { 0, nosys }, /* 52 = nosys */ #endif #ifdef SYSVSEM { 5, semsys }, /* 53 = semsys */ #else { 0, nosys }, /* 53 = nosys */ #endif { 3, ibcs2_ioctl }, /* 54 = ibcs2_ioctl */ { 3, ibcs2_uadmin }, /* 55 = ibcs2_uadmin */ { 0, nosys }, /* 56 = nosys */ { 3, ibcs2_utssys }, /* 57 = ibcs2_utssys */ { 0, nosys }, /* 58 = nosys */ { 3, execve }, /* 59 = execve */ { 1, umask }, /* 60 = umask */ { 1, chroot }, /* 61 = chroot */ { 3, ibcs2_fcntl }, /* 62 = ibcs2_fcntl */ { 2, ibcs2_ulimit }, /* 63 = ibcs2_ulimit */ { 0, nosys }, /* 64 = reserved for unix/pc */ { 0, nosys }, /* 65 = reserved for unix/pc */ { 0, nosys }, /* 66 = reserved for unix/pc */ { 0, nosys }, /* 67 = reserved for unix/pc */ { 0, nosys }, /* 68 = reserved for unix/pc */ { 0, nosys }, /* 69 = reserved for unix/pc */ { 0, nosys }, /* 70 = obsolete rfs_advfs */ { 0, nosys }, /* 71 = obsolete rfs_unadvfs */ { 0, nosys }, /* 72 = obsolete rfs_rmount */ { 0, nosys }, /* 73 = obsolete rfs_rumount */ { 0, nosys }, /* 74 = obsolete rfs_rfstart */ { 0, nosys }, /* 75 = obsolete rfs_sigret */ { 0, nosys }, /* 76 = obsolete rfs_rdebug */ { 0, nosys }, /* 77 = obsolete rfs_rfstop */ { 0, nosys }, /* 78 = obsolete rfs_rfsys */ { 1, rmdir }, /* 79 = rmdir */ { 2, mkdir }, /* 80 = mkdir */ { 3, ibcs2_getdents }, /* 81 = ibcs2_getdents */ { 0, nosys }, /* 82 = nosys */ { 0, nosys }, /* 83 = nosys */ { 3, ibcs2_sysfs }, /* 84 = ibcs2_sysfs */ { 0, ibcs2_getmsg }, /* 85 = ibcs2_getmsg */ { 0, ibcs2_putmsg }, /* 86 = ibcs2_putmsg */ { 3, ibcs2_poll }, /* 87 = ibcs2_poll */ { 0, nosys }, /* 88 = nosys */ { 0, nosys }, /* 89 = nosys */ { 2, symlink }, /* 90 = symlink */ { 2, ibcs2_lstat }, /* 91 = ibcs2_lstat */ { 3, readlink }, /* 92 = readlink */ { 0, nosys }, /* 93 = nosys */ { 0, nosys }, /* 94 = nosys */ { 0, nosys }, /* 95 = nosys */ { 0, nosys }, /* 96 = nosys */ { 0, nosys }, /* 97 = nosys */ { 0, nosys }, /* 98 = nosys */ { 0, nosys }, /* 99 = nosys */ { 0, nosys }, /* 100 = nosys */ { 0, nosys }, /* 101 = nosys */ { 0, nosys }, /* 102 = nosys */ { 1, sigreturn }, /* 103 = sigreturn */ { 0, nosys }, /* 104 = nosys */ { 0, nosys }, /* 105 = nosys */ { 0, nosys }, /* 106 = nosys */ { 0, nosys }, /* 107 = nosys */ { 0, nosys }, /* 108 = nosys */ { 0, nosys }, /* 109 = nosys */ { 0, nosys }, /* 110 = nosys */ { 0, nosys }, /* 111 = nosys */ { 0, nosys }, /* 112 = nosys */ { 0, nosys }, /* 113 = nosys */ { 0, nosys }, /* 114 = nosys */ { 0, nosys }, /* 115 = nosys */ { 0, nosys }, /* 116 = nosys */ { 0, nosys }, /* 117 = nosys */ { 0, nosys }, /* 118 = nosys */ { 0, nosys }, /* 119 = nosys */ { 0, nosys }, /* 120 = nosys */ { 0, nosys }, /* 121 = nosys */ { 0, nosys }, /* 122 = nosys */ { 0, nosys }, /* 123 = nosys */ { 0, nosys }, /* 124 = nosys */ { 0, nosys }, /* 125 = nosys */ { 0, nosys }, /* 126 = nosys */ { 0, nosys }, /* 127 = nosys */ { 0, nosys }, /* 128 = nosys */ { 0, nosys }, /* 129 = XENIX xlocking 0x0128 */ { 0, nosys }, /* 130 = XENIX creatsem 0x0228 */ { 0, nosys }, /* 131 = XENIX opensem 0x0328 */ { 0, nosys }, /* 132 = XENIX sigsem 0x0428 */ { 0, nosys }, /* 133 = XENIX waitsem 0x0528 */ { 0, nosys }, /* 134 = XENIX nbwaitsem 0x0628 */ { 0, nosys }, /* 135 = XENIX rdchk 0x0728 */ { 0, nosys }, /* 136 = XENIX nosys 0x0828 */ { 0, nosys }, /* 137 = XENIX nosys 0x0928 */ { 0, nosys }, /* 138 = XENIX chsize 0x0a28 */ { 1, ibcs2_ftime }, /* 139 = ibcs2_ftime */ { 0, nosys }, /* 140 = XENIX nap 0x0c28 */ { 0, nosys }, /* 141 = XENIX sdget 0x0d28 */ { 0, nosys }, /* 142 = XENIX sdfree 0x0e28 */ { 0, nosys }, /* 143 = XENIX sdenter 0x0f28 */ { 0, nosys }, /* 144 = XENIX sdleave 0x1028 */ { 0, nosys }, /* 145 = XENIX sdgetv 0x1128 */ { 0, nosys }, /* 146 = XENIX sdwaitv 0x1228 */ { 0, nosys }, /* 147 = XENIX nosys 0x1328 */ { 0, nosys }, /* 148 = XENIX nosys 0x1428 */ { 0, nosys }, /* 149 = XENIX nosys 0x1528 */ { 0, nosys }, /* 150 = XENIX nosys 0x1628 */ { 0, nosys }, /* 151 = XENIX nosys 0x1728 */ { 0, nosys }, /* 152 = XENIX nosys 0x1828 */ { 0, nosys }, /* 153 = XENIX nosys 0x1928 */ { 0, nosys }, /* 154 = XENIX nosys 0x1a28 */ { 0, nosys }, /* 155 = XENIX nosys 0x1b28 */ { 0, nosys }, /* 156 = XENIX nosys 0x1c28 */ { 0, nosys }, /* 157 = XENIX nosys 0x1d28 */ { 0, nosys }, /* 158 = XENIX nosys 0x1e28 */ { 0, nosys }, /* 159 = XENIX nosys 0x1f28 */ { 0, nosys }, /* 160 = XENIX proctl 0x2028 */ { 0, nosys }, /* 161 = XENIX execseg 0x2128 */ { 0, nosys }, /* 162 = XENIX unexecseg 0x2228 */ { 0, nosys }, /* 163 = XENIX nosys 0x2328 */ { 5, ibcs2_select }, /* 164 = ibcs2_select */ { 0, nosys }, /* 165 = XENIX eaccess 0x2528 */ { 0, nosys }, /* 166 = XENIX paccess 0x2628 */ { 3, ibcs2_sigaction }, /* 167 = ibcs2_sigaction */ { 3, ibcs2_sigprocmask }, /* 168 = ibcs2_sigprocmask */ { 1, ibcs2_sigpending }, /* 169 = ibcs2_sigpending */ { 1, ibcs2_sigsuspend }, /* 170 = ibcs2_sigsuspend */ { 2, ibcs2_getgroups }, /* 171 = ibcs2_getgroups */ { 2, ibcs2_setgroups }, /* 172 = ibcs2_setgroups */ { 1, ibcs2_sysconf }, /* 173 = ibcs2_sysconf */ { 2, ibcs2_pathconf }, /* 174 = ibcs2_pathconf */ { 2, ibcs2_fpathconf }, /* 175 = ibcs2_fpathconf */ { 2, rename }, /* 176 = rename */ }; int nibcs2_sysent = sizeof(ibcs2_sysent) / sizeof(ibcs2_sysent[0]);