1*6802Srrh /*
2*6802Srrh  * 	unix6sys.h	1.1	82/05/12
3*6802Srrh  */
4*6802Srrh #define	NSYSTRAPS	64
5*6802Srrh #define	NSIGS	13
6*6802Srrh #define	ILLSYS	-1
7*6802Srrh #define	NORMRET	0
8*6802Srrh #define	LONGRET	1
9*6802Srrh #define	TWORET	2
10*6802Srrh #define	FORK	2
11*6802Srrh #define	OPEN	5
12*6802Srrh #define	WAIT	7
13*6802Srrh #define	CREAT	8
14*6802Srrh #define	LINK	9
15*6802Srrh #define	UNLNK	10
16*6802Srrh #define EXEC	11
17*6802Srrh #define	CHDIR	12
18*6802Srrh #define	MKNOD	14
19*6802Srrh #define	BRK	17
20*6802Srrh #define	STAT	18
21*6802Srrh #define	SEEK	19
22*6802Srrh #define	SETUID	23
23*6802Srrh #define	GETUID	24
24*6802Srrh #define	FSTAT	28
25*6802Srrh #define	SLEEP	35
26*6802Srrh #define	TELL	40
27*6802Srrh #define	PIPE	42
28*6802Srrh #define	TIMES	43
29*6802Srrh #define	SETGID	46
30*6802Srrh #define	GETGID	47
31*6802Srrh #define	SIG	48
32*6802Srrh #define	PWBSYS	57
33*6802Srrh #define	UNAME	0
34*6802Srrh #define	UDATA	1
35*6802Srrh #define	USTAT	2
36*6802Srrh #define	UTIME	3
37*6802Srrh /*
38*6802Srrh  *	The numerical entries in the following table are
39*6802Srrh  *	really composed of 2 parts.
40*6802Srrh  *	The first entry in each row indicates the number
41*6802Srrh  *	of register arguments for the system call, while
42*6802Srrh  *	the 2nd position is the number of memory arguments
43*6802Srrh  *	the 3rd position is LONGRET if the return is a long (ala time)
44*6802Srrh  *	or is TWORET if the return is 2 ints (ala pipe)
45*6802Srrh  *	otherwise it is NORMRET.
46*6802Srrh  */
47*6802Srrh int	sysargs[][3] =
48*6802Srrh {
49*6802Srrh 	0, 0, NORMRET,		/*  0 = indir */
50*6802Srrh 	1, 0, NORMRET,		/*  1 = exit */
51*6802Srrh 	0, 0, NORMRET,		/*  2 = fork */
52*6802Srrh 	1, 2, NORMRET,		/*  3 = read */
53*6802Srrh 	1, 2, NORMRET,		/*  4 = write */
54*6802Srrh 	0, 2, NORMRET,		/*  5 = open */
55*6802Srrh 	1, 0, NORMRET,		/*  6 = close */
56*6802Srrh 	0, 0, TWORET,		/*  7 = wait */
57*6802Srrh 	0, 2, NORMRET,		/*  8 = creat */
58*6802Srrh 	0, 2, NORMRET,		/*  9 = link */
59*6802Srrh 	0, 1, NORMRET,		/* 10 = unlink */
60*6802Srrh 	0, 2, NORMRET,		/* 11 = exec */
61*6802Srrh 	0, 1, NORMRET,		/* 12 = chdir */
62*6802Srrh 	0, 0, LONGRET,		/* 13 = time */
63*6802Srrh 	0, 3, NORMRET,		/* 14 = mknod */
64*6802Srrh 	0, 2, NORMRET,		/* 15 = chmod */
65*6802Srrh 	0, 2, NORMRET,		/* 16 = chown */
66*6802Srrh 	0, 1, NORMRET,		/* 17 = break */
67*6802Srrh 	0, 2, NORMRET,		/* 18 = stat */
68*6802Srrh 	1, 2, NORMRET,		/* 19 = seek */
69*6802Srrh 	0, 0, NORMRET,		/* 20 = getpid */
70*6802Srrh 	0, 3, NORMRET,		/* 21 = mount */
71*6802Srrh 	0, 1, NORMRET,		/* 22 = umount */
72*6802Srrh 	1, 0, NORMRET,		/* 23 = setuid */
73*6802Srrh 	0, 0, NORMRET,		/* 24 = getuid */
74*6802Srrh 	2, 0, NORMRET,		/* 25 = stime */
75*6802Srrh 	1, 3, NORMRET,		/* 26 = ptrace */
76*6802Srrh 	1, 0, NORMRET,		/* 27 = alarm */
77*6802Srrh 	1, 1, NORMRET,		/* 28 = fstat */
78*6802Srrh 	0, 0, NORMRET,		/* 29 = pause */
79*6802Srrh 	1, 1, NORMRET,		/* 30 = smdate */
80*6802Srrh 	1, 1, NORMRET,		/* 31 = stty */
81*6802Srrh 	1, 1, NORMRET,		/* 32 = gtty */
82*6802Srrh 	0, 2, NORMRET,		/* 33 = access */
83*6802Srrh 	1, 0, NORMRET,		/* 34 = nice */
84*6802Srrh 	1, 0, NORMRET,		/* 35 = sleep */
85*6802Srrh 	0, 0, NORMRET,		/* 36 = sync */
86*6802Srrh 	1, 1, NORMRET,		/* 37 = kill */
87*6802Srrh 	0, 0, NORMRET,		/* 38 = switch */
88*6802Srrh 	ILLSYS, 0, NORMRET,	/* 39 = x */
89*6802Srrh 	1, 0, LONGRET,		/* 40 = tell */
90*6802Srrh 	1, 0, NORMRET,		/* 41 = dup */
91*6802Srrh 	0, 0, TWORET,		/* 42 = pipe */
92*6802Srrh 	0, 1, NORMRET,		/* 43 = times */
93*6802Srrh 	0, 4, NORMRET,		/* 44 = prof */
94*6802Srrh 	ILLSYS, 0, NORMRET,	/* 45 = tiu */
95*6802Srrh 	1, 0, NORMRET,		/* 46 = setgid */
96*6802Srrh 	0, 0, NORMRET,		/* 47 = getgid */
97*6802Srrh 	0, 2, NORMRET,		/* 48 = sig */
98*6802Srrh 	ILLSYS, 0, NORMRET,	/* 49 = x */
99*6802Srrh 	ILLSYS, 0, NORMRET,	/* 50 = x */
100*6802Srrh 	ILLSYS, 0, NORMRET,	/* 51 = x */
101*6802Srrh 	ILLSYS, 0, NORMRET,	/* 52 = x */
102*6802Srrh 	ILLSYS, 0, NORMRET,	/* 53 = x */
103*6802Srrh 	ILLSYS, 0, NORMRET,	/* 54 = x */
104*6802Srrh 	ILLSYS, 0, NORMRET,	/* 55 = x */
105*6802Srrh 	ILLSYS, 0, NORMRET,	/* 56 = x */
106*6802Srrh 	2, 1, NORMRET,		/* 57 = pwbsys */
107*6802Srrh 	ILLSYS, 0, NORMRET,	/* 58 = x */
108*6802Srrh 	ILLSYS, 0, NORMRET,	/* 59 = x */
109*6802Srrh 	ILLSYS, 0, NORMRET,	/* 60 = x */
110*6802Srrh 	ILLSYS, 0, NORMRET,	/* 61 = x */
111*6802Srrh 	0, 1, NORMRET,		/* 62 = idisys */
112*6802Srrh 	ILLSYS, 0, NORMRET	/* 63 = x */
113*6802Srrh };
114