| 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 tab-separated columns: the name of the op, an |
| 6 |
# English 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 - - |
| 16 |
# pvop/svop - " cop - ; methop - . |
| 17 |
# unop_aux - + |
| 18 |
|
| 19 |
# Other options are: |
| 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) |
| 27 |
# make temp copy in list assignment - d (OA_DANGEROUS) |
| 28 |
# uses $_ if no argument given - u (OA_DEFGV) |
| 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-+ |
| 34 |
# num-compare - S< dirhandle - DF infix bitwise - S| |
| 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$ |
| 54 |
gelem glob elem ck_null ds2 S S |
| 55 |
padsv private variable ck_null ds0 |
| 56 |
padsv_store padsv scalar assignment ck_sassign s1 S S |
| 57 |
padav private array ck_null d0 |
| 58 |
padhv private hash ck_null d0 |
| 59 |
padany private value ck_null d0 |
| 60 |
|
| 61 |
# References and stuff. |
| 62 |
|
| 63 |
rv2gv ref-to-glob cast ck_rvconst ds1 |
| 64 |
rv2sv scalar dereference ck_rvconst ds1 |
| 65 |
av2arylen array length ck_null is1 |
| 66 |
rv2cv subroutine dereference ck_rvconst d1 |
| 67 |
anoncode anonymous subroutine ck_anoncode s$ |
| 68 |
prototype subroutine prototype ck_prototype su% S? |
| 69 |
refgen reference constructor ck_spair m1 L |
| 70 |
srefgen single ref constructor ck_null fs1 S |
| 71 |
ref reference-type operator ck_fun stu% S? |
| 72 |
bless bless ck_fun s@ S S? |
| 73 |
|
| 74 |
# Pushy I/O. |
| 75 |
|
| 76 |
backtick quoted execution (``, qx) ck_backtick tu% S? |
| 77 |
# glob defaults its first arg to $_ |
| 78 |
glob glob ck_glob t@ S? |
| 79 |
readline <HANDLE> ck_readline t% F? |
| 80 |
rcatline append I/O operator ck_null t$ |
| 81 |
|
| 82 |
# Bindable operators. |
| 83 |
|
| 84 |
regcmaybe regexp internal guard ck_fun s1 S |
| 85 |
regcreset regexp internal reset ck_fun s1 S |
| 86 |
regcomp regexp compilation ck_null s| S |
| 87 |
match pattern match (m//) ck_match / |
| 88 |
qr pattern quote (qr//) ck_match s/ |
| 89 |
subst substitution (s///) ck_match is/ S |
| 90 |
substcont substitution iterator ck_null is| |
| 91 |
trans transliteration (tr///) ck_match is" S |
| 92 |
# y///r |
| 93 |
transr transliteration (tr///) ck_match is" S |
| 94 |
|
| 95 |
# Lvalue operators. |
| 96 |
|
| 97 |
sassign scalar assignment ck_sassign s2 S S |
| 98 |
aassign list assignment ck_null t2 L L |
| 99 |
|
| 100 |
chop chop ck_spair mts% L |
| 101 |
schop scalar chop ck_null stu% S? |
| 102 |
chomp chomp ck_spair mTs% L |
| 103 |
schomp scalar chomp ck_null sTu% S? |
| 104 |
defined defined operator ck_defined isu% S? |
| 105 |
undef undef operator ck_fun s% R? |
| 106 |
study study ck_fun su% S? |
| 107 |
pos match position ck_fun stu% R? |
| 108 |
|
| 109 |
preinc preincrement (++) ck_lfun dIs1 S |
| 110 |
i_preinc integer preincrement (++) ck_lfun dis1 S |
| 111 |
predec predecrement (--) ck_lfun dIs1 S |
| 112 |
i_predec integer predecrement (--) ck_lfun dis1 S |
| 113 |
postinc postincrement (++) ck_lfun Ist1 S |
| 114 |
i_postinc integer postincrement (++) ck_lfun ist1 S |
| 115 |
postdec postdecrement (--) ck_lfun Ist1 S |
| 116 |
i_postdec integer postdecrement (--) ck_lfun ist1 S |
| 117 |
|
| 118 |
# Ordinary operators. |
| 119 |
|
| 120 |
pow exponentiation (**) ck_null fsT2 S S |
| 121 |
|
| 122 |
multiply multiplication (*) ck_null IfsT2 S S |
| 123 |
i_multiply integer multiplication (*) ck_null ifsT2 S S |
| 124 |
divide division (/) ck_null IfsT2 S S |
| 125 |
i_divide integer division (/) ck_null ifsT2 S S |
| 126 |
modulo modulus (%) ck_null IifsT2 S S |
| 127 |
i_modulo integer modulus (%) ck_null ifsT2 S S |
| 128 |
repeat repeat (x) ck_repeat fmt2 L S |
| 129 |
|
| 130 |
add addition (+) ck_null IfsT2 S S |
| 131 |
i_add integer addition (+) ck_null ifsT2 S S |
| 132 |
subtract subtraction (-) ck_null IfsT2 S S |
| 133 |
i_subtract integer subtraction (-) ck_null ifsT2 S S |
| 134 |
concat concatenation (.) or string ck_concat fsT2 S S |
| 135 |
multiconcat concatenation (.) or string ck_null sT+ |
| 136 |
stringify string ck_stringify fsT@ S |
| 137 |
|
| 138 |
left_shift left bitshift (<<) ck_bitop fsT2 S S |
| 139 |
right_shift right bitshift (>>) ck_bitop fsT2 S S |
| 140 |
|
| 141 |
lt numeric lt (<) ck_cmp Iifs2 S S< |
| 142 |
i_lt integer lt (<) ck_cmp ifs2 S S< |
| 143 |
gt numeric gt (>) ck_cmp Iifs2 S S< |
| 144 |
i_gt integer gt (>) ck_cmp ifs2 S S< |
| 145 |
le numeric le (<=) ck_cmp Iifs2 S S< |
| 146 |
i_le integer le (<=) ck_cmp ifs2 S S< |
| 147 |
ge numeric ge (>=) ck_cmp Iifs2 S S< |
| 148 |
i_ge integer ge (>=) ck_cmp ifs2 S S< |
| 149 |
eq numeric eq (==) ck_cmp Iifs2 S S< |
| 150 |
i_eq integer eq (==) ck_cmp ifs2 S S< |
| 151 |
ne numeric ne (!=) ck_cmp Iifs2 S S< |
| 152 |
i_ne integer ne (!=) ck_cmp ifs2 S S< |
| 153 |
ncmp numeric comparison (<=>) ck_null Iifst2 S S< |
| 154 |
i_ncmp integer comparison (<=>) ck_null ifst2 S S< |
| 155 |
|
| 156 |
slt string lt ck_null ifs2 S S |
| 157 |
sgt string gt ck_null ifs2 S S |
| 158 |
sle string le ck_null ifs2 S S |
| 159 |
sge string ge ck_null ifs2 S S |
| 160 |
seq string eq ck_null ifs2 S S |
| 161 |
sne string ne ck_null ifs2 S S |
| 162 |
scmp string comparison (cmp) ck_null ifst2 S S |
| 163 |
|
| 164 |
bit_and bitwise and (&) ck_bitop fst2 S S| |
| 165 |
bit_xor bitwise xor (^) ck_bitop fst2 S S| |
| 166 |
bit_or bitwise or (|) ck_bitop fst2 S S| |
| 167 |
nbit_and numeric bitwise and (&) ck_bitop fsT2 S S| |
| 168 |
nbit_xor numeric bitwise xor (^) ck_bitop fsT2 S S| |
| 169 |
nbit_or numeric bitwise or (|) ck_bitop fsT2 S S| |
| 170 |
sbit_and string bitwise and (&.) ck_bitop fst2 S S| |
| 171 |
sbit_xor string bitwise xor (^.) ck_bitop fst2 S S| |
| 172 |
sbit_or string bitwise or (|.) ck_bitop fst2 S S| |
| 173 |
|
| 174 |
negate negation (-) ck_null IfsT1 S |
| 175 |
i_negate integer negation (-) ck_null ifsT1 S |
| 176 |
not not ck_null ifs1 S |
| 177 |
complement 1's complement (~) ck_bitop fst1 S |
| 178 |
ncomplement numeric 1's complement (~) ck_bitop fsT1 S |
| 179 |
scomplement string 1's complement (~) ck_null fsT1 S |
| 180 |
|
| 181 |
smartmatch smart match ck_smartmatch s2 |
| 182 |
|
| 183 |
# High falutin' math. |
| 184 |
|
| 185 |
atan2 atan2 ck_fun fsT@ S S |
| 186 |
sin sin ck_fun fsTu% S? |
| 187 |
cos cos ck_fun fsTu% S? |
| 188 |
rand rand ck_fun sT% S? |
| 189 |
srand srand ck_fun sT% S? |
| 190 |
exp exp ck_fun fsTu% S? |
| 191 |
log log ck_fun fsTu% S? |
| 192 |
sqrt sqrt ck_fun fsTu% S? |
| 193 |
|
| 194 |
# Lowbrow math. |
| 195 |
|
| 196 |
int int ck_fun fsTu% S? |
| 197 |
hex hex ck_fun fsTu% S? |
| 198 |
oct oct ck_fun fsTu% S? |
| 199 |
abs abs ck_fun fsTu% S? |
| 200 |
|
| 201 |
# String stuff. |
| 202 |
|
| 203 |
length length ck_length ifsTu% S? |
| 204 |
substr substr ck_substr st@ S S S? S? |
| 205 |
vec vec ck_fun ist@ S S S |
| 206 |
|
| 207 |
index index ck_index isT@ S S S? |
| 208 |
rindex rindex ck_index isT@ S S S? |
| 209 |
|
| 210 |
sprintf sprintf ck_lfun fmst@ S L |
| 211 |
formline formline ck_fun ms@ S L |
| 212 |
ord ord ck_fun ifsTu% S? |
| 213 |
chr chr ck_fun fsTu% S? |
| 214 |
crypt crypt ck_fun fsT@ S S |
| 215 |
ucfirst ucfirst ck_fun fstu% S? |
| 216 |
lcfirst lcfirst ck_fun fstu% S? |
| 217 |
uc uc ck_fun fstu% S? |
| 218 |
lc lc ck_fun fstu% S? |
| 219 |
quotemeta quotemeta ck_fun fstu% S? |
| 220 |
|
| 221 |
# Arrays. |
| 222 |
|
| 223 |
rv2av array dereference ck_rvconst dt1 |
| 224 |
aelemfast constant array element ck_null ds$ A S |
| 225 |
aelemfast_lex constant lexical array element ck_null d0 A S |
| 226 |
aelemfastlex_store const lexical array element store ck_null d1 A S |
| 227 |
aelem array element ck_null s2 A S |
| 228 |
aslice array slice ck_null m@ A L |
| 229 |
kvaslice index/value array slice ck_null m@ A L |
| 230 |
|
| 231 |
aeach each on array ck_each d% A |
| 232 |
avalues values on array ck_each dt% A |
| 233 |
akeys keys on array ck_each t% A |
| 234 |
|
| 235 |
# Hashes. |
| 236 |
|
| 237 |
each each ck_each d% H |
| 238 |
values values ck_each dt% H |
| 239 |
keys keys ck_each t% H |
| 240 |
delete delete ck_delete % S |
| 241 |
exists exists ck_exists is% S |
| 242 |
rv2hv hash dereference ck_rvconst dt1 |
| 243 |
helem hash element ck_null s2 H S |
| 244 |
hslice hash slice ck_null m@ H L |
| 245 |
kvhslice key/value hash slice ck_null m@ H L |
| 246 |
|
| 247 |
# mixed array and hash access |
| 248 |
|
| 249 |
multideref array or hash lookup ck_null ds+ |
| 250 |
|
| 251 |
# Explosives and implosives. |
| 252 |
|
| 253 |
unpack unpack ck_fun u@ S S? |
| 254 |
pack pack ck_fun fmst@ S L |
| 255 |
split split ck_split t/ S S S |
| 256 |
join join or string ck_join fmst@ S L |
| 257 |
|
| 258 |
# List operators. |
| 259 |
|
| 260 |
list list ck_null m@ L |
| 261 |
lslice list slice ck_null 2 H L L |
| 262 |
anonlist anonymous array ([]) ck_fun ms@ L |
| 263 |
anonhash anonymous hash ({}) ck_fun ms@ L |
| 264 |
emptyavhv empty anon hash/array ck_fun sT0 |
| 265 |
|
| 266 |
splice splice ck_fun m@ A S? S? L |
| 267 |
push push ck_fun imsT@ A L |
| 268 |
pop pop ck_shift s% A? |
| 269 |
shift shift ck_shift s% A? |
| 270 |
unshift unshift ck_fun imsT@ A L |
| 271 |
sort sort ck_sort m@ C? L |
| 272 |
reverse reverse ck_fun mt@ L |
| 273 |
|
| 274 |
grepstart grep ck_grep m@ C L |
| 275 |
grepwhile grep iterator ck_null t| |
| 276 |
|
| 277 |
mapstart map ck_grep m@ C L |
| 278 |
mapwhile map iterator ck_null t| |
| 279 |
|
| 280 |
# Range stuff. |
| 281 |
|
| 282 |
range flipflop ck_null | S S |
| 283 |
flip range (or flip) ck_null 1 S S |
| 284 |
flop range (or flop) ck_null 1 |
| 285 |
|
| 286 |
# Control. |
| 287 |
|
| 288 |
and logical and (&&) ck_null | |
| 289 |
or logical or (||) ck_null | |
| 290 |
xor logical xor ck_null fs2 S S |
| 291 |
dor defined or (//) ck_null | |
| 292 |
cond_expr conditional expression ck_null | |
| 293 |
andassign logical and assignment (&&=) ck_null s| |
| 294 |
orassign logical or assignment (||=) ck_null s| |
| 295 |
dorassign defined or assignment (//=) ck_null s| |
| 296 |
|
| 297 |
entersub subroutine entry ck_subr dm1 L |
| 298 |
leavesub subroutine exit ck_null 1 |
| 299 |
leavesublv lvalue subroutine return ck_null 1 |
| 300 |
argcheck check subroutine arguments ck_null + |
| 301 |
argelem subroutine argument ck_null + |
| 302 |
argdefelem subroutine argument default value ck_null | |
| 303 |
caller caller ck_fun t% S? |
| 304 |
warn warn ck_fun imst@ L |
| 305 |
die die ck_fun imst@ L |
| 306 |
reset symbol reset ck_fun is% S? |
| 307 |
|
| 308 |
lineseq line sequence ck_null @ |
| 309 |
nextstate next statement ck_null s; |
| 310 |
dbstate debug next statement ck_null s; |
| 311 |
unstack iteration finalizer ck_null s0 |
| 312 |
enter block entry ck_null 0 |
| 313 |
leave block exit ck_null @ |
| 314 |
scope block ck_null @ |
| 315 |
enteriter foreach loop entry ck_null d{ |
| 316 |
iter foreach loop iterator ck_null 0 |
| 317 |
enterloop loop entry ck_null d{ |
| 318 |
leaveloop loop exit ck_null 2 |
| 319 |
return return ck_return m@ L |
| 320 |
last last ck_null s} |
| 321 |
next next ck_null s} |
| 322 |
redo redo ck_null s} |
| 323 |
dump dump ck_null ds} |
| 324 |
goto goto ck_null s} |
| 325 |
exit exit ck_fun s% S? |
| 326 |
method method lookup ck_method d. |
| 327 |
method_named method with known name ck_null d. |
| 328 |
method_super super with known name ck_null d. |
| 329 |
method_redir redirect method with known name ck_null d. |
| 330 |
method_redir_super redirect super method with known name ck_null d. |
| 331 |
|
| 332 |
entergiven given() ck_null d| |
| 333 |
leavegiven leave given block ck_null 1 |
| 334 |
enterwhen when() ck_null d| |
| 335 |
leavewhen leave when block ck_null 1 |
| 336 |
break break ck_null 0 |
| 337 |
continue continue ck_null 0 |
| 338 |
|
| 339 |
# I/O. |
| 340 |
|
| 341 |
open open ck_open ismt@ F S? L |
| 342 |
close close ck_fun is% F? |
| 343 |
pipe_op pipe ck_fun is@ F F |
| 344 |
|
| 345 |
fileno fileno ck_fun ist% F |
| 346 |
umask umask ck_fun ist% S? |
| 347 |
binmode binmode ck_fun s@ F S? |
| 348 |
|
| 349 |
tie tie ck_fun idms@ R S L |
| 350 |
untie untie ck_fun is% R |
| 351 |
tied tied ck_fun ds% R |
| 352 |
dbmopen dbmopen ck_fun is@ H S S |
| 353 |
dbmclose dbmclose ck_fun is% H |
| 354 |
|
| 355 |
sselect select system call ck_select t@ S S S S |
| 356 |
select select ck_select st@ F? |
| 357 |
|
| 358 |
getc getc ck_eof st% F? |
| 359 |
read read ck_fun imst@ F R S S? |
| 360 |
enterwrite write ck_fun is% F? |
| 361 |
leavewrite write exit ck_null 1 |
| 362 |
|
| 363 |
prtf printf ck_listiob ims@ F? L |
| 364 |
print print ck_listiob ims@ F? L |
| 365 |
say say ck_listiob ims@ F? L |
| 366 |
|
| 367 |
sysopen sysopen ck_fun s@ F S S S? |
| 368 |
sysseek sysseek ck_fun s@ F S S |
| 369 |
sysread sysread ck_fun imst@ F R S S? |
| 370 |
syswrite syswrite ck_fun imst@ F S S? S? |
| 371 |
|
| 372 |
eof eof ck_eof is% F? |
| 373 |
tell tell ck_tell st% F? |
| 374 |
seek seek ck_tell s@ F S S |
| 375 |
# truncate really behaves as if it had both "S S" and "F S" |
| 376 |
truncate truncate ck_trunc is@ S S |
| 377 |
|
| 378 |
fcntl fcntl ck_fun st@ F S S |
| 379 |
ioctl ioctl ck_fun st@ F S S |
| 380 |
flock flock ck_fun isT@ F S |
| 381 |
|
| 382 |
# Sockets. OP_IS_SOCKET wants them consecutive (so moved 1st 2) |
| 383 |
|
| 384 |
send send ck_fun imst@ Fs S S S? |
| 385 |
recv recv ck_fun imst@ Fs R S S |
| 386 |
|
| 387 |
socket socket ck_fun is@ Fs S S S |
| 388 |
sockpair socketpair ck_fun is@ Fs Fs S S S |
| 389 |
|
| 390 |
bind bind ck_fun is@ Fs S |
| 391 |
connect connect ck_fun is@ Fs S |
| 392 |
listen listen ck_fun is@ Fs S |
| 393 |
accept accept ck_fun ist@ Fs Fs |
| 394 |
shutdown shutdown ck_fun ist@ Fs S |
| 395 |
|
| 396 |
gsockopt getsockopt ck_fun is@ Fs S S |
| 397 |
ssockopt setsockopt ck_fun is@ Fs S S S |
| 398 |
|
| 399 |
getsockname getsockname ck_fun is% Fs |
| 400 |
getpeername getpeername ck_fun is% Fs |
| 401 |
|
| 402 |
# Stat calls. OP_IS_FILETEST wants them consecutive. |
| 403 |
# Also needs to match OP_IS_STAT() in op.h |
| 404 |
|
| 405 |
lstat lstat ck_ftst u- F? |
| 406 |
stat stat ck_ftst u- F? |
| 407 |
ftrread -R ck_ftst isu- F-+ |
| 408 |
ftrwrite -W ck_ftst isu- F-+ |
| 409 |
ftrexec -X ck_ftst isu- F-+ |
| 410 |
fteread -r ck_ftst isu- F-+ |
| 411 |
ftewrite -w ck_ftst isu- F-+ |
| 412 |
fteexec -x ck_ftst isu- F-+ |
| 413 |
ftis -e ck_ftst isu- F- |
| 414 |
ftsize -s ck_ftst istu- F- |
| 415 |
ftmtime -M ck_ftst stu- F- |
| 416 |
ftatime -A ck_ftst stu- F- |
| 417 |
ftctime -C ck_ftst stu- F- |
| 418 |
ftrowned -O ck_ftst isu- F- |
| 419 |
fteowned -o ck_ftst isu- F- |
| 420 |
ftzero -z ck_ftst isu- F- |
| 421 |
ftsock -S ck_ftst isu- F- |
| 422 |
ftchr -c ck_ftst isu- F- |
| 423 |
ftblk -b ck_ftst isu- F- |
| 424 |
ftfile -f ck_ftst isu- F- |
| 425 |
ftdir -d ck_ftst isu- F- |
| 426 |
ftpipe -p ck_ftst isu- F- |
| 427 |
ftsuid -u ck_ftst isu- F- |
| 428 |
ftsgid -g ck_ftst isu- F- |
| 429 |
ftsvtx -k ck_ftst isu- F- |
| 430 |
ftlink -l ck_ftst isu- F- |
| 431 |
fttty -t ck_ftst is- F- |
| 432 |
fttext -T ck_ftst isu- F- |
| 433 |
ftbinary -B ck_ftst isu- F- |
| 434 |
|
| 435 |
# File calls. |
| 436 |
|
| 437 |
# chdir really behaves as if it had both "S?" and "F?" |
| 438 |
chdir chdir ck_trunc isT% S? |
| 439 |
chown chown ck_fun imsT@ L |
| 440 |
chroot chroot ck_fun isTu% S? |
| 441 |
unlink unlink ck_fun imsTu@ L |
| 442 |
chmod chmod ck_fun imsT@ L |
| 443 |
utime utime ck_fun imsT@ L |
| 444 |
rename rename ck_fun isT@ S S |
| 445 |
link link ck_fun isT@ S S |
| 446 |
symlink symlink ck_fun isT@ S S |
| 447 |
readlink readlink ck_fun stu% S? |
| 448 |
mkdir mkdir ck_fun isTu@ S? S? |
| 449 |
rmdir rmdir ck_fun isTu% S? |
| 450 |
|
| 451 |
# Directory calls. |
| 452 |
|
| 453 |
open_dir opendir ck_fun is@ F S |
| 454 |
readdir readdir ck_fun % DF |
| 455 |
telldir telldir ck_fun st% DF |
| 456 |
seekdir seekdir ck_fun s@ DF S |
| 457 |
rewinddir rewinddir ck_fun s% DF |
| 458 |
closedir closedir ck_fun is% DF |
| 459 |
|
| 460 |
# Process control. |
| 461 |
|
| 462 |
fork fork ck_null ist0 |
| 463 |
wait wait ck_null isT0 |
| 464 |
waitpid waitpid ck_fun isT@ S S |
| 465 |
system system ck_exec imsT@ S? L |
| 466 |
exec exec ck_exec imsT@ S? L |
| 467 |
kill kill ck_fun imsT@ L |
| 468 |
getppid getppid ck_null isT0 |
| 469 |
getpgrp getpgrp ck_fun isT% S? |
| 470 |
setpgrp setpgrp ck_fun isT@ S? S? |
| 471 |
getpriority getpriority ck_fun isT@ S S |
| 472 |
setpriority setpriority ck_fun isT@ S S S |
| 473 |
|
| 474 |
# Time calls. |
| 475 |
|
| 476 |
time time ck_null isT0 |
| 477 |
tms times ck_null 0 |
| 478 |
localtime localtime ck_fun t% S? |
| 479 |
gmtime gmtime ck_fun t% S? |
| 480 |
alarm alarm ck_fun istu% S? |
| 481 |
sleep sleep ck_fun isT% S? |
| 482 |
|
| 483 |
# Shared memory. |
| 484 |
|
| 485 |
shmget shmget ck_fun imst@ S S S |
| 486 |
shmctl shmctl ck_fun imst@ S S S |
| 487 |
shmread shmread ck_fun imst@ S S S S |
| 488 |
shmwrite shmwrite ck_fun imst@ S S S S |
| 489 |
|
| 490 |
# Message passing. |
| 491 |
|
| 492 |
msgget msgget ck_fun imst@ S S |
| 493 |
msgctl msgctl ck_fun imst@ S S S |
| 494 |
msgsnd msgsnd ck_fun imst@ S S S |
| 495 |
msgrcv msgrcv ck_fun imst@ S S S S S |
| 496 |
|
| 497 |
# Semaphores. |
| 498 |
|
| 499 |
semop semop ck_fun imst@ S S |
| 500 |
semget semget ck_fun imst@ S S S |
| 501 |
semctl semctl ck_fun imst@ S S S S |
| 502 |
|
| 503 |
# Eval. |
| 504 |
|
| 505 |
require require ck_require dsu% S? |
| 506 |
dofile do "file" ck_fun d1 S |
| 507 |
hintseval eval hints ck_svconst s$ |
| 508 |
entereval eval "string" ck_eval du% S? |
| 509 |
leaveeval eval "string" exit ck_null 1 S |
| 510 |
entertry eval {block} ck_eval d| |
| 511 |
leavetry eval {block} exit ck_null @ |
| 512 |
|
| 513 |
# Get system info. |
| 514 |
|
| 515 |
ghbyname gethostbyname ck_fun % S |
| 516 |
ghbyaddr gethostbyaddr ck_fun @ S S |
| 517 |
ghostent gethostent ck_null 0 |
| 518 |
gnbyname getnetbyname ck_fun % S |
| 519 |
gnbyaddr getnetbyaddr ck_fun @ S S |
| 520 |
gnetent getnetent ck_null 0 |
| 521 |
gpbyname getprotobyname ck_fun % S |
| 522 |
gpbynumber getprotobynumber ck_fun @ S |
| 523 |
gprotoent getprotoent ck_null 0 |
| 524 |
gsbyname getservbyname ck_fun @ S S |
| 525 |
gsbyport getservbyport ck_fun @ S S |
| 526 |
gservent getservent ck_null 0 |
| 527 |
shostent sethostent ck_fun is% S |
| 528 |
snetent setnetent ck_fun is% S |
| 529 |
sprotoent setprotoent ck_fun is% S |
| 530 |
sservent setservent ck_fun is% S |
| 531 |
ehostent endhostent ck_null is0 |
| 532 |
enetent endnetent ck_null is0 |
| 533 |
eprotoent endprotoent ck_null is0 |
| 534 |
eservent endservent ck_null is0 |
| 535 |
gpwnam getpwnam ck_fun % S |
| 536 |
gpwuid getpwuid ck_fun % S |
| 537 |
gpwent getpwent ck_null 0 |
| 538 |
spwent setpwent ck_null is0 |
| 539 |
epwent endpwent ck_null is0 |
| 540 |
ggrnam getgrnam ck_fun % S |
| 541 |
ggrgid getgrgid ck_fun % S |
| 542 |
ggrent getgrent ck_null 0 |
| 543 |
sgrent setgrent ck_null is0 |
| 544 |
egrent endgrent ck_null is0 |
| 545 |
getlogin getlogin ck_null st0 |
| 546 |
|
| 547 |
# Miscellaneous. |
| 548 |
|
| 549 |
syscall syscall ck_fun imst@ S L |
| 550 |
|
| 551 |
# For multi-threading |
| 552 |
lock lock ck_rfun s% R |
| 553 |
|
| 554 |
# For state support |
| 555 |
|
| 556 |
once once ck_null | |
| 557 |
|
| 558 |
custom unknown custom operator ck_null 0 |
| 559 |
|
| 560 |
# For CORE:: subs |
| 561 |
coreargs CORE:: subroutine ck_null $ |
| 562 |
avhvswitch Array/hash switch ck_null t1 |
| 563 |
|
| 564 |
runcv __SUB__ ck_null s0 |
| 565 |
|
| 566 |
# fc and \F |
| 567 |
fc fc ck_fun fstu% S? |
| 568 |
|
| 569 |
padcv private subroutine ck_null d0 |
| 570 |
introcv private subroutine ck_null d0 |
| 571 |
clonecv private subroutine ck_null d0 |
| 572 |
padrange list of private variables ck_null d0 |
| 573 |
refassign lvalue ref assignment ck_refassign ds2 |
| 574 |
lvref lvalue ref assignment ck_null d% |
| 575 |
lvrefslice lvalue ref assignment ck_null d@ |
| 576 |
lvavref lvalue array reference ck_null d% |
| 577 |
anonconst anonymous constant ck_null ds1 |
| 578 |
|
| 579 |
isa derived class test ck_isa s2 |
| 580 |
|
| 581 |
cmpchain_and comparison chaining ck_null | |
| 582 |
cmpchain_dup comparand shuffling ck_null 1 |
| 583 |
|
| 584 |
entertrycatch try {block} ck_trycatch | |
| 585 |
leavetrycatch try {block} exit ck_null @ |
| 586 |
poptry pop try ck_null @ |
| 587 |
catch catch {} block ck_null | |
| 588 |
pushdefer push defer {} block ck_null | |
| 589 |
|
| 590 |
is_bool boolean type test ck_null fs1 |
| 591 |
is_weak weakref type test ck_null fs1 |
| 592 |
weaken reference weaken ck_null 1 |
| 593 |
unweaken reference unweaken ck_null 1 |
| 594 |
blessed blessed ck_null fs1 |
| 595 |
refaddr refaddr ck_null fsT1 |
| 596 |
reftype reftype ck_null fsT1 |
| 597 |
ceil ceil ck_null fsT1 |
| 598 |
floor floor ck_null fsT1 |
| 599 |
is_tainted is_tainted ck_null fs1 |
| 600 |
|
| 601 |
# exists-or; not currently exposed as a Perl-callable op |
| 602 |
helemexistsor hash element exists or ck_helemexistsor | S S |
| 603 |
|
| 604 |
methstart method start ck_null + |
| 605 |
initfield initialise field ck_null + |
| 606 |
|
| 607 |
classname class name ck_classname 0t |