panic() cleanup.
[minix.git] / servers / pm / table.c
blob8ea3ba5c736621b22e5ba09f695e28de5ee541b0
1 /* This file contains the table used to map system call numbers onto the
2 * routines that perform them.
3 */
5 #define _TABLE
7 #include "pm.h"
8 #include <minix/callnr.h>
9 #include <signal.h>
10 #include "mproc.h"
11 #include "param.h"
13 _PROTOTYPE (int (*call_vec[]), (void) ) = {
14 no_sys, /* 0 = unused */
15 do_exit, /* 1 = exit */
16 do_fork, /* 2 = fork */
17 no_sys, /* 3 = read */
18 no_sys, /* 4 = write */
19 no_sys, /* 5 = open */
20 no_sys, /* 6 = close */
21 do_waitpid, /* 7 = wait */
22 no_sys, /* 8 = creat */
23 no_sys, /* 9 = link */
24 no_sys, /* 10 = unlink */
25 do_waitpid, /* 11 = waitpid */
26 no_sys, /* 12 = chdir */
27 do_time, /* 13 = time */
28 no_sys, /* 14 = mknod */
29 no_sys, /* 15 = chmod */
30 no_sys, /* 16 = chown */
31 do_brk, /* 17 = break */
32 no_sys, /* 18 = stat */
33 no_sys, /* 19 = lseek */
34 do_get, /* 20 = getpid */
35 no_sys, /* 21 = mount */
36 no_sys, /* 22 = umount */
37 do_set, /* 23 = setuid */
38 do_get, /* 24 = getuid */
39 do_stime, /* 25 = stime */
40 do_trace, /* 26 = ptrace */
41 do_alarm, /* 27 = alarm */
42 no_sys, /* 28 = fstat */
43 do_pause, /* 29 = pause */
44 no_sys, /* 30 = utime */
45 no_sys, /* 31 = (stty) */
46 no_sys, /* 32 = (gtty) */
47 no_sys, /* 33 = access */
48 no_sys, /* 34 = (nice) */
49 no_sys, /* 35 = (ftime) */
50 no_sys, /* 36 = sync */
51 do_kill, /* 37 = kill */
52 no_sys, /* 38 = rename */
53 no_sys, /* 39 = mkdir */
54 no_sys, /* 40 = rmdir */
55 no_sys, /* 41 = dup */
56 no_sys, /* 42 = pipe */
57 do_times, /* 43 = times */
58 no_sys, /* 44 = (prof) */
59 no_sys, /* 45 = unused */
60 do_set, /* 46 = setgid */
61 do_get, /* 47 = getgid */
62 no_sys, /* 48 = (signal)*/
63 no_sys, /* 49 = unused */
64 no_sys, /* 50 = unused */
65 no_sys, /* 51 = (acct) */
66 no_sys, /* 52 = (phys) */
67 no_sys, /* 53 = (lock) */
68 no_sys, /* 54 = ioctl */
69 no_sys, /* 55 = fcntl */
70 no_sys, /* 56 = (mpx) */
71 no_sys, /* 57 = unused */
72 no_sys, /* 58 = unused */
73 do_exec, /* 59 = execve */
74 no_sys, /* 60 = umask */
75 no_sys, /* 61 = chroot */
76 do_set, /* 62 = setsid */
77 do_get, /* 63 = getpgrp */
78 do_itimer, /* 64 = itimer */
79 do_get, /* 65 = getgroups */
80 do_set, /* 66 = setgroups */
81 no_sys, /* 67 = unused */
82 no_sys, /* 68 = unused */
83 no_sys, /* 69 = unused */
84 no_sys, /* 70 = unused */
85 do_sigaction, /* 71 = sigaction */
86 do_sigsuspend, /* 72 = sigsuspend */
87 do_sigpending, /* 73 = sigpending */
88 do_sigprocmask, /* 74 = sigprocmask */
89 do_sigreturn, /* 75 = sigreturn */
90 do_reboot, /* 76 = reboot */
91 do_svrctl, /* 77 = svrctl */
92 do_sysuname, /* 78 = sysuname */
93 do_getsysinfo, /* 79 = getsysinfo */
94 no_sys, /* 80 = (getdents) */
95 no_sys, /* 81 = unused */
96 no_sys, /* 82 = (fstatfs) */
97 no_sys, /* 83 = unused */
98 no_sys, /* 84 = unused */
99 no_sys, /* 85 = (select) */
100 no_sys, /* 86 = (fchdir) */
101 no_sys, /* 87 = (fsync) */
102 do_getsetpriority, /* 88 = getpriority */
103 do_getsetpriority, /* 89 = setpriority */
104 do_time, /* 90 = gettimeofday */
105 do_set, /* 91 = seteuid */
106 do_set, /* 92 = setegid */
107 no_sys, /* 93 = (truncate) */
108 no_sys, /* 94 = (ftruncate) */
109 no_sys, /* 95 = (fchmod) */
110 no_sys, /* 96 = (fchown) */
111 do_getsysinfo_up,/* 97 = getsysinfo_up */
112 do_sprofile, /* 98 = sprofile */
113 do_cprofile, /* 99 = cprofile */
114 /* THE MINIX3 ABI ENDS HERE */
115 do_exec_newmem, /* 100 = exec_newmem */
116 do_fork_nb, /* 101 = forknb */
117 do_execrestart, /* 102 = exec_restart */
118 do_procstat, /* 103 = procstat */
119 do_getprocnr, /* 104 = getprocnr */
120 no_sys, /* 105 = unused */
121 no_sys, /* 106 = unused */
122 do_getepinfo, /* 107 = getepinfo */
123 do_adddma, /* 108 = adddma */
124 do_deldma, /* 109 = deldma */
125 do_getdma, /* 110 = getdma */
127 /* This should not fail with "array size is negative": */
128 extern int dummy[sizeof(call_vec) == NCALLS * sizeof(call_vec[0]) ? 1 : -1];