1 /* v1trap.h - Deal with 1st Edition trap instructions.
4 * $Date: 1999/12/26 08:16:33 $
7 /* In this file, we list the trap number for each system call,
8 * and the structures associated with several of the systems
9 * calls in 1st Edition UNIX
48 char *v1trap_name[] = {
88 u_int16_t iflags; /* Mode */
89 u_int8_t inl; /* Links */
92 int16_t iaddr[8]; /* Not used, I hope! */
98 /* Values for v1stat iflags */
99 #define V1_ST_USED 0100000
100 #define V1_ST_ISDIR 0040000
101 #define V1_ST_MODIFIED 0020000
102 #define V1_ST_LARGE 0010000
103 #define V1_ST_SETUID 0000040
104 #define V1_ST_EXEC 0000020
105 #define V1_ST_OWNREAD 0000010
106 #define V1_ST_OWNWRITE 0000004
107 #define V1_ST_WRLDREAD 0000002
108 #define V1_ST_WRLDWRITE 0000001
110 /* A union which will point at the trap args, so that
111 * we can get at the various args of different types
114 int16_t sarg[4]; /* Signed 16-bit args */
115 u_int16_t uarg[4]; /* Unsigned 16-bit args */
118 #define sarg1 V1A.sarg[0]
119 #define sarg2 V1A.sarg[1]
120 #define sarg3 V1A.sarg[2]
121 #define sarg4 V1A.sarg[3]
122 #define uarg1 V1A.uarg[0]
123 #define uarg2 V1A.uarg[1]
124 #define uarg3 V1A.uarg[2]
125 #define uarg4 V1A.uarg[3]