3 # Get function prototypes
4 require 'regen_lib.pl';
7 $opcode_new = 'opcode.h-new';
8 $opname_new = 'opnames.h-new';
9 open(OC, ">$opcode_new") || die "Can't create $opcode_new: $!\n";
10 open(ON, ">$opname_new") || die "Can't create $opname_new: $!\n";
19 ($key, $desc, $check, $flags, $args) = split(/\t+/, $_, 5);
21 warn qq[Description "$desc" duplicates $seen{$desc}\n] if $seen{$desc};
22 die qq[Opcode "$key" duplicates $seen{$key}\n] if $seen{$key};
23 $seen{$desc} = qq[description of opcode "$key"];
24 $seen{$key} = qq[opcode "$key"];
28 $check{$key} = $check;
30 $flags{$key} = $flags;
41 * Copyright (c) 1997-2003, Larry Wall
43 * You may distribute under the terms of either the GNU General Public
44 * License or the Artistic License, as specified in the README file.
46 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
47 * This file is built by opcode.pl from its data. Any changes made here
51 #define Perl_pp_i_preinc Perl_pp_preinc
52 #define Perl_pp_i_predec Perl_pp_predec
53 #define Perl_pp_i_postinc Perl_pp_postinc
54 #define Perl_pp_i_postdec Perl_pp_postdec
62 * Copyright (c) 1997-2003, Larry Wall
64 * You may distribute under the terms of either the GNU General Public
65 * License or the Artistic License, as specified in the README file.
68 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
69 * This file is built by opcode.pl from its data. Any changes made here
77 print ON "\t", &tab(3,"OP_\U$_,"), "/* ", $i++, " */\n";
79 print ON "\t", &tab(3,"OP_max"), "\n";
80 print ON "} opcode;\n";
81 print ON "\n#define MAXO ", scalar @ops, "\n";
82 print ON "#define OP_phoney_INPUT_ONLY -1\n";
83 print ON "#define OP_phoney_OUTPUT_ONLY -2\n\n";
85 # Emit op names and descriptions.
92 #define OP_NAME(o) (o->op_type == OP_CUSTOM ? custom_op_name(o) : \\
93 PL_op_name[o->op_type])
94 #define OP_DESC(o) (o->op_type == OP_CUSTOM ? custom_op_desc(o) : \\
95 PL_op_desc[o->op_type])
98 EXT char *PL_op_name[];
100 EXT char *PL_op_name[] = {
115 EXT char *PL_op_desc[];
117 EXT char *PL_op_desc[] = {
121 my($safe_desc) = $desc{$_};
123 # Have to escape double quotes and escape characters.
124 $safe_desc =~ s/(^|[^\\])([\\"])/$1\\$2/g;
126 print qq(\t"$safe_desc",\n);
137 # Emit function declarations.
139 #for (sort keys %ckname) {
140 # print "OP *\t", &tab(3,$_),"(pTHX_ OP* o);\n";
146 # print "OP *\t", &tab(3, "pp_$_"), "(pTHX);\n";
149 # Emit ppcode switch array.
156 EXT OP * (CPERLscope(*PL_ppaddr)[])(pTHX);
158 EXT OP * (CPERLscope(*PL_ppaddr)[])(pTHX) = {
162 print "\tMEMBER_TO_FPTR(Perl_pp_$_),\n" unless $_ eq "custom";
171 # Emit check routines.
175 EXT OP * (CPERLscope(*PL_check)[]) (pTHX_ OP *op);
177 EXT OP * (CPERLscope(*PL_check)[]) (pTHX_ OP *op) = {
181 print "\t", &tab(3, "MEMBER_TO_FPTR(Perl_$check{$_}),"), "\t/* $_ */\n";
190 # Emit allowed argument types.
196 EXT U32 PL_opargs[] = {
206 R, 7, # scalar reference
216 '$', 6, # svop_or_padop
218 '"', 8, # pvop_or_svop
221 '%', 11, # baseop_or_unop
222 '-', 12, # filestatop
232 $argsum |= 1 if $flags =~ /m/; # needs stack mark
233 $argsum |= 2 if $flags =~ /f/; # fold constants
234 $argsum |= 4 if $flags =~ /s/; # always produces scalar
235 $argsum |= 8 if $flags =~ /t/; # needs target scalar
236 $argsum |= (8|256) if $flags =~ /T/; # ... which may be lexical
237 $argsum |= 16 if $flags =~ /i/; # always produces integer
238 $argsum |= 32 if $flags =~ /I/; # has corresponding int op
239 $argsum |= 64 if $flags =~ /d/; # danger, unknown side effects
240 $argsum |= 128 if $flags =~ /u/; # defaults to $_
241 $flags =~ /([\W\d_])/ or die qq[Opcode "$_" has no class indicator];
242 $argsum |= $opclass{$1} << 9;
243 $mul = 0x2000; # 2 ^ OASHIFT
244 for $arg (split(' ',$args{$_})) {
246 $OP_IS_SOCKET{$_} = 1 if $arg =~ s/s//;
247 $OP_IS_FILETEST{$_} = 1 if $arg =~ s/-//;
249 $argnum = ($arg =~ s/\?//) ? 8 : 0;
250 die "op = $_, arg = $arg\n" unless length($arg) == 1;
251 $argnum += $argnum{$arg};
252 warn "# Conflicting bit 32 for '$_'.\n"
253 if $argnum & 8 and $mul == 0x10000000;
254 $argsum += $argnum * $mul;
257 $argsum = sprintf("0x%08x", $argsum);
258 print "\t", &tab(3, "$argsum,"), "/* $_ */\n";
268 if (keys %OP_IS_SOCKET) {
269 print ON "\n#define OP_IS_SOCKET(op) \\\n\t(";
270 print ON join(" || \\\n\t ",
271 map { "(op) == OP_" . uc() } sort keys %OP_IS_SOCKET);
275 if (keys %OP_IS_FILETEST) {
276 print ON "\n#define OP_IS_FILETEST(op) \\\n\t(";
277 print ON join(" || \\\n\t ",
278 map { "(op) == OP_" . uc() } sort keys %OP_IS_FILETEST);
282 close OC or die "Error closing opcode.h: $!";
283 close ON or die "Error closing opnames.h: $!";
285 foreach ('opcode.h', 'opnames.h') {
286 safer_rename_silent $_, "$_-old";
288 safer_rename $opcode_new, 'opcode.h';
289 safer_rename $opname_new, 'opnames.h';
291 $pp_proto_new = 'pp_proto.h-new';
292 $pp_sym_new = 'pp.sym-new';
294 open PP, ">$pp_proto_new" or die "Error creating $pp_proto_new: $!";
295 open PPSYM, ">$pp_sym_new" or die "Error creating $pp_sym_new: $!";
298 /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
299 This file is built by opcode.pl from its data. Any changes made here
307 # !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
308 # This file is built by opcode.pl from its data. Any changes made here
315 for (sort keys %ckname) {
316 print PP "PERL_CKDEF(Perl_$_)\n";
317 print PPSYM "Perl_$_\n";
318 #OP *\t", &tab(3,$_),"(OP* o);\n";
324 next if /^i_(pre|post)(inc|dec)$/;
326 print PP "PERL_PPDEF(Perl_pp_$_)\n";
327 print PPSYM "Perl_pp_$_\n";
330 close PP or die "Error closing pp_proto.h: $!";
331 close PPSYM or die "Error closing pp.sym: $!";
333 foreach ('pp_proto.h', 'pp.sym') {
334 safer_rename_silent $_, "$_-old";
336 safer_rename $pp_proto_new, 'pp_proto.h';
337 safer_rename $pp_sym_new, 'pp.sym';
340 foreach ('opcode.h', 'opnames.h', 'pp_proto.h', 'pp.sym') {
341 1 while unlink "$_-old";
345 ###########################################################################
348 $t .= "\t" x ($l - (length($t) + 1) / 8);
351 ###########################################################################
353 # Some comments about 'T' opcode classifier:
355 # Safe to set if the ppcode uses:
356 # tryAMAGICbin, tryAMAGICun, SETn, SETi, SETu, PUSHn, PUSHTARG, SETTARG,
357 # SETs(TARG), XPUSHn, XPUSHu,
359 # Unsafe to set if the ppcode uses dTARG or [X]RETPUSH[YES|NO|UNDEF]
361 # lt and friends do SETs (including ncmp, but not scmp)
363 # Additional mode of failure: the opcode can modify TARG before it "used"
364 # all the arguments (or may call an external function which does the same).
365 # If the target coincides with one of the arguments ==> kaboom.
367 # pp.c pos substr each not OK (RETPUSHUNDEF)
368 # substr vec also not OK due to LV to target (are they???)
369 # ref not OK (RETPUSHNO)
370 # trans not OK (dTARG; TARG = sv_newmortal();)
371 # ucfirst etc not OK: TMP arg processed inplace
372 # quotemeta not OK (unsafe when TARG == arg)
373 # each repeat not OK too due to list context
374 # pack split - unknown whether they are safe
375 # sprintf: is calling do_sprintf(TARG,...) which can act on TARG
376 # before other args are processed.
378 # Suspicious wrt "additional mode of failure" (and only it):
379 # schop, chop, postinc/dec, bit_and etc, negate, complement.
381 # Also suspicious: 4-arg substr, sprintf, uc/lc (POK_only), reverse, pack.
383 # substr/vec: doing TAINT_off()???
386 # readline - unknown whether it is safe
387 # match subst not OK (dTARG)
388 # grepwhile not OK (not always setting)
389 # join not OK (unsafe when TARG == arg)
391 # Suspicious wrt "additional mode of failure": concat (dealt with
392 # in ck_sassign()), join (same).
395 # mapwhile flip caller not OK (not always setting)
398 # backtick glob warn die not OK (not always setting)
399 # warn not OK (RETPUSHYES)
400 # open fileno getc sysread syswrite ioctl accept shutdown
401 # ftsize(etc) readlink telldir fork alarm getlogin not OK (RETPUSHUNDEF)
402 # umask select not OK (XPUSHs(&PL_sv_undef);)
403 # fileno getc sysread syswrite tell not OK (meth("FILENO" "GETC"))
404 # sselect shm* sem* msg* syscall - unknown whether they are safe
405 # gmtime not OK (list context)
407 # Suspicious wrt "additional mode of failure": warn, die, select.
411 # New ops always go at the end, just before 'custom'
413 # A recapitulation of the format of this file:
414 # The file consists of five columns: the name of the op, an English
415 # description, the name of the "check" routine used to optimize this
416 # operation, some flags, and a description of the operands.
418 # The flags consist of options followed by a mandatory op class signifier
421 # baseop - 0 unop - 1 binop - 2
422 # logop - | listop - @ pmop - /
423 # padop/svop - $ padop - # (unused) loop - {
424 # baseop/unop - % loopexop - } filestatop - -
425 # pvop/svop - " cop - ;
428 # needs stack mark - m
429 # needs constant folding - f
430 # produces a scalar - s
431 # produces an integer - i
433 # target can be in a pad - T
434 # has a corresponding integer version - I
435 # has side effects - d
436 # uses $_ if no argument given - u
438 # Values for the operands are:
439 # scalar - S list - L array - A
440 # hash - H sub (CV) - C file - F
441 # socket - Fs filetest - F- reference - R
442 # "?" denotes an optional operand.
446 null null operation ck_null 0
448 scalar scalar ck_fun s% S
452 pushmark pushmark ck_null s0
453 wantarray wantarray ck_null is0
455 const constant item ck_svconst s$
457 gvsv scalar variable ck_null ds$
458 gv glob value ck_null ds$
459 gelem glob elem ck_null d2 S S
460 padsv private variable ck_null ds0
461 padav private array ck_null d0
462 padhv private hash ck_null d0
463 padany private value ck_null d0
465 pushre push regexp ck_null d/
467 # References and stuff.
469 rv2gv ref-to-glob cast ck_rvconst ds1
470 rv2sv scalar dereference ck_rvconst ds1
471 av2arylen array length ck_null is1
472 rv2cv subroutine dereference ck_rvconst d1
473 anoncode anonymous subroutine ck_anoncode $
474 prototype subroutine prototype ck_null s% S
475 refgen reference constructor ck_spair m1 L
476 srefgen single ref constructor ck_null fs1 S
477 ref reference-type operator ck_fun stu% S?
478 bless bless ck_fun s@ S S?
482 backtick quoted execution (``, qx) ck_open t%
483 # glob defaults its first arg to $_
484 glob glob ck_glob t@ S?
485 readline <HANDLE> ck_null t% F?
486 rcatline append I/O operator ck_null t$
488 # Bindable operators.
490 regcmaybe regexp internal guard ck_fun s1 S
491 regcreset regexp internal reset ck_fun s1 S
492 regcomp regexp compilation ck_null s| S
493 match pattern match (m//) ck_match d/
494 qr pattern quote (qr//) ck_match s/
495 subst substitution (s///) ck_null dis/ S
496 substcont substitution iterator ck_null dis|
497 trans transliteration (tr///) ck_null is" S
500 # sassign is special-cased for op class
502 sassign scalar assignment ck_sassign s0
503 aassign list assignment ck_null t2 L L
505 chop chop ck_spair mts% L
506 schop scalar chop ck_null stu% S?
507 chomp chomp ck_spair mTs% L
508 schomp scalar chomp ck_null sTu% S?
509 defined defined operator ck_defined isu% S?
510 undef undef operator ck_lfun s% S?
511 study study ck_fun su% S?
512 pos match position ck_lfun stu% S?
514 preinc preincrement (++) ck_lfun dIs1 S
515 i_preinc integer preincrement (++) ck_lfun dis1 S
516 predec predecrement (--) ck_lfun dIs1 S
517 i_predec integer predecrement (--) ck_lfun dis1 S
518 postinc postincrement (++) ck_lfun dIst1 S
519 i_postinc integer postincrement (++) ck_lfun disT1 S
520 postdec postdecrement (--) ck_lfun dIst1 S
521 i_postdec integer postdecrement (--) ck_lfun disT1 S
523 # Ordinary operators.
525 pow exponentiation (**) ck_null fsT2 S S
527 multiply multiplication (*) ck_null IfsT2 S S
528 i_multiply integer multiplication (*) ck_null ifsT2 S S
529 divide division (/) ck_null IfsT2 S S
530 i_divide integer division (/) ck_null ifsT2 S S
531 modulo modulus (%) ck_null IifsT2 S S
532 i_modulo integer modulus (%) ck_null ifsT2 S S
533 repeat repeat (x) ck_repeat mt2 L S
535 add addition (+) ck_null IfsT2 S S
536 i_add integer addition (+) ck_null ifsT2 S S
537 subtract subtraction (-) ck_null IfsT2 S S
538 i_subtract integer subtraction (-) ck_null ifsT2 S S
539 concat concatenation (.) or string ck_concat fsT2 S S
540 stringify string ck_fun fsT@ S
542 left_shift left bitshift (<<) ck_bitop fsT2 S S
543 right_shift right bitshift (>>) ck_bitop fsT2 S S
545 lt numeric lt (<) ck_null Iifs2 S S
546 i_lt integer lt (<) ck_null ifs2 S S
547 gt numeric gt (>) ck_null Iifs2 S S
548 i_gt integer gt (>) ck_null ifs2 S S
549 le numeric le (<=) ck_null Iifs2 S S
550 i_le integer le (<=) ck_null ifs2 S S
551 ge numeric ge (>=) ck_null Iifs2 S S
552 i_ge integer ge (>=) ck_null ifs2 S S
553 eq numeric eq (==) ck_null Iifs2 S S
554 i_eq integer eq (==) ck_null ifs2 S S
555 ne numeric ne (!=) ck_null Iifs2 S S
556 i_ne integer ne (!=) ck_null ifs2 S S
557 ncmp numeric comparison (<=>) ck_null Iifst2 S S
558 i_ncmp integer comparison (<=>) ck_null ifst2 S S
560 slt string lt ck_null ifs2 S S
561 sgt string gt ck_null ifs2 S S
562 sle string le ck_null ifs2 S S
563 sge string ge ck_null ifs2 S S
564 seq string eq ck_null ifs2 S S
565 sne string ne ck_null ifs2 S S
566 scmp string comparison (cmp) ck_null ifst2 S S
568 bit_and bitwise and (&) ck_bitop fst2 S S
569 bit_xor bitwise xor (^) ck_bitop fst2 S S
570 bit_or bitwise or (|) ck_bitop fst2 S S
572 negate negation (-) ck_null Ifst1 S
573 i_negate integer negation (-) ck_null ifsT1 S
574 not not ck_null ifs1 S
575 complement 1's complement (~) ck_bitop fst1 S
577 # High falutin' math.
579 atan2 atan2 ck_fun fsT@ S S
580 sin sin ck_fun fsTu% S?
581 cos cos ck_fun fsTu% S?
582 rand rand ck_fun sT% S?
583 srand srand ck_fun s% S?
584 exp exp ck_fun fsTu% S?
585 log log ck_fun fsTu% S?
586 sqrt sqrt ck_fun fsTu% S?
590 int int ck_fun fsTu% S?
591 hex hex ck_fun fsTu% S?
592 oct oct ck_fun fsTu% S?
593 abs abs ck_fun fsTu% S?
597 length length ck_lengthconst isTu% S?
598 substr substr ck_substr st@ S S S? S?
599 vec vec ck_fun ist@ S S S
601 index index ck_index isT@ S S S?
602 rindex rindex ck_index isT@ S S S?
604 sprintf sprintf ck_fun mfst@ S L
605 formline formline ck_fun ms@ S L
606 ord ord ck_fun ifsTu% S?
607 chr chr ck_fun fsTu% S?
608 crypt crypt ck_fun fsT@ S S
609 ucfirst ucfirst ck_fun fstu% S?
610 lcfirst lcfirst ck_fun fstu% S?
611 uc uc ck_fun fstu% S?
612 lc lc ck_fun fstu% S?
613 quotemeta quotemeta ck_fun fstu% S?
617 rv2av array dereference ck_rvconst dt1
618 aelemfast constant array element ck_null s$ A S
619 aelem array element ck_null s2 A S
620 aslice array slice ck_null m@ A L
625 values values ck_fun t% H
626 keys keys ck_fun t% H
627 delete delete ck_delete % S
628 exists exists ck_exists is% S
629 rv2hv hash dereference ck_rvconst dt1
630 helem hash element ck_null s2@ H S
631 hslice hash slice ck_null m@ H L
633 # Explosives and implosives.
635 unpack unpack ck_fun @ S S?
636 pack pack ck_fun mst@ S L
637 split split ck_split t@ S S S
638 join join or string ck_join mst@ S L
642 list list ck_null m@ L
643 lslice list slice ck_null 2 H L L
644 anonlist anonymous list ([]) ck_fun ms@ L
645 anonhash anonymous hash ({}) ck_fun ms@ L
647 splice splice ck_fun m@ A S? S? L
648 push push ck_fun imsT@ A L
649 pop pop ck_shift s% A
650 shift shift ck_shift s% A
651 unshift unshift ck_fun imsT@ A L
652 sort sort ck_sort m@ C? L
653 reverse reverse ck_fun mt@ L
655 grepstart grep ck_grep dm@ C L
656 grepwhile grep iterator ck_null dt|
658 mapstart map ck_grep dm@ C L
659 mapwhile map iterator ck_null dt|
663 range flipflop ck_null | S S
664 flip range (or flip) ck_null 1 S S
665 flop range (or flop) ck_null 1
669 and logical and (&&) ck_null |
670 or logical or (||) ck_null |
671 xor logical xor ck_null fs2 S S
672 cond_expr conditional expression ck_null d|
673 andassign logical and assignment (&&=) ck_null s|
674 orassign logical or assignment (||=) ck_null s|
676 method method lookup ck_method d1
677 entersub subroutine entry ck_subr dmt1 L
678 leavesub subroutine exit ck_null 1
679 leavesublv lvalue subroutine return ck_null 1
680 caller caller ck_fun t% S?
681 warn warn ck_fun imst@ L
682 die die ck_die dimst@ L
683 reset symbol reset ck_fun is% S?
685 lineseq line sequence ck_null @
686 nextstate next statement ck_null s;
687 dbstate debug next statement ck_null s;
688 unstack iteration finalizer ck_null s0
689 enter block entry ck_null 0
690 leave block exit ck_null @
691 scope block ck_null @
692 enteriter foreach loop entry ck_null d{
693 iter foreach loop iterator ck_null 0
694 enterloop loop entry ck_null d{
695 leaveloop loop exit ck_null 2
696 return return ck_return dm@ L
697 last last ck_null ds}
698 next next ck_null ds}
699 redo redo ck_null ds}
700 dump dump ck_null ds}
701 goto goto ck_null ds}
702 exit exit ck_exit ds% S?
705 #nswitch numeric switch ck_null d
706 #cswitch character switch ck_null d
710 open open ck_open ismt@ F S? L
711 close close ck_fun is% F?
712 pipe_op pipe ck_fun is@ F F
714 fileno fileno ck_fun ist% F
715 umask umask ck_fun ist% S?
716 binmode binmode ck_fun s@ F S?
718 tie tie ck_fun idms@ R S L
719 untie untie ck_fun is% R
720 tied tied ck_fun s% R
721 dbmopen dbmopen ck_fun is@ H S S
722 dbmclose dbmclose ck_fun is% H
724 sselect select system call ck_select t@ S S S S
725 select select ck_select st@ F?
727 getc getc ck_eof st% F?
728 read read ck_fun imst@ F R S S?
729 enterwrite write ck_fun dis% F?
730 leavewrite write exit ck_null 1
732 prtf printf ck_listiob ims@ F? L
733 print print ck_listiob ims@ F? L
735 sysopen sysopen ck_fun s@ F S S S?
736 sysseek sysseek ck_fun s@ F S S
737 sysread sysread ck_fun imst@ F R S S?
738 syswrite syswrite ck_fun imst@ F S S? S?
740 send send ck_fun imst@ Fs S S S?
741 recv recv ck_fun imst@ Fs R S S
743 eof eof ck_eof is% F?
744 tell tell ck_fun st% F?
745 seek seek ck_fun s@ F S S
746 # truncate really behaves as if it had both "S S" and "F S"
747 truncate truncate ck_trunc is@ S S
749 fcntl fcntl ck_fun st@ F S S
750 ioctl ioctl ck_fun st@ F S S
751 flock flock ck_fun isT@ F S
755 socket socket ck_fun is@ Fs S S S
756 sockpair socketpair ck_fun is@ Fs Fs S S S
758 bind bind ck_fun is@ Fs S
759 connect connect ck_fun is@ Fs S
760 listen listen ck_fun is@ Fs S
761 accept accept ck_fun ist@ Fs Fs
762 shutdown shutdown ck_fun ist@ Fs S
764 gsockopt getsockopt ck_fun is@ Fs S S
765 ssockopt setsockopt ck_fun is@ Fs S S S
767 getsockname getsockname ck_fun is% Fs
768 getpeername getpeername ck_fun is% Fs
772 lstat lstat ck_ftst u- F
773 stat stat ck_ftst u- F
774 ftrread -R ck_ftst isu- F-
775 ftrwrite -W ck_ftst isu- F-
776 ftrexec -X ck_ftst isu- F-
777 fteread -r ck_ftst isu- F-
778 ftewrite -w ck_ftst isu- F-
779 fteexec -x ck_ftst isu- F-
780 ftis -e ck_ftst isu- F-
781 fteowned -O ck_ftst isu- F-
782 ftrowned -o ck_ftst isu- F-
783 ftzero -z ck_ftst isu- F-
784 ftsize -s ck_ftst istu- F-
785 ftmtime -M ck_ftst stu- F-
786 ftatime -A ck_ftst stu- F-
787 ftctime -C ck_ftst stu- F-
788 ftsock -S ck_ftst isu- F-
789 ftchr -c ck_ftst isu- F-
790 ftblk -b ck_ftst isu- F-
791 ftfile -f ck_ftst isu- F-
792 ftdir -d ck_ftst isu- F-
793 ftpipe -p ck_ftst isu- F-
794 ftlink -l ck_ftst isu- F-
795 ftsuid -u ck_ftst isu- F-
796 ftsgid -g ck_ftst isu- F-
797 ftsvtx -k ck_ftst isu- F-
798 fttty -t ck_ftst is- F-
799 fttext -T ck_ftst isu- F-
800 ftbinary -B ck_ftst isu- F-
804 chdir chdir ck_fun isT% S?
805 chown chown ck_fun imsT@ L
806 chroot chroot ck_fun isTu% S?
807 unlink unlink ck_fun imsTu@ L
808 chmod chmod ck_fun imsT@ L
809 utime utime ck_fun imsT@ L
810 rename rename ck_fun isT@ S S
811 link link ck_fun isT@ S S
812 symlink symlink ck_fun isT@ S S
813 readlink readlink ck_fun stu% S?
814 mkdir mkdir ck_fun isT@ S S?
815 rmdir rmdir ck_fun isTu% S?
819 open_dir opendir ck_fun is@ F S
820 readdir readdir ck_fun % F
821 telldir telldir ck_fun st% F
822 seekdir seekdir ck_fun s@ F S
823 rewinddir rewinddir ck_fun s% F
824 closedir closedir ck_fun is% F
828 fork fork ck_null ist0
829 wait wait ck_null isT0
830 waitpid waitpid ck_fun isT@ S S
831 system system ck_exec imsT@ S? L
832 exec exec ck_exec dimsT@ S? L
833 kill kill ck_fun dimsT@ L
834 getppid getppid ck_null isT0
835 getpgrp getpgrp ck_fun isT% S?
836 setpgrp setpgrp ck_fun isT@ S? S?
837 getpriority getpriority ck_fun isT@ S S
838 setpriority setpriority ck_fun isT@ S S S
842 # NOTE: MacOS patches the 'i' of time() away later when the interpreter
843 # is created because in MacOS time() is already returning times > 2**31-1,
844 # that is, non-integers.
846 time time ck_null isT0
848 localtime localtime ck_fun t% S?
849 gmtime gmtime ck_fun t% S?
850 alarm alarm ck_fun istu% S?
851 sleep sleep ck_fun isT% S?
855 shmget shmget ck_fun imst@ S S S
856 shmctl shmctl ck_fun imst@ S S S
857 shmread shmread ck_fun imst@ S S S S
858 shmwrite shmwrite ck_fun imst@ S S S S
862 msgget msgget ck_fun imst@ S S
863 msgctl msgctl ck_fun imst@ S S S
864 msgsnd msgsnd ck_fun imst@ S S S
865 msgrcv msgrcv ck_fun imst@ S S S S S
869 semget semget ck_fun imst@ S S S
870 semctl semctl ck_fun imst@ S S S S
871 semop semop ck_fun imst@ S S
875 require require ck_require du% S?
876 dofile do "file" ck_fun d1 S
877 entereval eval "string" ck_eval d% S
878 leaveeval eval "string" exit ck_null 1 S
879 #evalonce eval constant string ck_null d1 S
880 entertry eval {block} ck_null |
881 leavetry eval {block} exit ck_null @
885 ghbyname gethostbyname ck_fun % S
886 ghbyaddr gethostbyaddr ck_fun @ S S
887 ghostent gethostent ck_null 0
888 gnbyname getnetbyname ck_fun % S
889 gnbyaddr getnetbyaddr ck_fun @ S S
890 gnetent getnetent ck_null 0
891 gpbyname getprotobyname ck_fun % S
892 gpbynumber getprotobynumber ck_fun @ S
893 gprotoent getprotoent ck_null 0
894 gsbyname getservbyname ck_fun @ S S
895 gsbyport getservbyport ck_fun @ S S
896 gservent getservent ck_null 0
897 shostent sethostent ck_fun is% S
898 snetent setnetent ck_fun is% S
899 sprotoent setprotoent ck_fun is% S
900 sservent setservent ck_fun is% S
901 ehostent endhostent ck_null is0
902 enetent endnetent ck_null is0
903 eprotoent endprotoent ck_null is0
904 eservent endservent ck_null is0
905 gpwnam getpwnam ck_fun % S
906 gpwuid getpwuid ck_fun % S
907 gpwent getpwent ck_null 0
908 spwent setpwent ck_null is0
909 epwent endpwent ck_null is0
910 ggrnam getgrnam ck_fun % S
911 ggrgid getgrgid ck_fun % S
912 ggrent getgrent ck_null 0
913 sgrent setgrent ck_null is0
914 egrent endgrent ck_null is0
915 getlogin getlogin ck_null st0
919 syscall syscall ck_fun imst@ S L
921 # For multi-threading
922 lock lock ck_rfun s% R
923 threadsv per-thread value ck_null ds0
926 setstate set statement info ck_null s;
927 method_named method with known name ck_null d$
929 dor defined or (//) ck_null |
930 dorassign defined or assignment (//=) ck_null s|
932 # Add new ops before this, the custom operator.
934 custom unknown custom operator ck_null 0