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