Commit | Line | Data |
---|---|---|
f8a58b02 NC |
1 | # New ops always go at the end |
2 | # The restriction on having custom as the last op has been removed | |
3 | ||
4 | # A recapitulation of the format of this file: | |
5 | # The file consists of five columns: the name of the op, an English | |
6 | # description, the name of the "check" routine used to optimize this | |
7 | # operation, some flags, and a description of the operands. | |
8 | ||
9 | # The flags consist of options followed by a mandatory op class signifier | |
10 | ||
11 | # The classes are: | |
12 | # baseop - 0 unop - 1 binop - 2 | |
13 | # logop - | listop - @ pmop - / | |
14 | # padop/svop - $ padop - # (unused) loop - { | |
15 | # baseop/unop - % loopexop - } filestatop - - | |
b46e009d | 16 | # pvop/svop - " cop - ; methop - . |
2f7c6295 | 17 | # unop_aux - + |
f8a58b02 NC |
18 | |
19 | # Other options are: | |
738ec380 DM |
20 | # needs stack mark - m (OA_MARK) |
21 | # needs constant folding - f (OA_FOLDCONST) | |
22 | # produces a scalar - s (OA_RETSCALAR) | |
23 | # produces an integer - i (unused) | |
24 | # needs a target - t (OA_TARGET) | |
25 | # target can be in a pad - T (OA_TARGET|OA_TARGLEX) | |
26 | # has a corresponding integer version - I (OA_OTHERINT) | |
e791f90a | 27 | # make temp copy in list assignment - d (OA_DANGEROUS) |
738ec380 | 28 | # uses $_ if no argument given - u (OA_DEFGV) |
f8a58b02 NC |
29 | |
30 | # Values for the operands are: | |
31 | # scalar - S list - L array - A | |
32 | # hash - H sub (CV) - C file - F | |
33 | # socket - Fs filetest - F- filetest_access - F-+ | |
332c2eac | 34 | # num-compare - S< dirhandle - DF |
f8a58b02 NC |
35 | |
36 | # reference - R | |
37 | # "?" denotes an optional operand. | |
38 | ||
39 | # Nothing. | |
40 | ||
41 | null null operation ck_null 0 | |
42 | stub stub ck_null 0 | |
43 | scalar scalar ck_fun s% S | |
44 | ||
45 | # Pushy stuff. | |
46 | ||
47 | pushmark pushmark ck_null s0 | |
48 | wantarray wantarray ck_null is0 | |
49 | ||
50 | const constant item ck_svconst s$ | |
51 | ||
52 | gvsv scalar variable ck_null ds$ | |
53 | gv glob value ck_null ds$ | |
6e372f32 | 54 | gelem glob elem ck_null ds2 S S |
f8a58b02 NC |
55 | padsv private variable ck_null ds0 |
56 | padav private array ck_null d0 | |
57 | padhv private hash ck_null d0 | |
58 | padany private value ck_null d0 | |
59 | ||
60 | pushre push regexp ck_null d/ | |
61 | ||
62 | # References and stuff. | |
63 | ||
64 | rv2gv ref-to-glob cast ck_rvconst ds1 | |
65 | rv2sv scalar dereference ck_rvconst ds1 | |
66 | av2arylen array length ck_null is1 | |
67 | rv2cv subroutine dereference ck_rvconst d1 | |
01762542 | 68 | anoncode anonymous subroutine ck_anoncode s$ |
eb4ec35b | 69 | prototype subroutine prototype ck_prototype su% S? |
f8a58b02 NC |
70 | refgen reference constructor ck_spair m1 L |
71 | srefgen single ref constructor ck_null fs1 S | |
72 | ref reference-type operator ck_fun stu% S? | |
73 | bless bless ck_fun s@ S S? | |
74 | ||
75 | # Pushy I/O. | |
76 | ||
9ce1fb7d | 77 | backtick quoted execution (``, qx) ck_backtick tu% S? |
f8a58b02 NC |
78 | # glob defaults its first arg to $_ |
79 | glob glob ck_glob t@ S? | |
80 | readline <HANDLE> ck_readline t% F? | |
81 | rcatline append I/O operator ck_null t$ | |
82 | ||
83 | # Bindable operators. | |
84 | ||
85 | regcmaybe regexp internal guard ck_fun s1 S | |
86 | regcreset regexp internal reset ck_fun s1 S | |
87 | regcomp regexp compilation ck_null s| S | |
9d99d451 | 88 | match pattern match (m//) ck_match / |
f8a58b02 | 89 | qr pattern quote (qr//) ck_match s/ |
7f581e76 FC |
90 | subst substitution (s///) ck_match is/ S |
91 | substcont substitution iterator ck_null is| | |
f8a58b02 | 92 | trans transliteration (tr///) ck_match is" S |
bfa14884 NC |
93 | # y///r |
94 | transr transliteration (tr///) ck_match is" S | |
f8a58b02 NC |
95 | |
96 | # Lvalue operators. | |
97 | # sassign is special-cased for op class | |
98 | ||
99 | sassign scalar assignment ck_sassign s0 | |
100 | aassign list assignment ck_null t2 L L | |
101 | ||
102 | chop chop ck_spair mts% L | |
103 | schop scalar chop ck_null stu% S? | |
104 | chomp chomp ck_spair mTs% L | |
105 | schomp scalar chomp ck_null sTu% S? | |
106 | defined defined operator ck_defined isu% S? | |
89c5c07e | 107 | undef undef operator ck_fun s% R? |
f8a58b02 | 108 | study study ck_fun su% S? |
abe56f58 | 109 | pos match position ck_fun stu% R? |
f8a58b02 NC |
110 | |
111 | preinc preincrement (++) ck_lfun dIs1 S | |
112 | i_preinc integer preincrement (++) ck_lfun dis1 S | |
113 | predec predecrement (--) ck_lfun dIs1 S | |
114 | i_predec integer predecrement (--) ck_lfun dis1 S | |
3baa0581 FC |
115 | postinc postincrement (++) ck_lfun Ist1 S |
116 | i_postinc integer postincrement (++) ck_lfun ist1 S | |
117 | postdec postdecrement (--) ck_lfun Ist1 S | |
118 | i_postdec integer postdecrement (--) ck_lfun ist1 S | |
f8a58b02 NC |
119 | |
120 | # Ordinary operators. | |
121 | ||
122 | pow exponentiation (**) ck_null fsT2 S S | |
123 | ||
124 | multiply multiplication (*) ck_null IfsT2 S S | |
125 | i_multiply integer multiplication (*) ck_null ifsT2 S S | |
126 | divide division (/) ck_null IfsT2 S S | |
127 | i_divide integer division (/) ck_null ifsT2 S S | |
128 | modulo modulus (%) ck_null IifsT2 S S | |
129 | i_modulo integer modulus (%) ck_null ifsT2 S S | |
6abbd373 | 130 | repeat repeat (x) ck_repeat fmT2 L S |
f8a58b02 NC |
131 | |
132 | add addition (+) ck_null IfsT2 S S | |
133 | i_add integer addition (+) ck_null ifsT2 S S | |
134 | subtract subtraction (-) ck_null IfsT2 S S | |
135 | i_subtract integer subtraction (-) ck_null ifsT2 S S | |
136 | concat concatenation (.) or string ck_concat fsT2 S S | |
73f4c4fe | 137 | stringify string ck_stringify fsT@ S |
f8a58b02 NC |
138 | |
139 | left_shift left bitshift (<<) ck_bitop fsT2 S S | |
140 | right_shift right bitshift (>>) ck_bitop fsT2 S S | |
141 | ||
89474f50 FC |
142 | lt numeric lt (<) ck_cmp Iifs2 S S< |
143 | i_lt integer lt (<) ck_cmp ifs2 S S< | |
144 | gt numeric gt (>) ck_cmp Iifs2 S S< | |
145 | i_gt integer gt (>) ck_cmp ifs2 S S< | |
146 | le numeric le (<=) ck_cmp Iifs2 S S< | |
147 | i_le integer le (<=) ck_cmp ifs2 S S< | |
148 | ge numeric ge (>=) ck_cmp Iifs2 S S< | |
149 | i_ge integer ge (>=) ck_cmp ifs2 S S< | |
2b420b63 JC |
150 | eq numeric eq (==) ck_null Iifs2 S S< |
151 | i_eq integer eq (==) ck_null ifs2 S S< | |
152 | ne numeric ne (!=) ck_null Iifs2 S S< | |
153 | i_ne integer ne (!=) ck_null ifs2 S S< | |
154 | ncmp numeric comparison (<=>) ck_null Iifst2 S S< | |
d1455c67 | 155 | i_ncmp integer comparison (<=>) ck_null ifsT2 S S< |
f8a58b02 NC |
156 | |
157 | slt string lt ck_null ifs2 S S | |
158 | sgt string gt ck_null ifs2 S S | |
159 | sle string le ck_null ifs2 S S | |
160 | sge string ge ck_null ifs2 S S | |
161 | seq string eq ck_null ifs2 S S | |
162 | sne string ne ck_null ifs2 S S | |
d1455c67 | 163 | scmp string comparison (cmp) ck_null ifsT2 S S |
f8a58b02 NC |
164 | |
165 | bit_and bitwise and (&) ck_bitop fst2 S S | |
166 | bit_xor bitwise xor (^) ck_bitop fst2 S S | |
167 | bit_or bitwise or (|) ck_bitop fst2 S S | |
168 | ||
169 | negate negation (-) ck_null Ifst1 S | |
a9dec3fe | 170 | i_negate integer negation (-) ck_null ifst1 S |
f8a58b02 | 171 | not not ck_null ifs1 S |
33de0f79 | 172 | complement 1's complement (~) ck_bitop fsT1 S |
f8a58b02 NC |
173 | |
174 | smartmatch smart match ck_smartmatch s2 | |
175 | ||
176 | # High falutin' math. | |
177 | ||
178 | atan2 atan2 ck_fun fsT@ S S | |
179 | sin sin ck_fun fsTu% S? | |
180 | cos cos ck_fun fsTu% S? | |
181 | rand rand ck_fun sT% S? | |
182 | srand srand ck_fun sT% S? | |
183 | exp exp ck_fun fsTu% S? | |
184 | log log ck_fun fsTu% S? | |
185 | sqrt sqrt ck_fun fsTu% S? | |
186 | ||
187 | # Lowbrow math. | |
188 | ||
189 | int int ck_fun fsTu% S? | |
190 | hex hex ck_fun fsTu% S? | |
191 | oct oct ck_fun fsTu% S? | |
192 | abs abs ck_fun fsTu% S? | |
193 | ||
194 | # String stuff. | |
195 | ||
e508c8a4 | 196 | length length ck_length ifsTu% S? |
f8a58b02 | 197 | substr substr ck_substr st@ S S S? S? |
db098081 | 198 | vec vec ck_fun isT@ S S S |
f8a58b02 NC |
199 | |
200 | index index ck_index isT@ S S S? | |
201 | rindex rindex ck_index isT@ S S S? | |
202 | ||
69974ce6 | 203 | sprintf sprintf ck_lfun fmst@ S L |
f8a58b02 NC |
204 | formline formline ck_fun ms@ S L |
205 | ord ord ck_fun ifsTu% S? | |
206 | chr chr ck_fun fsTu% S? | |
207 | crypt crypt ck_fun fsT@ S S | |
208 | ucfirst ucfirst ck_fun fstu% S? | |
209 | lcfirst lcfirst ck_fun fstu% S? | |
210 | uc uc ck_fun fstu% S? | |
211 | lc lc ck_fun fstu% S? | |
212 | quotemeta quotemeta ck_fun fstu% S? | |
213 | ||
214 | # Arrays. | |
215 | ||
216 | rv2av array dereference ck_rvconst dt1 | |
689d8423 | 217 | aelemfast constant array element ck_null ds$ A S |
bfa14884 | 218 | aelemfast_lex constant lexical array element ck_null d0 A S |
f8a58b02 NC |
219 | aelem array element ck_null s2 A S |
220 | aslice array slice ck_null m@ A L | |
6dd3e0f2 | 221 | kvaslice index/value array slice ck_null m@ A L |
f8a58b02 | 222 | |
d86b3122 | 223 | aeach each on array ck_each d% A |
f8a58b02 | 224 | akeys keys on array ck_each t% A |
d86b3122 | 225 | avalues values on array ck_each dt% A |
f8a58b02 NC |
226 | |
227 | # Hashes. | |
228 | ||
d86b3122 FC |
229 | each each ck_each d% H |
230 | values values ck_each dt% H | |
f8a58b02 NC |
231 | keys keys ck_each t% H |
232 | delete delete ck_delete % S | |
233 | exists exists ck_exists is% S | |
1a8bdda9 | 234 | rv2hv hash dereference ck_rvconst d1 |
f8a58b02 NC |
235 | helem hash element ck_null s2 H S |
236 | hslice hash slice ck_null m@ H L | |
5cae3edb | 237 | kvhslice key/value hash slice ck_null m@ H L |
f8a58b02 | 238 | |
fedf30e1 DM |
239 | # mixed array and hash access |
240 | ||
241 | multideref array or hash lookup ck_null ds+ | |
242 | ||
f8a58b02 NC |
243 | # Explosives and implosives. |
244 | ||
ea5703f4 | 245 | unpack unpack ck_fun u@ S S? |
dd9a6ccf | 246 | pack pack ck_fun fmst@ S L |
d8cdf573 | 247 | split split ck_split T@ S S S |
987c9691 | 248 | join join or string ck_join fmst@ S L |
f8a58b02 NC |
249 | |
250 | # List operators. | |
251 | ||
252 | list list ck_null m@ L | |
253 | lslice list slice ck_null 2 H L L | |
26321c2d | 254 | anonlist anonymous array ([]) ck_fun ms@ L |
f8a58b02 NC |
255 | anonhash anonymous hash ({}) ck_fun ms@ L |
256 | ||
d4fc4415 FC |
257 | splice splice ck_fun m@ A S? S? L |
258 | push push ck_fun imsT@ A L | |
f8a58b02 NC |
259 | pop pop ck_shift s% A? |
260 | shift shift ck_shift s% A? | |
d4fc4415 | 261 | unshift unshift ck_fun imsT@ A L |
61aeaf96 | 262 | sort sort ck_sort m@ C? L |
f8a58b02 NC |
263 | reverse reverse ck_fun mt@ L |
264 | ||
f39944c1 FC |
265 | grepstart grep ck_grep m@ C L |
266 | grepwhile grep iterator ck_null t| | |
f8a58b02 | 267 | |
f39944c1 FC |
268 | mapstart map ck_grep m@ C L |
269 | mapwhile map iterator ck_null t| | |
f8a58b02 NC |
270 | |
271 | # Range stuff. | |
272 | ||
273 | range flipflop ck_null | S S | |
274 | flip range (or flip) ck_null 1 S S | |
275 | flop range (or flop) ck_null 1 | |
276 | ||
277 | # Control. | |
278 | ||
279 | and logical and (&&) ck_null | | |
280 | or logical or (||) ck_null | | |
281 | xor logical xor ck_null fs2 S S | |
282 | dor defined or (//) ck_null | | |
aafd37e7 | 283 | cond_expr conditional expression ck_null | |
f8a58b02 NC |
284 | andassign logical and assignment (&&=) ck_null s| |
285 | orassign logical or assignment (||=) ck_null s| | |
286 | dorassign defined or assignment (//=) ck_null s| | |
287 | ||
b46e009d | 288 | method method lookup ck_method d. |
57ee255e | 289 | entersub subroutine entry ck_subr dm1 L |
f8a58b02 NC |
290 | leavesub subroutine exit ck_null 1 |
291 | leavesublv lvalue subroutine return ck_null 1 | |
292 | caller caller ck_fun t% S? | |
293 | warn warn ck_fun imst@ L | |
2eb51413 | 294 | die die ck_fun imst@ L |
f8a58b02 NC |
295 | reset symbol reset ck_fun is% S? |
296 | ||
297 | lineseq line sequence ck_null @ | |
298 | nextstate next statement ck_null s; | |
299 | dbstate debug next statement ck_null s; | |
300 | unstack iteration finalizer ck_null s0 | |
301 | enter block entry ck_null 0 | |
302 | leave block exit ck_null @ | |
303 | scope block ck_null @ | |
304 | enteriter foreach loop entry ck_null d{ | |
305 | iter foreach loop iterator ck_null 0 | |
306 | enterloop loop entry ck_null d{ | |
307 | leaveloop loop exit ck_null 2 | |
b31e13ff FC |
308 | return return ck_return m@ L |
309 | last last ck_null s} | |
310 | next next ck_null s} | |
311 | redo redo ck_null s} | |
f8a58b02 | 312 | dump dump ck_null ds} |
b31e13ff | 313 | goto goto ck_null s} |
26812b4a | 314 | exit exit ck_fun s% S? |
b46e009d | 315 | method_named method with known name ck_null d. |
7d6c333c | 316 | method_super super with known name ck_null d. |
810bd8b7 | 317 | method_redir redirect method with known name ck_null d. |
318 | method_redir_super redirect super method with known name ck_null d. | |
f8a58b02 NC |
319 | |
320 | entergiven given() ck_null d| | |
321 | leavegiven leave given block ck_null 1 | |
322 | enterwhen when() ck_null d| | |
323 | leavewhen leave when block ck_null 1 | |
324 | break break ck_null 0 | |
325 | continue continue ck_null 0 | |
326 | ||
327 | # I/O. | |
328 | ||
329 | open open ck_open ismt@ F S? L | |
330 | close close ck_fun is% F? | |
331 | pipe_op pipe ck_fun is@ F F | |
332 | ||
333 | fileno fileno ck_fun ist% F | |
334 | umask umask ck_fun ist% S? | |
335 | binmode binmode ck_fun s@ F S? | |
336 | ||
337 | tie tie ck_fun idms@ R S L | |
338 | untie untie ck_fun is% R | |
6575cde0 | 339 | tied tied ck_fun ds% R |
f8a58b02 NC |
340 | dbmopen dbmopen ck_fun is@ H S S |
341 | dbmclose dbmclose ck_fun is% H | |
342 | ||
343 | sselect select system call ck_select t@ S S S S | |
344 | select select ck_select st@ F? | |
345 | ||
346 | getc getc ck_eof st% F? | |
347 | read read ck_fun imst@ F R S S? | |
fc5ae97d | 348 | enterwrite write ck_fun is% F? |
f8a58b02 NC |
349 | leavewrite write exit ck_null 1 |
350 | ||
351 | prtf printf ck_listiob ims@ F? L | |
352 | print print ck_listiob ims@ F? L | |
353 | say say ck_listiob ims@ F? L | |
354 | ||
355 | sysopen sysopen ck_fun s@ F S S S? | |
356 | sysseek sysseek ck_fun s@ F S S | |
357 | sysread sysread ck_fun imst@ F R S S? | |
358 | syswrite syswrite ck_fun imst@ F S S? S? | |
359 | ||
360 | eof eof ck_eof is% F? | |
8dc99089 | 361 | tell tell ck_tell st% F? |
423e8af5 | 362 | seek seek ck_tell s@ F S S |
f8a58b02 NC |
363 | # truncate really behaves as if it had both "S S" and "F S" |
364 | truncate truncate ck_trunc is@ S S | |
365 | ||
366 | fcntl fcntl ck_fun st@ F S S | |
367 | ioctl ioctl ck_fun st@ F S S | |
368 | flock flock ck_fun isT@ F S | |
369 | ||
370 | # Sockets. OP_IS_SOCKET wants them consecutive (so moved 1st 2) | |
371 | ||
372 | send send ck_fun imst@ Fs S S S? | |
373 | recv recv ck_fun imst@ Fs R S S | |
374 | ||
375 | socket socket ck_fun is@ Fs S S S | |
376 | sockpair socketpair ck_fun is@ Fs Fs S S S | |
377 | ||
378 | bind bind ck_fun is@ Fs S | |
379 | connect connect ck_fun is@ Fs S | |
380 | listen listen ck_fun is@ Fs S | |
381 | accept accept ck_fun ist@ Fs Fs | |
382 | shutdown shutdown ck_fun ist@ Fs S | |
383 | ||
384 | gsockopt getsockopt ck_fun is@ Fs S S | |
385 | ssockopt setsockopt ck_fun is@ Fs S S S | |
386 | ||
387 | getsockname getsockname ck_fun is% Fs | |
388 | getpeername getpeername ck_fun is% Fs | |
389 | ||
390 | # Stat calls. OP_IS_FILETEST wants them consecutive. | |
391 | ||
465bc0f5 FC |
392 | lstat lstat ck_ftst u- F? |
393 | stat stat ck_ftst u- F? | |
f8a58b02 NC |
394 | ftrread -R ck_ftst isu- F-+ |
395 | ftrwrite -W ck_ftst isu- F-+ | |
396 | ftrexec -X ck_ftst isu- F-+ | |
397 | fteread -r ck_ftst isu- F-+ | |
398 | ftewrite -w ck_ftst isu- F-+ | |
399 | fteexec -x ck_ftst isu- F-+ | |
400 | ftis -e ck_ftst isu- F- | |
401 | ftsize -s ck_ftst istu- F- | |
402 | ftmtime -M ck_ftst stu- F- | |
403 | ftatime -A ck_ftst stu- F- | |
404 | ftctime -C ck_ftst stu- F- | |
405 | ftrowned -O ck_ftst isu- F- | |
406 | fteowned -o ck_ftst isu- F- | |
407 | ftzero -z ck_ftst isu- F- | |
408 | ftsock -S ck_ftst isu- F- | |
409 | ftchr -c ck_ftst isu- F- | |
410 | ftblk -b ck_ftst isu- F- | |
411 | ftfile -f ck_ftst isu- F- | |
412 | ftdir -d ck_ftst isu- F- | |
413 | ftpipe -p ck_ftst isu- F- | |
414 | ftsuid -u ck_ftst isu- F- | |
415 | ftsgid -g ck_ftst isu- F- | |
416 | ftsvtx -k ck_ftst isu- F- | |
417 | ftlink -l ck_ftst isu- F- | |
418 | fttty -t ck_ftst is- F- | |
419 | fttext -T ck_ftst isu- F- | |
420 | ftbinary -B ck_ftst isu- F- | |
421 | ||
422 | # File calls. | |
423 | ||
424 | # chdir really behaves as if it had both "S?" and "F?" | |
8777c9be | 425 | chdir chdir ck_trunc isT% S? |
f8a58b02 NC |
426 | chown chown ck_fun imsT@ L |
427 | chroot chroot ck_fun isTu% S? | |
428 | unlink unlink ck_fun imsTu@ L | |
429 | chmod chmod ck_fun imsT@ L | |
430 | utime utime ck_fun imsT@ L | |
431 | rename rename ck_fun isT@ S S | |
432 | link link ck_fun isT@ S S | |
433 | symlink symlink ck_fun isT@ S S | |
434 | readlink readlink ck_fun stu% S? | |
435 | mkdir mkdir ck_fun isTu@ S? S? | |
436 | rmdir rmdir ck_fun isTu% S? | |
437 | ||
438 | # Directory calls. | |
439 | ||
440 | open_dir opendir ck_fun is@ F S | |
332c2eac JC |
441 | readdir readdir ck_fun % DF |
442 | telldir telldir ck_fun st% DF | |
443 | seekdir seekdir ck_fun s@ DF S | |
444 | rewinddir rewinddir ck_fun s% DF | |
445 | closedir closedir ck_fun is% DF | |
f8a58b02 NC |
446 | |
447 | # Process control. | |
448 | ||
449 | fork fork ck_null ist0 | |
450 | wait wait ck_null isT0 | |
451 | waitpid waitpid ck_fun isT@ S S | |
452 | system system ck_exec imsT@ S? L | |
1062548a | 453 | exec exec ck_exec imsT@ S? L |
9618b155 | 454 | kill kill ck_fun imsT@ L |
f8a58b02 NC |
455 | getppid getppid ck_null isT0 |
456 | getpgrp getpgrp ck_fun isT% S? | |
457 | setpgrp setpgrp ck_fun isT@ S? S? | |
458 | getpriority getpriority ck_fun isT@ S S | |
459 | setpriority setpriority ck_fun isT@ S S S | |
460 | ||
461 | # Time calls. | |
462 | ||
f8a58b02 NC |
463 | time time ck_null isT0 |
464 | tms times ck_null 0 | |
465 | localtime localtime ck_fun t% S? | |
466 | gmtime gmtime ck_fun t% S? | |
467 | alarm alarm ck_fun istu% S? | |
468 | sleep sleep ck_fun isT% S? | |
469 | ||
470 | # Shared memory. | |
471 | ||
472 | shmget shmget ck_fun imst@ S S S | |
473 | shmctl shmctl ck_fun imst@ S S S | |
474 | shmread shmread ck_fun imst@ S S S S | |
475 | shmwrite shmwrite ck_fun imst@ S S S S | |
476 | ||
477 | # Message passing. | |
478 | ||
479 | msgget msgget ck_fun imst@ S S | |
480 | msgctl msgctl ck_fun imst@ S S S | |
481 | msgsnd msgsnd ck_fun imst@ S S S | |
482 | msgrcv msgrcv ck_fun imst@ S S S S S | |
483 | ||
484 | # Semaphores. | |
485 | ||
486 | semop semop ck_fun imst@ S S | |
487 | semget semget ck_fun imst@ S S S | |
488 | semctl semctl ck_fun imst@ S S S S | |
489 | ||
490 | # Eval. | |
491 | ||
353d8d11 | 492 | require require ck_require dsu% S? |
f8a58b02 NC |
493 | dofile do "file" ck_fun d1 S |
494 | hintseval eval hints ck_svconst s$ | |
7d789282 | 495 | entereval eval "string" ck_eval du% S? |
f8a58b02 | 496 | leaveeval eval "string" exit ck_null 1 S |
f8a58b02 NC |
497 | entertry eval {block} ck_eval d| |
498 | leavetry eval {block} exit ck_null @ | |
499 | ||
500 | # Get system info. | |
501 | ||
502 | ghbyname gethostbyname ck_fun % S | |
503 | ghbyaddr gethostbyaddr ck_fun @ S S | |
504 | ghostent gethostent ck_null 0 | |
505 | gnbyname getnetbyname ck_fun % S | |
506 | gnbyaddr getnetbyaddr ck_fun @ S S | |
507 | gnetent getnetent ck_null 0 | |
508 | gpbyname getprotobyname ck_fun % S | |
509 | gpbynumber getprotobynumber ck_fun @ S | |
510 | gprotoent getprotoent ck_null 0 | |
511 | gsbyname getservbyname ck_fun @ S S | |
512 | gsbyport getservbyport ck_fun @ S S | |
513 | gservent getservent ck_null 0 | |
514 | shostent sethostent ck_fun is% S | |
515 | snetent setnetent ck_fun is% S | |
516 | sprotoent setprotoent ck_fun is% S | |
517 | sservent setservent ck_fun is% S | |
518 | ehostent endhostent ck_null is0 | |
519 | enetent endnetent ck_null is0 | |
520 | eprotoent endprotoent ck_null is0 | |
521 | eservent endservent ck_null is0 | |
522 | gpwnam getpwnam ck_fun % S | |
523 | gpwuid getpwuid ck_fun % S | |
524 | gpwent getpwent ck_null 0 | |
525 | spwent setpwent ck_null is0 | |
526 | epwent endpwent ck_null is0 | |
527 | ggrnam getgrnam ck_fun % S | |
528 | ggrgid getgrgid ck_fun % S | |
529 | ggrent getgrent ck_null 0 | |
530 | sgrent setgrent ck_null is0 | |
531 | egrent endgrent ck_null is0 | |
532 | getlogin getlogin ck_null st0 | |
533 | ||
534 | # Miscellaneous. | |
535 | ||
536 | syscall syscall ck_fun imst@ S L | |
537 | ||
538 | # For multi-threading | |
539 | lock lock ck_rfun s% R | |
540 | ||
541 | # For state support | |
542 | ||
543 | once once ck_null | | |
544 | ||
545 | custom unknown custom operator ck_null 0 | |
546 | ||
547 | # For smart dereference for each/keys/values | |
d86b3122 | 548 | reach each on reference ck_each d% S |
f8a58b02 | 549 | rkeys keys on reference ck_each t% S |
d86b3122 | 550 | rvalues values on reference ck_each dt% S |
deb8a388 FC |
551 | |
552 | # For CORE:: subs | |
553 | coreargs CORE:: subroutine ck_null $ | |
84ed0108 FC |
554 | |
555 | runcv __SUB__ ck_null s0 | |
838f2281 BF |
556 | |
557 | # fc and \F | |
558 | fc fc ck_fun fstu% S? | |
ac217057 FC |
559 | |
560 | padcv private subroutine ck_null d0 | |
ecf9c8b7 | 561 | introcv private subroutine ck_null d0 |
13f89586 | 562 | clonecv private subroutine ck_null d0 |
a7fd8ef6 | 563 | padrange list of private variables ck_null d0 |
6e372f32 | 564 | refassign lvalue ref assignment ck_refassign ds2 |
4b6cf48b | 565 | lvref lvalue ref assignment ck_null d% |
16b99412 | 566 | lvrefslice lvalue ref assignment ck_null d@ |
2882b3ff | 567 | lvavref lvalue array reference ck_null d% |