Linux s17.hosterpk.com 6.12.0-124.55.3.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:54:02 EDT 2026 x86_64
LiteSpeed
Server IP : 192.169.89.90 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : hamzalar
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
GET
15.87
KB
-rwxr-xr-x
2024-10-29 00:00
MagickCore-config
1.77
KB
-rwxr-xr-x
2025-03-30 00:00
MagickWand-config
1.59
KB
-rwxr-xr-x
2025-03-30 00:00
Mail
1.01
MB
-rwxr-xr-x
2024-10-29 00:00
[
47.91
KB
-rwxr-xr-x
2026-01-15 00:00
aclocal
35.18
KB
-rwxr-xr-x
2024-11-27 00:00
aclocal-1.16
35.18
KB
-rwxr-xr-x
2024-11-27 00:00
addr2line
32.07
KB
-rwxr-xr-x
2026-02-04 00:00
animate
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
ar
60.41
KB
-rwxr-xr-x
2026-02-04 00:00
arch
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
arpaname
15.43
KB
-rwxr-xr-x
2026-03-27 00:00
as
687.16
KB
-rwxr-xr-x
2026-02-04 00:00
aspell
150.35
KB
-rwxr-xr-x
2024-10-29 00:00
at
1.25
KB
-rwxr-xr-x
2025-09-19 00:00
atq
1.25
KB
-rwxr-xr-x
2025-09-19 00:00
atrm
1.25
KB
-rwxr-xr-x
2025-09-19 00:00
autoconf
14.85
KB
-rwxr-xr-x
2025-03-14 00:00
autoheader
8.82
KB
-rwxr-xr-x
2025-03-14 00:00
autom4te
32.69
KB
-rwxr-xr-x
2025-03-14 00:00
automake
255.91
KB
-rwxr-xr-x
2024-11-27 00:00
automake-1.16
255.91
KB
-rwxr-xr-x
2024-11-27 00:00
autoreconf
26.3
KB
-rwxr-xr-x
2025-03-14 00:00
autoscan
16.77
KB
-rwxr-xr-x
2025-03-14 00:00
autoupdate
33.22
KB
-rwxr-xr-x
2025-03-14 00:00
awk
745.91
KB
-rwxr-xr-x
2024-10-29 00:00
b2sum
55.91
KB
-rwxr-xr-x
2026-01-15 00:00
base32
39.82
KB
-rwxr-xr-x
2026-01-15 00:00
base64
39.84
KB
-rwxr-xr-x
2026-01-15 00:00
basename
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
basenc
52.19
KB
-rwxr-xr-x
2026-01-15 00:00
bash
1.35
MB
-rwxr-xr-x
2024-10-29 00:00
bashbug-64
7.11
KB
-rwxr-xr-x
2024-10-29 00:00
batch
140
B
-rwxr-xr-x
2025-09-19 00:00
bison
494.29
KB
-rwxr-xr-x
2024-10-29 00:00
bunzip2
39.77
KB
-rwxr-xr-x
2024-12-19 00:00
bzcat
39.77
KB
-rwxr-xr-x
2024-12-19 00:00
bzcmp
2.09
KB
-rwxr-xr-x
2024-12-19 00:00
bzdiff
2.09
KB
-rwxr-xr-x
2024-12-19 00:00
bzgrep
2.01
KB
-rwxr-xr-x
2024-12-19 00:00
bzip2
39.77
KB
-rwxr-xr-x
2024-12-19 00:00
bzip2recover
19.55
KB
-rwxr-xr-x
2024-12-19 00:00
bzless
1.23
KB
-rwxr-xr-x
2024-12-19 00:00
bzmore
1.23
KB
-rwxr-xr-x
2024-12-19 00:00
c++
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
c++filt
27.52
KB
-rwxr-xr-x
2026-02-04 00:00
c89
228
B
-rwxr-xr-x
2026-02-26 00:00
c99
219
B
-rwxr-xr-x
2026-02-26 00:00
cagefs_enter.proxied
1.27
KB
-rwxr-xr-x
2025-12-07 00:00
cal
52.21
KB
-rwxr-xr-x
2026-01-15 00:00
captoinfo
92.23
KB
-rwxr-xr-x
2026-03-24 00:00
cat
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
cc
1.31
MB
-rwxr-xr-x
2026-02-26 00:00
chcon
64.42
KB
-rwxr-xr-x
2026-01-15 00:00
chgrp
64.41
KB
-rwxr-xr-x
2026-01-15 00:00
chmod
60.39
KB
-rwxr-xr-x
2026-01-15 00:00
chown
64.41
KB
-rwxr-xr-x
2026-01-15 00:00
chrt
31.76
KB
-rwxr-xr-x
2026-01-15 00:00
cksum
100.29
KB
-rwxr-xr-x
2026-01-15 00:00
cldetect
10.34
KB
-rwxr-xr-x
2026-05-14 00:00
clear
15.48
KB
-rwxr-xr-x
2026-03-24 00:00
clusterdb
68.76
KB
-rwxr-xr-x
2026-02-27 00:00
cmp
48
KB
-rwxr-xr-x
2024-10-29 00:00
col
23.61
KB
-rwxr-xr-x
2026-01-15 00:00
colcrt
19.53
KB
-rwxr-xr-x
2026-01-15 00:00
colrm
15.52
KB
-rwxr-xr-x
2026-01-15 00:00
column
43.76
KB
-rwxr-xr-x
2026-01-15 00:00
comm
39.94
KB
-rwxr-xr-x
2026-01-15 00:00
compare
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
composite
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
conjure
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
convert
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
cp
133.3
KB
-rwxr-xr-x
2026-01-15 00:00
cpan
8.37
KB
-rwxr-xr-x
2025-03-03 00:00
cpp
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
createdb
72.94
KB
-rwxr-xr-x
2026-02-27 00:00
createuser
73.28
KB
-rwxr-xr-x
2026-02-27 00:00
crontab
1.49
KB
-rwxr-xr-x
2026-01-14 00:00
crontab.cagefs
40.51
KB
-rwxr-xr-x
2026-04-27 00:00
csplit
52.1
KB
-rwxr-xr-x
2026-01-15 00:00
curl
209.31
KB
-rwxr-xr-x
2025-11-17 00:00
cut
47.95
KB
-rwxr-xr-x
2026-01-15 00:00
date
96.1
KB
-rwxr-xr-x
2026-01-15 00:00
dbiprof
6.06
KB
-rwxr-xr-x
2024-10-29 00:00
dd
64.27
KB
-rwxr-xr-x
2026-01-15 00:00
delv
46.64
KB
-rwxr-xr-x
2026-03-27 00:00
df
68.77
KB
-rwxr-xr-x
2026-01-15 00:00
diff
153.17
KB
-rwxr-xr-x
2024-10-29 00:00
diff3
64.14
KB
-rwxr-xr-x
2024-10-29 00:00
dig
153.1
KB
-rwxr-xr-x
2026-03-27 00:00
dir
141.85
KB
-rwxr-xr-x
2026-01-15 00:00
dircolors
47.9
KB
-rwxr-xr-x
2026-01-15 00:00
dirname
31.63
KB
-rwxr-xr-x
2026-01-15 00:00
display
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
dnstap-read
23.53
KB
-rwxr-xr-x
2026-03-27 00:00
dropdb
64.59
KB
-rwxr-xr-x
2026-02-27 00:00
dropuser
64.53
KB
-rwxr-xr-x
2026-02-27 00:00
du
96.74
KB
-rwxr-xr-x
2026-01-15 00:00
echo
31.62
KB
-rwxr-xr-x
2026-01-15 00:00
ed
60.17
KB
-rwxr-xr-x
2024-10-29 00:00
egrep
106
B
-rwxr-xr-x
2024-10-29 00:00
enc2xs
40.82
KB
-rwxr-xr-x
2024-10-29 00:00
enchant
23.48
KB
-rwxr-xr-x
2025-01-16 00:00
enchant-lsmod
15.48
KB
-rwxr-xr-x
2025-01-16 00:00
env
48.38
KB
-rwxr-xr-x
2026-01-15 00:00
eps2eps
643
B
-rwxr-xr-x
2025-05-07 00:00
eqn
152.63
KB
-rwxr-xr-x
2024-10-29 00:00
ex
1.62
MB
-rwxr-xr-x
2026-04-08 00:00
expand
39.89
KB
-rwxr-xr-x
2026-01-15 00:00
expr
43.81
KB
-rwxr-xr-x
2026-01-15 00:00
factor
64.09
KB
-rwxr-xr-x
2026-01-15 00:00
false
27.59
KB
-rwxr-xr-x
2026-01-15 00:00
fc-cache
139
B
-rwxr-xr-x
2024-10-29 00:00
fc-cache-64
23.48
KB
-rwxr-xr-x
2024-10-29 00:00
fc-cat
19.48
KB
-rwxr-xr-x
2024-10-29 00:00
fc-conflist
15.45
KB
-rwxr-xr-x
2024-10-29 00:00
fc-list
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-match
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-pattern
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-query
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-scan
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fc-validate
15.46
KB
-rwxr-xr-x
2024-10-29 00:00
fgrep
106
B
-rwxr-xr-x
2024-10-29 00:00
file
31.93
KB
-rwxr-xr-x
2026-02-23 00:00
find
204.32
KB
-rwxr-xr-x
2024-10-29 00:00
flex
315.74
KB
-rwxr-xr-x
2024-10-29 00:00
flex++
315.74
KB
-rwxr-xr-x
2024-10-29 00:00
flock
23.71
KB
-rwxr-xr-x
2026-01-15 00:00
fmt
43.89
KB
-rwxr-xr-x
2026-01-15 00:00
fold
39.81
KB
-rwxr-xr-x
2026-01-15 00:00
free
23.58
KB
-rwxr-xr-x
2026-01-15 00:00
freetype-config
4.37
KB
-rwxr-xr-x
2024-10-29 00:00
funzip
35.55
KB
-rwxr-xr-x
2025-04-07 00:00
g++
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
gawk
745.91
KB
-rwxr-xr-x
2024-10-29 00:00
gcc
1.31
MB
-rwxr-xr-x
2026-02-26 00:00
gcc-ar
31.62
KB
-rwxr-xr-x
2026-02-26 00:00
gcc-nm
31.62
KB
-rwxr-xr-x
2026-02-26 00:00
gcc-ranlib
31.62
KB
-rwxr-xr-x
2026-02-26 00:00
gcov
535.2
KB
-rwxr-xr-x
2026-02-26 00:00
gcov-dump
432.82
KB
-rwxr-xr-x
2026-02-26 00:00
gcov-tool
457.48
KB
-rwxr-xr-x
2026-02-26 00:00
gem
249
B
-rwxr-xr-x
2026-04-28 00:00
gencat
31.54
KB
-rwxr-xr-x
2026-05-26 00:00
geoiplookup
15.53
KB
-rwxr-xr-x
2019-11-28 00:00
geoiplookup6
15.48
KB
-rwxr-xr-x
2019-11-28 00:00
geqn
152.63
KB
-rwxr-xr-x
2024-10-29 00:00
getconf
27.31
KB
-rwxr-xr-x
2026-05-26 00:00
getent
31.95
KB
-rwxr-xr-x
2026-05-26 00:00
getopt
23.62
KB
-rwxr-xr-x
2026-01-15 00:00
ghostscript
15.45
KB
-rwxr-xr-x
2025-05-07 00:00
git
4.32
MB
-rwxr-xr-x
2026-01-09 00:00
git-receive-pack
4.32
MB
-rwxr-xr-x
2026-01-09 00:00
git-shell
819.72
KB
-rwxr-xr-x
2026-01-09 00:00
git-upload-archive
4.32
MB
-rwxr-xr-x
2026-01-09 00:00
git-upload-pack
4.32
MB
-rwxr-xr-x
2026-01-09 00:00
gm
15.41
KB
-rwxr-xr-x
2024-09-24 00:00
gmake
280.74
KB
-rwxr-xr-x
2024-11-05 00:00
gneqn
916
B
-rwxr-xr-x
2024-10-29 00:00
gnroff
5.58
KB
-rwxr-xr-x
2024-10-29 00:00
gpg
1.11
MB
-rwxr-xr-x
2026-02-06 00:00
gpg-agent
371.18
KB
-rwxr-xr-x
2026-02-06 00:00
gpg-error
35.75
KB
-rwxr-xr-x
2024-10-29 00:00
gpgsplit
27.82
KB
-rwxr-xr-x
2026-02-06 00:00
gpgv
315.91
KB
-rwxr-xr-x
2026-02-06 00:00
gpic
180.8
KB
-rwxr-xr-x
2024-10-29 00:00
gprof
97.8
KB
-rwxr-xr-x
2026-02-04 00:00
grep
165.82
KB
-rwxr-xr-x
2024-10-29 00:00
groff
76.36
KB
-rwxr-xr-x
2024-10-29 00:00
grops
146.32
KB
-rwxr-xr-x
2024-10-29 00:00
grotty
105.2
KB
-rwxr-xr-x
2024-10-29 00:00
groups
35.81
KB
-rwxr-xr-x
2026-01-15 00:00
gs
15.45
KB
-rwxr-xr-x
2025-05-07 00:00
gsnd
281
B
-rwxr-xr-x
2025-05-07 00:00
gtar
429.65
KB
-rwxr-xr-x
2026-02-23 00:00
gtbl
129.91
KB
-rwxr-xr-x
2024-10-29 00:00
gtroff
551.38
KB
-rwxr-xr-x
2024-10-29 00:00
gunzip
2.28
KB
-rwxr-xr-x
2024-10-29 00:00
gzexe
6.29
KB
-rwxr-xr-x
2024-10-29 00:00
gzip
97.35
KB
-rwxr-xr-x
2024-10-29 00:00
h2ph
28.3
KB
-rwxr-xr-x
2025-07-10 00:00
h2xs
59.51
KB
-rwxr-xr-x
2025-07-10 00:00
head
43.95
KB
-rwxr-xr-x
2026-01-15 00:00
hexdump
47.79
KB
-rwxr-xr-x
2026-01-15 00:00
host
121.02
KB
-rwxr-xr-x
2026-03-27 00:00
hostid
35.79
KB
-rwxr-xr-x
2026-01-15 00:00
hostname
23.51
KB
-rwxr-xr-x
2024-10-29 00:00
hunspell
102.2
KB
-rwxr-xr-x
2024-10-29 00:00
iconv
68.23
KB
-rwxr-xr-x
2026-05-26 00:00
icu-config
205
B
-rwxr-xr-x
2025-07-08 00:00
icu-config-64
21.65
KB
-rwxr-xr-x
2025-07-08 00:00
icuinfo
15.81
KB
-rwxr-xr-x
2025-07-08 00:00
id
43.86
KB
-rwxr-xr-x
2026-01-15 00:00
identify
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
idn
36.15
KB
-rwxr-xr-x
2024-07-18 00:00
ifnames
4.08
KB
-rwxr-xr-x
2025-03-14 00:00
import
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
infocmp
68.02
KB
-rwxr-xr-x
2026-03-24 00:00
infotocap
92.23
KB
-rwxr-xr-x
2026-03-24 00:00
install
141.4
KB
-rwxr-xr-x
2026-01-15 00:00
instmodsh
4.1
KB
-rwxr-xr-x
2024-10-29 00:00
ionice
19.56
KB
-rwxr-xr-x
2026-01-15 00:00
ipcrm
19.59
KB
-rwxr-xr-x
2026-01-15 00:00
ipcs
39.67
KB
-rwxr-xr-x
2026-01-15 00:00
isosize
15.49
KB
-rwxr-xr-x
2026-01-15 00:00
ispell
992
B
-rwxr-xr-x
2023-12-03 05:09
join
52.05
KB
-rwxr-xr-x
2026-01-15 00:00
kill
35.77
KB
-rwxr-xr-x
2026-01-15 00:00
ld
1.13
MB
-rwxr-xr-x
2026-05-27 07:02
ld.bfd
1.13
MB
-rwxr-xr-x
2026-05-27 07:02
ldd
5.27
KB
-rwxr-xr-x
2026-05-26 00:00
less
227.85
KB
-rwxr-xr-x
2024-10-29 00:00
lessecho
15.51
KB
-rwxr-xr-x
2024-10-29 00:00
lesskey
23.56
KB
-rwxr-xr-x
2024-10-29 00:00
lesspipe.sh
3.52
KB
-rwxr-xr-x
2024-10-29 00:00
lex
315.74
KB
-rwxr-xr-x
2024-10-29 00:00
libnetcfg
15.41
KB
-rwxr-xr-x
2025-07-10 00:00
libtool
367.87
KB
-rwxr-xr-x
2024-10-29 00:00
libtoolize
133.48
KB
-rwxr-xr-x
2024-10-29 00:00
link
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
ln
60.26
KB
-rwxr-xr-x
2026-01-15 00:00
locale
51.15
KB
-rwxr-xr-x
2026-05-26 00:00
localedef
314.2
KB
-rwxr-xr-x
2026-05-26 00:00
logger
40.4
KB
-rwxr-xr-x
2026-01-15 00:00
login
47.9
KB
-rwxr-xr-x
2026-01-15 00:00
logname
35.78
KB
-rwxr-xr-x
2026-01-15 00:00
look
19.51
KB
-rwxr-xr-x
2026-01-15 00:00
ls
141.88
KB
-rwxr-xr-x
2026-01-15 00:00
lto-dump
35.33
MB
-rwxr-xr-x
2026-02-26 00:00
m4
251.59
KB
-rwxr-xr-x
2024-10-29 00:00
magick
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
magick-script
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
mail
1.01
MB
-rwxr-xr-x
2024-10-29 00:00
mailx
1.01
MB
-rwxr-xr-x
2024-10-29 00:00
make
280.74
KB
-rwxr-xr-x
2024-11-05 00:00
make-dummy-cert
614
B
-rwxr-xr-x
2026-05-20 00:00
mariadb
5.24
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-access
109.34
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-admin
686.82
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-binlog
4.89
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-check
4.68
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-conv
4.37
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-convert-table-format
4.12
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-dump
4.78
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-dumpslow
8.05
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-embedded
20.49
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-find-rows
3.21
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-hotcopy
34.53
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-import
4.67
MB
-rwxr-xr-x
2026-02-10 00:00
mariadb-plugin
412.75
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-secure-installation
13.48
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-setpermission
17.56
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-show
673.63
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-slap
692.81
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-tzinfo-to-sql
448.5
KB
-rwxr-xr-x
2026-02-10 00:00
mariadb-waitpid
387.6
KB
-rwxr-xr-x
2026-02-10 00:00
mcookie
27.64
KB
-rwxr-xr-x
2026-01-15 00:00
md5sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
mesg
15.49
KB
-rwxr-xr-x
2026-01-15 00:00
mkdir
64.47
KB
-rwxr-xr-x
2026-01-15 00:00
mkfifo
44.02
KB
-rwxr-xr-x
2026-01-15 00:00
mknod
48.06
KB
-rwxr-xr-x
2026-01-15 00:00
mktemp
39.88
KB
-rwxr-xr-x
2026-01-15 00:00
mogrify
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
montage
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
more
47.83
KB
-rwxr-xr-x
2026-01-15 00:00
msql2mysql
1.42
KB
-rwxr-xr-x
2026-02-10 00:00
mv
125.23
KB
-rwxr-xr-x
2026-01-15 00:00
my_print_defaults
432.45
KB
-rwxr-xr-x
2026-02-10 00:00
mysql
5.24
MB
-rwxr-xr-x
2026-02-10 00:00
mysql_config
4.5
KB
-rwxr-xr-x
2026-02-10 00:00
mysql_find_rows
3.21
KB
-rwxr-xr-x
2026-02-10 00:00
mysql_waitpid
387.6
KB
-rwxr-xr-x
2026-02-10 00:00
mysqlaccess
109.34
KB
-rwxr-xr-x
2026-02-10 00:00
mysqladmin
686.82
KB
-rwxr-xr-x
2026-02-10 00:00
mysqlbinlog
4.89
MB
-rwxr-xr-x
2026-02-10 00:00
mysqlcheck
4.68
MB
-rwxr-xr-x
2026-02-10 00:00
mysqldump
4.78
MB
-rwxr-xr-x
2026-02-10 00:00
mysqlimport
4.67
MB
-rwxr-xr-x
2026-02-10 00:00
mysqlshow
673.63
KB
-rwxr-xr-x
2026-02-10 00:00
mytop
72.03
KB
-rwxr-xr-x
2026-02-10 00:00
named-checkzone
31.68
KB
-rwxr-xr-x
2026-03-27 00:00
named-compilezone
31.68
KB
-rwxr-xr-x
2026-03-27 00:00
named-nzd2nzf
15.44
KB
-rwxr-xr-x
2026-03-27 00:00
namei
23.59
KB
-rwxr-xr-x
2026-01-15 00:00
nano
285.3
KB
-rwxr-xr-x
2024-12-11 00:00
neqn
916
B
-rwxr-xr-x
2024-10-29 00:00
nice
35.77
KB
-rwxr-xr-x
2026-01-15 00:00
nl
39.95
KB
-rwxr-xr-x
2026-01-15 00:00
nm
49.11
KB
-rwxr-xr-x
2026-02-04 00:00
nohup
35.71
KB
-rwxr-xr-x
2026-01-15 00:00
nproc
35.82
KB
-rwxr-xr-x
2026-01-15 00:00
nroff
5.58
KB
-rwxr-xr-x
2024-10-29 00:00
nsec3hash
15.52
KB
-rwxr-xr-x
2026-03-27 00:00
nslookup
120.98
KB
-rwxr-xr-x
2026-03-27 00:00
nsupdate
84.19
KB
-rwxr-xr-x
2026-03-27 00:00
numfmt
60
KB
-rwxr-xr-x
2026-01-15 00:00
objcopy
189.84
KB
-rwxr-xr-x
2026-02-04 00:00
objdump
434.15
KB
-rwxr-xr-x
2026-02-04 00:00
od
60.2
KB
-rwxr-xr-x
2026-01-15 00:00
openssl
968.7
KB
-rwxr-xr-x
2026-05-20 00:00
pango-list
19.44
KB
-rwxr-xr-x
2024-10-29 00:00
pango-segmentation
19.45
KB
-rwxr-xr-x
2024-10-29 00:00
pango-view
68.49
KB
-rwxr-xr-x
2024-10-29 00:00
passenger
1.73
KB
-rwxr-xr-x
2026-05-22 00:00
passwd
1.26
KB
-rwxr-xr-x
2026-02-23 00:00
paste
39.73
KB
-rwxr-xr-x
2026-01-15 00:00
patch
194.23
KB
-rwxr-xr-x
2024-10-29 00:00
pathchk
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
pdf2dsc
701
B
-rwxr-xr-x
2025-05-07 00:00
pdf2ps
913
B
-rwxr-xr-x
2025-05-07 00:00
perl
15.29
KB
-rwxr-xr-x
2025-07-10 00:00
perl5.40.2
15.29
KB
-rwxr-xr-x
2025-07-10 00:00
perlbug
44.13
KB
-rwxr-xr-x
2025-07-10 00:00
perldoc
118
B
-rwxr-xr-x
2024-10-29 00:00
perlivp
10.56
KB
-rwxr-xr-x
2025-07-10 00:00
perlml
14.48
KB
-rwxr-xr-x
2025-10-02 00:00
perlthanks
44.13
KB
-rwxr-xr-x
2025-07-10 00:00
pg_dump
435.01
KB
-rwxr-xr-x
2026-02-27 00:00
pg_dumpall
114.11
KB
-rwxr-xr-x
2026-02-27 00:00
pg_restore
188.34
KB
-rwxr-xr-x
2026-02-27 00:00
pgrep
35.73
KB
-rwxr-xr-x
2026-01-15 00:00
php
937
B
-rwxr-xr-x
2025-03-26 00:00
pic
180.8
KB
-rwxr-xr-x
2024-10-29 00:00
piconv
8.08
KB
-rwxr-xr-x
2024-10-29 00:00
ping
157.7
KB
-rwxr-xr-x
2025-10-13 00:00
pinky
39.77
KB
-rwxr-xr-x
2026-01-15 00:00
pkg-config
335
B
-rwxr-xr-x
2024-10-29 00:00
pkill
35.73
KB
-rwxr-xr-x
2026-01-15 00:00
pl2pm
4.43
KB
-rwxr-xr-x
2025-07-10 00:00
pmap
35.67
KB
-rwxr-xr-x
2026-01-15 00:00
pod2html
3.95
KB
-rwxr-xr-x
2025-07-10 00:00
pod2man
18.46
KB
-rwxr-xr-x
2024-10-29 00:00
pod2text
12.8
KB
-rwxr-xr-x
2024-10-29 00:00
pod2usage
4.01
KB
-rwxr-xr-x
2024-10-29 00:00
podchecker
3.64
KB
-rwxr-xr-x
2024-10-29 00:00
post-grohtml
182.88
KB
-rwxr-xr-x
2024-10-29 00:00
pr
76.44
KB
-rwxr-xr-x
2026-01-15 00:00
pre-grohtml
56.35
KB
-rwxr-xr-x
2024-10-29 00:00
precat
5.53
KB
-rwxr-xr-x
2023-12-03 05:09
preunzip
5.53
KB
-rwxr-xr-x
2023-12-03 05:09
prezip
5.53
KB
-rwxr-xr-x
2023-12-03 05:09
prezip-bin
15.43
KB
-rwxr-xr-x
2024-10-29 00:00
printenv
35.62
KB
-rwxr-xr-x
2026-01-15 00:00
printf
43.87
KB
-rwxr-xr-x
2026-01-15 00:00
prove
13.26
KB
-rwxr-xr-x
2024-10-29 00:00
ps
121.77
KB
-rwxr-xr-x
2026-01-15 00:00
ps2ascii
635
B
-rwxr-xr-x
2025-05-07 00:00
ps2epsi
1.24
KB
-rwxr-xr-x
2025-05-07 00:00
ps2pdf
276
B
-rwxr-xr-x
2025-05-07 00:00
ps2pdf12
219
B
-rwxr-xr-x
2025-05-07 00:00
ps2pdf13
219
B
-rwxr-xr-x
2025-05-07 00:00
ps2pdf14
219
B
-rwxr-xr-x
2025-05-07 00:00
ps2pdfwr
1.06
KB
-rwxr-xr-x
2025-05-07 00:00
ps2ps
651
B
-rwxr-xr-x
2025-05-07 00:00
ps2ps2
673
B
-rwxr-xr-x
2025-05-07 00:00
psql
694.47
KB
-rwxr-xr-x
2026-02-27 00:00
ptx
56.01
KB
-rwxr-xr-x
2026-01-15 00:00
pwd
35.83
KB
-rwxr-xr-x
2026-01-15 00:00
pwdx
15.49
KB
-rwxr-xr-x
2026-01-15 00:00
pydoc
79
B
-rwxr-xr-x
2026-04-16 00:00
pydoc3
79
B
-rwxr-xr-x
2026-04-16 00:00
pydoc3.12
79
B
-rwxr-xr-x
2026-04-16 00:00
ranlib
60.42
KB
-rwxr-xr-x
2026-02-04 00:00
readelf
792.37
KB
-rwxr-xr-x
2026-02-04 00:00
readlink
43.89
KB
-rwxr-xr-x
2026-01-15 00:00
realpath
43.95
KB
-rwxr-xr-x
2026-01-15 00:00
recode
31.75
KB
-rwxr-xr-x
2024-07-17 00:00
red
92
B
-rwxr-xr-x
2024-10-29 00:00
reindexdb
81.07
KB
-rwxr-xr-x
2026-02-27 00:00
rename
23.58
KB
-rwxr-xr-x
2026-01-15 00:00
renew-dummy-cert
729
B
-rwxr-xr-x
2026-05-20 00:00
renice
15.51
KB
-rwxr-xr-x
2026-01-15 00:00
replace
395.03
KB
-rwxr-xr-x
2026-02-10 00:00
reset
27.68
KB
-rwxr-xr-x
2026-03-24 00:00
rev
15.5
KB
-rwxr-xr-x
2026-01-15 00:00
rm
60.38
KB
-rwxr-xr-x
2026-01-15 00:00
rmdir
35.74
KB
-rwxr-xr-x
2026-01-15 00:00
rnano
285.3
KB
-rwxr-xr-x
2024-12-11 00:00
ruby
15.25
KB
-rwxr-xr-x
2026-04-28 00:00
run-with-aspell
89
B
-rwxr-xr-x
2024-10-29 00:00
runcon
35.78
KB
-rwxr-xr-x
2026-01-15 00:00
rvi
1.62
MB
-rwxr-xr-x
2026-04-08 00:00
rview
1.62
MB
-rwxr-xr-x
2026-04-08 00:00
s-nail
1.01
MB
-rwxr-xr-x
2024-10-29 00:00
scalar
872.67
KB
-rwxr-xr-x
2026-01-09 00:00
scl
39.86
KB
-rwxr-xr-x
2024-10-29 00:00
scl_enabled
262
B
-rwxr-xr-x
2021-07-27 15:14
scl_source
1.88
KB
-rwxr-xr-x
2021-07-27 15:14
scp
137.25
KB
-rwxr-xr-x
2026-05-20 00:00
script
51.93
KB
-rwxr-xr-x
2026-01-15 00:00
sdiff
52.08
KB
-rwxr-xr-x
2024-10-29 00:00
sed
121.16
KB
-rwxr-xr-x
2026-01-23 00:00
selectorctl
7.63
KB
-rwxr-xr-x
2026-04-16 00:00
seq
43.88
KB
-rwxr-xr-x
2026-01-15 00:00
setsid
15.48
KB
-rwxr-xr-x
2026-01-15 00:00
setterm
35.73
KB
-rwxr-xr-x
2026-01-15 00:00
sftp
157.39
KB
-rwxr-xr-x
2026-05-20 00:00
sh
1.35
MB
-rwxr-xr-x
2024-10-29 00:00
sha1sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
sha224sum
39.8
KB
-rwxr-xr-x
2026-01-15 00:00
sha256sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
sha384sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
sha512sum
39.79
KB
-rwxr-xr-x
2026-01-15 00:00
shred
56.05
KB
-rwxr-xr-x
2026-01-15 00:00
shuf
48.16
KB
-rwxr-xr-x
2026-01-15 00:00
size
31.95
KB
-rwxr-xr-x
2026-02-04 00:00
skill
31.58
KB
-rwxr-xr-x
2026-01-15 00:00
slabtop
23.67
KB
-rwxr-xr-x
2026-01-15 00:00
sleep
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
snice
31.58
KB
-rwxr-xr-x
2026-01-15 00:00
sort
117.35
KB
-rwxr-xr-x
2026-01-15 00:00
spell
125
B
-rwxr-xr-x
2023-12-03 05:09
splain
19
KB
-rwxr-xr-x
2025-07-10 00:00
split
60.43
KB
-rwxr-xr-x
2026-01-15 00:00
sprof
35.53
KB
-rwxr-xr-x
2026-05-26 00:00
sqlite3
1.78
MB
-rwxr-xr-x
2025-07-16 00:00
ssh
864.63
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-add
285.84
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-agent
305.89
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-copy-id
13.84
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-keygen
455.63
KB
-rwxr-xr-x
2026-05-20 00:00
ssh-keyscan
330.45
KB
-rwxr-xr-x
2026-05-20 00:00
stat
76.13
KB
-rwxr-xr-x
2026-01-15 00:00
stdbuf
39.83
KB
-rwxr-xr-x
2026-01-15 00:00
strace
1.52
MB
-rwxr-xr-x
2025-12-17 00:00
stream
15.45
KB
-rwxr-xr-x
2025-03-30 00:00
strings
36.08
KB
-rwxr-xr-x
2026-02-04 00:00
strip
189.84
KB
-rwxr-xr-x
2026-02-04 00:00
stty
59.97
KB
-rwxr-xr-x
2026-01-15 00:00
sum
39.77
KB
-rwxr-xr-x
2026-01-15 00:00
sync
35.69
KB
-rwxr-xr-x
2026-01-15 00:00
tabs
19.54
KB
-rwxr-xr-x
2026-03-24 00:00
tac
39.74
KB
-rwxr-xr-x
2026-01-15 00:00
tail
68.29
KB
-rwxr-xr-x
2026-01-15 00:00
tar
429.65
KB
-rwxr-xr-x
2026-02-23 00:00
taskset
31.72
KB
-rwxr-xr-x
2026-01-15 00:00
tbl
129.91
KB
-rwxr-xr-x
2024-10-29 00:00
tclsh
15.43
KB
-rwxr-xr-x
2024-10-29 00:00
tclsh8.6
15.43
KB
-rwxr-xr-x
2024-10-29 00:00
tee
39.9
KB
-rwxr-xr-x
2026-01-15 00:00
test
35.88
KB
-rwxr-xr-x
2026-01-15 00:00
tic
92.23
KB
-rwxr-xr-x
2026-03-24 00:00
timeout
40.28
KB
-rwxr-xr-x
2026-01-15 00:00
tload
23.54
KB
-rwxr-xr-x
2026-01-15 00:00
tmpwatch
35.68
KB
-rwxr-xr-x
2024-10-29 00:00
toe
23.58
KB
-rwxr-xr-x
2026-03-24 00:00
top
133.71
KB
-rwxr-xr-x
2026-01-15 00:00
touch
76.12
KB
-rwxr-xr-x
2026-01-15 00:00
tput
27.62
KB
-rwxr-xr-x
2026-03-24 00:00
tr
47.97
KB
-rwxr-xr-x
2026-01-15 00:00
troff
551.38
KB
-rwxr-xr-x
2024-10-29 00:00
true
27.59
KB
-rwxr-xr-x
2026-01-15 00:00
truncate
39.8
KB
-rwxr-xr-x
2026-01-15 00:00
tset
27.68
KB
-rwxr-xr-x
2026-03-24 00:00
tsort
47.91
KB
-rwxr-xr-x
2026-01-15 00:00
tty
35.77
KB
-rwxr-xr-x
2026-01-15 00:00
tzselect
14.99
KB
-rwxr-xr-x
2026-05-26 00:00
uapi
1.25
KB
-rwxr-xr-x
2026-05-09 06:59
ul
23.62
KB
-rwxr-xr-x
2026-01-15 00:00
uname
35.8
KB
-rwxr-xr-x
2026-01-15 00:00
unexpand
39.88
KB
-rwxr-xr-x
2026-01-15 00:00
uniq
47.99
KB
-rwxr-xr-x
2026-01-15 00:00
unlink
35.78
KB
-rwxr-xr-x
2026-01-15 00:00
unzip
196.42
KB
-rwxr-xr-x
2025-04-07 00:00
unzipsfx
96.05
KB
-rwxr-xr-x
2025-04-07 00:00
uptime
15.49
KB
-rwxr-xr-x
2026-01-15 00:00
users
35.84
KB
-rwxr-xr-x
2026-01-15 00:00
utmpdump
23.57
KB
-rwxr-xr-x
2026-01-15 00:00
vacuumdb
85.48
KB
-rwxr-xr-x
2026-02-27 00:00
vdir
141.86
KB
-rwxr-xr-x
2026-01-15 00:00
vi
1.62
MB
-rwxr-xr-x
2026-04-08 00:00
view
146
B
-rwxr-xr-x
2026-04-08 00:00
vmstat
39.98
KB
-rwxr-xr-x
2026-01-15 00:00
watch
36.16
KB
-rwxr-xr-x
2026-01-15 00:00
wc
56.04
KB
-rwxr-xr-x
2026-01-15 00:00
wget
447.23
KB
-rwxr-xr-x
2024-12-11 00:00
whereis
32.2
KB
-rwxr-xr-x
2026-01-15 00:00
which
31.8
KB
-rwxr-xr-x
2025-07-01 00:00
who
43.89
KB
-rwxr-xr-x
2026-01-15 00:00
whoami
35.79
KB
-rwxr-xr-x
2026-01-15 00:00
word-list-compress
15.44
KB
-rwxr-xr-x
2024-10-29 00:00
x86_64-redhat-linux-c++
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
x86_64-redhat-linux-g++
1.32
MB
-rwxr-xr-x
2026-02-26 00:00
x86_64-redhat-linux-gcc
1.31
MB
-rwxr-xr-x
2026-02-26 00:00
x86_64-redhat-linux-gcc-14
1.31
MB
-rwxr-xr-x
2026-02-26 00:00
xargs
68.23
KB
-rwxr-xr-x
2024-10-29 00:00
xmlcatalog
23.47
KB
-rwxr-xr-x
2026-01-26 00:00
xmllint
76.88
KB
-rwxr-xr-x
2026-01-26 00:00
xmlwf
39.98
KB
-rwxr-xr-x
2025-12-02 00:00
xsltproc
31.55
KB
-rwxr-xr-x
2025-07-30 00:00
xsubpp
4.96
KB
-rwxr-xr-x
2024-10-29 00:00
yes
35.63
KB
-rwxr-xr-x
2026-01-15 00:00
zcat
1.93
KB
-rwxr-xr-x
2024-10-29 00:00
zcmp
1.64
KB
-rwxr-xr-x
2024-10-29 00:00
zdiff
6.3
KB
-rwxr-xr-x
2024-10-29 00:00
zegrep
33
B
-rwxr-xr-x
2024-10-29 00:00
zfgrep
33
B
-rwxr-xr-x
2024-10-29 00:00
zforce
2.03
KB
-rwxr-xr-x
2024-10-29 00:00
zgrep
8.02
KB
-rwxr-xr-x
2024-10-29 00:00
zip
209.48
KB
-rwxr-xr-x
2025-07-01 00:00
zipcloak
76.02
KB
-rwxr-xr-x
2025-07-01 00:00
zipgrep
2.89
KB
-rwxr-xr-x
2008-10-10 17:40
zipinfo
196.42
KB
-rwxr-xr-x
2025-04-07 00:00
zipnote
63.93
KB
-rwxr-xr-x
2025-07-01 00:00
zipsplit
63.91
KB
-rwxr-xr-x
2025-07-01 00:00
zless
2.38
KB
-rwxr-xr-x
2024-10-29 00:00
zmore
1.8
KB
-rwxr-xr-x
2024-10-29 00:00
znew
4.47
KB
-rwxr-xr-x
2024-10-29 00:00
Save
Rename
#!/usr/bin/perl eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if 0; # ^ Run only under a 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); $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"; } %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 = 5; 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; sub $macro(\$) { my (\$$arg) = \@_; \"$def\" } DEFINE } elsif ($define{$_} =~ /^([+-]?(\d+)?\.\d+([eE][+-]?\d+)?)[FL]?$/) { # float: print PREAMBLE "sub $_() { $1 }\n\n"; } elsif ($define{$_} =~ /^([+-]?\d+)U?L{0,2}$/i) { # integer: print PREAMBLE "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 "sub $_() { $code }\n\n"; } elsif ($define{$_} =~ /^\w+$/) { my $def = $define{$_}; if ($isatype{$def}) { print PREAMBLE "sub $_() { \"$def\" }\n\n"; } else { print PREAMBLE "sub $_() { &$def }\n\n"; } } else { print PREAMBLE "sub $_() { \"\Q$define{$_}\E\" }\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