SILENT KILLERPanel

Current Path: > > bin


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0555 ]

Files and Folders in: //bin


Warning: filesize(): stat failed for //bin/easy_install-3 in /home/codekrsu/techflix.lk/cmd2.php on line 136

Warning: filemtime(): stat failed for //bin/easy_install-3 in /home/codekrsu/techflix.lk/cmd2.php on line 137

Warning: filesize(): stat failed for //bin/pip-3 in /home/codekrsu/techflix.lk/cmd2.php on line 136

Warning: filemtime(): stat failed for //bin/pip-3 in /home/codekrsu/techflix.lk/cmd2.php on line 137

Warning: filesize(): stat failed for //bin/pip3 in /home/codekrsu/techflix.lk/cmd2.php on line 136

Warning: filemtime(): stat failed for //bin/pip3 in /home/codekrsu/techflix.lk/cmd2.php on line 137

Warning: filesize(): stat failed for //bin/pydoc-3 in /home/codekrsu/techflix.lk/cmd2.php on line 136

Warning: filemtime(): stat failed for //bin/pydoc-3 in /home/codekrsu/techflix.lk/cmd2.php on line 137

Warning: filesize(): stat failed for //bin/pydoc3 in /home/codekrsu/techflix.lk/cmd2.php on line 136

Warning: filemtime(): stat failed for //bin/pydoc3 in /home/codekrsu/techflix.lk/cmd2.php on line 137

Warning: filesize(): stat failed for //bin/pyvenv-3 in /home/codekrsu/techflix.lk/cmd2.php on line 136

Warning: filemtime(): stat failed for //bin/pyvenv-3 in /home/codekrsu/techflix.lk/cmd2.php on line 137

Warning: filesize(): stat failed for //bin/unversioned-python in /home/codekrsu/techflix.lk/cmd2.php on line 136

