add patch for C<use re 'debug'>
[p5sagit/p5-mst-13.2.git] / opcode.pl
CommitLineData
79072805 1#!/usr/bin/perl
2
36477c24 3unlink "opcode.h";
79072805 4open(OC, ">opcode.h") || die "Can't create opcode.h: $!\n";
5select OC;
6
7# Read data.
8
9while (<DATA>) {
10 chop;
11 next unless $_;
12 next if /^#/;
c07a80fd 13 ($key, $desc, $check, $flags, $args) = split(/\t+/, $_, 5);
14
15 warn qq[Description "$desc" duplicates $seen{$desc}\n] if $seen{$desc};
16 die qq[Opcode "$key" duplicates $seen{$key}\n] if $seen{$key};
17 $seen{$desc} = qq[description of opcode "$key"];
18 $seen{$key} = qq[opcode "$key"];
19
79072805 20 push(@ops, $key);
c07a80fd 21 $desc{$key} = $desc;
79072805 22 $check{$key} = $check;
23 $ckname{$check}++;
24 $flags{$key} = $flags;
25 $args{$key} = $args;
26}
27
28# Emit defines.
29
30$i = 0;
748a9306 31print <<"END";
32#define pp_i_preinc pp_preinc
33#define pp_i_predec pp_predec
34#define pp_i_postinc pp_postinc
35#define pp_i_postdec pp_postdec
36
37typedef enum {
38END
79072805 39for (@ops) {
40 print "\t", &tab(3,"OP_\U$_,"), "/* ", $i++, " */\n";
41}
85e6fe83 42print "\t", &tab(3,"OP_max"), "\n";
79072805 43print "} opcode;\n";
44print "\n#define MAXO ", scalar @ops, "\n\n";
45
c07a80fd 46# Emit op names and descriptions.
79072805 47
48print <<END;
49#ifndef DOINIT
a0d0e21e 50EXT char *op_name[];
79072805 51#else
a0d0e21e 52EXT char *op_name[] = {
79072805 53END
54
55for (@ops) {
c07a80fd 56 print qq(\t"$_",\n);
57}
58
59print <<END;
60};
61#endif
62
63END
64
65print <<END;
66#ifndef DOINIT
67EXT char *op_desc[];
68#else
69EXT char *op_desc[] = {
70END
71
72for (@ops) {
73 print qq(\t"$desc{$_}",\n);
79072805 74}
75
76print <<END;
77};
78#endif
79
5d11ae5e 80#ifndef PERL_OBJECT
aeea060c 81START_EXTERN_C
82
79072805 83END
84
85# Emit function declarations.
86
87for (sort keys %ckname) {
11343788 88 print "OP *\t", &tab(3,$_),"_((OP* o));\n";
79072805 89}
90
91print "\n";
92
93for (@ops) {
db173bac 94 print "OP *\t", &tab(3, "pp_$_"), "_((ARGSproto));\n";
79072805 95}
96
97# Emit ppcode switch array.
98
99print <<END;
100
aeea060c 101END_EXTERN_C
5d11ae5e 102#endif /* PERL_OBJECT */
aeea060c 103
79072805 104#ifndef DOINIT
5d11ae5e 105EXT OP * (CPERLscope(*ppaddr)[])(ARGSproto);
79072805 106#else
5d11ae5e 107#ifndef PERL_OBJECT
108EXT OP * (CPERLscope(*ppaddr)[])(ARGSproto) = {
79072805 109END
110
111for (@ops) {
db173bac 112 print "\tpp_$_,\n";
79072805 113}
114
115print <<END;
116};
5d11ae5e 117#endif /* PERL_OBJECT */
79072805 118#endif
119
120END
121
122# Emit check routines.
123
124print <<END;
125#ifndef DOINIT
5d11ae5e 126EXT OP * (CPERLscope(*check)[]) _((OP *op));
79072805 127#else
5d11ae5e 128#ifndef PERL_OBJECT
129EXT OP * (CPERLscope(*check)[]) _((OP *op)) = {
79072805 130END
131
132for (@ops) {
db173bac 133 print "\t", &tab(3, "$check{$_},"), "/* $_ */\n";
79072805 134}
135
136print <<END;
137};
5d11ae5e 138#endif /* PERL_OBJECT */
79072805 139#endif
140
141END
142
143# Emit allowed argument types.
144
145print <<END;
146#ifndef DOINIT
147EXT U32 opargs[];
148#else
a0d0e21e 149EXT U32 opargs[] = {
79072805 150END
151
152%argnum = (
153 S, 1, # scalar
154 L, 2, # list
155 A, 3, # array value
156 H, 4, # hash value
157 C, 5, # code value
158 F, 6, # file value
159 R, 7, # scalar reference
160);
161
db173bac 162%opclass = (
163 '0', 0, # baseop
164 '1', 1, # unop
165 '2', 2, # binop
166 '|', 3, # logop
167 '?', 4, # condop
168 '@', 5, # listop
169 '/', 6, # pmop
170 '$', 7, # svop
171 '*', 8, # gvop
172 '"', 9, # pvop
173 '{', 10, # loop
174 ';', 11, # cop
175 '%', 12, # baseop_or_unop
176 '-', 13, # filestatop
177 '}', 14, # loopexop
178);
179
79072805 180for (@ops) {
181 $argsum = 0;
182 $flags = $flags{$_};
183 $argsum |= 1 if $flags =~ /m/; # needs stack mark
184 $argsum |= 2 if $flags =~ /f/; # fold constants
185 $argsum |= 4 if $flags =~ /s/; # always produces scalar
186 $argsum |= 8 if $flags =~ /t/; # needs target scalar
187 $argsum |= 16 if $flags =~ /i/; # always produces integer
188 $argsum |= 32 if $flags =~ /I/; # has corresponding int op
189 $argsum |= 64 if $flags =~ /d/; # danger, unknown side effects
a0d0e21e 190 $argsum |= 128 if $flags =~ /u/; # defaults to $_
db173bac 191
192 $flags =~ /([^a-zA-Z])/ or die qq[Opcode "$_" has no class indicator];
db173bac 193 $argsum |= $opclass{$1} << 8;
194 $mul = 4096; # 2 ^ OASHIFT
79072805 195 for $arg (split(' ',$args{$_})) {
196 $argnum = ($arg =~ s/\?//) ? 8 : 0;
197 $argnum += $argnum{$arg};
198 $argsum += $argnum * $mul;
199 $mul <<= 4;
200 }
201 $argsum = sprintf("0x%08x", $argsum);
db173bac 202 print "\t", &tab(3, "$argsum,"), "/* $_ */\n";
79072805 203}
204
205print <<END;
206};
207#endif
208END
209
735e0d5c 210close OC or die "Error closing opcode.h: $!";
211
212open PP, '>pp_proto.h' or die "Error creating pp_proto.h: $!";
213for (@ops) {
214 print PP "PPDEF(pp_$_)\n";
215}
216
217close PP or die "Error closing pp_proto.h: $!";
218
79072805 219###########################################################################
220sub tab {
221 local($l, $t) = @_;
222 $t .= "\t" x ($l - (length($t) + 1) / 8);
223 $t;
224}
225###########################################################################
226__END__
227
228# Nothing.
229
230null null operation ck_null 0
93a17b20 231stub stub ck_null 0
db173bac 232scalar scalar ck_fun s% S
79072805 233
234# Pushy stuff.
235
db173bac 236pushmark pushmark ck_null s0
237wantarray wantarray ck_null is0
79072805 238
db173bac 239const constant item ck_svconst s$
79072805 240
db173bac 241gvsv scalar variable ck_null ds*
242gv glob value ck_null ds*
243gelem glob elem ck_null d2 S S
244padsv private variable ck_null ds0
245padav private array ck_null d0
246padhv private hash ck_null d0
247padany private something ck_null d0
79072805 248
db173bac 249pushre push regexp ck_null /
79072805 250
251# References and stuff.
252
db173bac 253rv2gv ref-to-glob cast ck_rvconst ds1
254rv2sv scalar deref ck_rvconst ds1
255av2arylen array length ck_null is1
256rv2cv subroutine deref ck_rvconst d1
257anoncode anonymous subroutine ck_anoncode $
258prototype subroutine prototype ck_null s% S
5d11ae5e 259refgen reference constructor ck_spair m1 L
260srefgen scalar ref constructor ck_null fs1 S
db173bac 261ref reference-type operator ck_fun stu% S?
262bless bless ck_fun s@ S S?
79072805 263
264# Pushy I/O.
265
db173bac 266backtick backticks ck_null t%
0a753a76 267# glob defaults its first arg to $_
db173bac 268glob glob ck_glob t@ S? S?
269readline <HANDLE> ck_null t%
270rcatline append I/O operator ck_null t%
79072805 271
272# Bindable operators.
273
db173bac 274regcmaybe regexp comp once ck_fun s1 S
275regcomp regexp compilation ck_null s| S
276match pattern match ck_match d/
277subst substitution ck_null dis/ S
278substcont substitution cont ck_null dis|
279trans character translation ck_null is" S
79072805 280
281# Lvalue operators.
db173bac 282# sassign is special-cased for op class
283
284sassign scalar assignment ck_null s0
285aassign list assignment ck_null t2 L L
286
287chop chop ck_spair mts% L
288schop scalar chop ck_null stu% S?
289chomp safe chop ck_spair mts% L
290schomp scalar safe chop ck_null stu% S?
291defined defined operator ck_rfun isu% S?
292undef undef operator ck_lfun s% S?
293study study ck_fun su% S?
294pos match position ck_lfun stu% S?
295
296preinc preincrement ck_lfun dIs1 S
297i_preinc integer preincrement ck_lfun dis1 S
298predec predecrement ck_lfun dIs1 S
299i_predec integer predecrement ck_lfun dis1 S
300postinc postincrement ck_lfun dIst1 S
301i_postinc integer postincrement ck_lfun dist1 S
302postdec postdecrement ck_lfun dIst1 S
303i_postdec integer postdecrement ck_lfun dist1 S
79072805 304
305# Ordinary operators.
306
db173bac 307pow exponentiation ck_null fst2 S S
308
309multiply multiplication ck_null Ifst2 S S
310i_multiply integer multiplication ck_null ifst2 S S
311divide division ck_null Ifst2 S S
312i_divide integer division ck_null ifst2 S S
313modulo modulus ck_null Iifst2 S S
314i_modulo integer modulus ck_null ifst2 S S
315repeat repeat ck_repeat mt2 L S
316
317add addition ck_null Ifst2 S S
318i_add integer addition ck_null ifst2 S S
319subtract subtraction ck_null Ifst2 S S
320i_subtract integer subtraction ck_null ifst2 S S
321concat concatenation ck_concat fst2 S S
322stringify string ck_fun fst@ S
323
324left_shift left bitshift ck_bitop fst2 S S
325right_shift right bitshift ck_bitop fst2 S S
326
327lt numeric lt ck_null Iifs2 S S
328i_lt integer lt ck_null ifs2 S S
329gt numeric gt ck_null Iifs2 S S
330i_gt integer gt ck_null ifs2 S S
331le numeric le ck_null Iifs2 S S
332i_le integer le ck_null ifs2 S S
333ge numeric ge ck_null Iifs2 S S
334i_ge integer ge ck_null ifs2 S S
335eq numeric eq ck_null Iifs2 S S
336i_eq integer eq ck_null ifs2 S S
337ne numeric ne ck_null Iifs2 S S
338i_ne integer ne ck_null ifs2 S S
339ncmp spaceship operator ck_null Iifst2 S S
340i_ncmp integer spaceship ck_null ifst2 S S
341
342slt string lt ck_scmp ifs2 S S
343sgt string gt ck_scmp ifs2 S S
344sle string le ck_scmp ifs2 S S
345sge string ge ck_scmp ifs2 S S
346seq string eq ck_null ifs2 S S
347sne string ne ck_null ifs2 S S
348scmp string comparison ck_scmp ifst2 S S
349
350bit_and bitwise and ck_bitop fst2 S S
351bit_xor bitwise xor ck_bitop fst2 S S
352bit_or bitwise or ck_bitop fst2 S S
353
354negate negate ck_null Ifst1 S
355i_negate integer negate ck_null ifst1 S
356not not ck_null ifs1 S
357complement 1's complement ck_bitop fst1 S
79072805 358
359# High falutin' math.
360
db173bac 361atan2 atan2 ck_fun fst@ S S
362sin sin ck_fun fstu% S?
363cos cos ck_fun fstu% S?
364rand rand ck_fun st% S?
365srand srand ck_fun s% S?
366exp exp ck_fun fstu% S?
367log log ck_fun fstu% S?
368sqrt sqrt ck_fun fstu% S?
79072805 369
cf26c822 370# Lowbrow math.
371
db173bac 372int int ck_fun fstu% S?
373hex hex ck_fun fstu% S?
374oct oct ck_fun fstu% S?
375abs abs ck_fun fstu% S?
79072805 376
377# String stuff.
378
db173bac 379length length ck_lengthconst istu% S?
7b8d334a 380substr substr ck_fun st@ S S S? S?
db173bac 381vec vec ck_fun ist@ S S S
79072805 382
db173bac 383index index ck_index ist@ S S S?
384rindex rindex ck_index ist@ S S S?
79072805 385
db173bac 386sprintf sprintf ck_fun_locale mfst@ S L
387formline formline ck_fun ms@ S L
388ord ord ck_fun ifstu% S?
389chr chr ck_fun fstu% S?
390crypt crypt ck_fun fst@ S S
391ucfirst upper case first ck_fun_locale fstu% S?
392lcfirst lower case first ck_fun_locale fstu% S?
393uc upper case ck_fun_locale fstu% S?
394lc lower case ck_fun_locale fstu% S?
395quotemeta quote metachars ck_fun fstu% S?
79072805 396
397# Arrays.
398
db173bac 399rv2av array deref ck_rvconst dt1
400aelemfast known array element ck_null s* A S
401aelem array element ck_null s2 A S
402aslice array slice ck_null m@ A L
79072805 403
aa689395 404# Hashes.
79072805 405
db173bac 406each each ck_fun t% H
407values values ck_fun t% H
408keys keys ck_fun t% H
409delete delete ck_delete % S
410exists exists operator ck_exists is% S
411rv2hv hash deref ck_rvconst dt1
412helem hash elem ck_null s2@ H S
413hslice hash slice ck_null m@ H L
79072805 414
415# Explosives and implosives.
416
db173bac 417unpack unpack ck_fun @ S S
418pack pack ck_fun mst@ S L
419split split ck_split t@ S S S
420join join ck_fun mst@ S L
79072805 421
422# List operators.
423
db173bac 424list list ck_null m@ L
425lslice list slice ck_null 2 H L L
426anonlist anonymous list ck_fun ms@ L
427anonhash anonymous hash ck_fun ms@ L
79072805 428
db173bac 429splice splice ck_fun m@ A S? S? L
430push push ck_fun imst@ A L
431pop pop ck_shift si% A
432shift shift ck_shift s% A
433unshift unshift ck_fun imst@ A L
434sort sort ck_sort m@ C? L
435reverse reverse ck_fun mt@ L
79072805 436
db173bac 437grepstart grep ck_grep dm@ C L
438grepwhile grep iterator ck_null dt|
79072805 439
db173bac 440mapstart map ck_grep dm@ C L
441mapwhile map iterator ck_null dt|
a0d0e21e 442
79072805 443# Range stuff.
444
db173bac 445range flipflop ck_null ? S S
446flip range (or flip) ck_null 1 S S
447flop range (or flop) ck_null 1
79072805 448
449# Control.
450
db173bac 451and logical and ck_null |
452or logical or ck_null |
453xor logical xor ck_null fs| S S
454cond_expr conditional expression ck_null d?
455andassign logical and assignment ck_null s|
456orassign logical or assignment ck_null s|
457
458method method lookup ck_null d1
459entersub subroutine entry ck_subr dmt1 L
460leavesub subroutine exit ck_null 1
461caller caller ck_fun t% S?
462warn warn ck_fun imst@ L
463die die ck_fun dimst@ L
464reset reset ck_fun is% S?
465
466lineseq line sequence ck_null @
467nextstate next statement ck_null s;
468dbstate debug next statement ck_null s;
469unstack unstack ck_null s0
79072805 470enter block entry ck_null 0
db173bac 471leave block exit ck_null @
472scope block ck_null @
473enteriter foreach loop entry ck_null d{
79072805 474iter foreach loop iterator ck_null 0
db173bac 475enterloop loop entry ck_null d{
476leaveloop loop exit ck_null 2
477return return ck_null dm@ L
478last last ck_null ds}
479next next ck_null ds}
480redo redo ck_null ds}
481dump dump ck_null ds}
482goto goto ck_null ds}
483exit exit ck_fun ds% S?
79072805 484
a0d0e21e 485#nswitch numeric switch ck_null d
486#cswitch character switch ck_null d
79072805 487
488# I/O.
489
db173bac 490open open ck_fun ist@ F S?
491close close ck_fun is% F?
492pipe_op pipe ck_fun is@ F F
79072805 493
db173bac 494fileno fileno ck_fun ist% F
495umask umask ck_fun ist% S?
496binmode binmode ck_fun s% F
79072805 497
db173bac 498tie tie ck_fun idms@ R S L
499untie untie ck_fun is% R
500tied tied ck_fun s% R
501dbmopen dbmopen ck_fun is@ H S S
502dbmclose dbmclose ck_fun is% H
79072805 503
db173bac 504sselect select system call ck_select t@ S S S S
505select select ck_select st@ F?
79072805 506
db173bac 507getc getc ck_eof st% F?
d1a002d4 508read read ck_fun imst@ F R S S?
db173bac 509enterwrite write ck_fun dis% F?
510leavewrite write exit ck_null 1
79072805 511
db173bac 512prtf printf ck_listiob ims@ F? L
513print print ck_listiob ims@ F? L
79072805 514
db173bac 515sysopen sysopen ck_fun s@ F S S S?
516sysseek sysseek ck_fun s@ F S S
d1a002d4 517sysread sysread ck_fun imst@ F R S S?
db173bac 518syswrite syswrite ck_fun imst@ F S S S?
79072805 519
db173bac 520send send ck_fun imst@ F S S S?
d1a002d4 521recv recv ck_fun imst@ F R S S
79072805 522
db173bac 523eof eof ck_eof is% F?
524tell tell ck_fun st% F?
525seek seek ck_fun s@ F S S
9b01e405 526# truncate really behaves as if it had both "S S" and "F S"
db173bac 527truncate truncate ck_trunc is@ S S
79072805 528
db173bac 529fcntl fcntl ck_fun st@ F S S
530ioctl ioctl ck_fun st@ F S S
531flock flock ck_fun ist@ F S
79072805 532
533# Sockets.
534
db173bac 535socket socket ck_fun is@ F S S S
536sockpair socketpair ck_fun is@ F F S S S
79072805 537
db173bac 538bind bind ck_fun is@ F S
539connect connect ck_fun is@ F S
540listen listen ck_fun is@ F S
541accept accept ck_fun ist@ F F
542shutdown shutdown ck_fun ist@ F S
79072805 543
db173bac 544gsockopt getsockopt ck_fun is@ F S S
545ssockopt setsockopt ck_fun is@ F S S S
79072805 546
db173bac 547getsockname getsockname ck_fun is% F
548getpeername getpeername ck_fun is% F
79072805 549
550# Stat calls.
551
db173bac 552lstat lstat ck_ftst u- F
553stat stat ck_ftst u- F
554ftrread -R ck_ftst isu- F
555ftrwrite -W ck_ftst isu- F
556ftrexec -X ck_ftst isu- F
557fteread -r ck_ftst isu- F
558ftewrite -w ck_ftst isu- F
559fteexec -x ck_ftst isu- F
560ftis -e ck_ftst isu- F
561fteowned -O ck_ftst isu- F
562ftrowned -o ck_ftst isu- F
563ftzero -z ck_ftst isu- F
564ftsize -s ck_ftst istu- F
565ftmtime -M ck_ftst stu- F
566ftatime -A ck_ftst stu- F
567ftctime -C ck_ftst stu- F
568ftsock -S ck_ftst isu- F
569ftchr -c ck_ftst isu- F
570ftblk -b ck_ftst isu- F
571ftfile -f ck_ftst isu- F
572ftdir -d ck_ftst isu- F
573ftpipe -p ck_ftst isu- F
574ftlink -l ck_ftst isu- F
575ftsuid -u ck_ftst isu- F
576ftsgid -g ck_ftst isu- F
577ftsvtx -k ck_ftst isu- F
578fttty -t ck_ftst is- F
579fttext -T ck_ftst isu- F
580ftbinary -B ck_ftst isu- F
79072805 581
582# File calls.
583
db173bac 584chdir chdir ck_fun ist% S?
585chown chown ck_fun imst@ L
586chroot chroot ck_fun istu% S?
587unlink unlink ck_fun imstu@ L
588chmod chmod ck_fun imst@ L
589utime utime ck_fun imst@ L
590rename rename ck_fun ist@ S S
591link link ck_fun ist@ S S
592symlink symlink ck_fun ist@ S S
593readlink readlink ck_fun stu% S?
594mkdir mkdir ck_fun ist@ S S
595rmdir rmdir ck_fun istu% S?
79072805 596
597# Directory calls.
598
db173bac 599open_dir opendir ck_fun is@ F S
600readdir readdir ck_fun % F
601telldir telldir ck_fun st% F
602seekdir seekdir ck_fun s@ F S
603rewinddir rewinddir ck_fun s% F
604closedir closedir ck_fun is% F
79072805 605
606# Process control.
607
db173bac 608fork fork ck_null ist0
609wait wait ck_null ist0
610waitpid waitpid ck_fun ist@ S S
611system system ck_exec imst@ S? L
612exec exec ck_exec dimst@ S? L
613kill kill ck_fun dimst@ L
614getppid getppid ck_null ist0
615getpgrp getpgrp ck_fun ist% S?
616setpgrp setpgrp ck_fun ist@ S? S?
617getpriority getpriority ck_fun ist@ S S
618setpriority setpriority ck_fun ist@ S S S
79072805 619
620# Time calls.
621
db173bac 622time time ck_null ist0
79072805 623tms times ck_null 0
db173bac 624localtime localtime ck_fun t% S?
625gmtime gmtime ck_fun t% S?
626alarm alarm ck_fun istu% S?
627sleep sleep ck_fun ist% S?
79072805 628
629# Shared memory.
630
db173bac 631shmget shmget ck_fun imst@ S S S
632shmctl shmctl ck_fun imst@ S S S
633shmread shmread ck_fun imst@ S S S S
634shmwrite shmwrite ck_fun imst@ S S S S
79072805 635
636# Message passing.
637
db173bac 638msgget msgget ck_fun imst@ S S
639msgctl msgctl ck_fun imst@ S S S
640msgsnd msgsnd ck_fun imst@ S S S
641msgrcv msgrcv ck_fun imst@ S S S S S
79072805 642
643# Semaphores.
644
db173bac 645semget semget ck_fun imst@ S S S
646semctl semctl ck_fun imst@ S S S S
647semop semop ck_fun imst@ S S
79072805 648
649# Eval.
650
db173bac 651require require ck_require du% S?
652dofile do 'file' ck_fun d1 S
653entereval eval string ck_eval d% S
654leaveeval eval exit ck_null 1 S
655#evalonce eval constant string ck_null d1 S
656entertry eval block ck_null |
657leavetry eval block exit ck_null @
79072805 658
659# Get system info.
660
db173bac 661ghbyname gethostbyname ck_fun % S
662ghbyaddr gethostbyaddr ck_fun @ S S
79072805 663ghostent gethostent ck_null 0
db173bac 664gnbyname getnetbyname ck_fun % S
665gnbyaddr getnetbyaddr ck_fun @ S S
79072805 666gnetent getnetent ck_null 0
db173bac 667gpbyname getprotobyname ck_fun % S
668gpbynumber getprotobynumber ck_fun @ S
79072805 669gprotoent getprotoent ck_null 0
db173bac 670gsbyname getservbyname ck_fun @ S S
671gsbyport getservbyport ck_fun @ S S
79072805 672gservent getservent ck_null 0
db173bac 673shostent sethostent ck_fun is% S
674snetent setnetent ck_fun is% S
675sprotoent setprotoent ck_fun is% S
676sservent setservent ck_fun is% S
677ehostent endhostent ck_null is0
678enetent endnetent ck_null is0
679eprotoent endprotoent ck_null is0
680eservent endservent ck_null is0
681gpwnam getpwnam ck_fun % S
682gpwuid getpwuid ck_fun % S
79072805 683gpwent getpwent ck_null 0
db173bac 684spwent setpwent ck_null is0
685epwent endpwent ck_null is0
686ggrnam getgrnam ck_fun % S
687ggrgid getgrgid ck_fun % S
79072805 688ggrent getgrent ck_null 0
db173bac 689sgrent setgrent ck_null is0
690egrent endgrent ck_null is0
691getlogin getlogin ck_null st0
79072805 692
693# Miscellaneous.
694
db173bac 695syscall syscall ck_fun imst@ S L
c0329465 696
697# For multi-threading
db173bac 698lock lock ck_rfun s% S
2faa37cc 699threadsv per-thread variable ck_null ds0