|
|
1.1 root 1: #define NSYSTRAPS 64
2: #define NSIGS 13
3: #define ILLSYS -1
4: #define NORMRET 0
5: #define LONGRET 1
6: #define TWORET 2
7: #define FORK 2
8: #define OPEN 5
9: #define WAIT 7
10: #define CREAT 8
11: #define LINK 9
12: #define UNLNK 10
13: #define EXEC 11
14: #define CHDIR 12
15: #define MKNOD 14
16: #define BRK 17
17: #define STAT 18
18: #define SEEK 19
19: #define SETUID 23
20: #define GETUID 24
21: #define FSTAT 28
22: #define PIPE 42
23: #define TIMES 43
24: #define SETGID 46
25: #define GETGID 47
26: #define SIG 48
27: #define EXECE 59
28: /*
29: * The numerical entries in the following table are
30: * really composed of 3 parts.
31: * The first entry in each row indicates the number
32: * of register arguments for the system call, while
33: * the 2nd position is the number of memory arguments
34: * the 3rd position is LONGRET if the return is a long (r0 and r1)
35: * or is TWORET if the return is 2 ints ala pipe
36: * otherwise it is NORMRET.
37: */
38: int sysargs[][3] =
39: {
40: 0, 0, NORMRET, /* 0 = indir */
41: 1, 0, NORMRET, /* 1 = exit */
42: 0, 0, NORMRET, /* 2 = fork */
43: 1, 2, NORMRET, /* 3 = read */
44: 1, 2, NORMRET, /* 4 = write */
45: 0, 2, NORMRET, /* 5 = open */
46: 1, 0, NORMRET, /* 6 = close */
47: 0, 0, TWORET, /* 7 = wait */
48: 0, 2, NORMRET, /* 8 = creat */
49: 0, 2, NORMRET, /* 9 = link */
50: 0, 1, NORMRET, /* 10 = unlink */
51: 0, 2, NORMRET, /* 11 = exec */
52: 0, 1, NORMRET, /* 12 = chdir */
53: 0, 0, LONGRET, /* 13 = time */
54: 0, 3, NORMRET, /* 14 = mknod */
55: 0, 2, NORMRET, /* 15 = chmod */
56: 0, 3, NORMRET, /* 16 = chown; now 3 args */
57: 0, 1, NORMRET, /* 17 = break */
58: 0, 2, NORMRET, /* 18 = stat */
59: 1, 3, LONGRET, /* 19 = seek; now 3 args */
60: 0, 0, NORMRET, /* 20 = getpid */
61: 0, 3, NORMRET, /* 21 = mount */
62: 0, 1, NORMRET, /* 22 = umount */
63: 1, 0, NORMRET, /* 23 = setuid */
64: 0, 0, TWORET, /* 24 = getuid */
65: 2, 0, NORMRET, /* 25 = stime */
66: 1, 3, NORMRET, /* 26 = ptrace */
67: 1, 0, NORMRET, /* 27 = alarm */
68: 1, 1, NORMRET, /* 28 = fstat */
69: 0, 0, NORMRET, /* 29 = pause */
70: 0, 2, NORMRET, /* 30 = utime */
71: 1, 1, NORMRET, /* 31 = stty */
72: 1, 1, NORMRET, /* 32 = gtty */
73: 0, 2, NORMRET, /* 33 = access */
74: 1, 0, NORMRET, /* 34 = nice */
75: 0, 1, NORMRET, /* 35 = ftime; formerly sleep */
76: 0, 0, NORMRET, /* 36 = sync */
77: 1, 1, NORMRET, /* 37 = kill */
78: 0, 0, NORMRET, /* 38 = switch; inoperative */
79: 0, 0, NORMRET, /* 39 = setpgrp (not in yet) */
80: ILLSYS, 0, NORMRET, /* 40 = tell (obsolete) */
81: 2, 0, NORMRET, /* 41 = dup */
82: 0, 0, TWORET, /* 42 = pipe */
83: 0, 1, NORMRET, /* 43 = times */
84: 0, 4, NORMRET, /* 44 = prof */
85: ILLSYS, 0, NORMRET, /* 45 = unused */
86: 1, 0, NORMRET, /* 46 = setgid */
87: 0, 0, TWORET, /* 47 = getgid */
88: 0, 2, NORMRET, /* 48 = sig */
89: ILLSYS, 0, NORMRET, /* 49 = reserved for USG */
90: ILLSYS, 0, NORMRET, /* 50 = reserved for USG */
91: 0, 1, NORMRET, /* 51 = turn acct off/on */
92: 0, 3, NORMRET, /* 52 = set user physical addresses */
93: 0, 1, NORMRET, /* 53 = lock user in core */
94: 0, 3, NORMRET, /* 54 = ioctl */
95: ILLSYS, 0, NORMRET, /* 55 = readwrite (in abeyance) */
96: 0, 4, NORMRET, /* 56 = creat mpx comm channel */
97: ILLSYS, 0, NORMRET, /* 57 = reserved for USG */
98: ILLSYS, 0, NORMRET, /* 58 = reserved for USG */
99: 0, 3, NORMRET, /* 59 = exece */
100: 0, 1, NORMRET, /* 60 = umask */
101: 0, 1, NORMRET, /* 61 = chroot */
102: ILLSYS, 0, NORMRET, /* 62 = x */
103: ILLSYS, 0, NORMRET /* 63 = used internally */
104: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.