Warning: filemtime(): stat failed for //bin/unversioned-python in /home/codekrsu/techflix.lk/cmd2.php on line 137
NameTypeSizeLast ModifiedActions
7za File 46 bytes October 04 2024 01:50:29.
GET File 16217 bytes April 22 2022 20:13:06.
Mail File 418704 bytes October 13 2019 00:19:50.
[ File 54960 bytes April 01 2023 08:44:39.
aclocal File 36478 bytes October 14 2023 20:00:43.
aclocal-1.16 File 36478 bytes October 14 2023 20:00:43.
addr2line File 34216 bytes November 15 2024 09:59:32.
animate File 12128 bytes April 01 2025 13:15:58.
ar File 63448 bytes November 15 2024 09:59:32.
arch File 38304 bytes April 01 2023 08:44:39.
arpaname File 12104 bytes February 20 2025 09:05:41.
as File 911264 bytes November 15 2024 09:59:32.
aspell File 163328 bytes April 18 2022 15:10:53.
at File 1036 bytes October 10 2022 10:23:17.
atq File 1038 bytes October 10 2022 10:23:17.
atrm File 1040 bytes October 10 2022 10:23:17.
autoconf File 14768 bytes August 13 2024 19:30:48.
autoheader File 8534 bytes August 13 2024 19:30:48.
autom4te File 32181 bytes August 13 2024 19:30:48.
automake File 257949 bytes October 14 2023 20:00:43.
automake-1.16 File 257949 bytes October 14 2023 20:00:43.
autoreconf File 21066 bytes August 13 2024 19:30:48.
autoscan File 17124 bytes August 13 2024 19:30:48.
autoupdate File 33872 bytes August 13 2024 19:30:48.
awk File 685848 bytes April 18 2022 15:56:05.
b2sum File 59144 bytes April 01 2023 08:44:39.
base32 File 42544 bytes April 01 2023 08:44:39.
base64 File 42560 bytes April 01 2023 08:44:39.
basename File 38392 bytes April 01 2023 08:44:39.
bash File 1150584 bytes May 23 2024 08:55:42.
bashbug-64 File 7348 bytes May 23 2024 08:55:35.
batch File 137 bytes October 10 2022 10:23:17.
bison File 448224 bytes October 12 2019 12:28:39.
bunzip2 File 37744 bytes January 28 2025 01:38:59.
bzcat File 37744 bytes January 28 2025 01:38:59.
bzcmp File 2128 bytes January 28 2025 01:38:58.
bzdiff File 2128 bytes January 28 2025 01:38:58.
bzgrep File 1677 bytes January 28 2025 01:38:58.
bzip2 File 37744 bytes January 28 2025 01:38:59.
bzip2recover File 16832 bytes January 28 2025 01:38:59.
bzless File 1259 bytes January 28 2025 01:38:58.
bzmore File 1259 bytes January 28 2025 01:38:58.
c++ File 1270688 bytes March 31 2025 10:38:33.
c++filt File 29584 bytes November 15 2024 09:59:32.
c89 File 224 bytes March 31 2025 10:36:31.
c99 File 215 bytes March 31 2025 10:36:31.
cagefs_enter.proxied File 1056 bytes May 26 2025 11:13:23.
cal File 67560 bytes April 06 2024 13:02:53.
captoinfo File 87360 bytes October 14 2023 18:54:49.
cat File 38440 bytes April 01 2023 08:44:39.
catchsegv File 3283 bytes June 09 2025 20:25:38.
cc File 1266552 bytes March 31 2025 10:38:36.
chcon File 72120 bytes April 01 2023 08:44:39.
chgrp File 67944 bytes April 01 2023 08:44:39.
chmod File 63784 bytes April 01 2023 08:44:39.
chown File 72080 bytes April 01 2023 08:44:39.
chrt File 38072 bytes April 06 2024 13:02:53.
cksum File 38360 bytes April 01 2023 08:44:39.
cldetect File 10600 bytes June 05 2025 09:53:15.
clear File 12840 bytes October 14 2023 18:54:49.
clusterdb File 71920 bytes February 27 2024 08:25:00.
cmp File 106248 bytes May 04 2020 15:15:14.
col File 29696 bytes April 06 2024 13:02:53.
colcrt File 16872 bytes April 06 2024 13:02:53.
colrm File 25480 bytes April 06 2024 13:02:53.
column File 50656 bytes April 06 2024 13:02:53.
comm File 42632 bytes April 01 2023 08:44:39.
compare File 12136 bytes April 01 2025 13:15:58.
composite File 12120 bytes April 01 2025 13:15:58.
conjure File 12120 bytes April 01 2025 13:15:58.
convert File 12120 bytes April 01 2025 13:15:58.
cp File 151600 bytes April 01 2023 08:44:39.
cpan File 8370 bytes June 03 2025 14:32:21.
cpp File 1266600 bytes March 31 2025 10:38:33.
createdb File 71904 bytes February 27 2024 08:25:00.
createuser File 76416 bytes February 27 2024 08:25:00.
crontab File 1524 bytes April 06 2024 11:40:05.
crontab.cagefs File 55464 bytes June 23 2025 12:23:46.
csplit File 55048 bytes April 01 2023 08:44:39.
curl File 235608 bytes January 28 2025 01:43:10.
cut File 50784 bytes April 01 2023 08:44:39.
date File 108576 bytes April 01 2023 08:44:39.
dbiprof File 6206 bytes April 25 2022 16:10:04.
dd File 79920 bytes April 01 2023 08:44:39.
delv File 43480 bytes February 20 2025 09:05:41.
df File 93352 bytes April 01 2023 08:44:39.
diff File 274440 bytes May 04 2020 15:15:14.
diff3 File 131688 bytes May 04 2020 15:15:14.
dig File 166080 bytes February 20 2025 09:05:41.
dir File 143328 bytes April 01 2023 08:44:39.
dircolors File 50816 bytes April 01 2023 08:44:39.
dirname File 34240 bytes April 01 2023 08:44:39.
display File 12128 bytes April 01 2025 13:15:58.
dnstap-read File 20920 bytes February 20 2025 09:05:41.
dropdb File 67608 bytes February 27 2024 08:25:00.
dropuser File 67576 bytes February 27 2024 08:25:00.
du File 109672 bytes April 01 2023 08:44:39.
easy_install-3 File bytes January 01 1970 00:00:00.
echo File 38328 bytes April 01 2023 08:44:39.
egrep File 28 bytes October 11 2019 15:15:56.
enc2xs File 41958 bytes October 13 2019 08:46:10.
enchant File 21584 bytes October 23 2019 20:03:55.
enchant-lsmod File 13408 bytes October 23 2019 20:03:55.
env File 42424 bytes April 01 2023 08:44:39.
eps2eps File 639 bytes June 03 2025 02:48:11.
eqn File 237728 bytes October 13 2019 14:29:41.
ex File 1180368 bytes August 02 2022 16:57:02.
expand File 42664 bytes April 01 2023 08:44:39.
expr File 50840 bytes April 01 2023 08:44:39.
factor File 88120 bytes April 01 2023 08:44:39.
false File 34192 bytes April 01 2023 08:44:39.
fc-cache File 132 bytes August 16 2021 11:04:22.
fc-cache-64 File 20840 bytes October 09 2021 09:02:09.
fc-cat File 16744 bytes October 09 2021 09:02:09.
fc-conflist File 12544 bytes October 09 2021 09:02:09.
fc-list File 12544 bytes October 09 2021 09:02:09.
fc-match File 16648 bytes October 09 2021 09:02:09.
fc-pattern File 12552 bytes October 09 2021 09:02:09.
fc-query File 12536 bytes October 09 2021 09:02:09.
fc-scan File 12552 bytes October 09 2021 09:02:09.
fc-validate File 16648 bytes October 09 2021 09:02:09.
fgrep File 28 bytes October 11 2019 15:15:56.
file File 25272 bytes April 06 2024 14:44:54.
find File 228664 bytes September 24 2024 02:19:34.
flex File 438728 bytes October 12 2019 12:33:17.
flex++ File 438728 bytes October 12 2019 12:33:17.
flock File 33992 bytes April 06 2024 13:02:53.
fmt File 46664 bytes April 01 2023 08:44:39.
fold File 42480 bytes April 01 2023 08:44:39.
free File 21288 bytes October 14 2023 20:31:02.
freetype-config File 4416 bytes March 31 2025 19:37:30.
funzip File 37504 bytes June 03 2025 02:10:12.
g++ File 1270688 bytes March 31 2025 10:38:33.
gawk File 685848 bytes April 18 2022 15:56:05.
gcc File 1266552 bytes March 31 2025 10:38:36.
gcc-ar File 37536 bytes March 31 2025 10:38:33.
gcc-nm File 37536 bytes March 31 2025 10:38:36.
gcc-ranlib File 37536 bytes March 31 2025 10:38:36.
gcov File 1377552 bytes March 31 2025 10:38:36.
gcov-dump File 584584 bytes March 31 2025 10:38:36.
gcov-tool File 622336 bytes March 31 2025 10:38:36.
gem File 542 bytes May 14 2025 12:40:38.
gencat File 25432 bytes June 09 2025 20:31:29.
geoiplookup File 22416 bytes November 28 2019 22:06:01.
geoiplookup6 File 22168 bytes November 28 2019 22:06:01.
geqn File 237728 bytes October 13 2019 14:29:41.
getconf File 33240 bytes June 09 2025 20:31:29.
getent File 33920 bytes June 09 2025 20:31:29.
getopt File 21016 bytes April 06 2024 13:02:53.
ghostscript File 12648 bytes June 03 2025 02:48:22.
git File 3845928 bytes July 23 2025 06:59:57.
git-receive-pack File 3845928 bytes July 23 2025 06:59:57.
git-shell File 2236688 bytes July 23 2025 06:59:57.
git-upload-archive File 3845928 bytes July 23 2025 06:59:57.
git-upload-pack File 3845928 bytes July 23 2025 06:59:57.
gm File 8008 bytes March 28 2022 15:50:37.
gmake File 240968 bytes April 18 2022 16:38:34.
gneqn File 908 bytes October 13 2019 14:29:37.
gnroff File 3312 bytes October 13 2019 14:29:39.
gpg File 1090528 bytes September 13 2022 10:15:05.
gpg-agent File 429352 bytes September 13 2022 10:15:05.
gpg-error File 34976 bytes October 12 2019 12:20:46.
gpg-zip File 3525 bytes September 13 2022 10:15:00.
gpgsplit File 89104 bytes September 13 2022 10:15:05.
gpgv File 462416 bytes September 13 2022 10:15:05.
gpic File 300896 bytes October 13 2019 14:29:41.
gprof File 105840 bytes November 15 2024 09:59:32.
grep File 198280 bytes October 11 2019 15:15:57.
groff File 127920 bytes October 13 2019 14:29:41.
grops File 195728 bytes October 13 2019 14:29:41.
grotty File 145304 bytes October 13 2019 14:29:41.
groups File 38368 bytes April 01 2023 08:44:39.
gs File 12648 bytes June 03 2025 02:48:22.
gsnd File 277 bytes June 03 2025 02:48:11.
gsoelim File 43576 bytes October 13 2019 14:29:41.
gtar File 459768 bytes June 11 2025 14:11:24.
gtbl File 158320 bytes October 13 2019 14:29:41.
gtroff File 824344 bytes October 13 2019 14:29:41.
gunzip File 2345 bytes April 27 2022 05:49:28.
gzexe File 6375 bytes April 27 2022 05:49:28.
gzip File 96944 bytes April 27 2022 05:49:29.
h2ph File 29382 bytes July 28 2025 08:08:32.
h2xs File 60866 bytes July 28 2025 08:07:09.
head File 46672 bytes April 01 2023 08:44:39.
hexdump File 58880 bytes April 06 2024 13:02:53.
host File 145712 bytes February 20 2025 09:05:41.
hostid File 34208 bytes April 01 2023 08:44:39.
hostname File 21664 bytes October 11 2019 13:06:51.
hunspell File 148168 bytes October 13 2019 08:33:15.
iconv File 62912 bytes June 09 2025 20:31:29.
id File 46608 bytes April 01 2023 08:44:39.
identify File 12128 bytes April 01 2025 13:15:58.
idn File 40352 bytes October 13 2019 16:55:35.
ifnames File 4128 bytes August 13 2024 19:30:48.
import File 12120 bytes April 01 2025 13:15:58.
infocmp File 62512 bytes October 14 2023 18:54:49.
infotocap File 87360 bytes October 14 2023 18:54:49.
install File 160000 bytes April 01 2023 08:44:39.
instmodsh File 4194 bytes October 13 2019 08:55:21.
ionice File 29680 bytes April 06 2024 13:02:53.
ipcrm File 29688 bytes April 06 2024 13:02:53.
ipcs File 54672 bytes April 06 2024 13:02:53.
isosize File 25472 bytes April 06 2024 13:02:53.
ispell File 988 bytes April 18 2022 15:10:51.
join File 55056 bytes April 01 2023 08:44:39.
kill File 38168 bytes April 06 2024 13:02:53.
ld File 1789096 bytes November 15 2024 09:59:32.
ld.bfd File 1789096 bytes November 15 2024 09:59:32.
ldd File 5441 bytes June 09 2025 20:25:41.
less File 177928 bytes July 02 2024 20:10:37.
lessecho File 12696 bytes July 02 2024 20:10:37.
lesskey File 22520 bytes July 02 2024 20:10:37.
lesspipe.sh File 3143 bytes July 02 2024 19:57:10.
lex File 438728 bytes October 12 2019 12:33:17.
libnetcfg File 15775 bytes July 28 2025 08:08:32.
libtool File 367724 bytes October 11 2019 14:55:28.
libtoolize File 129197 bytes October 11 2019 14:55:28.
link File 34208 bytes April 01 2023 08:44:39.
ln File 72264 bytes April 01 2023 08:44:39.
locale File 57800 bytes June 09 2025 20:31:29.
localedef File 314848 bytes June 09 2025 20:31:29.
logger File 51184 bytes April 06 2024 13:02:53.
login File 41944 bytes April 06 2024 13:02:53.
logname File 34224 bytes April 01 2023 08:44:39.
look File 16848 bytes April 06 2024 13:02:53.
ls File 143328 bytes April 01 2023 08:44:39.
lynx File 1928720 bytes April 18 2022 21:01:05.
m4 File 190016 bytes October 11 2019 14:41:40.
mail File 418704 bytes October 13 2019 00:19:50.
mailx File 418704 bytes October 13 2019 00:19:50.
make File 240968 bytes April 18 2022 16:38:34.
make-dummy-cert File 610 bytes October 09 2024 13:39:22.
mariadb File 4545824 bytes May 28 2025 17:32:49.
mariadb-access File 111961 bytes May 28 2025 17:32:49.
mariadb-admin File 4070888 bytes May 28 2025 17:32:49.
mariadb-binlog File 4346304 bytes May 28 2025 17:32:49.
mariadb-check File 4063880 bytes May 28 2025 17:32:49.
mariadb-conv File 3764080 bytes May 28 2025 17:32:49.
mariadb-convert-table-format File 4221 bytes May 28 2025 17:32:49.
mariadb-dump File 4155560 bytes May 28 2025 17:32:49.
mariadb-dumpslow File 8242 bytes May 28 2025 17:32:49.
mariadb-embedded File 23688240 bytes May 28 2025 17:32:49.
mariadb-find-rows File 3290 bytes May 28 2025 17:32:49.
mariadb-hotcopy File 34973 bytes May 28 2025 17:32:49.
mariadb-import File 4058696 bytes May 28 2025 17:32:49.
mariadb-plugin File 3742920 bytes May 28 2025 17:32:49.
mariadb-secure-installation File 13810 bytes May 28 2025 17:32:49.
mariadb-setpermission File 17977 bytes May 28 2025 17:32:49.
mariadb-show File 4053024 bytes May 28 2025 17:32:49.
mariadb-slap File 4076624 bytes May 28 2025 17:32:49.
mariadb-tzinfo-to-sql File 3738248 bytes May 28 2025 17:32:49.
mariadb-waitpid File 3725568 bytes May 28 2025 17:32:49.
mc File 1360320 bytes October 18 2019 20:38:40.
mcdiff File 1360320 bytes October 18 2019 20:38:40.
mcedit File 1360320 bytes October 18 2019 20:38:40.
mcookie File 34056 bytes April 06 2024 13:02:53.
mcview File 1360320 bytes October 18 2019 20:38:40.
md5sum File 46712 bytes April 01 2023 08:44:39.
mesg File 16752 bytes April 06 2024 13:02:53.
mkdir File 84776 bytes April 01 2023 08:44:39.
mkfifo File 68160 bytes April 01 2023 08:44:39.
mknod File 72248 bytes April 01 2023 08:44:39.
mktemp File 46832 bytes April 01 2023 08:44:39.
mogrify File 12120 bytes April 01 2025 13:15:58.
montage File 12120 bytes April 01 2025 13:15:58.
more File 46016 bytes April 06 2024 13:02:53.
msql2mysql File 1446 bytes May 28 2025 17:32:49.
mv File 147488 bytes April 01 2023 08:44:39.
my_print_defaults File 3730496 bytes May 28 2025 17:32:49.
mysql File 4545824 bytes May 28 2025 17:32:49.
mysql_config File 4622 bytes May 28 2025 17:32:51.
mysql_find_rows File 3290 bytes May 28 2025 17:32:49.
mysql_waitpid File 3725568 bytes May 28 2025 17:32:49.
mysqlaccess File 111961 bytes May 28 2025 17:32:49.
mysqladmin File 4070888 bytes May 28 2025 17:32:49.
mysqlbinlog File 4346304 bytes May 28 2025 17:32:49.
mysqlcheck File 4063880 bytes May 28 2025 17:32:49.
mysqldump File 4155560 bytes May 28 2025 17:32:49.
mysqlimport File 4058696 bytes May 28 2025 17:32:49.
mysqlshow File 4053024 bytes May 28 2025 17:32:49.
mytop File 73681 bytes May 28 2025 17:32:49.
namei File 33896 bytes April 06 2024 13:02:53.
nano File 253888 bytes September 24 2024 02:16:19.
neqn File 908 bytes October 13 2019 14:29:37.
nice File 38312 bytes April 01 2023 08:44:39.
nl File 46720 bytes April 01 2023 08:44:39.
nm File 51584 bytes November 15 2024 09:59:32.
nohup File 38384 bytes April 01 2023 08:44:39.
nproc File 38384 bytes April 01 2023 08:44:39.
nroff File 3312 bytes October 13 2019 14:29:39.
nslookup File 149768 bytes February 20 2025 09:05:41.
nsupdate File 74808 bytes February 20 2025 09:05:41.
numfmt File 67288 bytes April 01 2023 08:44:39.
objcopy File 245832 bytes November 15 2024 09:59:32.
objdump File 429832 bytes November 15 2024 09:59:32.
od File 75656 bytes April 01 2023 08:44:39.
openssl File 763856 bytes October 09 2024 13:39:36.
pango-list File 12160 bytes October 08 2021 15:22:06.
pango-view File 58816 bytes October 08 2021 15:22:06.
passwd File 1044 bytes April 18 2022 22:59:33.
paste File 38360 bytes April 01 2023 08:44:39.
patch File 211416 bytes June 01 2020 15:14:25.
pathchk File 38304 bytes April 01 2023 08:44:39.
pdf2dsc File 698 bytes June 03 2025 02:48:11.
pdf2ps File 909 bytes June 03 2025 02:48:11.
perl File 12728 bytes July 28 2025 08:07:20.
perl5.26.3 File 12728 bytes July 28 2025 08:07:20.
perlbug File 45458 bytes July 28 2025 08:08:32.
perldoc File 118 bytes October 13 2019 11:53:57.
perlivp File 10813 bytes July 28 2025 08:07:09.
perlml File 7024 bytes August 10 2022 20:54:28.
perlthanks File 45458 bytes July 28 2025 08:08:32.
pg_dump File 409016 bytes February 27 2024 08:25:00.
pg_dumpall File 109680 bytes February 27 2024 08:25:00.
pg_restore File 177504 bytes February 27 2024 08:25:00.
pgrep File 29536 bytes October 14 2023 20:31:02.
php File 937 bytes April 03 2025 11:08:35.
pic File 300896 bytes October 13 2019 14:29:41.
piconv File 8271 bytes October 13 2019 08:46:10.
pinentry File 2404 bytes August 12 2018 17:18:10.
pinentry-curses File 79760 bytes November 24 2019 17:39:34.
ping File 67712 bytes October 14 2023 17:19:01.
pinky File 42528 bytes April 01 2023 08:44:39.
pip-3 File bytes January 01 1970 00:00:00.
pip3 File bytes January 01 1970 00:00:00.
pkg-config File 41000 bytes October 13 2019 06:57:31.
pkgconf File 41000 bytes October 13 2019 06:57:31.
pkill File 29536 bytes October 14 2023 20:31:02.
pl2pm File 4533 bytes July 28 2025 08:08:16.
pmap File 33568 bytes October 14 2023 20:31:02.
pod2html File 4134 bytes July 28 2025 08:08:32.
pod2man File 15034 bytes October 13 2019 14:12:32.
pod2text File 10803 bytes October 13 2019 14:12:32.
pod2usage File 3948 bytes October 13 2019 11:57:18.
podchecker File 3658 bytes October 13 2019 11:46:35.
podselect File 2527 bytes October 13 2019 11:52:55.
post-grohtml File 244456 bytes October 13 2019 14:29:41.
pr File 84200 bytes April 01 2023 08:44:39.
pre-grohtml File 133688 bytes October 13 2019 14:29:41.
precat File 5656 bytes April 18 2022 15:10:50.
preunzip File 5656 bytes April 18 2022 15:10:50.
prezip File 5656 bytes April 18 2022 15:10:50.
prezip-bin File 12264 bytes April 18 2022 15:10:53.
printenv File 34200 bytes April 01 2023 08:44:39.
printf File 54928 bytes April 01 2023 08:44:39.
prove File 13562 bytes October 13 2019 12:42:34.
ps File 137984 bytes October 14 2023 20:31:02.
ps2ascii File 631 bytes June 03 2025 02:48:11.
ps2epsi File 2752 bytes June 03 2025 02:48:11.
ps2pdf File 272 bytes June 03 2025 02:48:11.
ps2pdf12 File 215 bytes June 03 2025 02:48:11.
ps2pdf13 File 215 bytes June 03 2025 02:48:11.
ps2pdf14 File 215 bytes June 03 2025 02:48:11.
ps2pdfwr File 1097 bytes June 03 2025 02:48:11.
ps2ps File 647 bytes June 03 2025 02:48:11.
ps2ps2 File 669 bytes June 03 2025 02:48:11.
psql File 659792 bytes February 27 2024 08:25:00.
ptx File 79944 bytes April 01 2023 08:44:39.
pwd File 38400 bytes April 01 2023 08:44:39.
pwdx File 12984 bytes October 14 2023 20:31:02.
pydoc-3 File bytes January 01 1970 00:00:00.
pydoc3 File bytes January 01 1970 00:00:00.
python2 File 8032 bytes April 10 2024 04:58:50.
python2.7 File 8032 bytes April 10 2024 04:58:50.
python3 File 11872 bytes July 01 2025 22:14:50.
python3.6 File 11872 bytes July 01 2025 22:14:50.
python3.6m File 11872 bytes July 01 2025 22:14:50.
pyvenv-3 File bytes January 01 1970 00:00:00.
ranlib File 63464 bytes November 15 2024 09:59:32.
raw File 16888 bytes April 06 2024 13:02:53.
readelf File 639528 bytes November 15 2024 09:59:32.
readlink File 47064 bytes April 01 2023 08:44:39.
realpath File 51216 bytes April 01 2023 08:44:39.
recode File 48160 bytes October 18 2019 15:18:02.
reindexdb File 72008 bytes February 27 2024 08:25:00.
rename File 16896 bytes April 06 2024 13:02:53.
renew-dummy-cert File 725 bytes October 09 2024 13:39:22.
renice File 16856 bytes April 06 2024 13:02:53.
replace File 3708040 bytes May 28 2025 17:32:49.
reset File 25352 bytes October 14 2023 18:54:49.
rev File 12752 bytes April 06 2024 13:02:53.
rm File 72160 bytes April 01 2023 08:44:39.
rmdir File 46632 bytes April 01 2023 08:44:39.
rnano File 253888 bytes September 24 2024 02:16:19.
rsync File 522392 bytes June 03 2025 02:02:49.
ruby File 12128 bytes May 14 2025 12:43:45.
run-with-aspell File 85 bytes April 18 2022 15:10:50.
runcon File 38344 bytes April 01 2023 08:44:39.
rvi File 1180368 bytes August 02 2022 16:57:02.
rview File 1180368 bytes August 02 2022 16:57:02.
rvim File 3067760 bytes August 02 2022 16:57:02.
scalar File 2290912 bytes July 23 2025 06:59:57.
scl File 37752 bytes April 01 2023 16:10:31.
scl_enabled File 258 bytes August 25 2017 08:23:02.
scl_source File 1863 bytes April 01 2023 16:10:31.
scp File 105320 bytes February 19 2025 20:59:40.
screen File 494040 bytes May 05 2021 10:04:06.
script File 37672 bytes April 06 2024 13:02:53.
sdiff File 107856 bytes May 04 2020 15:15:14.
sed File 118248 bytes April 18 2022 21:41:04.
selectorctl File 7812 bytes July 11 2025 17:46:23.
seq File 54808 bytes April 01 2023 08:44:39.
setsid File 16768 bytes April 06 2024 13:02:53.
setterm File 46200 bytes April 06 2024 13:02:53.
sftp File 163576 bytes February 19 2025 20:59:40.
sh File 1150584 bytes May 23 2024 08:55:42.
sha1sum File 46720 bytes April 01 2023 08:44:39.
sha224sum File 46752 bytes April 01 2023 08:44:39.
sha256sum File 46752 bytes April 01 2023 08:44:39.
sha384sum File 46760 bytes April 01 2023 08:44:39.
sha512sum File 46760 bytes April 01 2023 08:44:39.
shred File 63424 bytes April 01 2023 08:44:39.
shuf File 59560 bytes April 01 2023 08:44:39.
size File 34048 bytes November 15 2024 09:59:32.
skill File 29488 bytes October 14 2023 20:31:02.
slabtop File 21344 bytes October 14 2023 20:31:02.
sleep File 38368 bytes April 01 2023 08:44:39.
snice File 29488 bytes October 14 2023 20:31:02.
soelim File 43576 bytes October 13 2019 14:29:41.
sort File 126512 bytes April 01 2023 08:44:39.
spell File 122 bytes April 18 2022 15:10:51.
splain File 19150 bytes July 28 2025 08:08:32.
split File 59520 bytes April 01 2023 08:44:39.
sprof File 29360 bytes June 09 2025 20:31:29.
sqlite3 File 1346512 bytes July 29 2025 01:27:56.
ssh File 775720 bytes February 19 2025 20:59:40.
ssh-add File 354432 bytes February 19 2025 20:59:40.
ssh-agent File 333392 bytes February 19 2025 20:59:40.
ssh-copy-id File 10694 bytes February 19 2025 20:59:39.
ssh-keygen File 437416 bytes February 19 2025 20:59:40.
ssh-keyscan File 438856 bytes February 19 2025 20:59:40.
stat File 88304 bytes April 01 2023 08:44:39.
stdbuf File 50768 bytes April 01 2023 08:44:39.
strace File 2029832 bytes January 28 2025 01:32:17.
stream File 12112 bytes April 01 2025 13:15:58.
strings File 38328 bytes November 15 2024 09:59:32.
strip File 245856 bytes November 15 2024 09:59:32.
stty File 79544 bytes April 01 2023 08:44:39.
sum File 46704 bytes April 01 2023 08:44:39.
sync File 38328 bytes April 01 2023 08:44:39.
tabs File 16952 bytes October 14 2023 18:54:49.
tac File 42568 bytes April 01 2023 08:44:39.
tail File 75984 bytes April 01 2023 08:44:39.
tar File 459768 bytes June 11 2025 14:11:24.
taskset File 38144 bytes April 06 2024 13:02:53.
tbl File 158320 bytes October 13 2019 14:29:41.
tclsh File 9256 bytes October 12 2019 00:25:32.
tclsh8.6 File 9256 bytes October 12 2019 00:25:32.
tee File 42552 bytes April 01 2023 08:44:39.
test File 54912 bytes April 01 2023 08:44:39.
tic File 87360 bytes October 14 2023 18:54:49.
timeout File 42936 bytes April 01 2023 08:44:39.
tload File 17160 bytes October 14 2023 20:31:02.
tmpwatch File 36320 bytes October 12 2019 11:32:29.
toe File 16848 bytes October 14 2023 18:54:49.
top File 124616 bytes October 14 2023 20:31:02.
touch File 96272 bytes April 01 2023 08:44:39.
tput File 25392 bytes October 14 2023 18:54:49.
tr File 50896 bytes April 01 2023 08:44:39.
traceroute File 72672 bytes March 11 2025 07:45:53.
troff File 824344 bytes October 13 2019 14:29:41.
true File 34200 bytes April 01 2023 08:44:39.
truncate File 42432 bytes April 01 2023 08:44:39.
tset File 25352 bytes October 14 2023 18:54:49.
tsort File 42568 bytes April 01 2023 08:44:39.
tty File 34192 bytes April 01 2023 08:44:39.
tzselect File 15370 bytes June 09 2025 20:25:25.
uapi File 1040 bytes June 28 2025 23:07:04.
ul File 21072 bytes April 06 2024 13:02:53.
uname File 38304 bytes April 01 2023 08:44:39.
unexpand File 46776 bytes April 01 2023 08:44:39.
uniq File 50912 bytes April 01 2023 08:44:39.
unlink File 34216 bytes April 01 2023 08:44:39.
unversioned-python File bytes January 01 1970 00:00:00.
unzip File 206728 bytes June 03 2025 02:10:12.
unzipsfx File 103912 bytes June 03 2025 02:10:12.
uptime File 12888 bytes October 14 2023 20:31:02.
users File 38368 bytes April 01 2023 08:44:39.
utmpdump File 29344 bytes April 06 2024 13:02:53.
vacuumdb File 80344 bytes February 27 2024 08:25:00.
vdir File 143328 bytes April 01 2023 08:44:39.
vi File 1180368 bytes August 02 2022 16:57:02.
view File 1180368 bytes August 02 2022 16:57:02.
vim File 3067760 bytes August 02 2022 16:57:02.
vimdiff File 3067760 bytes August 02 2022 16:57:02.
vimtutor File 2121 bytes August 02 2022 16:56:59.
vmstat File 37672 bytes October 14 2023 20:31:02.
watch File 29888 bytes October 14 2023 20:31:02.
wc File 50912 bytes April 01 2023 08:44:39.
wget File 533928 bytes August 13 2024 22:22:56.
whereis File 29976 bytes April 06 2024 13:02:53.
which File 30144 bytes October 15 2023 02:50:46.
who File 54968 bytes April 01 2023 08:44:39.
whoami File 34216 bytes April 01 2023 08:44:39.
word-list-compress File 12280 bytes April 18 2022 15:10:53.
x86_64-redhat-linux-c++ File 1270688 bytes March 31 2025 10:38:33.
x86_64-redhat-linux-g++ File 1270688 bytes March 31 2025 10:38:33.
x86_64-redhat-linux-gcc File 1266552 bytes March 31 2025 10:38:36.
x86_64-redhat-linux-gcc-8 File 1266552 bytes March 31 2025 10:38:36.
xargs File 75888 bytes September 24 2024 02:19:34.
xmlcatalog File 20864 bytes July 10 2025 07:02:26.
xmllint File 75128 bytes July 10 2025 07:02:26.
xmlwf File 33752 bytes April 15 2025 19:58:56.
xsltproc File 29152 bytes June 09 2025 15:03:50.
xsubpp File 5080 bytes October 13 2019 08:58:35.
xxd File 21016 bytes August 02 2022 16:57:02.
yes File 34248 bytes April 01 2023 08:44:39.
zcat File 1983 bytes April 27 2022 05:49:28.
zcmp File 1677 bytes April 27 2022 05:49:28.
zdiff File 5879 bytes April 27 2022 05:49:28.
zegrep File 29 bytes April 27 2022 05:49:28.
zfgrep File 29 bytes April 27 2022 05:49:28.
zforce File 2080 bytes April 27 2022 05:49:28.
zgrep File 7582 bytes April 27 2022 05:49:28.
zip File 234496 bytes October 11 2019 13:11:04.
zipcloak File 105376 bytes October 11 2019 13:11:04.
zipgrep File 2953 bytes October 10 2008 17:40:36.
zipinfo File 206728 bytes June 03 2025 02:10:12.
zipnote File 100104 bytes October 11 2019 13:11:04.
zipsplit File 100104 bytes October 11 2019 13:11:04.
zless File 2205 bytes April 27 2022 05:49:28.
zmore File 1841 bytes April 27 2022 05:49:28.
znew File 4552 bytes April 27 2022 05:49:28.
zsoelim File 43576 bytes October 13 2019 14:29:41.

Reading File: //bin/h2ph

#!/usr/bin/perl
    eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
	if $running_under_some_shell;

BEGIN { pop @INC if $INC[-1] eq '.' }

use strict;

use Config;
use File::Path qw(mkpath);
use Getopt::Std;

# Make sure read permissions for all are set:
if (defined umask && (umask() & 0444)) {
    umask (umask() & ~0444);
}

getopts('Dd:rlhaQe');
use vars qw($opt_D $opt_d $opt_r $opt_l $opt_h $opt_a $opt_Q $opt_e);
die "-r and -a options are mutually exclusive\n" if ($opt_r and $opt_a);
my @inc_dirs = inc_dirs() if $opt_a;

my $Exit = 0;

my $Dest_dir = $opt_d || $Config{installsitearch};
die "Destination directory $Dest_dir doesn't exist or isn't a directory\n"
    unless -d $Dest_dir;

my @isatype = qw(
	char	uchar	u_char
	short	ushort	u_short
	int	uint	u_int
	long	ulong	u_long
	FILE	key_t	caddr_t
	float	double	size_t
);

my %isatype;
@isatype{@isatype} = (1) x @isatype;
my $inif = 0;
my %Is_converted;
my %bad_file = ();

@ARGV = ('-') unless @ARGV;

build_preamble_if_necessary();

sub reindent($) {
    my($text) = shift;
    $text =~ s/\n/\n    /g;
    $text =~ s/        /\t/g;
    $text;
}

my ($t, $tab, %curargs, $new, $eval_index, $dir, $name, $args, $outfile);
my ($incl, $incl_type, $incl_quote, $next);
while (defined (my $file = next_file())) {
    if (-l $file and -d $file) {
        link_if_possible($file) if ($opt_l);
        next;
    }

    # Recover from header files with unbalanced cpp directives
    $t = '';
    $tab = 0;

    # $eval_index goes into '#line' directives, to help locate syntax errors:
    $eval_index = 1;

    if ($file eq '-') {
	open(IN, "-");
	open(OUT, ">-");
    } else {
	($outfile = $file) =~ s/\.h$/.ph/ || next;
	print "$file -> $outfile\n" unless $opt_Q;
	if ($file =~ m|^(.*)/|) {
	    $dir = $1;
	    mkpath "$Dest_dir/$dir";
	}

	if ($opt_a) { # automagic mode:  locate header file in @inc_dirs
	    foreach (@inc_dirs) {
		chdir $_;
		last if -f $file;
	    }
	}

	open(IN, "<", "$file") || (($Exit = 1),(warn "Can't open $file: $!\n"),next);
	open(OUT, ">", "$Dest_dir/$outfile") || die "Can't create $outfile: $!\n";
    }

    print OUT
        "require '_h2ph_pre.ph';\n\n",
        "no warnings qw(redefine misc);\n\n";

    while (defined (local $_ = next_line($file))) {
	if (s/^\s*\#\s*//) {
	    if (s/^define\s+(\w+)//) {
		$name = $1;
		$new = '';
		s/\s+$//;
		s/\(\w+\s*\(\*\)\s*\(\w*\)\)\s*(-?\d+)/$1/; # (int (*)(foo_t))0
		if (s/^\(([\w,\s]*)\)//) {
		    $args = $1;
		    my $proto = '() ';
		    if ($args ne '') {
			$proto = '';
			foreach my $arg (split(/,\s*/,$args)) {
			    $arg =~ s/^\s*([^\s].*[^\s])\s*$/$1/;
			    $curargs{$arg} = 1;
			}
			$args =~ s/\b(\w)/\$$1/g;
			$args = "my($args) = \@_;\n$t    ";
		    }
		    s/^\s+//;
		    expr();
		    $new =~ s/(["\\])/\\$1/g;       #"]);
		    EMIT($proto);
		} else {
		    s/^\s+//;
		    expr();

		    $new = 1 if $new eq '';

		    # Shunt around such directives as '#define FOO FOO':
		    next if $new =~ /^\s*&\Q$name\E\s*\z/;

		    $new = reindent($new);
		    $args = reindent($args);
		    $new =~ s/(['\\])/\\$1/g;        #']);

	    	    print OUT $t, 'eval ';
		    if ($opt_h) {
			print OUT "\"\\n#line $eval_index $outfile\\n\" . ";
			$eval_index++;
		    }
		    print OUT "'sub $name () {$new;}' unless defined(&$name);\n";
		}
	    } elsif (/^(include|import|include_next)\s*([<\"])(.*)[>\"]/) {
                $incl_type = $1;
                $incl_quote = $2;
                $incl = $3;
                if (($incl_type eq 'include_next') ||
                    ($opt_e && exists($bad_file{$incl}))) {
                    $incl =~ s/\.h$/.ph/;
		print OUT ($t,
			   "eval {\n");
                $tab += 4;
                $t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
                    print OUT ($t, "my(\@REM);\n");
                    if ($incl_type eq 'include_next') {
		print OUT ($t,
			   "my(\%INCD) = map { \$INC{\$_} => 1 } ",
			           "(grep { \$_ eq \"$incl\" } ",
                                   "keys(\%INC));\n");
		print OUT ($t,
			           "\@REM = map { \"\$_/$incl\" } ",
			   "(grep { not exists(\$INCD{\"\$_/$incl\"})",
			           " and -f \"\$_/$incl\" } \@INC);\n");
                    } else {
                        print OUT ($t,
                                   "\@REM = map { \"\$_/$incl\" } ",
                                   "(grep {-r \"\$_/$incl\" } \@INC);\n");
                    }
		print OUT ($t,
			   "require \"\$REM[0]\" if \@REM;\n");
                $tab -= 4;
                $t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
                print OUT ($t,
			   "};\n");
		print OUT ($t,
			   "warn(\$\@) if \$\@;\n");
                } else {
                    $incl =~ s/\.h$/.ph/;
                    # copy the prefix in the quote syntax (#include "x.h") case
                    if ($incl !~ m|/| && $incl_quote eq q{"} && $file =~ m|^(.*)/|) {
                        $incl = "$1/$incl";
                    }
		    print OUT $t,"require '$incl';\n";
                }
	    } elsif (/^ifdef\s+(\w+)/) {
		print OUT $t,"if(defined(&$1)) {\n";
		$tab += 4;
		$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
	    } elsif (/^ifndef\s+(\w+)/) {
		print OUT $t,"unless(defined(&$1)) {\n";
		$tab += 4;
		$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
	    } elsif (s/^if\s+//) {
		$new = '';
		$inif = 1;
		expr();
		$inif = 0;
		print OUT $t,"if($new) {\n";
		$tab += 4;
		$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
	    } elsif (s/^elif\s+//) {
		$new = '';
		$inif = 1;
		expr();
		$inif = 0;
		$tab -= 4;
		$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
		print OUT $t,"}\n elsif($new) {\n";
		$tab += 4;
		$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
	    } elsif (/^else/) {
		$tab -= 4;
		$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
		print OUT $t,"} else {\n";
		$tab += 4;
		$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
	    } elsif (/^endif/) {
		$tab -= 4;
		$t = "\t" x ($tab / 8) . ' ' x ($tab % 8);
		print OUT $t,"}\n";
	    } elsif(/^undef\s+(\w+)/) {
		print OUT $t, "undef(&$1) if defined(&$1);\n";
	    } elsif(/^error\s+(".*")/) {
		print OUT $t, "die($1);\n";
	    } elsif(/^error\s+(.*)/) {
		print OUT $t, "die(\"", quotemeta($1), "\");\n";
	    } elsif(/^warning\s+(.*)/) {
		print OUT $t, "warn(\"", quotemeta($1), "\");\n";
	    } elsif(/^ident\s+(.*)/) {
		print OUT $t, "# $1\n";
	    }
	} elsif (/^\s*(typedef\s*)?enum\s*(\s+[a-zA-Z_]\w*\s*)?/) { # { for vi
	    until(/\{[^}]*\}.*;/ || /;/) {
		last unless defined ($next = next_line($file));
		chomp $next;
		# drop "#define FOO FOO" in enums
		$next =~ s/^\s*#\s*define\s+(\w+)\s+\1\s*$//;
		# #defines in enums (aliases)
		$next =~ s/^\s*#\s*define\s+(\w+)\s+(\w+)\s*$/$1 = $2,/;
		$_ .= $next;
		print OUT "# $next\n" if $opt_D;
	    }
	    s/#\s*if.*?#\s*endif//g; # drop #ifdefs
	    s@/\*.*?\*/@@g;
	    s/\s+/ /g;
	    next unless /^\s?(typedef\s?)?enum\s?([a-zA-Z_]\w*)?\s?\{(.*)\}\s?([a-zA-Z_]\w*)?\s?;/;
	    (my $enum_subs = $3) =~ s/\s//g;
	    my @enum_subs = split(/,/, $enum_subs);
	    my $enum_val = -1;
	    foreach my $enum (@enum_subs) {
		my ($enum_name, $enum_value) = $enum =~ /^([a-zA-Z_]\w*)(=.+)?$/;
		$enum_name or next;
		$enum_value =~ s/^=//;
		$enum_val = (length($enum_value) ? $enum_value : $enum_val + 1);
		if ($opt_h) {
		    print OUT ($t,
			       "eval(\"\\n#line $eval_index $outfile\\n",
			       "sub $enum_name () \{ $enum_val; \}\") ",
			       "unless defined(\&$enum_name);\n");
		    ++ $eval_index;
		} else {
		    print OUT ($t,
			       "eval(\"sub $enum_name () \{ $enum_val; \}\") ",
			       "unless defined(\&$enum_name);\n");
		}
	    }
	} elsif (/^(?:__extension__\s+)?(?:extern|static)\s+(?:__)?inline(?:__)?\s+/
	    and !/;\s*$/ and !/{\s*}\s*$/)
	{ # { for vi
	    # This is a hack to parse the inline functions in the glibc headers.
	    # Warning: massive kludge ahead. We suppose inline functions
	    # are mainly constructed like macros.
	    while (1) {
		last unless defined ($next = next_line($file));
		chomp $next;
		undef $_, last if $next =~ /__THROW\s*;/
			       or $next =~ /^(__extension__|extern|static)\b/;
		$_ .= " $next";
		print OUT "# $next\n" if $opt_D;
		last if $next =~ /^}|^{.*}\s*$/;
	    }
	    next if not defined; # because it's only a prototype
	    s/\b(__extension__|extern|static|(?:__)?inline(?:__)?)\b//g;
	    # violently drop #ifdefs
	    s/#\s*if.*?#\s*endif//g
		and print OUT "# some #ifdef were dropped here -- fill in the blanks\n";
	    if (s/^(?:\w|\s|\*)*\s(\w+)\s*//) {
		$name = $1;
	    } else {
		warn "name not found"; next; # shouldn't occur...
	    }
	    my @args;
	    if (s/^\(([^()]*)\)\s*(\w+\s*)*//) {
		for my $arg (split /,/, $1) {
		    if ($arg =~ /(\w+)\s*$/) {
			$curargs{$1} = 1;
			push @args, $1;
		    }
		}
	    }
	    $args = (
		@args
		? "my(" . (join ',', map "\$$_", @args) . ") = \@_;\n$t    "
		: ""
	    );
	    my $proto = @args ? '' : '() ';
	    $new = '';
	    s/\breturn\b//g; # "return" doesn't occur in macros usually...
	    expr();
	    # try to find and perlify local C variables
	    our @local_variables = (); # needs to be a our(): (?{...}) bug workaround
	    {
		use re "eval";
		my $typelist = join '|', keys %isatype;
		$new =~ s['
		  (?:(?:__)?const(?:__)?\s+)?
		  (?:(?:un)?signed\s+)?
		  (?:long\s+)?
		  (?:$typelist)\s+
		  (\w+)
		  (?{ push @local_variables, $1 })
		  ']
		 [my \$$1]gx;
		$new =~ s['
		  (?:(?:__)?const(?:__)?\s+)?
		  (?:(?:un)?signed\s+)?
		  (?:long\s+)?
		  (?:$typelist)\s+
		  ' \s+ &(\w+) \s* ;
		  (?{ push @local_variables, $1 })
		  ]
		 [my \$$1;]gx;
	     }
	    $new =~ s/&$_\b/\$$_/g for @local_variables;
	    $new =~ s/(["\\])/\\$1/g;       #"]);
	    # now that's almost like a macro (we hope)
	    EMIT($proto);
	}
    }
    $Is_converted{$file} = 1;
    if ($opt_e && exists($bad_file{$file})) {
        unlink($Dest_dir . '/' . $outfile);
        $next = '';
    } else {
        print OUT "1;\n";
	queue_includes_from($file) if $opt_a;
    }
}

if ($opt_e && (scalar(keys %bad_file) > 0)) {
    warn "Was unable to convert the following files:\n";
    warn "\t" . join("\n\t",sort(keys %bad_file)) . "\n";
}

exit $Exit;

sub EMIT {
    my $proto = shift;

    $new = reindent($new);
    $args = reindent($args);
    if ($t ne '') {
    $new =~ s/(['\\])/\\$1/g;   #']);
    if ($opt_h) {
        print OUT $t,
                    "eval \"\\n#line $eval_index $outfile\\n\" . 'sub $name $proto\{\n$t    ${args}eval q($new);\n$t}' unless defined(\&$name);\n";
                    $eval_index++;
    } else {
        print OUT $t,
                    "eval 'sub $name $proto\{\n$t    ${args}eval q($new);\n$t}' unless defined(\&$name);\n";
    }
    } else {
              print OUT "unless(defined(\&$name)) {\n    sub $name $proto\{\n\t${args}eval q($new);\n    }\n}\n";
    }
    %curargs = ();
    return;
}

sub expr {
    if (/\b__asm__\b/) {	# freak out
	$new = '"(assembly code)"';
	return
    }
    my $joined_args;
    if(keys(%curargs)) {
	$joined_args = join('|', keys(%curargs));
    }
    while ($_ ne '') {
	s/^\&\&// && do { $new .= " &&"; next;}; # handle && operator
	s/^\&([\(a-z\)]+)/$1/i;	# hack for things that take the address of
	s/^(\s+)//		&& do {$new .= ' '; next;};
	s/^0X([0-9A-F]+)[UL]*//i
	    && do {my $hex = $1;
		   $hex =~ s/^0+//;
		   if (length $hex > 8 && !$Config{use64bitint}) {
		       # Croak if nv_preserves_uv_bits < 64 ?
		       $new .=         hex(substr($hex, -8)) +
			       2**32 * hex(substr($hex,  0, -8));
		       # The above will produce "erroneous" code
		       # if the hex constant was e.g. inside UINT64_C
		       # macro, but then again, h2ph is an approximation.
		   } else {
		       $new .= lc("0x$hex");
		   }
		   next;};
	s/^(-?\d+\.\d+E[-+]?\d+)[FL]?//i	&& do {$new .= $1; next;};
	s/^(\d+)\s*[LU]*//i	&& do {$new .= $1; next;};
	s/^("(\\"|[^"])*")//	&& do {$new .= $1; next;};
	s/^'((\\"|[^"])*)'//	&& do {
	    if ($curargs{$1}) {
		$new .= "ord('\$$1')";
	    } else {
		$new .= "ord('$1')";
	    }
	    next;
	};
        # replace "sizeof(foo)" with "{foo}"
        # also, remove * (C dereference operator) to avoid perl syntax
        # problems.  Where the %sizeof array comes from is anyone's
        # guess (c2ph?), but this at least avoids fatal syntax errors.
        # Behavior is undefined if sizeof() delimiters are unbalanced.
        # This code was modified to able to handle constructs like this:
        #   sizeof(*(p)), which appear in the HP-UX 10.01 header files.
        s/^sizeof\s*\(// && do {
            $new .= '$sizeof';
            my $lvl = 1;  # already saw one open paren
            # tack { on the front, and skip it in the loop
            $_ = "{" . "$_";
            my $index = 1;
            # find balanced closing paren
            while ($index <= length($_) && $lvl > 0) {
                $lvl++ if substr($_, $index, 1) eq "(";
                $lvl-- if substr($_, $index, 1) eq ")";
                $index++;
            }
            # tack } on the end, replacing )
            substr($_, $index - 1, 1) = "}";
            # remove pesky * operators within the sizeof argument
            substr($_, 0, $index - 1) =~ s/\*//g;
            next;
        };
	# Eliminate typedefs
	/\(([\w\s]+)[\*\s]*\)\s*[\w\(]/ && do {
	    my $doit = 1;
	    foreach (split /\s+/, $1) {  # Make sure all the words are types,
	        unless($isatype{$_} or $_ eq 'struct' or $_ eq 'union'){
		    $doit = 0;
		    last;
		}
	    }
	    if( $doit ){
		s/\([\w\s]+[\*\s]*\)// && next;      # then eliminate them.
	    }
	};
	# struct/union member, including arrays:
	s/^([_A-Z]\w*(\[[^\]]+\])?((\.|->)[_A-Z]\w*(\[[^\]]+\])?)+)//i && do {
	    my $id = $1;
	    $id =~ s/(\.|(->))([^\.\-]*)/->\{$3\}/g;
	    $id =~ s/\b([^\$])($joined_args)/$1\$$2/g if length($joined_args);
	    while($id =~ /\[\s*([^\$\&\d\]]+)\]/) {
		my($index) = $1;
		$index =~ s/\s//g;
		if(exists($curargs{$index})) {
		    $index = "\$$index";
		} else {
		    $index = "&$index";
		}
		$id =~ s/\[\s*([^\$\&\d\]]+)\]/[$index]/;
	    }
	    $new .= " (\$$id)";
	};
	s/^([_a-zA-Z]\w*)//	&& do {
	    my $id = $1;
	    if ($id eq 'struct' || $id eq 'union') {
		s/^\s+(\w+)//;
		$id .= ' ' . $1;
		$isatype{$id} = 1;
	    } elsif ($id =~ /^((un)?signed)|(long)|(short)$/) {
		while (s/^\s+(\w+)//) { $id .= ' ' . $1; }
		$isatype{$id} = 1;
	    }
	    if ($curargs{$id}) {
		$new .= "\$$id";
		$new .= '->' if /^[\[\{]/;
	    } elsif ($id eq 'defined') {
		$new .= 'defined';
	    } elsif (/^\s*\(/) {
		s/^\s*\((\w),/("$1",/ if $id =~ /^_IO[WR]*$/i;	# cheat
		$new .= " &$id";
	    } elsif ($isatype{$id}) {
		if ($new =~ /\{\s*$/) {
		    $new .= "'$id'";
		} elsif ($new =~ /\(\s*$/ && /^[\s*]*\)/) {
		    $new =~ s/\(\s*$//;
		    s/^[\s*]*\)//;
		} else {
		    $new .= q(').$id.q(');
		}
	    } else {
		if ($inif) {
		    if ($new =~ /defined\s*$/) {
			$new .= '(&' . $id . ')';
		    } elsif ($new =~ /defined\s*\($/) {
			$new .= '&' . $id;
		    } else {
			$new .= '(defined(&' . $id . ') ? &' . $id . ' : undef)';
		    }
		} elsif (/^\[/) {
		    $new .= " \$$id";
		} else {
		    $new .= ' &' . $id;
		}
	    }
	    next;
	};
	s/^(.)// && do { if ($1 ne '#') { $new .= $1; } next;};
    }
}


sub next_line
{
    my $file = shift;
    my ($in, $out);
    my $pre_sub_tri_graphs = 1;

    READ: while (not eof IN) {
        $in  .= <IN>;
        chomp $in;
        next unless length $in;

        while (length $in) {
            if ($pre_sub_tri_graphs) {
                # Preprocess all tri-graphs
                # including things stuck in quoted string constants.
                $in =~ s/\?\?=/#/g;                         # | ??=|  #|
                $in =~ s/\?\?\!/|/g;                        # | ??!|  ||
                $in =~ s/\?\?'/^/g;                         # | ??'|  ^|
                $in =~ s/\?\?\(/[/g;                        # | ??(|  [|
                $in =~ s/\?\?\)/]/g;                        # | ??)|  ]|
                $in =~ s/\?\?\-/~/g;                        # | ??-|  ~|
                $in =~ s/\?\?\//\\/g;                       # | ??/|  \|
                $in =~ s/\?\?</{/g;                         # | ??<|  {|
                $in =~ s/\?\?>/}/g;                         # | ??>|  }|
            }
	    if ($in =~ /^\#ifdef __LANGUAGE_PASCAL__/) {
		# Tru64 disassembler.h evilness: mixed C and Pascal.
		while (<IN>) {
		    last if /^\#endif/;
		}
		$in = "";
		next READ;
	    }
	    if ($in =~ /^extern inline / && # Inlined assembler.
		$^O eq 'linux' && $file =~ m!(?:^|/)asm/[^/]+\.h$!) {
		while (<IN>) {
		    last if /^}/;
		}
		$in = "";
		next READ;
	    }
            if ($in =~ s/\\$//) {                           # \-newline
                $out    .= ' ';
                next READ;
            } elsif ($in =~ s/^([^"'\\\/]+)//) {            # Passthrough
                $out    .= $1;
            } elsif ($in =~ s/^(\\.)//) {                   # \...
                $out    .= $1;
            } elsif ($in =~ /^'/) {                         # '...
                if ($in =~ s/^('(\\.|[^'\\])*')//) {
                    $out    .= $1;
                } else {
                    next READ;
                }
            } elsif ($in =~ /^"/) {                         # "...
                if ($in =~ s/^("(\\.|[^"\\])*")//) {
                    $out    .= $1;
                } else {
                    next READ;
                }
            } elsif ($in =~ s/^\/\/.*//) {                  # //...
                # fall through
            } elsif ($in =~ m/^\/\*/) {                     # /*...
                # C comment removal adapted from perlfaq6:
                if ($in =~ s/^\/\*[^*]*\*+([^\/*][^*]*\*+)*\///) {
                    $out    .= ' ';
                } else {                                    # Incomplete /* */
                    next READ;
                }
            } elsif ($in =~ s/^(\/)//) {                    # /...
                $out    .= $1;
            } elsif ($in =~ s/^([^\'\"\\\/]+)//) {
                $out    .= $1;
            } elsif ($^O eq 'linux' &&
                     $file =~ m!(?:^|/)linux/byteorder/pdp_endian\.h$! &&
                     $in   =~ s!\'T KNOW!!) {
                $out    =~ s!I DON$!I_DO_NOT_KNOW!;
            } else {
                if ($opt_e) {
                    warn "Cannot parse $file:\n$in\n";
                    $bad_file{$file} = 1;
                    $in = '';
                    $out = undef;
                    last READ;
                } else {
		die "Cannot parse:\n$in\n";
                }
            }
        }

        last READ if $out =~ /\S/;
    }

    return $out;
}


# Handle recursive subdirectories without getting a grotesquely big stack.
# Could this be implemented using File::Find?
sub next_file
{
    my $file;

    while (@ARGV) {
        $file = shift @ARGV;

        if ($file eq '-' or -f $file or -l $file) {
            return $file;
        } elsif (-d $file) {
            if ($opt_r) {
                expand_glob($file);
            } else {
                print STDERR "Skipping directory '$file'\n";
            }
        } elsif ($opt_a) {
            return $file;
        } else {
            print STDERR "Skipping '$file':  not a file or directory\n";
        }
    }

    return undef;
}


# Put all the files in $directory into @ARGV for processing.
sub expand_glob
{
    my ($directory)  = @_;

    $directory =~ s:/$::;

    opendir DIR, $directory;
        foreach (readdir DIR) {
            next if ($_ eq '.' or $_ eq '..');

            # expand_glob() is going to be called until $ARGV[0] isn't a
            # directory; so push directories, and unshift everything else.
            if (-d "$directory/$_") { push    @ARGV, "$directory/$_" }
            else                    { unshift @ARGV, "$directory/$_" }
        }
    closedir DIR;
}


# Given $file, a symbolic link to a directory in the C include directory,
# make an equivalent symbolic link in $Dest_dir, if we can figure out how.
# Otherwise, just duplicate the file or directory.
sub link_if_possible
{
    my ($dirlink)  = @_;
    my $target  = eval 'readlink($dirlink)';

    if ($target =~ m:^\.\./: or $target =~ m:^/:) {
        # The target of a parent or absolute link could leave the $Dest_dir
        # hierarchy, so let's put all of the contents of $dirlink (actually,
        # the contents of $target) into @ARGV; as a side effect down the
        # line, $dirlink will get created as an _actual_ directory.
        expand_glob($dirlink);
    } else {
        if (-l "$Dest_dir/$dirlink") {
            unlink "$Dest_dir/$dirlink" or
                print STDERR "Could not remove link $Dest_dir/$dirlink:  $!\n";
        }

        if (eval 'symlink($target, "$Dest_dir/$dirlink")') {
            print "Linking $target -> $Dest_dir/$dirlink\n";

            # Make sure that the link _links_ to something:
            if (! -e "$Dest_dir/$target") {
                mkpath("$Dest_dir/$target", 0755) or
                    print STDERR "Could not create $Dest_dir/$target/\n";
            }
        } else {
            print STDERR "Could not symlink $target -> $Dest_dir/$dirlink:  $!\n";
        }
    }
}


# Push all #included files in $file onto our stack, except for STDIN
# and files we've already processed.
sub queue_includes_from
{
    my ($file)    = @_;
    my $line;

    return if ($file eq "-");

    open HEADER, "<", $file or return;
        while (defined($line = <HEADER>)) {
            while (/\\$/) { # Handle continuation lines
                chop $line;
                $line .= <HEADER>;
            }

            if ($line =~ /^#\s*include\s+([<"])(.*?)[>"]/) {
                my ($delimiter, $new_file) = ($1, $2);
                # copy the prefix in the quote syntax (#include "x.h") case
                if ($delimiter eq q{"} && $file =~ m|^(.*)/|) {
                    $new_file = "$1/$new_file";
                }
                push(@ARGV, $new_file) unless $Is_converted{$new_file};
            }
        }
    close HEADER;
}


# Determine include directories; $Config{usrinc} should be enough for (all
# non-GCC?) C compilers, but gcc uses additional include directories.
sub inc_dirs
{
    my $from_gcc   = `LC_ALL=C $Config{cc} -v -E - < /dev/null 2>&1 | awk '/^#include/, /^End of search list/' | grep '^ '`;
    length($from_gcc) ? (split(' ', $from_gcc), $Config{usrinc}) : ($Config{usrinc});
}


# Create "_h2ph_pre.ph", if it doesn't exist or was built by a different
# version of h2ph.
sub build_preamble_if_necessary
{
    # Increment $VERSION every time this function is modified:
    my $VERSION     = 4;
    my $preamble    = "$Dest_dir/_h2ph_pre.ph";

    # Can we skip building the preamble file?
    if (-r $preamble) {
        # Extract version number from first line of preamble:
        open  PREAMBLE, "<", $preamble or die "Cannot open $preamble:  $!";
            my $line = <PREAMBLE>;
            $line =~ /(\b\d+\b)/;
        close PREAMBLE            or die "Cannot close $preamble:  $!";

        # Don't build preamble if a compatible preamble exists:
        return if $1 == $VERSION;
    }

    my (%define) = _extract_cc_defines();

    open  PREAMBLE, ">", $preamble or die "Cannot open $preamble:  $!";
	print PREAMBLE "# This file was created by h2ph version $VERSION\n";
        # Prevent non-portable hex constants from warning.
        #
        # We still produce an overflow warning if we can't represent
        # a hex constant as an integer.
        print PREAMBLE "no warnings qw(portable);\n";

	foreach (sort keys %define) {
	    if ($opt_D) {
		print PREAMBLE "# $_=$define{$_}\n";
	    }
	    if ($define{$_} =~ /^\((.*)\)$/) {
		# parenthesized value:  d=(v)
		$define{$_} = $1;
	    }
	    if (/^(\w+)\((\w)\)$/) {
		my($macro, $arg) = ($1, $2);
		my $def = $define{$_};
		$def =~ s/$arg/\$\{$arg\}/g;
		print PREAMBLE <<DEFINE;
unless (defined &$macro) { sub $macro(\$) { my (\$$arg) = \@_; \"$def\" } }

DEFINE
	    } elsif
		($define{$_} =~ /^([+-]?(\d+)?\.\d+([eE][+-]?\d+)?)[FL]?$/) {
		# float:
		print PREAMBLE
		    "unless (defined &$_) { sub $_() { $1 } }\n\n";
	    } elsif ($define{$_} =~ /^([+-]?\d+)U?L{0,2}$/i) {
		# integer:
		print PREAMBLE
		    "unless (defined &$_) { sub $_() { $1 } }\n\n";
            } elsif ($define{$_} =~ /^([+-]?0x[\da-f]+)U?L{0,2}$/i) {
                # hex integer
                # Special cased, since perl warns on hex integers
                # that can't be represented in a UV.
                #
                # This way we get the warning at time of use, so the user
                # only gets the warning if they happen to use this
                # platform-specific definition.
                my $code = $1;
                $code = "hex('$code')" if length $code > 10;
                print PREAMBLE
                    "unless (defined &$_) { sub $_() { $code } }\n\n";
	    } elsif ($define{$_} =~ /^\w+$/) {
		my $def = $define{$_};
		if ($isatype{$def}) {
		  print PREAMBLE
		    "unless (defined &$_) { sub $_() { \"$def\" } }\n\n";
		} else {
		  print PREAMBLE
		    "unless (defined &$_) { sub $_() { &$def } }\n\n";
	        }
	    } else {
		print PREAMBLE
		    "unless (defined &$_) { sub $_() { \"",
		    quotemeta($define{$_}), "\" } }\n\n";
	    }
	}
	print PREAMBLE "\n1;\n";  # avoid 'did not return a true value' when empty
    close PREAMBLE               or die "Cannot close $preamble:  $!";
}


# %Config contains information on macros that are pre-defined by the
# system's compiler.  We need this information to make the .ph files
# function with perl as the .h files do with cc.
sub _extract_cc_defines
{
    my %define;
    my $allsymbols  = join " ",
	@Config{'ccsymbols', 'cppsymbols', 'cppccsymbols'};

    # If optimizing -O2 is used, add the definition
    if ($Config{'ccflags'} =~ /(?:\s+|^)-O([\d]+)(?:\s+|$)/) {
	$allsymbols .= " __OPTIMIZE__=$1";
    }

    # Split compiler pre-definitions into 'key=value' pairs:
    while ($allsymbols =~ /([^\s]+)=((\\\s|[^\s])+)/g) {
	$define{$1} = $2;
	if ($opt_D) {
	    print STDERR "$_:  $1 -> $2\n";
	}
    }

    return %define;
}


1;

##############################################################################
__END__

=head1 NAME

h2ph - convert .h C header files to .ph Perl header files

=head1 SYNOPSIS

B<h2ph [-d destination directory] [-r | -a] [-l] [-h] [-e] [-D] [-Q]
[headerfiles]>

=head1 DESCRIPTION

I<h2ph>
converts any C header files specified to the corresponding Perl header file
format.
It is most easily run while in /usr/include:

	cd /usr/include; h2ph * sys/*

or

	cd /usr/include; h2ph * sys/* arpa/* netinet/*

or

	cd /usr/include; h2ph -r -l .

The output files are placed in the hierarchy rooted at Perl's
architecture dependent library directory.  You can specify a different
hierarchy with a B<-d> switch.

If run with no arguments, filters standard input to standard output.

=head1 OPTIONS

=over 4

=item -d destination_dir

Put the resulting B<.ph> files beneath B<destination_dir>, instead of
beneath the default Perl library location (C<$Config{'installsitearch'}>).

=item -r

Run recursively; if any of B<headerfiles> are directories, then run I<h2ph>
on all files in those directories (and their subdirectories, etc.).  B<-r>
and B<-a> are mutually exclusive.

=item -a

Run automagically; convert B<headerfiles>, as well as any B<.h> files
which they include.  This option will search for B<.h> files in all
directories which your C compiler ordinarily uses.  B<-a> and B<-r> are
mutually exclusive.

=item -l

Symbolic links will be replicated in the destination directory.  If B<-l>
is not specified, then links are skipped over.

=item -h

Put 'hints' in the .ph files which will help in locating problems with
I<h2ph>.  In those cases when you B<require> a B<.ph> file containing syntax
errors, instead of the cryptic

	[ some error condition ] at (eval mmm) line nnn

you will see the slightly more helpful

	[ some error condition ] at filename.ph line nnn

However, the B<.ph> files almost double in size when built using B<-h>.

=item -e

If an error is encountered during conversion, output file will be removed and
a warning emitted instead of terminating the conversion immediately.

=item -D

Include the code from the B<.h> file as a comment in the B<.ph> file.
This is primarily used for debugging I<h2ph>.

=item -Q

'Quiet' mode; don't print out the names of the files being converted.

=back

=head1 ENVIRONMENT

No environment variables are used.

=head1 FILES

 /usr/include/*.h
 /usr/include/sys/*.h

etc.

=head1 AUTHOR

Larry Wall

=head1 SEE ALSO

perl(1)

=head1 DIAGNOSTICS

The usual warnings if it can't read or write the files involved.

=head1 BUGS

Doesn't construct the %sizeof array for you.

It doesn't handle all C constructs, but it does attempt to isolate
definitions inside evals so that you can get at the definitions
that it can translate.

It's only intended as a rough tool.
You may need to dicker with the files produced.

You have to run this program by hand; it's not run as part of the Perl
installation.

Doesn't handle complicated expressions built piecemeal, a la:

    enum {
	FIRST_VALUE,
	SECOND_VALUE,
    #ifdef ABC
	THIRD_VALUE
    #endif
    };

Doesn't necessarily locate all of your C compiler's internally-defined
symbols.

=cut


SILENT KILLER Tool