3 chmod 0666, "opcode.h", "opnames.h";
4 unlink "opcode.h", "opnames.h";
5 open(OC, ">opcode.h") || die "Can't create opcode.h: $!\n";
6 open(ON, ">opnames.h") || die "Can't create opnames.h: $!\n";
15 ($key, $desc, $check, $flags, $args) = split(/\t+/, $_, 5);
17 warn qq[Description "$desc" duplicates $seen{$desc}\n] if $seen{$desc};
18 die qq[Opcode "$key" duplicates $seen{$key}\n] if $seen{$key};
19 $seen{$desc} = qq[description of opcode "$key"];
20 $seen{$key} = qq[opcode "$key"];
24 $check{$key} = $check;
26 $flags{$key} = $flags;
34 /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
35 This file is built by opcode.pl from its data. Any changes made here
39 #define Perl_pp_i_preinc Perl_pp_preinc
40 #define Perl_pp_i_predec Perl_pp_predec
41 #define Perl_pp_i_postinc Perl_pp_postinc
42 #define Perl_pp_i_postdec Perl_pp_postdec
47 /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
48 This file is built by opcode.pl from its data. Any changes made here
56 print ON "\t", &tab(3,"OP_\U$_,"), "/* ", $i++, " */\n";
58 print ON "\t", &tab(3,"OP_max"), "\n";
59 print ON "} opcode;\n";
60 print ON "\n#define MAXO ", scalar @ops, "\n";
61 print ON "#define OP_phoney_INPUT_ONLY -1\n";
62 print ON "#define OP_phoney_OUTPUT_ONLY -2\n\n";
64 # Emit op names and descriptions.
71 EXT char *PL_op_name[];
73 EXT char *PL_op_name[] = {
88 EXT char *PL_op_desc[];
90 EXT char *PL_op_desc[] = {
94 my($safe_desc) = $desc{$_};
96 # Have to escape double quotes and escape characters.
97 $safe_desc =~ s/(^|[^\\])([\\"])/$1\\$2/g;
99 print qq(\t"$safe_desc",\n);
110 # Emit function declarations.
112 #for (sort keys %ckname) {
113 # print "OP *\t", &tab(3,$_),"(pTHX_ OP* o);\n";
119 # print "OP *\t", &tab(3, "pp_$_"), "(pTHX);\n";
122 # Emit ppcode switch array.
129 EXT OP * (CPERLscope(*PL_ppaddr)[])(pTHX);
131 EXT OP * (CPERLscope(*PL_ppaddr)[])(pTHX) = {
135 print "\tMEMBER_TO_FPTR(Perl_pp_$_),\n";
144 # Emit check routines.
148 EXT OP * (CPERLscope(*PL_check)[]) (pTHX_ OP *op);
150 EXT OP * (CPERLscope(*PL_check)[]) (pTHX_ OP *op) = {
154 print "\t", &tab(3, "MEMBER_TO_FPTR(Perl_$check{$_}),"), "\t/* $_ */\n";
163 # Emit allowed argument types.
169 EXT U32 PL_opargs[] = {
179 R, 7, # scalar reference
189 '$', 6, # svop_or_padop
191 '"', 8, # pvop_or_svop
194 '%', 11, # baseop_or_unop
195 '-', 12, # filestatop
205 $argsum |= 1 if $flags =~ /m/; # needs stack mark
206 $argsum |= 2 if $flags =~ /f/; # fold constants
207 $argsum |= 4 if $flags =~ /s/; # always produces scalar
208 $argsum |= 8 if $flags =~ /t/; # needs target scalar
209 $argsum |= (8|256) if $flags =~ /T/; # ... which may be lexical
210 $argsum |= 16 if $flags =~ /i/; # always produces integer
211 $argsum |= 32 if $flags =~ /I/; # has corresponding int op
212 $argsum |= 64 if $flags =~ /d/; # danger, unknown side effects
213 $argsum |= 128 if $flags =~ /u/; # defaults to $_
215 $flags =~ /([\W\d_])/ or die qq[Opcode "$_" has no class indicator];
216 $argsum |= $opclass{$1} << 9;
217 $mul = 0x2000; # 2 ^ OASHIFT
218 for $arg (split(' ',$args{$_})) {
220 $OP_IS_SOCKET{$_} = 1 if $arg =~ s/s//;
221 $OP_IS_FILETEST{$_} = 1 if $arg =~ s/-//;
223 $argnum = ($arg =~ s/\?//) ? 8 : 0;
224 die "op = $_, arg = $arg\n" unless length($arg) == 1;
225 $argnum += $argnum{$arg};
226 warn "# Conflicting bit 32 for '$_'.\n"
227 if $argnum & 8 and $mul == 0x10000000;
228 $argsum += $argnum * $mul;
231 $argsum = sprintf("0x%08x", $argsum);
232 print "\t", &tab(3, "$argsum,"), "/* $_ */\n";
242 if (keys %OP_IS_SOCKET) {
243 print ON "\n#define OP_IS_SOCKET(op) \\\n\t(";
244 print ON join(" || \\\n\t ",
245 map { "(op) == OP_" . uc() } sort keys %OP_IS_SOCKET);
249 if (keys %OP_IS_FILETEST) {
250 print ON "\n#define OP_IS_FILETEST(op) \\\n\t(";
251 print ON join(" || \\\n\t ",
252 map { "(op) == OP_" . uc() } sort keys %OP_IS_FILETEST);
256 close OC or die "Error closing opcode.h: $!";
257 close ON or die "Error closing opnames.h: $!";
261 open PP, '>pp_proto.h' or die "Error creating pp_proto.h: $!";
262 open PPSYM, '>pp.sym' or die "Error creating pp.sym: $!";
265 /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
266 This file is built by opcode.pl from its data. Any changes made here
274 # !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
275 # This file is built by opcode.pl from its data. Any changes made here
282 for (sort keys %ckname) {
283 print PP "PERL_CKDEF(Perl_$_)\n";
284 print PPSYM "Perl_$_\n";
285 #OP *\t", &tab(3,$_),"(OP* o);\n";
291 next if /^i_(pre|post)(inc|dec)$/;
292 print PP "PERL_PPDEF(Perl_pp_$_)\n";
293 print PPSYM "Perl_pp_$_\n";
296 close PP or die "Error closing pp_proto.h: $!";
297 close PPSYM or die "Error closing pp.sym: $!";
299 ###########################################################################
302 $t .= "\t" x ($l - (length($t) + 1) / 8);
305 ###########################################################################
307 # Some comments about 'T' opcode classifier:
309 # Safe to set if the ppcode uses:
310 # tryAMAGICbin, tryAMAGICun, SETn, SETi, SETu, PUSHn, PUSHTARG, SETTARG,
311 # SETs(TARG), XPUSHn, XPUSHu,
313 # Unsafe to set if the ppcode uses dTARG or [X]RETPUSH[YES|NO|UNDEF]
315 # lt and friends do SETs (including ncmp, but not scmp)
317 # Additional mode of failure: the opcode can modify TARG before it "used"
318 # all the arguments (or may call an external function which does the same).
319 # If the target coincides with one of the arguments ==> kaboom.
321 # pp.c pos substr each not OK (RETPUSHUNDEF)
322 # substr vec also not OK due to LV to target (are they???)
323 # ref not OK (RETPUSHNO)
324 # trans not OK (dTARG; TARG = sv_newmortal();)
325 # ucfirst etc not OK: TMP arg processed inplace
326 # quotemeta not OK (unsafe when TARG == arg)
327 # each repeat not OK too due to list context
328 # pack split - unknown whether they are safe
329 # sprintf: is calling do_sprintf(TARG,...) which can act on TARG
330 # before other args are processed.
332 # Suspicious wrt "additional mode of failure" (and only it):
333 # schop, chop, postinc/dec, bit_and etc, negate, complement.
335 # Also suspicious: 4-arg substr, sprintf, uc/lc (POK_only), reverse, pack.
337 # substr/vec: doing TAINT_off()???
340 # readline - unknown whether it is safe
341 # match subst not OK (dTARG)
342 # grepwhile not OK (not always setting)
343 # join not OK (unsafe when TARG == arg)
345 # Suspicious wrt "additional mode of failure": concat (dealt with
346 # in ck_sassign()), join (same).
349 # mapwhile flip caller not OK (not always setting)
352 # backtick glob warn die not OK (not always setting)
353 # warn not OK (RETPUSHYES)
354 # open fileno getc sysread syswrite ioctl accept shutdown
355 # ftsize(etc) readlink telldir fork alarm getlogin not OK (RETPUSHUNDEF)
356 # umask select not OK (XPUSHs(&PL_sv_undef);)
357 # fileno getc sysread syswrite tell not OK (meth("FILENO" "GETC"))
358 # sselect shm* sem* msg* syscall - unknown whether they are safe
359 # gmtime not OK (list context)
361 # Suspicious wrt "additional mode of failure": warn, die, select.
365 # New ops always go at the very end
367 # A recapitulation of the format of this file:
368 # The file consists of five columns: the name of the op, an English
369 # description, the name of the "check" routine used to optimize this
370 # operation, some flags, and a description of the operands.
372 # The flags consist of options followed by a mandatory op class signifier
375 # baseop - 0 unop - 1 binop - 2
376 # logop - | listop - @ pmop - /
377 # padop/svop - $ padop - # (unused) loop - {
378 # baseop/unop - % loopexop - } filestatop - -
382 # needs stack mark - m
383 # needs constant folding - f
384 # produces a scalar - s
385 # produces an integer - i
387 # target can be in a pad - T
388 # has a corresponding integer version - I
389 # has side effects - d
390 # uses $_ if no argument given - u
392 # Values for the operands are:
393 # scalar - S list - L array - A
394 # hash - H sub (CV) - C file - F
395 # socket - Fs filetest - F- reference - R
396 # "?" denotes an optional operand.
400 null null operation ck_null 0
402 scalar scalar ck_fun s% S
406 pushmark pushmark ck_null s0
407 wantarray wantarray ck_null is0
409 const constant item ck_svconst s$
411 gvsv scalar variable ck_null ds$
412 gv glob value ck_null ds$
413 gelem glob elem ck_null d2 S S
414 padsv private variable ck_null ds0
415 padav private array ck_null d0
416 padhv private hash ck_null d0
417 padany private value ck_null d0
419 pushre push regexp ck_null d/
421 # References and stuff.
423 rv2gv ref-to-glob cast ck_rvconst ds1
424 rv2sv scalar dereference ck_rvconst ds1
425 av2arylen array length ck_null is1
426 rv2cv subroutine dereference ck_rvconst d1
427 anoncode anonymous subroutine ck_anoncode $
428 prototype subroutine prototype ck_null s% S
429 refgen reference constructor ck_spair m1 L
430 srefgen single ref constructor ck_null fs1 S
431 ref reference-type operator ck_fun stu% S?
432 bless bless ck_fun s@ S S?
436 backtick quoted execution (``, qx) ck_open t%
437 # glob defaults its first arg to $_
438 glob glob ck_glob t@ S?
439 readline <HANDLE> ck_null t%
440 rcatline append I/O operator ck_null t%
442 # Bindable operators.
444 regcmaybe regexp internal guard ck_fun s1 S
445 regcreset regexp internal reset ck_fun s1 S
446 regcomp regexp compilation ck_null s| S
447 match pattern match (m//) ck_match d/
448 qr pattern quote (qr//) ck_match s/
449 subst substitution (s///) ck_null dis/ S
450 substcont substitution iterator ck_null dis|
451 trans transliteration (tr///) ck_null is" S
454 # sassign is special-cased for op class
456 sassign scalar assignment ck_sassign s0
457 aassign list assignment ck_null t2 L L
459 chop chop ck_spair mts% L
460 schop scalar chop ck_null stu% S?
461 chomp chomp ck_spair mTs% L
462 schomp scalar chomp ck_null sTu% S?
463 defined defined operator ck_defined isu% S?
464 undef undef operator ck_lfun s% S?
465 study study ck_fun su% S?
466 pos match position ck_lfun stu% S?
468 preinc preincrement (++) ck_lfun dIs1 S
469 i_preinc integer preincrement (++) ck_lfun dis1 S
470 predec predecrement (--) ck_lfun dIs1 S
471 i_predec integer predecrement (--) ck_lfun dis1 S
472 postinc postincrement (++) ck_lfun dIst1 S
473 i_postinc integer postincrement (++) ck_lfun disT1 S
474 postdec postdecrement (--) ck_lfun dIst1 S
475 i_postdec integer postdecrement (--) ck_lfun disT1 S
477 # Ordinary operators.
479 pow exponentiation (**) ck_null fsT2 S S
481 multiply multiplication (*) ck_null IfsT2 S S
482 i_multiply integer multiplication (*) ck_null ifsT2 S S
483 divide division (/) ck_null IfsT2 S S
484 i_divide integer division (/) ck_null ifsT2 S S
485 modulo modulus (%) ck_null IifsT2 S S
486 i_modulo integer modulus (%) ck_null ifsT2 S S
487 repeat repeat (x) ck_repeat mt2 L S
489 add addition (+) ck_null IfsT2 S S
490 i_add integer addition (+) ck_null ifsT2 S S
491 subtract subtraction (-) ck_null IfsT2 S S
492 i_subtract integer subtraction (-) ck_null ifsT2 S S
493 concat concatenation (.) or string ck_concat fsT2 S S
494 stringify string ck_fun fsT@ S
496 left_shift left bitshift (<<) ck_bitop fsT2 S S
497 right_shift right bitshift (>>) ck_bitop fsT2 S S
499 lt numeric lt (<) ck_null Iifs2 S S
500 i_lt integer lt (<) ck_null ifs2 S S
501 gt numeric gt (>) ck_null Iifs2 S S
502 i_gt integer gt (>) ck_null ifs2 S S
503 le numeric le (<=) ck_null Iifs2 S S
504 i_le integer le (<=) ck_null ifs2 S S
505 ge numeric ge (>=) ck_null Iifs2 S S
506 i_ge integer ge (>=) ck_null ifs2 S S
507 eq numeric eq (==) ck_null Iifs2 S S
508 i_eq integer eq (==) ck_null ifs2 S S
509 ne numeric ne (!=) ck_null Iifs2 S S
510 i_ne integer ne (!=) ck_null ifs2 S S
511 ncmp numeric comparison (<=>) ck_null Iifst2 S S
512 i_ncmp integer comparison (<=>) ck_null ifst2 S S
514 slt string lt ck_null ifs2 S S
515 sgt string gt ck_null ifs2 S S
516 sle string le ck_null ifs2 S S
517 sge string ge ck_null ifs2 S S
518 seq string eq ck_null ifs2 S S
519 sne string ne ck_null ifs2 S S
520 scmp string comparison (cmp) ck_null ifst2 S S
522 bit_and bitwise and (&) ck_bitop fst2 S S
523 bit_xor bitwise xor (^) ck_bitop fst2 S S
524 bit_or bitwise or (|) ck_bitop fst2 S S
526 negate negation (-) ck_null Ifst1 S
527 i_negate integer negation (-) ck_null ifsT1 S
528 not not ck_null ifs1 S
529 complement 1's complement (~) ck_bitop fst1 S
531 # High falutin' math.
533 atan2 atan2 ck_fun fsT@ S S
534 sin sin ck_fun fsTu% S?
535 cos cos ck_fun fsTu% S?
536 rand rand ck_fun sT% S?
537 srand srand ck_fun s% S?
538 exp exp ck_fun fsTu% S?
539 log log ck_fun fsTu% S?
540 sqrt sqrt ck_fun fsTu% S?
544 int int ck_fun fsTu% S?
545 hex hex ck_fun fsTu% S?
546 oct oct ck_fun fsTu% S?
547 abs abs ck_fun fsTu% S?
551 length length ck_lengthconst isTu% S?
552 substr substr ck_substr st@ S S S? S?
553 vec vec ck_fun ist@ S S S
555 index index ck_index isT@ S S S?
556 rindex rindex ck_index isT@ S S S?
558 sprintf sprintf ck_fun mfst@ S L
559 formline formline ck_fun ms@ S L
560 ord ord ck_fun ifsTu% S?
561 chr chr ck_fun fsTu% S?
562 crypt crypt ck_fun fsT@ S S
563 ucfirst ucfirst ck_fun fstu% S?
564 lcfirst lcfirst ck_fun fstu% S?
565 uc uc ck_fun fstu% S?
566 lc lc ck_fun fstu% S?
567 quotemeta quotemeta ck_fun fstu% S?
571 rv2av array dereference ck_rvconst dt1
572 aelemfast constant array element ck_null s$ A S
573 aelem array element ck_null s2 A S
574 aslice array slice ck_null m@ A L
579 values values ck_fun t% H
580 keys keys ck_fun t% H
581 delete delete ck_delete % S
582 exists exists ck_exists is% S
583 rv2hv hash dereference ck_rvconst dt1
584 helem hash element ck_null s2@ H S
585 hslice hash slice ck_null m@ H L
587 # Explosives and implosives.
589 unpack unpack ck_fun @ S S
590 pack pack ck_fun mst@ S L
591 split split ck_split t@ S S S
592 join join or string ck_join mst@ S L
596 list list ck_null m@ L
597 lslice list slice ck_null 2 H L L
598 anonlist anonymous list ([]) ck_fun ms@ L
599 anonhash anonymous hash ({}) ck_fun ms@ L
601 splice splice ck_fun m@ A S? S? L
602 push push ck_fun imsT@ A L
603 pop pop ck_shift s% A
604 shift shift ck_shift s% A
605 unshift unshift ck_fun imsT@ A L
606 sort sort ck_sort m@ C? L
607 reverse reverse ck_fun mt@ L
609 grepstart grep ck_grep dm@ C L
610 grepwhile grep iterator ck_null dt|
612 mapstart map ck_grep dm@ C L
613 mapwhile map iterator ck_null dt|
617 range flipflop ck_null | S S
618 flip range (or flip) ck_null 1 S S
619 flop range (or flop) ck_null 1
623 and logical and (&&) ck_null |
624 or logical or (||) ck_null |
625 xor logical xor ck_null fs2 S S
626 cond_expr conditional expression ck_null d|
627 andassign logical and assignment (&&=) ck_null s|
628 orassign logical or assignment (||=) ck_null s|
630 method method lookup ck_method d1
631 entersub subroutine entry ck_subr dmt1 L
632 leavesub subroutine exit ck_null 1
633 leavesublv lvalue subroutine return ck_null 1
634 caller caller ck_fun t% S?
635 warn warn ck_fun imst@ L
636 die die ck_fun dimst@ L
637 reset symbol reset ck_fun is% S?
639 lineseq line sequence ck_null @
640 nextstate next statement ck_null s;
641 dbstate debug next statement ck_null s;
642 unstack iteration finalizer ck_null s0
643 enter block entry ck_null 0
644 leave block exit ck_null @
645 scope block ck_null @
646 enteriter foreach loop entry ck_null d{
647 iter foreach loop iterator ck_null 0
648 enterloop loop entry ck_null d{
649 leaveloop loop exit ck_null 2
650 return return ck_return dm@ L
651 last last ck_null ds}
652 next next ck_null ds}
653 redo redo ck_null ds}
654 dump dump ck_null ds}
655 goto goto ck_null ds}
656 exit exit ck_exit ds% S?
659 #nswitch numeric switch ck_null d
660 #cswitch character switch ck_null d
664 open open ck_open ismt@ F S? L
665 close close ck_fun is% F?
666 pipe_op pipe ck_fun is@ F F
668 fileno fileno ck_fun ist% F
669 umask umask ck_fun ist% S?
670 binmode binmode ck_fun s@ F S?
672 tie tie ck_fun idms@ R S L
673 untie untie ck_fun is% R
674 tied tied ck_fun s% R
675 dbmopen dbmopen ck_fun is@ H S S
676 dbmclose dbmclose ck_fun is% H
678 sselect select system call ck_select t@ S S S S
679 select select ck_select st@ F?
681 getc getc ck_eof st% F?
682 read read ck_fun imst@ F R S S?
683 enterwrite write ck_fun dis% F?
684 leavewrite write exit ck_null 1
686 prtf printf ck_listiob ims@ F? L
687 print print ck_listiob ims@ F? L
689 sysopen sysopen ck_fun s@ F S S S?
690 sysseek sysseek ck_fun s@ F S S
691 sysread sysread ck_fun imst@ F R S S?
692 syswrite syswrite ck_fun imst@ F S S? S?
694 send send ck_fun imst@ Fs S S S?
695 recv recv ck_fun imst@ Fs R S S
697 eof eof ck_eof is% F?
698 tell tell ck_fun st% F?
699 seek seek ck_fun s@ F S S
700 # truncate really behaves as if it had both "S S" and "F S"
701 truncate truncate ck_trunc is@ S S
703 fcntl fcntl ck_fun st@ F S S
704 ioctl ioctl ck_fun st@ F S S
705 flock flock ck_fun isT@ F S
709 socket socket ck_fun is@ Fs S S S
710 sockpair socketpair ck_fun is@ Fs Fs S S S
712 bind bind ck_fun is@ Fs S
713 connect connect ck_fun is@ Fs S
714 listen listen ck_fun is@ Fs S
715 accept accept ck_fun ist@ Fs Fs
716 shutdown shutdown ck_fun ist@ Fs S
718 gsockopt getsockopt ck_fun is@ Fs S S
719 ssockopt setsockopt ck_fun is@ Fs S S S
721 getsockname getsockname ck_fun is% Fs
722 getpeername getpeername ck_fun is% Fs
726 lstat lstat ck_ftst u- F
727 stat stat ck_ftst u- F
728 ftrread -R ck_ftst isu- F-
729 ftrwrite -W ck_ftst isu- F-
730 ftrexec -X ck_ftst isu- F-
731 fteread -r ck_ftst isu- F-
732 ftewrite -w ck_ftst isu- F-
733 fteexec -x ck_ftst isu- F-
734 ftis -e ck_ftst isu- F-
735 fteowned -O ck_ftst isu- F-
736 ftrowned -o ck_ftst isu- F-
737 ftzero -z ck_ftst isu- F-
738 ftsize -s ck_ftst istu- F-
739 ftmtime -M ck_ftst stu- F-
740 ftatime -A ck_ftst stu- F-
741 ftctime -C ck_ftst stu- F-
742 ftsock -S ck_ftst isu- F-
743 ftchr -c ck_ftst isu- F-
744 ftblk -b ck_ftst isu- F-
745 ftfile -f ck_ftst isu- F-
746 ftdir -d ck_ftst isu- F-
747 ftpipe -p ck_ftst isu- F-
748 ftlink -l ck_ftst isu- F-
749 ftsuid -u ck_ftst isu- F-
750 ftsgid -g ck_ftst isu- F-
751 ftsvtx -k ck_ftst isu- F-
752 fttty -t ck_ftst is- F-
753 fttext -T ck_ftst isu- F-
754 ftbinary -B ck_ftst isu- F-
758 chdir chdir ck_fun isT% S?
759 chown chown ck_fun imsT@ L
760 chroot chroot ck_fun isTu% S?
761 unlink unlink ck_fun imsTu@ L
762 chmod chmod ck_fun imsT@ L
763 utime utime ck_fun imsT@ L
764 rename rename ck_fun isT@ S S
765 link link ck_fun isT@ S S
766 symlink symlink ck_fun isT@ S S
767 readlink readlink ck_fun stu% S?
768 mkdir mkdir ck_fun isT@ S S?
769 rmdir rmdir ck_fun isTu% S?
773 open_dir opendir ck_fun is@ F S
774 readdir readdir ck_fun % F
775 telldir telldir ck_fun st% F
776 seekdir seekdir ck_fun s@ F S
777 rewinddir rewinddir ck_fun s% F
778 closedir closedir ck_fun is% F
782 fork fork ck_null ist0
783 wait wait ck_null isT0
784 waitpid waitpid ck_fun isT@ S S
785 system system ck_exec imsT@ S? L
786 exec exec ck_exec dimsT@ S? L
787 kill kill ck_fun dimsT@ L
788 getppid getppid ck_null isT0
789 getpgrp getpgrp ck_fun isT% S?
790 setpgrp setpgrp ck_fun isT@ S? S?
791 getpriority getpriority ck_fun isT@ S S
792 setpriority setpriority ck_fun isT@ S S S
796 # NOTE: MacOS patches the 'i' of time() away later when the interpreter
797 # is created because in MacOS time() is already returning times > 2**31-1,
798 # that is, non-integers.
800 time time ck_null isT0
802 localtime localtime ck_fun t% S?
803 gmtime gmtime ck_fun t% S?
804 alarm alarm ck_fun istu% S?
805 sleep sleep ck_fun isT% S?
809 shmget shmget ck_fun imst@ S S S
810 shmctl shmctl ck_fun imst@ S S S
811 shmread shmread ck_fun imst@ S S S S
812 shmwrite shmwrite ck_fun imst@ S S S S
816 msgget msgget ck_fun imst@ S S
817 msgctl msgctl ck_fun imst@ S S S
818 msgsnd msgsnd ck_fun imst@ S S S
819 msgrcv msgrcv ck_fun imst@ S S S S S
823 semget semget ck_fun imst@ S S S
824 semctl semctl ck_fun imst@ S S S S
825 semop semop ck_fun imst@ S S
829 require require ck_require du% S?
830 dofile do "file" ck_fun d1 S
831 entereval eval "string" ck_eval d% S
832 leaveeval eval "string" exit ck_null 1 S
833 #evalonce eval constant string ck_null d1 S
834 entertry eval {block} ck_null |
835 leavetry eval {block} exit ck_null @
839 ghbyname gethostbyname ck_fun % S
840 ghbyaddr gethostbyaddr ck_fun @ S S
841 ghostent gethostent ck_null 0
842 gnbyname getnetbyname ck_fun % S
843 gnbyaddr getnetbyaddr ck_fun @ S S
844 gnetent getnetent ck_null 0
845 gpbyname getprotobyname ck_fun % S
846 gpbynumber getprotobynumber ck_fun @ S
847 gprotoent getprotoent ck_null 0
848 gsbyname getservbyname ck_fun @ S S
849 gsbyport getservbyport ck_fun @ S S
850 gservent getservent ck_null 0
851 shostent sethostent ck_fun is% S
852 snetent setnetent ck_fun is% S
853 sprotoent setprotoent ck_fun is% S
854 sservent setservent ck_fun is% S
855 ehostent endhostent ck_null is0
856 enetent endnetent ck_null is0
857 eprotoent endprotoent ck_null is0
858 eservent endservent ck_null is0
859 gpwnam getpwnam ck_fun % S
860 gpwuid getpwuid ck_fun % S
861 gpwent getpwent ck_null 0
862 spwent setpwent ck_null is0
863 epwent endpwent ck_null is0
864 ggrnam getgrnam ck_fun % S
865 ggrgid getgrgid ck_fun % S
866 ggrent getgrent ck_null 0
867 sgrent setgrent ck_null is0
868 egrent endgrent ck_null is0
869 getlogin getlogin ck_null st0
873 syscall syscall ck_fun imst@ S L
875 # For multi-threading
876 lock lock ck_rfun s% S
877 threadsv per-thread value ck_null ds0
880 setstate set statement info ck_null s;
881 method_named method with known name ck_null d$