3 untie attempted while %d inner references still exist [pp_untie]
4 sub TIESCALAR { bless [] } ; tie $a, 'main'; untie $a ;
6 fileno() on unopened filehandle abc [pp_fileno]
9 binmode() on unopened filehandle abc [pp_binmode]
10 $a = "abc"; fileno($a)
12 printf() on unopened filehandle abc [pp_prtf]
13 $a = "abc"; printf $a "fred"
15 Filehandle %s opened only for input [pp_leavewrite]
20 write() on closed filehandle %s [pp_leavewrite]
26 page overflow [pp_leavewrite]
28 printf() on unopened filehandle abc [pp_prtf]
29 $a = "abc"; printf $a "fred"
31 Filehandle %s opened only for input [pp_prtf]
35 printf() on closed filehandle %s [pp_prtf]
39 syswrite() on closed filehandle %s [pp_send]
41 syswrite STDIN, "fred", 1;
43 send() on closed socket %s [pp_send]
47 bind() on closed socket %s [pp_bind]
52 connect() on closed socket %s [pp_connect]
54 connect STDIN, "fred" ;
56 listen() on closed socket %s [pp_listen]
60 accept() on closed socket %s [pp_accept]
62 accept "fred", STDIN ;
64 shutdown() on closed socket %s [pp_shutdown]
68 setsockopt() on closed socket %s [pp_ssockopt]
69 getsockopt() on closed socket %s [pp_ssockopt]
71 setsockopt STDIN, 1,2,3;
72 getsockopt STDIN, 1,2;
74 getsockname() on closed socket %s [pp_getpeername]
75 getpeername() on closed socket %s [pp_getpeername]
80 flock() on closed socket %s [pp_flock]
81 flock() on closed socket [pp_flock]
86 warn(warn_nl, "stat"); [pp_stat]
88 -T on closed filehandle %s
89 stat() on closed filehandle %s
90 close STDIN ; -T STDIN ; stat(STDIN) ;
92 warn(warn_nl, "open"); [pp_fttext]
95 Filehandle %s opened only for output [pp_sysread]
98 my $a = sysread(F, $a,10) ;
100 lstat on filehandle %s [pp_lstat]
102 getc() on unopened filehandle [pp_getc]
104 getc() on closed filehandle [pp_getc]
106 Non-string passed as bitmask [pp_sselect]
108 %s too large [pp_gmtime]
110 %s failed [pp_gmtime]
113 # pp_sys.c [pp_untie]
114 use warnings 'untie' ;
115 sub TIESCALAR { bless [] } ;
118 no warnings 'untie' ;
122 untie attempted while 1 inner references still exist at - line 5.
124 # pp_sys.c [pp_leavewrite]
132 Filehandle STDIN opened only for input at - line 5.
134 # pp_sys.c [pp_leavewrite]
135 use warnings 'closed' ;
149 no warnings 'closed' ;
157 write() on closed filehandle STDIN at - line 8.
158 write() on closed filehandle STDIN at - line 11.
159 (Are you trying to call write() on dirhandle STDIN?)
161 # pp_sys.c [pp_leavewrite]
162 use warnings 'unopened';
176 no warnings 'unopened';
184 write() on unopened filehandle FOO at - line 9.
185 write() on unopened filehandle FOO at - line 14.
186 (Are you trying to call write() on dirhandle FOO?)
188 # pp_sys.c [pp_leavewrite]
199 open STDOUT, ">".($^O eq 'VMS'? 'NL:' : '/dev/null') ;
204 page overflow at - line 13.
207 use warnings 'unopened' ;
210 no warnings 'unopened' ;
213 printf() on unopened filehandle abc at - line 4.
216 use warnings 'closed' ;
222 no warnings 'closed' ;
227 printf() on closed filehandle STDIN at - line 4.
228 printf() on closed filehandle STDIN at - line 6.
229 (Are you trying to call printf() on dirhandle STDIN?)
237 Filehandle STDIN opened only for input at - line 3.
241 syswrite STDIN, "fred";
243 syswrite STDIN, "fred";
245 Filehandle STDIN opened only for input at - line 3.
248 use warnings 'closed' ;
250 syswrite STDIN, "fred", 1;
252 syswrite STDIN, "fred", 1;
254 no warnings 'closed' ;
255 syswrite STDIN, "fred", 1;
257 syswrite STDIN, "fred", 1;
259 syswrite() on closed filehandle STDIN at - line 4.
260 syswrite() on closed filehandle STDIN at - line 6.
261 (Are you trying to call syswrite() on dirhandle STDIN?)
263 # pp_sys.c [pp_flock]
266 if ( !$Config{d_flock} &&
267 !$Config{d_fcntl_can_lock} &&
268 !$Config{d_lockf} ) {
276 use warnings qw(unopened closed);
283 no warnings qw(unopened closed);
290 flock() on closed filehandle STDIN at - line 16.
291 flock() on closed filehandle STDIN at - line 18.
292 (Are you trying to call flock() on dirhandle STDIN?)
293 flock() on unopened filehandle FOO at - line 19.
294 flock() on unopened filehandle at - line 20.
296 # pp_sys.c [pp_prtf pp_send pp_bind pp_connect pp_listen pp_accept pp_shutdown pp_ssockopt ppp_getpeername]
297 use warnings 'closed';
300 if ( $^O ne 'VMS' and ! $Config{d_socket}) {
305 # connect not present
307 # shutdown not present
308 # setsockopt not present
309 # getsockopt not present
310 # getsockname not present
311 # getpeername not present
317 send STDIN, "fred", 1;
319 connect STDIN, "fred" ;
321 accept "fred", STDIN;
323 setsockopt STDIN, 1,2,3;
324 getsockopt STDIN, 1,2;
328 send STDIN, "fred", 1;
330 connect STDIN, "fred" ;
332 accept "fred", STDIN;
334 setsockopt STDIN, 1,2,3;
335 getsockopt STDIN, 1,2;
341 connect FOO, "fred" ;
345 setsockopt FOO, 1,2,3;
352 connect FOO, "fred" ;
356 setsockopt FOO, 1,2,3;
361 no warnings 'closed';
362 send STDIN, "fred", 1;
364 connect STDIN, "fred" ;
366 accept STDIN, "fred" ;
368 setsockopt STDIN, 1,2,3;
369 getsockopt STDIN, 1,2;
373 send STDIN, "fred", 1;
375 connect STDIN, "fred" ;
377 accept "fred", STDIN;
379 setsockopt STDIN, 1,2,3;
380 getsockopt STDIN, 1,2;
385 connect FOO, "fred" ;
389 setsockopt FOO, 1,2,3;
396 connect FOO, "fred" ;
400 setsockopt FOO, 1,2,3;
405 send() on closed socket STDIN at - line 22.
406 bind() on closed socket STDIN at - line 23.
407 connect() on closed socket STDIN at - line 24.
408 listen() on closed socket STDIN at - line 25.
409 accept() on closed socket STDIN at - line 26.
410 shutdown() on closed socket STDIN at - line 27.
411 setsockopt() on closed socket STDIN at - line 28.
412 getsockopt() on closed socket STDIN at - line 29.
413 getsockname() on closed socket STDIN at - line 30.
414 getpeername() on closed socket STDIN at - line 31.
415 send() on closed socket STDIN at - line 33.
416 (Are you trying to call send() on dirhandle STDIN?)
417 bind() on closed socket STDIN at - line 34.
418 (Are you trying to call bind() on dirhandle STDIN?)
419 connect() on closed socket STDIN at - line 35.
420 (Are you trying to call connect() on dirhandle STDIN?)
421 listen() on closed socket STDIN at - line 36.
422 (Are you trying to call listen() on dirhandle STDIN?)
423 accept() on closed socket STDIN at - line 37.
424 (Are you trying to call accept() on dirhandle STDIN?)
425 shutdown() on closed socket STDIN at - line 38.
426 (Are you trying to call shutdown() on dirhandle STDIN?)
427 setsockopt() on closed socket STDIN at - line 39.
428 (Are you trying to call setsockopt() on dirhandle STDIN?)
429 getsockopt() on closed socket STDIN at - line 40.
430 (Are you trying to call getsockopt() on dirhandle STDIN?)
431 getsockname() on closed socket STDIN at - line 41.
432 (Are you trying to call getsockname() on dirhandle STDIN?)
433 getpeername() on closed socket STDIN at - line 42.
434 (Are you trying to call getpeername() on dirhandle STDIN?)
436 # pp_sys.c [pp_prtf pp_send pp_bind pp_connect pp_listen pp_accept pp_shutdown pp_ssockopt ppp_getpeername]
437 use warnings 'unopened';
440 if ( $^O ne 'VMS' and ! $Config{d_socket}) {
445 # connect not present
447 # shutdown not present
448 # setsockopt not present
449 # getsockopt not present
450 # getsockname not present
451 # getpeername not present
457 send STDIN, "fred", 1;
459 connect STDIN, "fred" ;
461 accept "fred", STDIN;
463 setsockopt STDIN, 1,2,3;
464 getsockopt STDIN, 1,2;
468 send STDIN, "fred", 1;
470 connect STDIN, "fred" ;
472 accept "fred", STDIN;
474 setsockopt STDIN, 1,2,3;
475 getsockopt STDIN, 1,2;
481 connect FOO, "fred" ;
485 setsockopt FOO, 1,2,3;
492 connect FOO, "fred" ;
496 setsockopt FOO, 1,2,3;
501 no warnings 'unopened';
502 send STDIN, "fred", 1;
504 connect STDIN, "fred" ;
506 accept STDIN, "fred" ;
508 setsockopt STDIN, 1,2,3;
509 getsockopt STDIN, 1,2;
513 send STDIN, "fred", 1;
515 connect STDIN, "fred" ;
517 accept "fred", STDIN;
519 setsockopt STDIN, 1,2,3;
520 getsockopt STDIN, 1,2;
525 connect FOO, "fred" ;
529 setsockopt FOO, 1,2,3;
536 connect FOO, "fred" ;
540 setsockopt FOO, 1,2,3;
545 send() on unopened socket FOO at - line 44.
546 bind() on unopened socket FOO at - line 45.
547 connect() on unopened socket FOO at - line 46.
548 listen() on unopened socket FOO at - line 47.
549 accept() on unopened socket FOO at - line 48.
550 shutdown() on unopened socket FOO at - line 49.
551 setsockopt() on unopened socket FOO at - line 50.
552 getsockopt() on unopened socket FOO at - line 51.
553 getsockname() on unopened socket FOO at - line 52.
554 getpeername() on unopened socket FOO at - line 53.
555 send() on unopened socket FOO at - line 55.
556 (Are you trying to call send() on dirhandle FOO?)
557 bind() on unopened socket FOO at - line 56.
558 (Are you trying to call bind() on dirhandle FOO?)
559 connect() on unopened socket FOO at - line 57.
560 (Are you trying to call connect() on dirhandle FOO?)
561 listen() on unopened socket FOO at - line 58.
562 (Are you trying to call listen() on dirhandle FOO?)
563 accept() on unopened socket FOO at - line 59.
564 (Are you trying to call accept() on dirhandle FOO?)
565 shutdown() on unopened socket FOO at - line 60.
566 (Are you trying to call shutdown() on dirhandle FOO?)
567 setsockopt() on unopened socket FOO at - line 61.
568 (Are you trying to call setsockopt() on dirhandle FOO?)
569 getsockopt() on unopened socket FOO at - line 62.
570 (Are you trying to call getsockopt() on dirhandle FOO?)
571 getsockname() on unopened socket FOO at - line 63.
572 (Are you trying to call getsockname() on dirhandle FOO?)
573 getpeername() on unopened socket FOO at - line 64.
574 (Are you trying to call getpeername() on dirhandle FOO?)
577 use warnings 'newline' ;
581 no warnings 'newline' ;
586 Unsuccessful stat on filename containing newline at - line 4.
587 Unsuccessful stat on filename containing newline at - line 5.
589 # pp_sys.c [pp_fttext]
590 use warnings qw(unopened closed) ;
598 no warnings qw(unopened closed) ;
606 -T on closed filehandle STDIN at - line 4.
607 stat() on closed filehandle STDIN at - line 5.
608 -T on unopened filehandle HOCUS at - line 6.
609 stat() on unopened filehandle POCUS at - line 7.
610 stat() on unopened filehandle foo at - line 9.
612 # pp_sys.c [pp_fttext]
613 use warnings 'newline' ;
617 no warnings 'newline' ;
622 Unsuccessful open on filename containing newline at - line 4.
623 Unsuccessful open on filename containing newline at - line 5.
625 # pp_sys.c [pp_sysread]
637 my $a = sysread(F, $a,10) ;
639 my $a = sysread(F, $a,10) ;
644 sysread(NONEXISTENT, $a, 10);
645 read(NONEXISTENT, $a, 10);
648 Filehandle F opened only for output at - line 13.
649 sysread() on closed filehandle F at - line 18.
650 read() on closed filehandle F at - line 19.
651 sysread() on unopened filehandle NONEXISTENT at - line 20.
652 read() on unopened filehandle NONEXISTENT at - line 21.
654 # pp_sys.c [pp_binmode]
655 use warnings 'unopened' ;
657 $a = "BLERG";binmode($a);
659 binmode() on unopened filehandle BLARG at - line 3.
660 binmode() on unopened filehandle at - line 4.
662 # pp_sys.c [pp_lstat]
664 open FH, "../harness" or die "# $!";
668 open my $fh, $0 or die "# $!";
677 lstat() on filehandle FH at - line 4.
678 lstat() on filehandle FH at - line 5.
679 lstat() on filehandle FH at - line 6.
680 lstat() on filehandle $fh at - line 8.
681 lstat() on filehandle at - line 9.
684 # pp_sys.c [pp_lstat]
687 use open qw( :utf8 :std );
688 open ᶠḨ, "../harness" or die "# $!";
690 open my $fᚺ, $0 or die "# $!";
698 lstat() on filehandle ᶠḨ at - line 7.
699 lstat() on filehandle $fᚺ at - line 9.
702 use warnings qw(unopened closed) ;
706 # Create an empty file
707 $file = 'getcwarn.tmp';
708 open FH1, ">$file" or die "# $!"; close FH1;
709 open FH2, $file or die "# $!";
710 getc FH2; # Should not warn at EOF
712 getc FH2; # Warns, now
714 no warnings qw(unopened closed) ;
719 getc() on unopened filehandle FOO at - line 3.
720 getc() on closed filehandle STDIN at - line 5.
721 getc() on closed filehandle FH2 at - line 12.
723 # pp_sys.c [pp_sselect]
726 select $x, undef, undef, 1;
727 sub TIESCALAR{bless[]} sub FETCH {"hello"} sub STORE{}
729 select $y, undef, undef, 1;
731 select $x, undef, undef, 1;
733 Non-string passed as bitmask at - line 4.
737 if (!$Config{d_fchdir}) {
745 opendir FOO, '.'; closedir FOO;
746 open BAR, '.'; close BAR;
747 opendir $dh, '.'; closedir $dh;
748 open $fh, '.'; close $fh;
753 use warnings qw(unopened closed) ;
759 chdir() on unopened filehandle FOO at - line 20.
760 chdir() on closed filehandle BAR at - line 21.
761 chdir() on unopened filehandle $dh at - line 22.
762 chdir() on closed filehandle $fh at - line 23.
767 if ( ! $Config{d_telldir}) {
770 # telldir not present
795 readdir() attempted on invalid dirhandle FOO at - line 8.
796 telldir() attempted on invalid dirhandle FOO at - line 9.
797 seekdir() attempted on invalid dirhandle FOO at - line 10.
798 rewinddir() attempted on invalid dirhandle FOO at - line 11.
799 closedir() attempted on invalid dirhandle FOO at - line 12.
800 readdir() attempted on invalid dirhandle $foo at - line 14.
801 telldir() attempted on invalid dirhandle $foo at - line 15.
802 seekdir() attempted on invalid dirhandle $foo at - line 16.
803 rewinddir() attempted on invalid dirhandle $foo at - line 17.
804 closedir() attempted on invalid dirhandle $foo at - line 18.
810 if ( ! $Config{d_telldir}) {
813 # telldir not present
820 use open qw( :utf8 :std );
842 readdir() attempted on invalid dirhandle FOO at - line 13.
843 telldir() attempted on invalid dirhandle FOO at - line 14.
844 seekdir() attempted on invalid dirhandle FOO at - line 15.
845 rewinddir() attempted on invalid dirhandle FOO at - line 16.
846 closedir() attempted on invalid dirhandle FOO at - line 17.
847 readdir() attempted on invalid dirhandle $foo at - line 19.
848 telldir() attempted on invalid dirhandle $foo at - line 20.
849 seekdir() attempted on invalid dirhandle $foo at - line 21.
850 rewinddir() attempted on invalid dirhandle $foo at - line 22.
851 closedir() attempted on invalid dirhandle $foo at - line 23.
854 # pp_sys.c [pp_gmtime]
856 unless ($Config{d_double_has_nan}) {
865 use warnings "overflow";
870 gmtime(NaN) too large at - line 14.
871 gmtime(NaN) failed at - line 14.
872 localtime(NaN) too large at - line 15.
873 localtime(NaN) failed at - line 15.
876 # pp_sys.c [pp_alarm]
882 alarm() with negative argument at - line 2.
885 # pp_sys.c [pp_sleep]
891 sleep() with negative argument at - line 2.
893 # NAME sysread() deprecated on :utf8
894 open my $fh, "<:raw", "../harness" or die "# $!";
896 sysread $fh, $buf, 10;
897 binmode $fh, ':utf8';
898 sysread $fh, $buf, 10;
899 no warnings 'deprecated';
900 sysread $fh, $buf, 10;
902 sysread() is deprecated on :utf8 handles. This will be a fatal error in Perl 5.30 at - line 5.
904 # NAME syswrite() deprecated on :utf8
905 my $file = "syswwarn.tmp";
906 open my $fh, ">:raw", $file or die "# $!";
908 binmode $fh, ':utf8';
910 no warnings 'deprecated';
915 syswrite() is deprecated on :utf8 handles. This will be a fatal error in Perl 5.30 at - line 5.