This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
"Don't repeat yourself" in regen/opcode.pl
[perl5.git] / regen / opcode.pl
CommitLineData
d6480c9d 1#!/usr/bin/perl -w
6294c161
DM
2#
3# Regenerate (overwriting only if changed):
4#
5# opcode.h
6# opnames.h
897d3989 7# pp_proto.h
6294c161 8#
f8a58b02 9# from information stored in regen/opcodes, plus the
6294c161
DM
10# values hardcoded into this script in @raw_alias.
11#
12# Accepts the standard regen_lib -q and -v args.
13#
14# This script is normally invoked from regen.pl.
15
d6480c9d
NC
16use strict;
17
36bb303b
NC
18BEGIN {
19 # Get function prototypes
af001346 20 require 'regen/regen_lib.pl';
36bb303b 21}
79072805 22
d6480c9d
NC
23my $opcode_new = 'opcode.h-new';
24my $opname_new = 'opnames.h-new';
424a4936
NC
25my $oc = safer_open($opcode_new);
26my $on = safer_open($opname_new);
27select $oc;
79072805
LW
28
29# Read data.
30
d6480c9d 31my %seen;
e71197e2 32my (@ops, %desc, %check, %ckname, %flags, %args, %opnum);
d6480c9d 33
f8a58b02
NC
34open OPS, 'regen/opcodes' or die $!;
35
36while (<OPS>) {
79072805
LW
37 chop;
38 next unless $_;
39 next if /^#/;
d6480c9d
NC
40 my ($key, $desc, $check, $flags, $args) = split(/\t+/, $_, 5);
41 $args = '' unless defined $args;
c07a80fd 42
6342d5c5
FC
43 warn qq[Description "$desc" duplicates $seen{$desc}\n]
44 if $seen{$desc} and $key ne "transr";
c07a80fd
PP
45 die qq[Opcode "$key" duplicates $seen{$key}\n] if $seen{$key};
46 $seen{$desc} = qq[description of opcode "$key"];
47 $seen{$key} = qq[opcode "$key"];
48
79072805 49 push(@ops, $key);
e71197e2 50 $opnum{$key} = $#ops;
c07a80fd 51 $desc{$key} = $desc;
79072805
LW
52 $check{$key} = $check;
53 $ckname{$check}++;
54 $flags{$key} = $flags;
55 $args{$key} = $args;
56}
57
1d5774de
NC
58# Set up aliases
59
60my %alias;
61
62# Format is "this function" => "does these op names"
63my @raw_alias = (
6faeeb49 64 Perl_do_kv => [qw( keys values )],
d83386fa 65 Perl_unimplemented_op => [qw(padany mapstart custom)],
0b612f93
NC
66 # All the ops with a body of { return NORMAL; }
67 Perl_pp_null => [qw(scalar regcmaybe lineseq scope)],
68
69 Perl_pp_goto => ['dump'],
70 Perl_pp_require => ['dofile'],
71 Perl_pp_untie => ['dbmclose'],
7627e6d0 72 Perl_pp_sysread => {read => '', recv => '#ifdef HAS_SOCKET'},
0b612f93
NC
73 Perl_pp_sysseek => ['seek'],
74 Perl_pp_ioctl => ['fcntl'],
7627e6d0
NC
75 Perl_pp_ssockopt => {gsockopt => '#ifdef HAS_SOCKET'},
76 Perl_pp_getpeername => {getsockname => '#ifdef HAS_SOCKET'},
0b612f93 77 Perl_pp_stat => ['lstat'],
f1cb2d48 78 Perl_pp_ftrowned => [qw(fteowned ftzero ftsock ftchr ftblk
17ad201a
NC
79 ftfile ftdir ftpipe ftsuid ftsgid
80 ftsvtx)],
0b612f93
NC
81 Perl_pp_fttext => ['ftbinary'],
82 Perl_pp_gmtime => ['localtime'],
83 Perl_pp_semget => [qw(shmget msgget)],
84 Perl_pp_semctl => [qw(shmctl msgctl)],
0b612f93
NC
85 Perl_pp_ghostent => [qw(ghbyname ghbyaddr)],
86 Perl_pp_gnetent => [qw(gnbyname gnbyaddr)],
87 Perl_pp_gprotoent => [qw(gpbyname gpbynumber)],
88 Perl_pp_gservent => [qw(gsbyname gsbyport)],
89 Perl_pp_gpwent => [qw(gpwnam gpwuid)],
90 Perl_pp_ggrent => [qw(ggrnam ggrgid)],
957b0e1d 91 Perl_pp_ftis => [qw(ftsize ftmtime ftatime ftctime)],
605b9385 92 Perl_pp_chown => [qw(unlink chmod utime kill)],
ce6987d0 93 Perl_pp_link => ['symlink'],
af9e49b4
NC
94 Perl_pp_ftrread => [qw(ftrwrite ftrexec fteread ftewrite
95 fteexec)],
ca563b4e 96 Perl_pp_shmwrite => [qw(shmread msgsnd msgrcv semop)],
7627e6d0 97 Perl_pp_syswrite => {send => '#ifdef HAS_SOCKET'},
c960fc3b 98 Perl_pp_defined => [qw(dor dorassign)],
62726f23
SP
99 Perl_pp_and => ['andassign'],
100 Perl_pp_or => ['orassign'],
12e9c124 101 Perl_pp_ucfirst => ['lcfirst'],
afd9910b 102 Perl_pp_sle => [qw(slt sgt sge)],
0d863452 103 Perl_pp_print => ['say'],
2723d216 104 Perl_pp_index => ['rindex'],
daa2adfd 105 Perl_pp_oct => ['hex'],
789b4bc9 106 Perl_pp_shift => ['pop'],
71302fe3 107 Perl_pp_sin => [qw(cos exp log sqrt)],
3658c1f1 108 Perl_pp_bit_or => ['bit_xor'],
17ab7946 109 Perl_pp_rv2av => ['rv2hv'],
878d132a 110 Perl_pp_akeys => ['avalues'],
cba5a3b0 111 Perl_pp_rkeys => [qw(rvalues reach)],
7627e6d0
NC
112 Perl_pp_trans => [qw(trans transr)],
113 Perl_pp_chop => [qw(chop chomp)],
114 Perl_pp_schop => [qw(schop schomp)],
115 Perl_pp_bind => {connect => '#ifdef HAS_SOCKET'},
9561d06f
NC
116 Perl_pp_preinc => ['i_preinc'],
117 Perl_pp_predec => ['i_predec'],
118 Perl_pp_postinc => ['i_postinc'],
119 Perl_pp_postdec => ['i_postdec'],
720d5dbf
NC
120 Perl_pp_ehostent => [qw(enetent eprotoent eservent
121 spwent epwent sgrent egrent)],
396166e1 122 Perl_pp_shostent => [qw(snetent sprotoent sservent)],
605b9385 123 );
1d5774de
NC
124
125while (my ($func, $names) = splice @raw_alias, 0, 2) {
7627e6d0
NC
126 if (ref $names eq 'ARRAY') {
127 foreach (@$names) {
128 $alias{$_} = [$func, ''];
129 }
130 } else {
131 while (my ($opname, $cond) = each %$names) {
132 $alias{$opname} = [$func, $cond];
133 }
916e4025 134 }
1d5774de
NC
135}
136
7627e6d0
NC
137foreach my $sock_func (qw(socket bind listen accept shutdown
138 ssockopt getpeername)) {
139 $alias{$sock_func} = ["Perl_pp_$sock_func", '#ifdef HAS_SOCKET'],
140}
141
79072805
LW
142# Emit defines.
143
748a9306 144print <<"END";
37442d52
RGS
145/* -*- buffer-read-only: t -*-
146 *
d6376244
JH
147 * opcode.h
148 *
699a97de
RGS
149 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
150 * 2001, 2002, 2003, 2004, 2005, 2006, 2007 by Larry Wall and others
d6376244
JH
151 *
152 * You may distribute under the terms of either the GNU General Public
153 * License or the Artistic License, as specified in the README file.
154 *
155 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
d006332c
FC
156 * This file is built by regen/opcode.pl from its data. Any changes made
157 * here will be lost!
d6376244 158 */
a27f85b3 159
27da23d5
JH
160#ifndef PERL_GLOBAL_STRUCT_INIT
161
9561d06f
NC
162END
163
7627e6d0
NC
164{
165 my $last_cond = '';
166 my @unimplemented;
167
168 sub unimplemented {
169 if (@unimplemented) {
170 print "#else\n";
171 foreach (@unimplemented) {
172 print "#define $_ Perl_unimplemented_op\n";
173 }
174 print "#endif\n";
175 @unimplemented = ();
176 }
177
178 }
179
180 for (@ops) {
181 my ($impl, $cond) = @{$alias{$_} || ["Perl_pp_$_", '']};
182 my $op_func = "Perl_pp_$_";
183
184 if ($cond ne $last_cond) {
185 # A change in condition. (including to or from no condition)
186 unimplemented();
187 $last_cond = $cond;
188 if ($last_cond) {
189 print "$last_cond\n";
190 }
191 }
192 push @unimplemented, $op_func if $last_cond;
193 print "#define $op_func $impl\n" if $impl ne $op_func;
194 }
195 # If the last op was conditional, we need to close it out:
196 unimplemented();
9561d06f
NC
197}
198
424a4936 199print $on <<"END";
37442d52
RGS
200/* -*- buffer-read-only: t -*-
201 *
d6376244
JH
202 * opnames.h
203 *
cfc85103 204 * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
e8e5c75e 205 * 2007, 2008 by Larry Wall and others
d6376244
JH
206 *
207 * You may distribute under the terms of either the GNU General Public
208 * License or the Artistic License, as specified in the README file.
209 *
210 *
211 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
d006332c
FC
212 * This file is built by regen/opcode.pl from its data. Any changes made
213 * here will be lost!
d6376244 214 */
abdd5c84
GS
215
216typedef enum opcode {
217END
218
d6480c9d 219my $i = 0;
79072805 220for (@ops) {
424a4936 221 print $on "\t", &tab(3,"OP_\U$_"), " = ", $i++, ",\n";
79072805 222}
424a4936
NC
223print $on "\t", &tab(3,"OP_max"), "\n";
224print $on "} opcode;\n";
225print $on "\n#define MAXO ", scalar @ops, "\n";
79072805 226
c07a80fd 227# Emit op names and descriptions.
79072805
LW
228
229print <<END;
73c4f7a1
GS
230START_EXTERN_C
231
79072805 232#ifndef DOINIT
27da23d5 233EXTCONST char* const PL_op_name[];
79072805 234#else
27da23d5 235EXTCONST char* const PL_op_name[] = {
79072805
LW
236END
237
238for (@ops) {
c07a80fd
PP
239 print qq(\t"$_",\n);
240}
241
242print <<END;
243};
244#endif
245
246END
247
248print <<END;
249#ifndef DOINIT
27da23d5 250EXTCONST char* const PL_op_desc[];
c07a80fd 251#else
27da23d5 252EXTCONST char* const PL_op_desc[] = {
c07a80fd
PP
253END
254
255for (@ops) {
42d38218
MS
256 my($safe_desc) = $desc{$_};
257
a567e93b 258 # Have to escape double quotes and escape characters.
b0c6325e 259 $safe_desc =~ s/([\\"])/\\$1/g;
42d38218
MS
260
261 print qq(\t"$safe_desc",\n);
79072805
LW
262}
263
264print <<END;
265};
266#endif
267
73c4f7a1
GS
268END_EXTERN_C
269
27da23d5 270#endif /* !PERL_GLOBAL_STRUCT_INIT */
22c35a8c 271END
79072805 272
79072805
LW
273# Emit ppcode switch array.
274
275print <<END;
276
73c4f7a1
GS
277START_EXTERN_C
278
27da23d5 279#ifdef PERL_GLOBAL_STRUCT_INIT
97aff369 280# define PERL_PPADDR_INITED
27da23d5 281static const Perl_ppaddr_t Gppaddr[]
79072805 282#else
27da23d5 283# ifndef PERL_GLOBAL_STRUCT
97aff369 284# define PERL_PPADDR_INITED
27da23d5
JH
285EXT Perl_ppaddr_t PL_ppaddr[] /* or perlvars.h */
286# endif
287#endif /* PERL_GLOBAL_STRUCT */
288#if (defined(DOINIT) && !defined(PERL_GLOBAL_STRUCT)) || defined(PERL_GLOBAL_STRUCT_INIT)
97aff369 289# define PERL_PPADDR_INITED
27da23d5 290= {
79072805
LW
291END
292
293for (@ops) {
7627e6d0
NC
294 my $op_func = "Perl_pp_$_";
295 my $name = $alias{$_};
296 if ($name && $name->[0] ne $op_func) {
297 print "\t$op_func,\t/* implemented by $name->[0] */\n";
6faeeb49
MB
298 }
299 else {
7627e6d0 300 print "\t$op_func,\n";
6faeeb49 301 }
79072805
LW
302}
303
304print <<END;
27da23d5 305}
79072805 306#endif
97aff369 307#ifdef PERL_PPADDR_INITED
27da23d5 308;
97aff369 309#endif
79072805
LW
310
311END
312
313# Emit check routines.
314
315print <<END;
27da23d5 316#ifdef PERL_GLOBAL_STRUCT_INIT
97aff369 317# define PERL_CHECK_INITED
27da23d5 318static const Perl_check_t Gcheck[]
79072805 319#else
27da23d5 320# ifndef PERL_GLOBAL_STRUCT
97aff369 321# define PERL_CHECK_INITED
27da23d5
JH
322EXT Perl_check_t PL_check[] /* or perlvars.h */
323# endif
324#endif
325#if (defined(DOINIT) && !defined(PERL_GLOBAL_STRUCT)) || defined(PERL_GLOBAL_STRUCT_INIT)
97aff369 326# define PERL_CHECK_INITED
27da23d5 327= {
79072805
LW
328END
329
330for (@ops) {
ef69c8fc 331 print "\t", &tab(3, "Perl_$check{$_},"), "\t/* $_ */\n";
79072805
LW
332}
333
334print <<END;
27da23d5 335}
79072805 336#endif
97aff369 337#ifdef PERL_CHECK_INITED
27da23d5 338;
97aff369 339#endif /* #ifdef PERL_CHECK_INITED */
79072805
LW
340
341END
342
343# Emit allowed argument types.
344
c2dedb93
MHM
345my $ARGBITS = 32;
346
79072805 347print <<END;
27da23d5
JH
348#ifndef PERL_GLOBAL_STRUCT_INIT
349
79072805 350#ifndef DOINIT
1ccb7c8d 351EXTCONST U32 PL_opargs[];
79072805 352#else
1ccb7c8d 353EXTCONST U32 PL_opargs[] = {
79072805
LW
354END
355
d6480c9d
NC
356my %argnum = (
357 'S', 1, # scalar
358 'L', 2, # list
359 'A', 3, # array value
360 'H', 4, # hash value
361 'C', 5, # code value
362 'F', 6, # file value
363 'R', 7, # scalar reference
79072805
LW
364);
365
d6480c9d 366my %opclass = (
db173bac
MB
367 '0', 0, # baseop
368 '1', 1, # unop
369 '2', 2, # binop
370 '|', 3, # logop
1a67a97c
SM
371 '@', 4, # listop
372 '/', 5, # pmop
350de78d 373 '$', 6, # svop_or_padop
7934575e 374 '#', 7, # padop
1a67a97c
SM
375 '"', 8, # pvop_or_svop
376 '{', 9, # loop
377 ';', 10, # cop
378 '%', 11, # baseop_or_unop
379 '-', 12, # filestatop
380 '}', 13, # loopexop
db173bac
MB
381);
382
c2dedb93
MHM
383my %opflags = (
384 'm' => 1, # needs stack mark
385 'f' => 2, # fold constants
386 's' => 4, # always produces scalar
387 't' => 8, # needs target scalar
903fd87c
NC
388 'T' => 8 | 16, # ... which may be lexical
389 'i' => 0, # always produces integer (unused since e7311069)
c2dedb93
MHM
390 'I' => 32, # has corresponding int op
391 'd' => 64, # danger, unknown side effects
392 'u' => 128, # defaults to $_
393);
394
a85d93d9
JH
395my %OP_IS_SOCKET;
396my %OP_IS_FILETEST;
6ecf81d6 397my %OP_IS_FT_ACCESS;
903fd87c
NC
398my $OCSHIFT = 8;
399my $OASHIFT = 12;
a85d93d9 400
c2dedb93 401for my $op (@ops) {
d6480c9d 402 my $argsum = 0;
c2dedb93
MHM
403 my $flags = $flags{$op};
404 for my $flag (keys %opflags) {
405 if ($flags =~ s/$flag//) {
cb7b5e07 406 die "Flag collision for '$op' ($flags{$op}, $flag)\n"
c2dedb93
MHM
407 if $argsum & $opflags{$flag};
408 $argsum |= $opflags{$flag};
409 }
410 }
cb7b5e07 411 die qq[Opcode '$op' has no class indicator ($flags{$op} => $flags)\n]
c2dedb93
MHM
412 unless exists $opclass{$flags};
413 $argsum |= $opclass{$flags} << $OCSHIFT;
414 my $argshift = $OASHIFT;
415 for my $arg (split(' ',$args{$op})) {
a85d93d9 416 if ($arg =~ /^F/) {
e71197e2
JC
417 # record opnums of these opnames
418 $OP_IS_SOCKET{$op} = $opnum{$op} if $arg =~ s/s//;
419 $OP_IS_FILETEST{$op} = $opnum{$op} if $arg =~ s/-//;
6ecf81d6 420 $OP_IS_FT_ACCESS{$op} = $opnum{$op} if $arg =~ s/\+//;
a85d93d9 421 }
d6480c9d 422 my $argnum = ($arg =~ s/\?//) ? 8 : 0;
c2dedb93
MHM
423 die "op = $op, arg = $arg\n"
424 unless exists $argnum{$arg};
79072805 425 $argnum += $argnum{$arg};
c2dedb93
MHM
426 die "Argument overflow for '$op'\n"
427 if $argshift >= $ARGBITS ||
428 $argnum > ((1 << ($ARGBITS - $argshift)) - 1);
429 $argsum += $argnum << $argshift;
430 $argshift += 4;
79072805
LW
431 }
432 $argsum = sprintf("0x%08x", $argsum);
c2dedb93 433 print "\t", &tab(3, "$argsum,"), "/* $op */\n";
79072805
LW
434}
435
436print <<END;
437};
438#endif
73c4f7a1 439
bae1192d
JH
440#endif /* !PERL_GLOBAL_STRUCT_INIT */
441
73c4f7a1 442END_EXTERN_C
27da23d5 443
79072805
LW
444END
445
e71197e2
JC
446# Emit OP_IS_* macros
447
424a4936 448print $on <<EO_OP_IS_COMMENT;
e71197e2
JC
449
450/* the OP_IS_(SOCKET|FILETEST) macros are optimized to a simple range
451 check because all the member OPs are contiguous in opcode.pl
f8a58b02 452 <OPS> table. opcode.pl verifies the range contiguity. */
e71197e2
JC
453
454EO_OP_IS_COMMENT
455
456gen_op_is_macro( \%OP_IS_SOCKET, 'OP_IS_SOCKET');
457gen_op_is_macro( \%OP_IS_FILETEST, 'OP_IS_FILETEST');
6ecf81d6 458gen_op_is_macro( \%OP_IS_FT_ACCESS, 'OP_IS_FILETEST_ACCESS');
e71197e2
JC
459
460sub gen_op_is_macro {
461 my ($op_is, $macname) = @_;
462 if (keys %$op_is) {
463
464 # get opnames whose numbers are lowest and highest
465 my ($first, @rest) = sort {
466 $op_is->{$a} <=> $op_is->{$b}
467 } keys %$op_is;
468
469 my $last = pop @rest; # @rest slurped, get its last
cb7b5e07 470 die "Invalid range of ops: $first .. $last\n" unless $last;
6ecf81d6 471
424a4936 472 print $on "#define $macname(op) \\\n\t(";
6ecf81d6 473
e71197e2
JC
474 # verify that op-ct matches 1st..last range (and fencepost)
475 # (we know there are no dups)
476 if ( $op_is->{$last} - $op_is->{$first} == scalar @rest + 1) {
477
478 # contiguous ops -> optimized version
424a4936
NC
479 print $on "(op) >= OP_" . uc($first) . " && (op) <= OP_" . uc($last);
480 print $on ")\n\n";
e71197e2
JC
481 }
482 else {
424a4936 483 print $on join(" || \\\n\t ",
6ecf81d6 484 map { "(op) == OP_" . uc() } sort keys %$op_is);
424a4936 485 print $on ")\n\n";
e71197e2
JC
486 }
487 }
a85d93d9
JH
488}
489
e0b44199
NC
490foreach ($oc, $on) {
491 print $_ "/* ex: set ro: */\n";
492 safer_close($_);
493}
735e0d5c 494
424a4936
NC
495rename_if_different $opcode_new, 'opcode.h';
496rename_if_different $opname_new, 'opnames.h';
46f659cb 497
897d3989 498my $pp_proto_new = 'pp_proto.h-new';
22c35a8c 499
897d3989 500my $pp = safer_open($pp_proto_new);
a27f85b3 501
897d3989
NC
502print $pp <<"END";
503/* -*- buffer-read-only: t -*-
504 !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
505 This file is built by opcode.pl from its data. Any changes made here
506 will be lost!
507*/
a27f85b3 508
897d3989 509END
a27f85b3 510
981b7185
NC
511{
512 my %funcs;
513 for (@ops) {
7627e6d0 514 my $name = $alias{$_} ? $alias{$_}[0] : "Perl_pp_$_";
981b7185
NC
515 ++$funcs{$name};
516 }
517 print $pp "PERL_CALLCONV OP *$_(pTHX);\n" foreach sort keys %funcs;
735e0d5c 518}
897d3989 519print $pp "\n/* ex: set ro: */\n";
735e0d5c 520
897d3989 521safer_close($pp);
735e0d5c 522
897d3989 523rename_if_different $pp_proto_new, 'pp_proto.h';
46f659cb 524
24600adc 525END {
897d3989 526 foreach ('opcode.h', 'opnames.h', 'pp_proto.h') {
24600adc
JH
527 1 while unlink "$_-old";
528 }
529}
530
79072805
LW
531###########################################################################
532sub tab {
d6480c9d 533 my ($l, $t) = @_;
79072805
LW
534 $t .= "\t" x ($l - (length($t) + 1) / 8);
535 $t;
536}
537###########################################################################
b162f9ea
IZ
538
539# Some comments about 'T' opcode classifier:
540
541# Safe to set if the ppcode uses:
542# tryAMAGICbin, tryAMAGICun, SETn, SETi, SETu, PUSHn, PUSHTARG, SETTARG,
543# SETs(TARG), XPUSHn, XPUSHu,
544
545# Unsafe to set if the ppcode uses dTARG or [X]RETPUSH[YES|NO|UNDEF]
546
547# lt and friends do SETs (including ncmp, but not scmp)
548
21f5b33c
GS
549# Additional mode of failure: the opcode can modify TARG before it "used"
550# all the arguments (or may call an external function which does the same).
551# If the target coincides with one of the arguments ==> kaboom.
552
b162f9ea
IZ
553# pp.c pos substr each not OK (RETPUSHUNDEF)
554# substr vec also not OK due to LV to target (are they???)
555# ref not OK (RETPUSHNO)
556# trans not OK (dTARG; TARG = sv_newmortal();)
557# ucfirst etc not OK: TMP arg processed inplace
69b47968 558# quotemeta not OK (unsafe when TARG == arg)
91e74348 559# each repeat not OK too due to list context
b162f9ea 560# pack split - unknown whether they are safe
dae78bb1
IZ
561# sprintf: is calling do_sprintf(TARG,...) which can act on TARG
562# before other args are processed.
b162f9ea 563
21f5b33c
GS
564# Suspicious wrt "additional mode of failure" (and only it):
565# schop, chop, postinc/dec, bit_and etc, negate, complement.
566
567# Also suspicious: 4-arg substr, sprintf, uc/lc (POK_only), reverse, pack.
568
569# substr/vec: doing TAINT_off()???
570
b162f9ea
IZ
571# pp_hot.c
572# readline - unknown whether it is safe
573# match subst not OK (dTARG)
574# grepwhile not OK (not always setting)
69b47968 575# join not OK (unsafe when TARG == arg)
b162f9ea 576
21f5b33c
GS
577# Suspicious wrt "additional mode of failure": concat (dealt with
578# in ck_sassign()), join (same).
579
b162f9ea
IZ
580# pp_ctl.c
581# mapwhile flip caller not OK (not always setting)
582
583# pp_sys.c
584# backtick glob warn die not OK (not always setting)
585# warn not OK (RETPUSHYES)
586# open fileno getc sysread syswrite ioctl accept shutdown
587# ftsize(etc) readlink telldir fork alarm getlogin not OK (RETPUSHUNDEF)
588# umask select not OK (XPUSHs(&PL_sv_undef);)
589# fileno getc sysread syswrite tell not OK (meth("FILENO" "GETC"))
590# sselect shm* sem* msg* syscall - unknown whether they are safe
591# gmtime not OK (list context)
592
21f5b33c 593# Suspicious wrt "additional mode of failure": warn, die, select.