Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
ext /
Fcntl /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
autoload.t
918
B
-r--r--r--
2014-12-27 11:48
fcntl.t
1.44
KB
-r--r--r--
2014-12-27 11:48
mode.t
2.03
KB
-r--r--r--
2014-12-27 11:48
syslfs.t
6.79
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!./perl # A modest test: exercises only O_WRONLY, O_CREAT, and O_RDONLY. # Have to be modest to be portable: could possibly extend testing # also to O_RDWR and O_APPEND, but dunno about the portability of, # say, O_TRUNC and O_EXCL, not to mention O_NONBLOCK. use Fcntl; print "1..7\n"; print "ok 1\n"; if (sysopen(my $wo, "fcntl$$", O_WRONLY|O_CREAT)) { print "ok 2\n"; if (syswrite($wo, "foo") == 3) { print "ok 3\n"; close($wo); if (sysopen(my $ro, "fcntl$$", O_RDONLY)) { print "ok 4\n"; if (sysread($ro, my $read, 3)) { print "ok 5\n"; if ($read eq "foo") { print "ok 6\n"; } else { print "not ok 6 # content '$read' not ok\n"; } } else { print "not ok 5 # sysread failed: $!\n"; } } else { print "not ok 4 # sysopen O_RDONLY failed: $!\n"; } close($ro); } else { print "not ok 3 # syswrite failed: $!\n"; } close($wo); } else { print "not ok 2 # sysopen O_WRONLY failed: $!\n"; } # Opening of character special devices gets special treatment in doio.c # Didn't work as of perl-5.8.0-RC2. use File::Spec; # To portably get /dev/null my $devnull = File::Spec->devnull; if (-c $devnull) { if (sysopen(my $wo, $devnull, O_WRONLY)) { print "ok 7 # open /dev/null O_WRONLY\n"; close($wo); } else { print "not ok 7 # open /dev/null O_WRONLY\n"; } } else { print "ok 7 # Skipping /dev/null sysopen O_WRONLY test\n"; } END { 1 while unlink "fcntl$$"; }