2005-04-21 16:53:53 +02:00
|
|
|
/* This file contains the table used to map system call numbers onto the
|
|
|
|
* routines that perform them.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define _TABLE
|
|
|
|
|
|
|
|
#include "fs.h"
|
|
|
|
#include <minix/callnr.h>
|
|
|
|
#include <minix/com.h>
|
|
|
|
#include "file.h"
|
|
|
|
#include "fproc.h"
|
|
|
|
#include "lock.h"
|
2006-10-25 15:40:36 +02:00
|
|
|
|
|
|
|
#include "vnode.h"
|
|
|
|
#include "vmnt.h"
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
PUBLIC _PROTOTYPE (int (*call_vec[]), (void) ) = {
|
|
|
|
no_sys, /* 0 = unused */
|
2006-05-11 16:57:23 +02:00
|
|
|
no_sys, /* 1 = (exit) */
|
|
|
|
no_sys, /* 2 = (fork) */
|
2005-04-21 16:53:53 +02:00
|
|
|
do_read, /* 3 = read */
|
|
|
|
do_write, /* 4 = write */
|
|
|
|
do_open, /* 5 = open */
|
|
|
|
do_close, /* 6 = close */
|
|
|
|
no_sys, /* 7 = wait */
|
|
|
|
do_creat, /* 8 = creat */
|
|
|
|
do_link, /* 9 = link */
|
|
|
|
do_unlink, /* 10 = unlink */
|
|
|
|
no_sys, /* 11 = waitpid */
|
|
|
|
do_chdir, /* 12 = chdir */
|
2005-05-31 11:50:51 +02:00
|
|
|
no_sys, /* 13 = time */
|
2005-04-21 16:53:53 +02:00
|
|
|
do_mknod, /* 14 = mknod */
|
|
|
|
do_chmod, /* 15 = chmod */
|
|
|
|
do_chown, /* 16 = chown */
|
|
|
|
no_sys, /* 17 = break */
|
|
|
|
do_stat, /* 18 = stat */
|
|
|
|
do_lseek, /* 19 = lseek */
|
|
|
|
no_sys, /* 20 = getpid */
|
|
|
|
do_mount, /* 21 = mount */
|
|
|
|
do_umount, /* 22 = umount */
|
2006-05-11 16:57:23 +02:00
|
|
|
no_sys, /* 23 = (setuid) */
|
2005-04-21 16:53:53 +02:00
|
|
|
no_sys, /* 24 = getuid */
|
|
|
|
do_stime, /* 25 = stime */
|
|
|
|
no_sys, /* 26 = ptrace */
|
|
|
|
no_sys, /* 27 = alarm */
|
|
|
|
do_fstat, /* 28 = fstat */
|
|
|
|
no_sys, /* 29 = pause */
|
|
|
|
do_utime, /* 30 = utime */
|
|
|
|
no_sys, /* 31 = (stty) */
|
|
|
|
no_sys, /* 32 = (gtty) */
|
|
|
|
do_access, /* 33 = access */
|
|
|
|
no_sys, /* 34 = (nice) */
|
|
|
|
no_sys, /* 35 = (ftime) */
|
|
|
|
do_sync, /* 36 = sync */
|
|
|
|
no_sys, /* 37 = kill */
|
|
|
|
do_rename, /* 38 = rename */
|
|
|
|
do_mkdir, /* 39 = mkdir */
|
|
|
|
do_unlink, /* 40 = rmdir */
|
|
|
|
do_dup, /* 41 = dup */
|
|
|
|
do_pipe, /* 42 = pipe */
|
2005-05-31 11:50:51 +02:00
|
|
|
no_sys, /* 43 = times */
|
2005-04-21 16:53:53 +02:00
|
|
|
no_sys, /* 44 = (prof) */
|
2005-12-20 15:23:44 +01:00
|
|
|
do_slink, /* 45 = symlink */
|
2006-05-11 16:57:23 +02:00
|
|
|
no_sys, /* 46 = (setgid) */
|
2005-04-21 16:53:53 +02:00
|
|
|
no_sys, /* 47 = getgid */
|
|
|
|
no_sys, /* 48 = (signal)*/
|
2005-12-20 15:23:44 +01:00
|
|
|
do_rdlink, /* 49 = readlink*/
|
|
|
|
do_lstat, /* 50 = lstat */
|
2005-04-21 16:53:53 +02:00
|
|
|
no_sys, /* 51 = (acct) */
|
|
|
|
no_sys, /* 52 = (phys) */
|
|
|
|
no_sys, /* 53 = (lock) */
|
|
|
|
do_ioctl, /* 54 = ioctl */
|
|
|
|
do_fcntl, /* 55 = fcntl */
|
|
|
|
no_sys, /* 56 = (mpx) */
|
2006-10-25 15:40:36 +02:00
|
|
|
do_fslogin, /* 57 = FS proc login */
|
2005-04-21 16:53:53 +02:00
|
|
|
no_sys, /* 58 = unused */
|
2006-05-11 16:57:23 +02:00
|
|
|
no_sys, /* 59 = (execve) */
|
2005-04-21 16:53:53 +02:00
|
|
|
do_umask, /* 60 = umask */
|
|
|
|
do_chroot, /* 61 = chroot */
|
2006-05-11 16:57:23 +02:00
|
|
|
no_sys, /* 62 = (setsid) */
|
2006-05-19 14:19:37 +02:00
|
|
|
no_sys, /* 63 = (getpgrp) */
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2006-05-19 14:19:37 +02:00
|
|
|
no_sys, /* 64 = unused */
|
|
|
|
no_sys, /* 65 = unused */
|
2005-04-21 16:53:53 +02:00
|
|
|
no_sys, /* 66 = unused */
|
2006-05-19 14:19:37 +02:00
|
|
|
no_sys, /* 67 = unused */
|
|
|
|
no_sys, /* 68 = unused */
|
2005-04-21 16:53:53 +02:00
|
|
|
no_sys, /* 69 = unused */
|
|
|
|
no_sys, /* 70 = unused */
|
2006-05-19 14:19:37 +02:00
|
|
|
no_sys, /* 71 = (sigaction) */
|
|
|
|
no_sys, /* 72 = (sigsuspend) */
|
|
|
|
no_sys, /* 73 = (sigpending) */
|
|
|
|
no_sys, /* 74 = (sigprocmask) */
|
|
|
|
no_sys, /* 75 = (sigreturn) */
|
2006-05-11 16:57:23 +02:00
|
|
|
no_sys, /* 76 = (reboot) */
|
2005-04-21 16:53:53 +02:00
|
|
|
do_svrctl, /* 77 = svrctl */
|
|
|
|
|
2006-05-19 14:19:37 +02:00
|
|
|
no_sys, /* 78 = (sysuname) */
|
2005-04-21 16:53:53 +02:00
|
|
|
do_getsysinfo, /* 79 = getsysinfo */
|
2006-11-09 17:22:54 +01:00
|
|
|
do_getdents, /* 80 = getdents */
|
2006-05-19 14:19:37 +02:00
|
|
|
no_sys, /* 81 = unused */
|
2005-04-21 16:53:53 +02:00
|
|
|
do_fstatfs, /* 82 = fstatfs */
|
2006-05-19 14:19:37 +02:00
|
|
|
no_sys, /* 83 = unused */
|
|
|
|
no_sys, /* 84 = unused */
|
2005-06-06 13:40:32 +02:00
|
|
|
do_select, /* 85 = select */
|
2005-06-29 21:28:26 +02:00
|
|
|
do_fchdir, /* 86 = fchdir */
|
2005-07-01 19:58:29 +02:00
|
|
|
do_fsync, /* 87 = fsync */
|
2006-05-19 14:19:37 +02:00
|
|
|
no_sys, /* 88 = (getpriority) */
|
|
|
|
no_sys, /* 89 = (setpriority) */
|
|
|
|
no_sys, /* 90 = (gettimeofday) */
|
|
|
|
no_sys, /* 91 = (seteuid) */
|
|
|
|
no_sys, /* 92 = (setegid) */
|
2006-01-11 18:14:51 +01:00
|
|
|
do_truncate, /* 93 = truncate */
|
|
|
|
do_ftruncate, /* 94 = truncate */
|
2006-04-18 13:26:04 +02:00
|
|
|
do_chmod, /* 95 = fchmod */
|
|
|
|
do_chown, /* 96 = fchown */
|
2006-10-25 15:40:36 +02:00
|
|
|
no_sys, /* 97 = getsysinfo_up */
|
2006-10-30 16:53:38 +01:00
|
|
|
no_sys, /* 98 = (sprofile) */
|
|
|
|
no_sys, /* 99 = (cprofile) */
|
2005-04-21 16:53:53 +02:00
|
|
|
};
|
|
|
|
/* This should not fail with "array size is negative": */
|
|
|
|
extern int dummy[sizeof(call_vec) == NCALLS * sizeof(call_vec[0]) ? 1 : -1];
|
2006-10-25 15:40:36 +02:00
|
|
|
|