Skip t/porting/exec-bit.t on VMS.
[perl.git] / opnames.h
1 /* -*- buffer-read-only: t -*-
2  *
3  *    opnames.h
4  *
5  *    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
6  *    2008 by Larry Wall and others
7  *
8  *    You may distribute under the terms of either the GNU General Public
9  *    License or the Artistic License, as specified in the README file.
10  *
11  * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
12  * This file is built by regen/opcode.pl from its data.
13  * Any changes made here will be lost!
14  */
15
16 typedef enum opcode {
17         OP_NULL          = 0,
18         OP_STUB          = 1,
19         OP_SCALAR        = 2,
20         OP_PUSHMARK      = 3,
21         OP_WANTARRAY     = 4,
22         OP_CONST         = 5,
23         OP_GVSV          = 6,
24         OP_GV            = 7,
25         OP_GELEM         = 8,
26         OP_PADSV         = 9,
27         OP_PADAV         = 10,
28         OP_PADHV         = 11,
29         OP_PADANY        = 12,
30         OP_PUSHRE        = 13,
31         OP_RV2GV         = 14,
32         OP_RV2SV         = 15,
33         OP_AV2ARYLEN     = 16,
34         OP_RV2CV         = 17,
35         OP_ANONCODE      = 18,
36         OP_PROTOTYPE     = 19,
37         OP_REFGEN        = 20,
38         OP_SREFGEN       = 21,
39         OP_REF           = 22,
40         OP_BLESS         = 23,
41         OP_BACKTICK      = 24,
42         OP_GLOB          = 25,
43         OP_READLINE      = 26,
44         OP_RCATLINE      = 27,
45         OP_REGCMAYBE     = 28,
46         OP_REGCRESET     = 29,
47         OP_REGCOMP       = 30,
48         OP_MATCH         = 31,
49         OP_QR            = 32,
50         OP_SUBST         = 33,
51         OP_SUBSTCONT     = 34,
52         OP_TRANS         = 35,
53         OP_SASSIGN       = 36,
54         OP_AASSIGN       = 37,
55         OP_CHOP          = 38,
56         OP_SCHOP         = 39,
57         OP_CHOMP         = 40,
58         OP_SCHOMP        = 41,
59         OP_DEFINED       = 42,
60         OP_UNDEF         = 43,
61         OP_STUDY         = 44,
62         OP_POS           = 45,
63         OP_PREINC        = 46,
64         OP_I_PREINC      = 47,
65         OP_PREDEC        = 48,
66         OP_I_PREDEC      = 49,
67         OP_POSTINC       = 50,
68         OP_I_POSTINC     = 51,
69         OP_POSTDEC       = 52,
70         OP_I_POSTDEC     = 53,
71         OP_POW           = 54,
72         OP_MULTIPLY      = 55,
73         OP_I_MULTIPLY    = 56,
74         OP_DIVIDE        = 57,
75         OP_I_DIVIDE      = 58,
76         OP_MODULO        = 59,
77         OP_I_MODULO      = 60,
78         OP_REPEAT        = 61,
79         OP_ADD           = 62,
80         OP_I_ADD         = 63,
81         OP_SUBTRACT      = 64,
82         OP_I_SUBTRACT    = 65,
83         OP_CONCAT        = 66,
84         OP_STRINGIFY     = 67,
85         OP_LEFT_SHIFT    = 68,
86         OP_RIGHT_SHIFT   = 69,
87         OP_LT            = 70,
88         OP_I_LT          = 71,
89         OP_GT            = 72,
90         OP_I_GT          = 73,
91         OP_LE            = 74,
92         OP_I_LE          = 75,
93         OP_GE            = 76,
94         OP_I_GE          = 77,
95         OP_EQ            = 78,
96         OP_I_EQ          = 79,
97         OP_NE            = 80,
98         OP_I_NE          = 81,
99         OP_NCMP          = 82,
100         OP_I_NCMP        = 83,
101         OP_SLT           = 84,
102         OP_SGT           = 85,
103         OP_SLE           = 86,
104         OP_SGE           = 87,
105         OP_SEQ           = 88,
106         OP_SNE           = 89,
107         OP_SCMP          = 90,
108         OP_BIT_AND       = 91,
109         OP_BIT_XOR       = 92,
110         OP_BIT_OR        = 93,
111         OP_NEGATE        = 94,
112         OP_I_NEGATE      = 95,
113         OP_NOT           = 96,
114         OP_COMPLEMENT    = 97,
115         OP_SMARTMATCH    = 98,
116         OP_ATAN2         = 99,
117         OP_SIN           = 100,
118         OP_COS           = 101,
119         OP_RAND          = 102,
120         OP_SRAND         = 103,
121         OP_EXP           = 104,
122         OP_LOG           = 105,
123         OP_SQRT          = 106,
124         OP_INT           = 107,
125         OP_HEX           = 108,
126         OP_OCT           = 109,
127         OP_ABS           = 110,
128         OP_LENGTH        = 111,
129         OP_SUBSTR        = 112,
130         OP_VEC           = 113,
131         OP_INDEX         = 114,
132         OP_RINDEX        = 115,
133         OP_SPRINTF       = 116,
134         OP_FORMLINE      = 117,
135         OP_ORD           = 118,
136         OP_CHR           = 119,
137         OP_CRYPT         = 120,
138         OP_UCFIRST       = 121,
139         OP_LCFIRST       = 122,
140         OP_UC            = 123,
141         OP_LC            = 124,
142         OP_QUOTEMETA     = 125,
143         OP_RV2AV         = 126,
144         OP_AELEMFAST     = 127,
145         OP_AELEM         = 128,
146         OP_ASLICE        = 129,
147         OP_AEACH         = 130,
148         OP_AKEYS         = 131,
149         OP_AVALUES       = 132,
150         OP_EACH          = 133,
151         OP_VALUES        = 134,
152         OP_KEYS          = 135,
153         OP_DELETE        = 136,
154         OP_EXISTS        = 137,
155         OP_RV2HV         = 138,
156         OP_HELEM         = 139,
157         OP_HSLICE        = 140,
158         OP_BOOLKEYS      = 141,
159         OP_UNPACK        = 142,
160         OP_PACK          = 143,
161         OP_SPLIT         = 144,
162         OP_JOIN          = 145,
163         OP_LIST          = 146,
164         OP_LSLICE        = 147,
165         OP_ANONLIST      = 148,
166         OP_ANONHASH      = 149,
167         OP_SPLICE        = 150,
168         OP_PUSH          = 151,
169         OP_POP           = 152,
170         OP_SHIFT         = 153,
171         OP_UNSHIFT       = 154,
172         OP_SORT          = 155,
173         OP_REVERSE       = 156,
174         OP_GREPSTART     = 157,
175         OP_GREPWHILE     = 158,
176         OP_MAPSTART      = 159,
177         OP_MAPWHILE      = 160,
178         OP_RANGE         = 161,
179         OP_FLIP          = 162,
180         OP_FLOP          = 163,
181         OP_AND           = 164,
182         OP_OR            = 165,
183         OP_XOR           = 166,
184         OP_DOR           = 167,
185         OP_COND_EXPR     = 168,
186         OP_ANDASSIGN     = 169,
187         OP_ORASSIGN      = 170,
188         OP_DORASSIGN     = 171,
189         OP_METHOD        = 172,
190         OP_ENTERSUB      = 173,
191         OP_LEAVESUB      = 174,
192         OP_LEAVESUBLV    = 175,
193         OP_CALLER        = 176,
194         OP_WARN          = 177,
195         OP_DIE           = 178,
196         OP_RESET         = 179,
197         OP_LINESEQ       = 180,
198         OP_NEXTSTATE     = 181,
199         OP_DBSTATE       = 182,
200         OP_UNSTACK       = 183,
201         OP_ENTER         = 184,
202         OP_LEAVE         = 185,
203         OP_SCOPE         = 186,
204         OP_ENTERITER     = 187,
205         OP_ITER          = 188,
206         OP_ENTERLOOP     = 189,
207         OP_LEAVELOOP     = 190,
208         OP_RETURN        = 191,
209         OP_LAST          = 192,
210         OP_NEXT          = 193,
211         OP_REDO          = 194,
212         OP_DUMP          = 195,
213         OP_GOTO          = 196,
214         OP_EXIT          = 197,
215         OP_METHOD_NAMED  = 198,
216         OP_ENTERGIVEN    = 199,
217         OP_LEAVEGIVEN    = 200,
218         OP_ENTERWHEN     = 201,
219         OP_LEAVEWHEN     = 202,
220         OP_BREAK         = 203,
221         OP_CONTINUE      = 204,
222         OP_OPEN          = 205,
223         OP_CLOSE         = 206,
224         OP_PIPE_OP       = 207,
225         OP_FILENO        = 208,
226         OP_UMASK         = 209,
227         OP_BINMODE       = 210,
228         OP_TIE           = 211,
229         OP_UNTIE         = 212,
230         OP_TIED          = 213,
231         OP_DBMOPEN       = 214,
232         OP_DBMCLOSE      = 215,
233         OP_SSELECT       = 216,
234         OP_SELECT        = 217,
235         OP_GETC          = 218,
236         OP_READ          = 219,
237         OP_ENTERWRITE    = 220,
238         OP_LEAVEWRITE    = 221,
239         OP_PRTF          = 222,
240         OP_PRINT         = 223,
241         OP_SAY           = 224,
242         OP_SYSOPEN       = 225,
243         OP_SYSSEEK       = 226,
244         OP_SYSREAD       = 227,
245         OP_SYSWRITE      = 228,
246         OP_EOF           = 229,
247         OP_TELL          = 230,
248         OP_SEEK          = 231,
249         OP_TRUNCATE      = 232,
250         OP_FCNTL         = 233,
251         OP_IOCTL         = 234,
252         OP_FLOCK         = 235,
253         OP_SEND          = 236,
254         OP_RECV          = 237,
255         OP_SOCKET        = 238,
256         OP_SOCKPAIR      = 239,
257         OP_BIND          = 240,
258         OP_CONNECT       = 241,
259         OP_LISTEN        = 242,
260         OP_ACCEPT        = 243,
261         OP_SHUTDOWN      = 244,
262         OP_GSOCKOPT      = 245,
263         OP_SSOCKOPT      = 246,
264         OP_GETSOCKNAME   = 247,
265         OP_GETPEERNAME   = 248,
266         OP_LSTAT         = 249,
267         OP_STAT          = 250,
268         OP_FTRREAD       = 251,
269         OP_FTRWRITE      = 252,
270         OP_FTREXEC       = 253,
271         OP_FTEREAD       = 254,
272         OP_FTEWRITE      = 255,
273         OP_FTEEXEC       = 256,
274         OP_FTIS          = 257,
275         OP_FTSIZE        = 258,
276         OP_FTMTIME       = 259,
277         OP_FTATIME       = 260,
278         OP_FTCTIME       = 261,
279         OP_FTROWNED      = 262,
280         OP_FTEOWNED      = 263,
281         OP_FTZERO        = 264,
282         OP_FTSOCK        = 265,
283         OP_FTCHR         = 266,
284         OP_FTBLK         = 267,
285         OP_FTFILE        = 268,
286         OP_FTDIR         = 269,
287         OP_FTPIPE        = 270,
288         OP_FTSUID        = 271,
289         OP_FTSGID        = 272,
290         OP_FTSVTX        = 273,
291         OP_FTLINK        = 274,
292         OP_FTTTY         = 275,
293         OP_FTTEXT        = 276,
294         OP_FTBINARY      = 277,
295         OP_CHDIR         = 278,
296         OP_CHOWN         = 279,
297         OP_CHROOT        = 280,
298         OP_UNLINK        = 281,
299         OP_CHMOD         = 282,
300         OP_UTIME         = 283,
301         OP_RENAME        = 284,
302         OP_LINK          = 285,
303         OP_SYMLINK       = 286,
304         OP_READLINK      = 287,
305         OP_MKDIR         = 288,
306         OP_RMDIR         = 289,
307         OP_OPEN_DIR      = 290,
308         OP_READDIR       = 291,
309         OP_TELLDIR       = 292,
310         OP_SEEKDIR       = 293,
311         OP_REWINDDIR     = 294,
312         OP_CLOSEDIR      = 295,
313         OP_FORK          = 296,
314         OP_WAIT          = 297,
315         OP_WAITPID       = 298,
316         OP_SYSTEM        = 299,
317         OP_EXEC          = 300,
318         OP_KILL          = 301,
319         OP_GETPPID       = 302,
320         OP_GETPGRP       = 303,
321         OP_SETPGRP       = 304,
322         OP_GETPRIORITY   = 305,
323         OP_SETPRIORITY   = 306,
324         OP_TIME          = 307,
325         OP_TMS           = 308,
326         OP_LOCALTIME     = 309,
327         OP_GMTIME        = 310,
328         OP_ALARM         = 311,
329         OP_SLEEP         = 312,
330         OP_SHMGET        = 313,
331         OP_SHMCTL        = 314,
332         OP_SHMREAD       = 315,
333         OP_SHMWRITE      = 316,
334         OP_MSGGET        = 317,
335         OP_MSGCTL        = 318,
336         OP_MSGSND        = 319,
337         OP_MSGRCV        = 320,
338         OP_SEMOP         = 321,
339         OP_SEMGET        = 322,
340         OP_SEMCTL        = 323,
341         OP_REQUIRE       = 324,
342         OP_DOFILE        = 325,
343         OP_HINTSEVAL     = 326,
344         OP_ENTEREVAL     = 327,
345         OP_LEAVEEVAL     = 328,
346         OP_ENTERTRY      = 329,
347         OP_LEAVETRY      = 330,
348         OP_GHBYNAME      = 331,
349         OP_GHBYADDR      = 332,
350         OP_GHOSTENT      = 333,
351         OP_GNBYNAME      = 334,
352         OP_GNBYADDR      = 335,
353         OP_GNETENT       = 336,
354         OP_GPBYNAME      = 337,
355         OP_GPBYNUMBER    = 338,
356         OP_GPROTOENT     = 339,
357         OP_GSBYNAME      = 340,
358         OP_GSBYPORT      = 341,
359         OP_GSERVENT      = 342,
360         OP_SHOSTENT      = 343,
361         OP_SNETENT       = 344,
362         OP_SPROTOENT     = 345,
363         OP_SSERVENT      = 346,
364         OP_EHOSTENT      = 347,
365         OP_ENETENT       = 348,
366         OP_EPROTOENT     = 349,
367         OP_ESERVENT      = 350,
368         OP_GPWNAM        = 351,
369         OP_GPWUID        = 352,
370         OP_GPWENT        = 353,
371         OP_SPWENT        = 354,
372         OP_EPWENT        = 355,
373         OP_GGRNAM        = 356,
374         OP_GGRGID        = 357,
375         OP_GGRENT        = 358,
376         OP_SGRENT        = 359,
377         OP_EGRENT        = 360,
378         OP_GETLOGIN      = 361,
379         OP_SYSCALL       = 362,
380         OP_LOCK          = 363,
381         OP_ONCE          = 364,
382         OP_CUSTOM        = 365,
383         OP_REACH         = 366,
384         OP_RKEYS         = 367,
385         OP_RVALUES       = 368,
386         OP_TRANSR        = 369,
387         OP_max          
388 } opcode;
389
390 #define MAXO 370
391
392 /* the OP_IS_(SOCKET|FILETEST) macros are optimized to a simple range
393     check because all the member OPs are contiguous in opcode.pl
394     <OPS> table.  opcode.pl verifies the range contiguity.  */
395
396 #define OP_IS_SOCKET(op)        \
397         ((op) >= OP_SEND && (op) <= OP_GETPEERNAME)
398
399 #define OP_IS_FILETEST(op)      \
400         ((op) >= OP_FTRREAD && (op) <= OP_FTBINARY)
401
402 #define OP_IS_FILETEST_ACCESS(op)       \
403         ((op) >= OP_FTRREAD && (op) <= OP_FTEEXEC)
404
405 /* ex: set ro: */