-
Notifications
You must be signed in to change notification settings - Fork 2
/
dispatch.c
99 lines (93 loc) · 1.69 KB
/
dispatch.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/**************************************************
UZI (Unix Z80 Implementation) Kernel: dispatch.c
***************************************************/
/* Dispatch table for system calls */
int __exit(),
_open(),
_close(),
_creat(),
_mknod(),
_link(),
_unlink(),
_read(),
_write(),
_seek(),
_chdir(),
_sync(),
_access(),
_chmod(),
_chown(),
_stat(),
_fstat(),
_dup(),
_getpid(),
_getppid(),
_getuid(),
_umask(),
_getfsys(),
_execve(),
_wait(),
_setuid(),
_setgid(),
_time(),
_stime(),
_ioctl(),
_brk(),
_sbrk(),
_fork(),
_mount(),
_umount(),
_signal(),
_dup2(),
_pause(),
_alarm(),
_kill(),
_pipe(),
_getgid(),
_times();
int (*disp_tab[])() =
{ __exit,
_open,
_close,
_creat,
_mknod,
_link,
_unlink,
_read,
_write,
_seek,
_chdir,
_sync,
_access,
_chmod,
_chown,
_stat,
_fstat,
_dup,
_getpid,
_getppid,
_getuid,
_umask,
_getfsys,
_execve,
_wait,
_setuid,
_setgid,
_time,
_stime,
_ioctl,
_brk,
_sbrk,
_fork,
_mount,
_umount,
_signal,
_dup2,
_pause,
_alarm,
_kill,
_pipe,
_getgid,
_times
};
char dtsize = sizeof(disp_tab) / sizeof(int(*)()) - 1;