1 /* This file contains the table used to map system call numbers onto the
2 * routines that perform them.
8 #include <minix/callnr.h>
13 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 do_getepinfo
, /* 31 = getepinfo */
46 do_set
, /* 32 = setgroups */
47 no_sys
, /* 33 = access */
48 do_get
, /* 34 = getgroups */
49 no_sys
, /* 35 = unused */
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 = unused */
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 = lstat */
65 no_sys
, /* 51 = (stat) */
66 no_sys
, /* 52 = (fstat) */
67 no_sys
, /* 53 = (lstat) */
68 no_sys
, /* 54 = ioctl */
69 no_sys
, /* 55 = fcntl */
70 no_sys
, /* 56 = unused */
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 do_getmcontext
, /* 67 = getmcontext */
82 do_setmcontext
, /* 68 = setmcontext */
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 no_sys
, /* 79 = unused */
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 no_sys
, /* 97 = unused */
112 do_sprofile
, /* 98 = sprofile */
113 do_cprofile
, /* 99 = cprofile */
114 do_newexec
, /* 100 = newexec */
115 do_srv_fork
, /* 101 = srv_fork */
116 do_execrestart
, /* 102 = exec_restart */
117 no_sys
, /* 103 = unused */
118 do_getprocnr
, /* 104 = getprocnr */
119 no_sys
, /* 105 = unused */
120 do_get
, /* 106 = issetugid */
121 do_getepinfo_o
, /* 107 = getepinfo XXX: old implementation*/
122 no_sys
, /* 108 = unused */
123 no_sys
, /* 109 = unused */
124 no_sys
, /* 110 = unused */
125 do_srv_kill
, /* 111 = srv_kill */
126 no_sys
, /* 112 = gcov_flush */
127 do_get
, /* 113 = getsid */
129 /* This should not fail with "array size is negative": */
130 extern int dummy
[sizeof(call_vec
) == NCALLS
* sizeof(call_vec
[0]) ? 1 : -1];