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";
11 open(ON, ">$opname_new") || die "Can't create $opname_new: $!\n";
21 ($key, $desc, $check, $flags, $args) = split(/\t+/, $_, 5);
23 warn qq[Description "$desc" duplicates $seen{$desc}\n] if $seen{$desc};
24 die qq[Opcode "$key" duplicates $seen{$key}\n] if $seen{$key};
25 $seen{$desc} = qq[description of opcode "$key"];
26 $seen{$key} = qq[opcode "$key"];
30 $check{$key} = $check;
32 $flags{$key} = $flags;
43 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999,
44 * 2000, 2001, 2002, 2003, 2004, 2005 by Larry Wall and others
46 * You may distribute under the terms of either the GNU General Public
47 * License or the Artistic License, as specified in the README file.
49 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
50 * This file is built by opcode.pl from its data. Any changes made here
54 #ifndef PERL_GLOBAL_STRUCT_INIT
56 #define Perl_pp_i_preinc Perl_pp_preinc
57 #define Perl_pp_i_predec Perl_pp_predec
58 #define Perl_pp_i_postinc Perl_pp_postinc
59 #define Perl_pp_i_postdec Perl_pp_postdec
67 * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, by Larry Wall and others
69 * You may distribute under the terms of either the GNU General Public
70 * License or the Artistic License, as specified in the README file.
73 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
74 * This file is built by opcode.pl from its data. Any changes made here
82 print ON "\t", &tab(3,"OP_\U$_,"), "/* ", $i++, " */\n";
84 print ON "\t", &tab(3,"OP_max"), "\n";
85 print ON "} opcode;\n";
86 print ON "\n#define MAXO ", scalar @ops, "\n";
87 print ON "#define OP_phoney_INPUT_ONLY -1\n";
88 print ON "#define OP_phoney_OUTPUT_ONLY -2\n\n";
90 # Emit op names and descriptions.
95 #define OP_NAME(o) ((o)->op_type == OP_CUSTOM ? custom_op_name(o) : \\
96 PL_op_name[(o)->op_type])
97 #define OP_DESC(o) ((o)->op_type == OP_CUSTOM ? custom_op_desc(o) : \\
98 PL_op_desc[(o)->op_type])
101 EXTCONST char* const PL_op_name[];
103 EXTCONST char* const PL_op_name[] = {
118 EXTCONST char* const PL_op_desc[];
120 EXTCONST char* const PL_op_desc[] = {
124 my($safe_desc) = $desc{$_};
126 # Have to escape double quotes and escape characters.
127 $safe_desc =~ s/(^|[^\\])([\\"])/$1\\$2/g;
129 print qq(\t"$safe_desc",\n);
138 #endif /* !PERL_GLOBAL_STRUCT_INIT */
142 # Emit function declarations.
144 #for (sort keys %ckname) {
145 # print "OP *\t", &tab(3,$_),"(pTHX_ OP* o);\n";
151 # print "OP *\t", &tab(3, "pp_$_"), "(pTHX);\n";
154 # Emit ppcode switch array.
160 #ifdef PERL_GLOBAL_STRUCT_INIT
161 static const Perl_ppaddr_t Gppaddr[]
163 # ifndef PERL_GLOBAL_STRUCT
164 EXT Perl_ppaddr_t PL_ppaddr[] /* or perlvars.h */
166 #endif /* PERL_GLOBAL_STRUCT */
167 #if (defined(DOINIT) && !defined(PERL_GLOBAL_STRUCT)) || defined(PERL_GLOBAL_STRUCT_INIT)
172 print "\tMEMBER_TO_FPTR(Perl_pp_$_),\n" unless $_ eq "custom";
182 # Emit check routines.
185 #ifdef PERL_GLOBAL_STRUCT_INIT
186 static const Perl_check_t Gcheck[]
188 # ifndef PERL_GLOBAL_STRUCT
189 EXT Perl_check_t PL_check[] /* or perlvars.h */
192 #if (defined(DOINIT) && !defined(PERL_GLOBAL_STRUCT)) || defined(PERL_GLOBAL_STRUCT_INIT)
197 print "\t", &tab(3, "MEMBER_TO_FPTR(Perl_$check{$_}),"), "\t/* $_ */\n";
207 # Emit allowed argument types.
210 #ifndef PERL_GLOBAL_STRUCT_INIT
213 EXT const U32 PL_opargs[];
215 EXT const U32 PL_opargs[] = {
225 R, 7, # scalar reference
235 '$', 6, # svop_or_padop
237 '"', 8, # pvop_or_svop
240 '%', 11, # baseop_or_unop
241 '-', 12, # filestatop
251 $argsum |= 1 if $flags =~ /m/; # needs stack mark
252 $argsum |= 2 if $flags =~ /f/; # fold constants
253 $argsum |= 4 if $flags =~ /s/; # always produces scalar
254 $argsum |= 8 if $flags =~ /t/; # needs target scalar
255 $argsum |= (8|256) if $flags =~ /T/; # ... which may be lexical
256 $argsum |= 16 if $flags =~ /i/; # always produces integer
257 $argsum |= 32 if $flags =~ /I/; # has corresponding int op
258 $argsum |= 64 if $flags =~ /d/; # danger, unknown side effects
259 $argsum |= 128 if $flags =~ /u/; # defaults to $_
260 $flags =~ /([\W\d_])/ or die qq[Opcode "$_" has no class indicator];
261 $argsum |= $opclass{$1} << 9;
262 $mul = 0x2000; # 2 ^ OASHIFT
263 for $arg (split(' ',$args{$_})) {
265 $OP_IS_SOCKET{$_} = 1 if $arg =~ s/s//;
266 $OP_IS_FILETEST{$_} = 1 if $arg =~ s/-//;
268 $argnum = ($arg =~ s/\?//) ? 8 : 0;
269 die "op = $_, arg = $arg\n" unless length($arg) == 1;
270 $argnum += $argnum{$arg};
271 warn "# Conflicting bit 32 for '$_'.\n"
272 if $argnum & 8 and $mul == 0x10000000;
273 $argsum += $argnum * $mul;
276 $argsum = sprintf("0x%08x", $argsum);
277 print "\t", &tab(3, "$argsum,"), "/* $_ */\n";
286 #endif /* !PERL_GLOBAL_STRUCT_INIT */
289 if (keys %OP_IS_SOCKET) {
290 print ON "\n#define OP_IS_SOCKET(op) \\\n\t(";
291 print ON join(" || \\\n\t ",
292 map { "(op) == OP_" . uc() } sort keys %OP_IS_SOCKET);
296 if (keys %OP_IS_FILETEST) {
297 print ON "\n#define OP_IS_FILETEST(op) \\\n\t(";
298 print ON join(" || \\\n\t ",
299 map { "(op) == OP_" . uc() } sort keys %OP_IS_FILETEST);
303 close OC or die "Error closing opcode.h: $!";
304 close ON or die "Error closing opnames.h: $!";
306 foreach ('opcode.h', 'opnames.h') {
307 safer_rename_silent $_, "$_-old";
309 safer_rename $opcode_new, 'opcode.h';
310 safer_rename $opname_new, 'opnames.h';
312 $pp_proto_new = 'pp_proto.h-new';
313 $pp_sym_new = 'pp.sym-new';
315 open PP, ">$pp_proto_new" or die "Error creating $pp_proto_new: $!";
317 open PPSYM, ">$pp_sym_new" or die "Error creating $pp_sym_new: $!";
321 /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
322 This file is built by opcode.pl from its data. Any changes made here
330 # !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
331 # This file is built by opcode.pl from its data. Any changes made here
338 for (sort keys %ckname) {
339 print PP "PERL_CKDEF(Perl_$_)\n";
340 print PPSYM "Perl_$_\n";
341 #OP *\t", &tab(3,$_),"(OP* o);\n";
347 next if /^i_(pre|post)(inc|dec)$/;
349 print PP "PERL_PPDEF(Perl_pp_$_)\n";
350 print PPSYM "Perl_pp_$_\n";
353 close PP or die "Error closing pp_proto.h: $!";
354 close PPSYM or die "Error closing pp.sym: $!";
356 foreach ('pp_proto.h', 'pp.sym') {
357 safer_rename_silent $_, "$_-old";
359 safer_rename $pp_proto_new, 'pp_proto.h';
360 safer_rename $pp_sym_new, 'pp.sym';
363 foreach ('opcode.h', 'opnames.h', 'pp_proto.h', 'pp.sym') {
364 1 while unlink "$_-old";
368 ###########################################################################
371 $t .= "\t" x ($l - (length($t) + 1) / 8);
374 ###########################################################################
376 # Some comments about 'T' opcode classifier:
378 # Safe to set if the ppcode uses:
379 # tryAMAGICbin, tryAMAGICun, SETn, SETi, SETu, PUSHn, PUSHTARG, SETTARG,
380 # SETs(TARG), XPUSHn, XPUSHu,
382 # Unsafe to set if the ppcode uses dTARG or [X]RETPUSH[YES|NO|UNDEF]
384 # lt and friends do SETs (including ncmp, but not scmp)
386 # Additional mode of failure: the opcode can modify TARG before it "used"
387 # all the arguments (or may call an external function which does the same).
388 # If the target coincides with one of the arguments ==> kaboom.
390 # pp.c pos substr each not OK (RETPUSHUNDEF)
391 # substr vec also not OK due to LV to target (are they???)
392 # ref not OK (RETPUSHNO)
393 # trans not OK (dTARG; TARG = sv_newmortal();)
394 # ucfirst etc not OK: TMP arg processed inplace
395 # quotemeta not OK (unsafe when TARG == arg)
396 # each repeat not OK too due to list context
397 # pack split - unknown whether they are safe
398 # sprintf: is calling do_sprintf(TARG,...) which can act on TARG
399 # before other args are processed.
401 # Suspicious wrt "additional mode of failure" (and only it):
402 # schop, chop, postinc/dec, bit_and etc, negate, complement.
404 # Also suspicious: 4-arg substr, sprintf, uc/lc (POK_only), reverse, pack.
406 # substr/vec: doing TAINT_off()???
409 # readline - unknown whether it is safe
410 # match subst not OK (dTARG)
411 # grepwhile not OK (not always setting)
412 # join not OK (unsafe when TARG == arg)
414 # Suspicious wrt "additional mode of failure": concat (dealt with
415 # in ck_sassign()), join (same).
418 # mapwhile flip caller not OK (not always setting)
421 # backtick glob warn die not OK (not always setting)
422 # warn not OK (RETPUSHYES)
423 # open fileno getc sysread syswrite ioctl accept shutdown
424 # ftsize(etc) readlink telldir fork alarm getlogin not OK (RETPUSHUNDEF)
425 # umask select not OK (XPUSHs(&PL_sv_undef);)
426 # fileno getc sysread syswrite tell not OK (meth("FILENO" "GETC"))
427 # sselect shm* sem* msg* syscall - unknown whether they are safe
428 # gmtime not OK (list context)
430 # Suspicious wrt "additional mode of failure": warn, die, select.
434 # New ops always go at the end, just before 'custom'
436 # A recapitulation of the format of this file:
437 # The file consists of five columns: the name of the op, an English
438 # description, the name of the "check" routine used to optimize this
439 # operation, some flags, and a description of the operands.
441 # The flags consist of options followed by a mandatory op class signifier
444 # baseop - 0 unop - 1 binop - 2
445 # logop - | listop - @ pmop - /
446 # padop/svop - $ padop - # (unused) loop - {
447 # baseop/unop - % loopexop - } filestatop - -
448 # pvop/svop - " cop - ;
451 # needs stack mark - m
452 # needs constant folding - f
453 # produces a scalar - s
454 # produces an integer - i
456 # target can be in a pad - T
457 # has a corresponding integer version - I
458 # has side effects - d
459 # uses $_ if no argument given - u
461 # Values for the operands are:
462 # scalar - S list - L array - A
463 # hash - H sub (CV) - C file - F
464 # socket - Fs filetest - F- reference - R
465 # "?" denotes an optional operand.
469 null null operation ck_null 0
471 scalar scalar ck_fun s% S
475 pushmark pushmark ck_null s0
476 wantarray wantarray ck_null is0
478 const constant item ck_svconst s$
480 gvsv scalar variable ck_null ds$
481 gv glob value ck_null ds$
482 gelem glob elem ck_null d2 S S
483 padsv private variable ck_null ds0
484 padav private array ck_null d0
485 padhv private hash ck_null d0
486 padany private value ck_null d0
488 pushre push regexp ck_null d/
490 # References and stuff.
492 rv2gv ref-to-glob cast ck_rvconst ds1
493 rv2sv scalar dereference ck_rvconst ds1
494 av2arylen array length ck_null is1
495 rv2cv subroutine dereference ck_rvconst d1
496 anoncode anonymous subroutine ck_anoncode $
497 prototype subroutine prototype ck_null s% S
498 refgen reference constructor ck_spair m1 L
499 srefgen single ref constructor ck_null fs1 S
500 ref reference-type operator ck_fun stu% S?
501 bless bless ck_fun s@ S S?
505 backtick quoted execution (``, qx) ck_open t%
506 # glob defaults its first arg to $_
507 glob glob ck_glob t@ S?
508 readline <HANDLE> ck_null t% F?
509 rcatline append I/O operator ck_null t$
511 # Bindable operators.
513 regcmaybe regexp internal guard ck_fun s1 S
514 regcreset regexp internal reset ck_fun s1 S
515 regcomp regexp compilation ck_null s| S
516 match pattern match (m//) ck_match d/
517 qr pattern quote (qr//) ck_match s/
518 subst substitution (s///) ck_match dis/ S
519 substcont substitution iterator ck_null dis|
520 trans transliteration (tr///) ck_match is" S
523 # sassign is special-cased for op class
525 sassign scalar assignment ck_sassign s0
526 aassign list assignment ck_null t2 L L
528 chop chop ck_spair mts% L
529 schop scalar chop ck_null stu% S?
530 chomp chomp ck_spair mTs% L
531 schomp scalar chomp ck_null sTu% S?
532 defined defined operator ck_defined isu% S?
533 undef undef operator ck_lfun s% S?
534 study study ck_fun su% S?
535 pos match position ck_lfun stu% S?
537 preinc preincrement (++) ck_lfun dIs1 S
538 i_preinc integer preincrement (++) ck_lfun dis1 S
539 predec predecrement (--) ck_lfun dIs1 S
540 i_predec integer predecrement (--) ck_lfun dis1 S
541 postinc postincrement (++) ck_lfun dIst1 S
542 i_postinc integer postincrement (++) ck_lfun disT1 S
543 postdec postdecrement (--) ck_lfun dIst1 S
544 i_postdec integer postdecrement (--) ck_lfun disT1 S
546 # Ordinary operators.
548 pow exponentiation (**) ck_null fsT2 S S
550 multiply multiplication (*) ck_null IfsT2 S S
551 i_multiply integer multiplication (*) ck_null ifsT2 S S
552 divide division (/) ck_null IfsT2 S S
553 i_divide integer division (/) ck_null ifsT2 S S
554 modulo modulus (%) ck_null IifsT2 S S
555 i_modulo integer modulus (%) ck_null ifsT2 S S
556 repeat repeat (x) ck_repeat mt2 L S
558 add addition (+) ck_null IfsT2 S S
559 i_add integer addition (+) ck_null ifsT2 S S
560 subtract subtraction (-) ck_null IfsT2 S S
561 i_subtract integer subtraction (-) ck_null ifsT2 S S
562 concat concatenation (.) or string ck_concat fsT2 S S
563 stringify string ck_fun fsT@ S
565 left_shift left bitshift (<<) ck_bitop fsT2 S S
566 right_shift right bitshift (>>) ck_bitop fsT2 S S
568 lt numeric lt (<) ck_null Iifs2 S S
569 i_lt integer lt (<) ck_null ifs2 S S
570 gt numeric gt (>) ck_null Iifs2 S S
571 i_gt integer gt (>) ck_null ifs2 S S
572 le numeric le (<=) ck_null Iifs2 S S
573 i_le integer le (<=) ck_null ifs2 S S
574 ge numeric ge (>=) ck_null Iifs2 S S
575 i_ge integer ge (>=) ck_null ifs2 S S
576 eq numeric eq (==) ck_null Iifs2 S S
577 i_eq integer eq (==) ck_null ifs2 S S
578 ne numeric ne (!=) ck_null Iifs2 S S
579 i_ne integer ne (!=) ck_null ifs2 S S
580 ncmp numeric comparison (<=>) ck_null Iifst2 S S
581 i_ncmp integer comparison (<=>) ck_null ifst2 S S
583 slt string lt ck_null ifs2 S S
584 sgt string gt ck_null ifs2 S S
585 sle string le ck_null ifs2 S S
586 sge string ge ck_null ifs2 S S
587 seq string eq ck_null ifs2 S S
588 sne string ne ck_null ifs2 S S
589 scmp string comparison (cmp) ck_null ifst2 S S
591 bit_and bitwise and (&) ck_bitop fst2 S S
592 bit_xor bitwise xor (^) ck_bitop fst2 S S
593 bit_or bitwise or (|) ck_bitop fst2 S S
595 negate negation (-) ck_null Ifst1 S
596 i_negate integer negation (-) ck_null ifsT1 S
597 not not ck_null ifs1 S
598 complement 1's complement (~) ck_bitop fst1 S
600 # High falutin' math.
602 atan2 atan2 ck_fun fsT@ S S
603 sin sin ck_fun fsTu% S?
604 cos cos ck_fun fsTu% S?
605 rand rand ck_fun sT% S?
606 srand srand ck_fun s% S?
607 exp exp ck_fun fsTu% S?
608 log log ck_fun fsTu% S?
609 sqrt sqrt ck_fun fsTu% S?
613 int int ck_fun fsTu% S?
614 hex hex ck_fun fsTu% S?
615 oct oct ck_fun fsTu% S?
616 abs abs ck_fun fsTu% S?
620 length length ck_lengthconst isTu% S?
621 substr substr ck_substr st@ S S S? S?
622 vec vec ck_fun ist@ S S S
624 index index ck_index isT@ S S S?
625 rindex rindex ck_index isT@ S S S?
627 sprintf sprintf ck_fun mfst@ S L
628 formline formline ck_fun ms@ S L
629 ord ord ck_fun ifsTu% S?
630 chr chr ck_fun fsTu% S?
631 crypt crypt ck_fun fsT@ S S
632 ucfirst ucfirst ck_fun fstu% S?
633 lcfirst lcfirst ck_fun fstu% S?
634 uc uc ck_fun fstu% S?
635 lc lc ck_fun fstu% S?
636 quotemeta quotemeta ck_fun fstu% S?
640 rv2av array dereference ck_rvconst dt1
641 aelemfast constant array element ck_null s$ A S
642 aelem array element ck_null s2 A S
643 aslice array slice ck_null m@ A L
648 values values ck_fun t% H
649 keys keys ck_fun t% H
650 delete delete ck_delete % S
651 exists exists ck_exists is% S
652 rv2hv hash dereference ck_rvconst dt1
653 helem hash element ck_null s2@ H S
654 hslice hash slice ck_null m@ H L
656 # Explosives and implosives.
658 unpack unpack ck_unpack @ S S?
659 pack pack ck_fun mst@ S L
660 split split ck_split t@ S S S
661 join join or string ck_join mst@ S L
665 list list ck_null m@ L
666 lslice list slice ck_null 2 H L L
667 anonlist anonymous list ([]) ck_fun ms@ L
668 anonhash anonymous hash ({}) ck_fun ms@ L
670 splice splice ck_fun m@ A S? S? L
671 push push ck_fun imsT@ A L
672 pop pop ck_shift s% A?
673 shift shift ck_shift s% A?
674 unshift unshift ck_fun imsT@ A L
675 sort sort ck_sort m@ C? L
676 reverse reverse ck_fun mt@ L
678 grepstart grep ck_grep dm@ C L
679 grepwhile grep iterator ck_null dt|
681 mapstart map ck_grep dm@ C L
682 mapwhile map iterator ck_null dt|
686 range flipflop ck_null | S S
687 flip range (or flip) ck_null 1 S S
688 flop range (or flop) ck_null 1
692 and logical and (&&) ck_null |
693 or logical or (||) ck_null |
694 xor logical xor ck_null fs2 S S
695 cond_expr conditional expression ck_null d|
696 andassign logical and assignment (&&=) ck_null s|
697 orassign logical or assignment (||=) ck_null s|
699 method method lookup ck_method d1
700 entersub subroutine entry ck_subr dmt1 L
701 leavesub subroutine exit ck_null 1
702 leavesublv lvalue subroutine return ck_null 1
703 caller caller ck_fun t% S?
704 warn warn ck_fun imst@ L
705 die die ck_die dimst@ L
706 reset symbol reset ck_fun is% S?
708 lineseq line sequence ck_null @
709 nextstate next statement ck_null s;
710 dbstate debug next statement ck_null s;
711 unstack iteration finalizer ck_null s0
712 enter block entry ck_null 0
713 leave block exit ck_null @
714 scope block ck_null @
715 enteriter foreach loop entry ck_null d{
716 iter foreach loop iterator ck_null 0
717 enterloop loop entry ck_null d{
718 leaveloop loop exit ck_null 2
719 return return ck_return dm@ L
720 last last ck_null ds}
721 next next ck_null ds}
722 redo redo ck_null ds}
723 dump dump ck_null ds}
724 goto goto ck_null ds}
725 exit exit ck_exit ds% S?
728 #nswitch numeric switch ck_null d
729 #cswitch character switch ck_null d
733 open open ck_open ismt@ F S? L
734 close close ck_fun is% F?
735 pipe_op pipe ck_fun is@ F F
737 fileno fileno ck_fun ist% F
738 umask umask ck_fun ist% S?
739 binmode binmode ck_fun s@ F S?
741 tie tie ck_fun idms@ R S L
742 untie untie ck_fun is% R
743 tied tied ck_fun s% R
744 dbmopen dbmopen ck_fun is@ H S S
745 dbmclose dbmclose ck_fun is% H
747 sselect select system call ck_select t@ S S S S
748 select select ck_select st@ F?
750 getc getc ck_eof st% F?
751 read read ck_fun imst@ F R S S?
752 enterwrite write ck_fun dis% F?
753 leavewrite write exit ck_null 1
755 prtf printf ck_listiob ims@ F? L
756 print print ck_listiob ims@ F? L
758 sysopen sysopen ck_fun s@ F S S S?
759 sysseek sysseek ck_fun s@ F S S
760 sysread sysread ck_fun imst@ F R S S?
761 syswrite syswrite ck_fun imst@ F S S? S?
763 send send ck_fun imst@ Fs S S S?
764 recv recv ck_fun imst@ Fs R S S
766 eof eof ck_eof is% F?
767 tell tell ck_fun st% F?
768 seek seek ck_fun s@ F S S
769 # truncate really behaves as if it had both "S S" and "F S"
770 truncate truncate ck_trunc is@ S S
772 fcntl fcntl ck_fun st@ F S S
773 ioctl ioctl ck_fun st@ F S S
774 flock flock ck_fun isT@ F S
778 socket socket ck_fun is@ Fs S S S
779 sockpair socketpair ck_fun is@ Fs Fs S S S
781 bind bind ck_fun is@ Fs S
782 connect connect ck_fun is@ Fs S
783 listen listen ck_fun is@ Fs S
784 accept accept ck_fun ist@ Fs Fs
785 shutdown shutdown ck_fun ist@ Fs S
787 gsockopt getsockopt ck_fun is@ Fs S S
788 ssockopt setsockopt ck_fun is@ Fs S S S
790 getsockname getsockname ck_fun is% Fs
791 getpeername getpeername ck_fun is% Fs
795 lstat lstat ck_ftst u- F
796 stat stat ck_ftst u- F
797 ftrread -R ck_ftst isu- F-
798 ftrwrite -W ck_ftst isu- F-
799 ftrexec -X ck_ftst isu- F-
800 fteread -r ck_ftst isu- F-
801 ftewrite -w ck_ftst isu- F-
802 fteexec -x ck_ftst isu- F-
803 ftis -e ck_ftst isu- F-
804 fteowned -O ck_ftst isu- F-
805 ftrowned -o ck_ftst isu- F-
806 ftzero -z ck_ftst isu- F-
807 ftsize -s ck_ftst istu- F-
808 ftmtime -M ck_ftst stu- F-
809 ftatime -A ck_ftst stu- F-
810 ftctime -C ck_ftst stu- F-
811 ftsock -S ck_ftst isu- F-
812 ftchr -c ck_ftst isu- F-
813 ftblk -b ck_ftst isu- F-
814 ftfile -f ck_ftst isu- F-
815 ftdir -d ck_ftst isu- F-
816 ftpipe -p ck_ftst isu- F-
817 ftlink -l ck_ftst isu- F-
818 ftsuid -u ck_ftst isu- F-
819 ftsgid -g ck_ftst isu- F-
820 ftsvtx -k ck_ftst isu- F-
821 fttty -t ck_ftst is- F-
822 fttext -T ck_ftst isu- F-
823 ftbinary -B ck_ftst isu- F-
827 chdir chdir ck_fun isT% S?
828 chown chown ck_fun imsT@ L
829 chroot chroot ck_fun isTu% S?
830 unlink unlink ck_fun imsTu@ L
831 chmod chmod ck_fun imsT@ L
832 utime utime ck_fun imsT@ L
833 rename rename ck_fun isT@ S S
834 link link ck_fun isT@ S S
835 symlink symlink ck_fun isT@ S S
836 readlink readlink ck_fun stu% S?
837 mkdir mkdir ck_fun isTu@ S? S?
838 rmdir rmdir ck_fun isTu% S?
842 open_dir opendir ck_fun is@ F S
843 readdir readdir ck_fun % F
844 telldir telldir ck_fun st% F
845 seekdir seekdir ck_fun s@ F S
846 rewinddir rewinddir ck_fun s% F
847 closedir closedir ck_fun is% F
851 fork fork ck_null ist0
852 wait wait ck_null isT0
853 waitpid waitpid ck_fun isT@ S S
854 system system ck_exec imsT@ S? L
855 exec exec ck_exec dimsT@ S? L
856 kill kill ck_fun dimsT@ L
857 getppid getppid ck_null isT0
858 getpgrp getpgrp ck_fun isT% S?
859 setpgrp setpgrp ck_fun isT@ S? S?
860 getpriority getpriority ck_fun isT@ S S
861 setpriority setpriority ck_fun isT@ S S S
865 # NOTE: MacOS patches the 'i' of time() away later when the interpreter
866 # is created because in MacOS time() is already returning times > 2**31-1,
867 # that is, non-integers.
869 time time ck_null isT0
871 localtime localtime ck_fun t% S?
872 gmtime gmtime ck_fun t% S?
873 alarm alarm ck_fun istu% S?
874 sleep sleep ck_fun isT% S?
878 shmget shmget ck_fun imst@ S S S
879 shmctl shmctl ck_fun imst@ S S S
880 shmread shmread ck_fun imst@ S S S S
881 shmwrite shmwrite ck_fun imst@ S S S S
885 msgget msgget ck_fun imst@ S S
886 msgctl msgctl ck_fun imst@ S S S
887 msgsnd msgsnd ck_fun imst@ S S S
888 msgrcv msgrcv ck_fun imst@ S S S S S
892 semget semget ck_fun imst@ S S S
893 semctl semctl ck_fun imst@ S S S S
894 semop semop ck_fun imst@ S S
898 require require ck_require du% S?
899 dofile do "file" ck_fun d1 S
900 entereval eval "string" ck_eval d% S
901 leaveeval eval "string" exit ck_null 1 S
902 #evalonce eval constant string ck_null d1 S
903 entertry eval {block} ck_null |
904 leavetry eval {block} exit ck_null @
908 ghbyname gethostbyname ck_fun % S
909 ghbyaddr gethostbyaddr ck_fun @ S S
910 ghostent gethostent ck_null 0
911 gnbyname getnetbyname ck_fun % S
912 gnbyaddr getnetbyaddr ck_fun @ S S
913 gnetent getnetent ck_null 0
914 gpbyname getprotobyname ck_fun % S
915 gpbynumber getprotobynumber ck_fun @ S
916 gprotoent getprotoent ck_null 0
917 gsbyname getservbyname ck_fun @ S S
918 gsbyport getservbyport ck_fun @ S S
919 gservent getservent ck_null 0
920 shostent sethostent ck_fun is% S
921 snetent setnetent ck_fun is% S
922 sprotoent setprotoent ck_fun is% S
923 sservent setservent ck_fun is% S
924 ehostent endhostent ck_null is0
925 enetent endnetent ck_null is0
926 eprotoent endprotoent ck_null is0
927 eservent endservent ck_null is0
928 gpwnam getpwnam ck_fun % S
929 gpwuid getpwuid ck_fun % S
930 gpwent getpwent ck_null 0
931 spwent setpwent ck_null is0
932 epwent endpwent ck_null is0
933 ggrnam getgrnam ck_fun % S
934 ggrgid getgrgid ck_fun % S
935 ggrent getgrent ck_null 0
936 sgrent setgrent ck_null is0
937 egrent endgrent ck_null is0
938 getlogin getlogin ck_null st0
942 syscall syscall ck_fun imst@ S L
944 # For multi-threading
945 lock lock ck_rfun s% R
946 threadsv per-thread value ck_null ds0
949 setstate set statement info ck_null s;
950 method_named method with known name ck_null d$
952 dor defined or (//) ck_null |
953 dorassign defined or assignment (//=) ck_null s|
955 # Add new ops before this, the custom operator.
957 custom unknown custom operator ck_null 0