/usr/bin
NameSizeModeActions
2to3950755editdlrm
ab834160755editdlrm
aclocal363760755editdlrm
aclocal-1.16363760755editdlrm
acyclic156640755editdlrm
addr2line284080755editdlrm
alias330755editdlrm
animate154560755editdlrm
appstream-compose322240755editdlrm
appstream-util1193680755editdlrm
apropos496880755editdlrm
apropos.man-db496880755editdlrm
ar573280755editdlrm
arch322240755editdlrm
arpaname154720755editdlrm
arping279040755editdlrm
as7273600755editdlrm
aserver404160755editdlrm
aspell1547440755editdlrm
at568244755editdlrm
atq568244755editdlrm
atrm568244755editdlrm
attr154960755editdlrm
audit2allow150640755editdlrm
audit2why150640755editdlrm
aulast196640755editdlrm
aulastlog154880755editdlrm
ausyscall154800755editdlrm
authselect447280755editdlrm
autoconf147710755editdlrm
autoheader85340755editdlrm
autom4te321810755editdlrm
automake2579810755editdlrm
automake-1.162579810755editdlrm
autopoint269970755editdlrm
autoreconf210660755editdlrm
autoscan171240755editdlrm
autoupdate338720755editdlrm
auvirt361520755editdlrm
avinfo239280755editdlrm
awk7149280755editdlrm
b2sum528320755editdlrm
base32363440755editdlrm
base64363440755editdlrm
basename322400755editdlrm
basenc489760755editdlrm
bash13890240755editdlrm
bashbug70790755editdlrm
bashbug-6470790755editdlrm
batch1400755editdlrm
bcomps239280755editdlrm
bg300755editdlrm
bison5066320755editdlrm
bluemoon448080755editdlrm
bluetoothctl6494560755editdlrm
bond2team232930755editdlrm
bootconfig310160755editdlrm
bootctl1029520755editdlrm
brotli7713760755editdlrm
bsqldb361360755editdlrm
bsqlodbc319360755editdlrm
btattach322720755editdlrm
btmgmt1989040755editdlrm
btmon12436240755editdlrm
bunzip2403920755editdlrm
busctl1025600755editdlrm
bwrap739520755editdlrm
bzcat403920755editdlrm
bzcmp21440755editdlrm
bzdiff21440755editdlrm
bzegrep20580755editdlrm
bzfgrep20580755editdlrm
bzgrep20580755editdlrm
bzip2403920755editdlrm
bzip2recover155920755editdlrm
bzless12630755editdlrm
bzmore12630755editdlrm
c++10972240755editdlrm
c++filt278400755editdlrm
c892280755editdlrm
c992190755editdlrm
ca-legacy16480755editdlrm
cal530640755editdlrm
canberra-boot195280755editdlrm
canberra-gtk-play196400755editdlrm
captoinfo898960755editdlrm
cat363120755editdlrm
catchsegv32890755editdlrm
catman367200755editdlrm
cc10931280755editdlrm
ccomps281280755editdlrm
cd300755editdlrm
centrino-decode144640755editdlrm
certutil1767360755editdlrm
chacl196080755editdlrm
chage737044755editdlrm
chattr155520755editdlrm
chcat139570755editdlrm
chcon614880755editdlrm
checkmodule4617040755editdlrm
checkpolicy5401840755editdlrm
chfn320324711editdlrm
chgrp573200755editdlrm
chmem362480755editdlrm
chmod573040755editdlrm
choom238560755editdlrm
chown614320755editdlrm
chronyc1072560755editdlrm
chrt279600755editdlrm
chsh237840711editdlrm
chvt155440755editdlrm
cifsiostat239200755editdlrm
circo156000755editdlrm
cksum321360755editdlrm
cl-linksafe-apply-group5580755editdlrm
cl-linksafe-reconfigure49470755editdlrm
clear155120755editdlrm
clockdiff237520755editdlrm
cluster488400755editdlrm
cmp410960755editdlrm
cmsutil484960755editdlrm
col237920755editdlrm
colcrt155520755editdlrm
colrm155280755editdlrm
column361840755editdlrm
comm364080755editdlrm
command350755editdlrm
compare154560755editdlrm
compile_et13460755editdlrm
composite154560755editdlrm
config_data71380755editdlrm
conjure154640755editdlrm
convert154640755editdlrm
coredumpctl612800755editdlrm
corelist152790755editdlrm
cp1444000755editdlrm
cpan85710755editdlrm
cpan-mirrors42880755editdlrm
cpansign20320755editdlrm
cpapi134781120755editdlrm
cpapi234781120755editdlrm
cpapi334781120755editdlrm
cpio1490160755editdlrm
cpp10972240755editdlrm
cpupower819360755editdlrm
crb26540744editdlrm
crc3210430755editdlrm
crlutil942000755editdlrm
cronnext407040755editdlrm
crontab571124755editdlrm
csplit1112720755editdlrm
curl2544480755editdlrm
cut446560755editdlrm
cvtsudoers3606800755editdlrm
cxpm280720755editdlrm
cyrusbdb2current16518240755editdlrm
datacopy319920755editdlrm
date1063360755editdlrm
dbus-broker2363680755editdlrm
dbus-broker-launch1319040755editdlrm
dbus-monitor279200755editdlrm
dbus-send278720755editdlrm
dbus-update-activation-environment155360755editdlrm
dbus-uuidgen155040755editdlrm
dbxtool238960755editdlrm
dconf662640755editdlrm
dd695760755editdlrm
deallocvt155520755editdlrm
debuginfo-install36900755editdlrm
debuginfod-find197360755editdlrm
defncopy320160755editdlrm
delv464720755editdlrm
df824640755editdlrm
diff1993680755editdlrm
diff3535600755editdlrm
diffimg156240755editdlrm
dig1398720755editdlrm
dijkstra199040755editdlrm
dir1407520755editdlrm
dircolors405680755editdlrm
dirmngr4505280755editdlrm
dirmngr-client574720755editdlrm
dirname279520755editdlrm
display154560755editdlrm
distro9530755editdlrm
dltest154640755editdlrm
dmesg734960755editdlrm
dnf20940755editdlrm
dnf-320940755editdlrm
dnf420940755editdlrm
dnsdomainname244080755editdlrm
dnstap-read237440755editdlrm
domainname244080755editdlrm
dot156000755editdlrm
dot2gxl408880755editdlrm
dotty20890755editdlrm
doveadm8404640755editdlrm
doveconf3842480755editdlrm
dovecot-sysreport64310755editdlrm
dpkg3282160755editdlrm
dpkg-deb1574000755editdlrm
dpkg-divert1328880755editdlrm
dpkg-maintscript-helper211280755editdlrm
dpkg-query1496720755editdlrm
dpkg-realpath364880755editdlrm
dpkg-split1072720755editdlrm
dpkg-statoverride574000755editdlrm
dpkg-trigger492320755editdlrm
dracut1009170755editdlrm
dtrace177960755editdlrm
du1528480755editdlrm
dumpkeys1678000755editdlrm
dwp8720320755editdlrm
dwz2334640755editdlrm
ea-php81113216640755editdlrm
ea-php81-pear3830755editdlrm
ea-php81-pecl2990755editdlrm
ea-php82114099360755editdlrm
ea-php82-pear3830755editdlrm
ea-php82-pecl2990755editdlrm
ea-wappspector1040755editdlrm
echo279440755editdlrm
ed537680755editdlrm
edgepaint25803040755editdlrm
egrep320755editdlrm
eject446560755editdlrm
elfedit366960755editdlrm
enc2xs416630755editdlrm
encguess29890755editdlrm
env450880755editdlrm
envml42050755editdlrm
envsubst362400755editdlrm
eps2eps6430755editdlrm
eqn1940640755editdlrm
event_rpcgen.py549360755editdlrm
evmctl712640755editdlrm
ex14522560755editdlrm
exempi288560755editdlrm
exiv22046160755editdlrm
expand404880755editdlrm
expr1110400755editdlrm
factor735920755editdlrm
fallocate237600755editdlrm
false279360755editdlrm
fc300755editdlrm
fc-cache1390755editdlrm
fc-cache-64237280755editdlrm
fc-cat196160755editdlrm
fc-conflist154960755editdlrm
fc-list154960755editdlrm
fc-match154960755editdlrm
fc-pattern155040755editdlrm
fc-query154960755editdlrm
fc-scan155040755editdlrm
fc-validate155040755editdlrm
fdp156000755editdlrm
fg300755editdlrm
fgconsole155360755editdlrm
fgrep320755editdlrm
filan487760755editdlrm
file282880755editdlrm
fincore238560755editdlrm
find2917920755editdlrm
find-repos-of-install36900755editdlrm
findmnt663040755editdlrm
fips-finish-install17640755editdlrm
fips-mode-setup82130755editdlrm
firewall-cmd1436080755editdlrm
firewall-offline-cmd1239520755editdlrm
fisql361360755editdlrm
flatpak18585600755editdlrm
flatpak-bisect78440755editdlrm
flatpak-coredumpctl34330755editdlrm
flex4225440755editdlrm
flex++4225440755editdlrm
flock239280755editdlrm
fmt405280755editdlrm
fold404560755editdlrm
free239200755editdlrm
freebcp237440755editdlrm
freetype-config44230755editdlrm
fribidi292720755editdlrm
ftp1030720755editdlrm
funzip320000755editdlrm
fuse2fs744240755editdlrm
fusermount363684755editdlrm
fusermount3364004755editdlrm
fwupdmgr1607840755editdlrm
fwupdtool1814560755editdlrm
g++10972240755editdlrm
g131129360755editdlrm
gapplication237680755editdlrm
gawk7149280755editdlrm
gc198560755editdlrm
gcc10931280755editdlrm
gcc-ar283360755editdlrm
gcc-nm283120755editdlrm
gcc-ranlib283360755editdlrm
gcov4885760755editdlrm
gcov-dump2987680755editdlrm
gcov-tool3281600755editdlrm
gdbmtool1528400755editdlrm
gdbm_dump288960755editdlrm
gdbm_load373520755editdlrm
gdbus527360755editdlrm
gdbus-codegen20380755editdlrm
gdk-pixbuf-query-loaders-64155280755editdlrm
gdk-pixbuf-thumbnailer196080755editdlrm
gencat281040755editdlrm
genl-ctrl-list158480755editdlrm
gen_grub_cfgstub6600700editdlrm
geqn1940640755editdlrm
GET162000755editdlrm
getconf360800755editdlrm
getent367200755editdlrm
getfacl320320755editdlrm
getfattr279200755editdlrm
getkeycodes155280755editdlrm
getopt238240755editdlrm
getopts350755editdlrm
gettext362000755editdlrm
gettext.sh51910755editdlrm
gettextize422360755editdlrm
ghostscript154880755editdlrm
gio940240755editdlrm
gio-querymodules-64154960755editdlrm
git233775200755editdlrm
git-receive-pack233775200755editdlrm
git-shell65629840755editdlrm
git-upload-archive233775200755editdlrm
git-upload-pack233775200755editdlrm
glib-compile-resources443840755editdlrm
glib-compile-schemas527040755editdlrm
glib-genmarshal411050755editdlrm
glib-gettextize53900755editdlrm
glib-mkenums307970755editdlrm
gmake2557920755editdlrm
gml2gv489280755editdlrm
gneqn9160755editdlrm
gnroff32850755editdlrm
gobject-query155280755editdlrm
gpasswd780164755editdlrm
gpg11236240755editdlrm
gpg-agent3504880755editdlrm
gpg-card1742160755editdlrm
gpg-connect-agent867840755editdlrm
gpg-error369680755editdlrm
gpg-error-config20240755editdlrm
gpg-wks-client1326560755editdlrm
gpg-wks-server1160480755editdlrm
gpg211236240755editdlrm
gpgconf1034080755editdlrm
gpgme-json866560755editdlrm
gpgparsemail361760755editdlrm
gpgrt-config134500755editdlrm
gpgsplit281600755editdlrm
gpgtar664240755editdlrm
gpgv3025200755editdlrm
gpgv23025200755editdlrm
gpic2065600755editdlrm
gpio-event-mon185600755editdlrm
gpio-hammer144560755editdlrm
gpio-watch144560755editdlrm
gprof1039200755editdlrm
gr2fonttest286720755editdlrm
graphml2gv241120755editdlrm
grep1582000755editdlrm
gresource238400755editdlrm
groff990880755editdlrm
grops1712720755editdlrm
grotty1251280755editdlrm
groups363280755editdlrm
grub2-editenv4984160755editdlrm
grub2-file11633040755editdlrm
grub2-fstest17505920755editdlrm
grub2-glue-efi3085760755editdlrm
grub2-kbdcomp16720755editdlrm
grub2-menulst2cfg2913440755editdlrm
grub2-mkfont3420400755editdlrm
grub2-mkimage4768160755editdlrm
grub2-mklayout3189200755editdlrm
grub2-mknetdir5453760755editdlrm
grub2-mkpasswd-pbkdf23215440755editdlrm
grub2-mkrelpath3083920755editdlrm
grub2-mkrescue14081680755editdlrm
grub2-mkstandalone6522480755editdlrm
grub2-mount10738000755editdlrm
grub2-render-label11682400755editdlrm
grub2-script-check3419600755editdlrm
grub2-syslinux2cfg10949920755editdlrm
gs154880755editdlrm
gsbj3540755editdlrm
gsdj3560755editdlrm
gsdj5003560755editdlrm
gsettings321360755editdlrm
gsf-office-thumbnailer205520755editdlrm
gslj3570755editdlrm
gslp3540755editdlrm
gsnd2810755editdlrm
gsoelim329520755editdlrm
gst-inspect-1.0734720755editdlrm
gst-launch-1.0404240755editdlrm
gst-stats-1.0364960755editdlrm
gst-typefind-1.0198000755editdlrm
gtar5348240755editdlrm
gtbl1340000755editdlrm
gtester320400755editdlrm
gtester-report190900755editdlrm
gtk-launch197440755editdlrm
gtk-query-immodules-2.0-64196320755editdlrm
gtk-query-immodules-3.0-64238320755editdlrm
gtk-update-icon-cache407840755editdlrm
gtroff7496400755editdlrm
gunzip23500755editdlrm
gv2gml239680755editdlrm
gv2gxl408880755editdlrm
gvcolor507760755editdlrm
gvgen239760755editdlrm
gvmap28810960755editdlrm
gvmap.sh21940755editdlrm
gvpack4076960755editdlrm
gvpr155680755editdlrm
gxl2dot408880755editdlrm
gxl2gv408880755editdlrm
gzexe64840755editdlrm
gzip910880755editdlrm
h2ph293820755editdlrm
h2xs609310755editdlrm
hardlink362800755editdlrm
hash320755editdlrm
hb-ot-shape-closure447040755editdlrm
hb-shape490560755editdlrm
hb-subset406080755editdlrm
hb-view655440755editdlrm
HEAD162000755editdlrm
head405600755editdlrm
hex2hcd195360755editdlrm
hexdump526400755editdlrm
host1111760755editdlrm
hostid322240755editdlrm
hostname244080755editdlrm
hostnamectl322480755editdlrm
htdbm394560755editdlrm
htdigest263280755editdlrm
html2text9800755editdlrm
htpasswd395840755editdlrm
httxt2dbm253200755editdlrm
hunspell1051360755editdlrm
i386281360755editdlrm
ibd2sdi3339760755editdlrm
iconv656240755editdlrm
icu-config2050755editdlrm
icu-config-64221890755editdlrm
icuinfo158640755editdlrm
id404720755editdlrm
identify154640755editdlrm
idiag-socket-details158880755editdlrm
idn373360755editdlrm
ifnames41280755editdlrm
iio_event_monitor308560755editdlrm
iio_generic_buffer349600755editdlrm
ima-add-sigs37630755editdlrm
ima-setup38000755editdlrm
import154560755editdlrm
imunify-agent-proxy137820080755editdlrm
imunify-antivirus10240755editdlrm
imunify-fgw-dump81829920755editdlrm
imunify-service10200755editdlrm
imunify360-agent10240755editdlrm
imunify360-command-wrapper122100755editdlrm
info3202400755editdlrm
infocmp652080755editdlrm
infotocap898960755editdlrm
innochecksum2346960755editdlrm
install1526560755editdlrm
instmodsh41940755editdlrm
intel-speed-select1194640755editdlrm
ionice155760755editdlrm
iostat570320755editdlrm
ipcmk238480755editdlrm
ipcrm196880755editdlrm
ipcs402800755editdlrm
iptc300080755editdlrm
irqtop361200755editdlrm
isosize155120755editdlrm
ispell9920755editdlrm
isql402880755editdlrm
iusql320560755editdlrm
jcat-tool452720755editdlrm
jobs320755editdlrm
join529280755editdlrm
journalctl902240755editdlrm
jq319280755editdlrm
json_pp48960755editdlrm
json_reformat199840755editdlrm
json_verify156720755editdlrm
json_xs70130755editdlrm
kbdinfo196560755editdlrm
kbdrate196640755editdlrm
kbd_mode158800755editdlrm
kdumpctl612760755editdlrm
kernel-install140300755editdlrm
keyctl655600755editdlrm
kill320320755editdlrm
killall337360755editdlrm
kmod1695440755editdlrm
krb5-config67460755editdlrm
kvm_stat644270755editdlrm
l2ping155440755editdlrm
last361360755editdlrm
lastb361360755editdlrm
lastlog293200755editdlrm
lchfn236800755editdlrm
lchsh236800755editdlrm
ld17916000755editdlrm
ld.bfd17916000755editdlrm
ld.gold21285920755editdlrm
ld.so9387920755editdlrm
ldd54460755editdlrm
lefty3076560755editdlrm
less2024400755editdlrm
lessecho155360755editdlrm
lesskey252000755editdlrm
lesspipe.sh35800755editdlrm
lex4225440755editdlrm
lexgrog903040755editdlrm
libnetcfg157750755editdlrm
libpng-config24400755editdlrm
libpng16-config24400755editdlrm
libtool3678020755editdlrm
libtoolize1292000755editdlrm
libwmf-fontmap133440755editdlrm
link322320755editdlrm
linux-boot-prober59970755editdlrm
linux32281360755editdlrm
linux64281360755editdlrm
ln572880755editdlrm
lneato15510755editdlrm
loadkeys2051760755editdlrm
loadunimap321840755editdlrm
locale604960755editdlrm
localectl322000755editdlrm
localedef3215840755editdlrm
logger368400755editdlrm
login445040755editdlrm
loginctl695920755editdlrm
logname322240755editdlrm
logresolve256640755editdlrm
look196320755editdlrm
ls1407440755editdlrm
lsattr155440755editdlrm
lsblk1273520755editdlrm
lscpu1108320755editdlrm
lsgpio146400755editdlrm
lsiio226720755editdlrm
lsinitrd121370755editdlrm
lsipc527360755editdlrm
lsirq237920755editdlrm
lslocks323520755editdlrm
lslogins527360755editdlrm
lsmem363760755editdlrm
lsns402720755editdlrm
lsof1792640755editdlrm
lsphp9370755editdlrm
lsscsi915840755editdlrm
lto-dump278825680755editdlrm
lua237840755editdlrm
luac1614720755editdlrm
lwp-download102920755editdlrm
lwp-dump27110755editdlrm
lwp-mirror24130755editdlrm
lwp-request162000755editdlrm
lynis524540755editdlrm
lz4_decompress1303120755editdlrm
m42461680755editdlrm
Mail10375680755editdlrm
mail10375680755editdlrm
mailx10375680755editdlrm
mailx.s-nail10375680755editdlrm
make2557920755editdlrm
make-dummy-cert6140755editdlrm
man1176720755editdlrm
man-recode286800755editdlrm
man.man-db1176720755editdlrm
mandb1362000755editdlrm
manpath325840755editdlrm
mapscrn321440755editdlrm
mcookie279600755editdlrm
md5sum403920755editdlrm
mdb_copy160800755editdlrm
mdb_dump162160755editdlrm
mdb_load244080755editdlrm
mdb_stat161840755editdlrm
mdig525360755editdlrm
mesg155040755editdlrm
mkdir697600755editdlrm
mkfifo405920755editdlrm
mkfontdir690755editdlrm
mkfontscale458480755editdlrm
mknod447280755editdlrm
mktemp405680755editdlrm
mm2gv403920755editdlrm
mmdblookup283840755editdlrm
modulecmd6697020755editdlrm
modulemd-validator290720755editdlrm
modutil941120755editdlrm
mogrify154640755editdlrm
mokutil626880755editdlrm
montage154640755editdlrm
more444640755editdlrm
mount484804755editdlrm
mountpoint196400755editdlrm
mpris-proxy1035840755editdlrm
mpstat528320755editdlrm
msgattrib278240755editdlrm
msgcat277920755editdlrm
msgcmp279200755editdlrm
msgcomm278080755editdlrm
msgconv237040755editdlrm
msgen237040755editdlrm
msgexec237040755editdlrm
msgfilter361600755editdlrm
msgfmt861120755editdlrm
msgfmt.py75900755editdlrm
msgfmt3.9.py75900755editdlrm
msgfmt3.py75900755editdlrm
msggrep1192000755editdlrm
msginit690560755editdlrm
msgmerge772960755editdlrm
msgunfmt361760755editdlrm
msguniq237040755editdlrm
mv1443280755editdlrm
myisamchk67999760755editdlrm
myisamlog66312000755editdlrm
myisampack66667840755editdlrm
myisam_ftdump66066240755editdlrm
mysql74960640755editdlrm
mysqladmin72301680755editdlrm
mysqlbinlog75416320755editdlrm
mysqlcheck72389680755editdlrm
mysqldump73035120755editdlrm
mysqldumpslow77190755editdlrm
mysqld_pre_systemd44210755editdlrm
mysqlimport72181520755editdlrm
mysqlpump77066640755editdlrm
mysqlshow72167280755editdlrm
mysqlslap72278800755editdlrm
mysql_config8430755editdlrm
mysql_config-6450520755editdlrm
mysql_config_editor2196080755editdlrm
mysql_migrate_keyring72921040755editdlrm
mysql_secure_installation72018000755editdlrm
mysql_ssl_rsa_setup2644960755editdlrm
mysql_tzinfo_to_sql1420480755editdlrm
mysql_upgrade73006240755editdlrm
my_print_defaults2303840755editdlrm
nail10375680755editdlrm
named-rrchecker236960755editdlrm
namei237840755editdlrm
nano3545040755editdlrm
nc531040755editdlrm
ncurses6-config83210755editdlrm
ncursesw6-config83240755editdlrm
ndptool280800755editdlrm
neato156000755editdlrm
needs-restarting36900755editdlrm
neqn9160755editdlrm
netcat531040755editdlrm
netstat1606160755editdlrm
newgidmap429600755editdlrm
newgrp417444755editdlrm
newuidmap388400755editdlrm
nf-ct-add162720755editdlrm
nf-ct-events156960755editdlrm
nf-ct-list163120755editdlrm
nf-exp-add207920755editdlrm
nf-exp-delete164720755editdlrm
nf-exp-list163120755editdlrm
nf-log156800755editdlrm
nf-monitor156960755editdlrm
nf-queue156880755editdlrm
ngettext361920755editdlrm
nice363360755editdlrm
nisdomainname244080755editdlrm
nl1029200755editdlrm
nl-addr-add161440755editdlrm
nl-addr-delete162000755editdlrm
nl-addr-list203120755editdlrm
nl-class-add161280755editdlrm
nl-class-delete160400755editdlrm
nl-class-list160080755editdlrm
nl-classid-lookup158720755editdlrm
nl-cls-add202880755editdlrm
nl-cls-delete161120755editdlrm
nl-cls-list160640755editdlrm
nl-fib-lookup158960755editdlrm
nl-link-enslave156560755editdlrm
nl-link-ifindex2name156560755editdlrm
nl-link-list160480755editdlrm
nl-link-name2ifindex156560755editdlrm
nl-link-release156560755editdlrm
nl-link-set161200755editdlrm
nl-link-stats159040755editdlrm
nl-list-caches156720755editdlrm
nl-list-sockets156560755editdlrm
nl-monitor158560755editdlrm
nl-neigh-add160400755editdlrm
nl-neigh-delete160720755editdlrm
nl-neigh-list159840755editdlrm
nl-neightbl-list158160755editdlrm
nl-nh-list158480755editdlrm
nl-pktloc-lookup159040755editdlrm
nl-qdisc-add160720755editdlrm
nl-qdisc-delete160400755editdlrm
nl-qdisc-list201600755editdlrm
nl-route-add203120755editdlrm
nl-route-delete203920755editdlrm
nl-route-get156800755editdlrm
nl-route-list162400755editdlrm
nl-rule-list158480755editdlrm
nl-tctree-list159760755editdlrm
nl-util-addr156560755editdlrm
nm457920755editdlrm
nm-online239440755editdlrm
nmcli10796720755editdlrm
nmtui8626560755editdlrm
nmtui-connect8626560755editdlrm
nmtui-edit8626560755editdlrm
nmtui-hostname8626560755editdlrm
nohup362480755editdlrm
nop156960755editdlrm
notify-send202240755editdlrm
nproc363520755editdlrm
nroff32850755editdlrm
nsenter281280755editdlrm
nslookup1152240755editdlrm
nss-policy-check155200755editdlrm
nsupdate735280755editdlrm
numfmt569680755editdlrm
objcopy1898160755editdlrm
objdump4230000755editdlrm
od654080755editdlrm
odbcinst237280755editdlrm
odbc_config154720755editdlrm
openssl11225520755editdlrm
openvt241200755editdlrm
orc-bugreport238720755editdlrm
os-prober59190755editdlrm
osage156000755editdlrm
osinfo-db-export280080755editdlrm
osinfo-db-import279600755editdlrm
osinfo-db-path156720755editdlrm
osinfo-db-validate239600755editdlrm
osinfo-detect280560755editdlrm
osinfo-install-script325360755editdlrm
osinfo-query329600755editdlrm
osql97070755editdlrm
p11-kit2459040755editdlrm
pacat526560755editdlrm
package-cleanup36900755editdlrm
pacmd195840755editdlrm
pactl815840755editdlrm
page_owner_sort267520755editdlrm
pamon526560755editdlrm
pango-list195680755editdlrm
pango-segmentation195840755editdlrm
pango-view616160755editdlrm
paperconf161840755editdlrm
paplay526560755editdlrm
parec526560755editdlrm
parecord526560755editdlrm
passwd326564755editdlrm
paste362400755editdlrm
pasuspender238320755editdlrm
patch1996960755editdlrm
patchwork156000755editdlrm
pathchk363280755editdlrm
pathfix.py67860755editdlrm
pathfix3.9.py67860755editdlrm
pax11publish154880755editdlrm
pcre-config21420755editdlrm
pcre2-config19540755editdlrm
pdf2dsc7010755editdlrm
pdf2ps9130755editdlrm
pdnsutil50501760755editdlrm
pdns_control4915440755editdlrm
peekfd161840755editdlrm
perl154960755editdlrm
perl5.32.1154960755editdlrm
perlbug448630755editdlrm
perldoc1180755editdlrm
perlivp108130755editdlrm
perlml148400755editdlrm
perlthanks448630755editdlrm
perror10309280755editdlrm
pf2afm5020755editdlrm
pfbtopfa5200755editdlrm
pftp1030720755editdlrm
pgrep321760755editdlrm
php9370755editdlrm
pic2065600755editdlrm
piconv82710755editdlrm
pidof238880755editdlrm
pidstat528320755editdlrm
pidwait321760755editdlrm
pigz1360240755editdlrm
ping914720755editdlrm
pinky362640755editdlrm
pip6480755editdlrm
pip-36480755editdlrm
pip-3.96480755editdlrm
pip36480755editdlrm
pip3.96480755editdlrm
pipewire155200755editdlrm
pipewire-aes67155200755editdlrm
pipewire-avb155200755editdlrm
pipewire-pulse155200755editdlrm
pipewire-vulkan155200755editdlrm
pk12util741920755editdlrm
pkaction196240755editdlrm
pkcheck237280755editdlrm
pkexec319284755editdlrm
pkg-config3350755editdlrm
pkgconf464480755editdlrm
pkill321760755editdlrm
pkla-admin-identities245360755editdlrm
pkla-check-authorization369680755editdlrm
pkttyagent237120755editdlrm
pl2pm45330755editdlrm
pldd239280755editdlrm
plesk_configure3460755editdlrm
pmap362400755editdlrm
png-fix-itxt154720755editdlrm
pngfix609920755editdlrm
pod2html41340755editdlrm
pod2man150340755editdlrm
pod2text108030755editdlrm
pod2usage41070755editdlrm
podchecker36580755editdlrm
POST162000755editdlrm
post-grohtml2045520755editdlrm
powernow-k8-decode144640755editdlrm
pphs4080755editdlrm
pr738320755editdlrm
pre-grohtml951520755editdlrm
precat56600755editdlrm
preconv576160755editdlrm
preunzip56600755editdlrm
prezip56600755editdlrm
prezip-bin160640755editdlrm
printafm3990755editdlrm
printenv320400755editdlrm
printf528160755editdlrm
prlimit284160755editdlrm
procan362800755editdlrm
protoc238800755editdlrm
protoc-c1619920755editdlrm
protoc-gen-c1619920755editdlrm
prove135620755editdlrm
prtstat244160755editdlrm
prune157760755editdlrm
ps1445360755editdlrm
ps2ascii6350755editdlrm
ps2epsi12680755editdlrm
ps2pdf2760755editdlrm
ps2pdf122190755editdlrm
ps2pdf132190755editdlrm
ps2pdf142190755editdlrm
ps2pdfwr10820755editdlrm
ps2ps6510755editdlrm
ps2ps26730755editdlrm
psfaddtable320080755editdlrm
psfgettable320080755editdlrm
psfstriptable320080755editdlrm
psfxtable320080755editdlrm
pslog160800755editdlrm
pstree377840755editdlrm
pstree.x11377840755editdlrm
ptar34700755editdlrm
ptardiff25490755editdlrm
ptargrep42990755editdlrm
ptx1319120755editdlrm
pure-pw395120755editdlrm
pure-pwconvert148640755editdlrm
pure-statsdecode148640755editdlrm
pw-jack13520755editdlrm
pwd363760755editdlrm
pwdx156480755editdlrm
pwmake160800755editdlrm
pwscore160800755editdlrm
pydoc780755editdlrm
pydoc3780755editdlrm
pydoc3.9780755editdlrm
pygettext.py215370755editdlrm
pygettext3.9.py215370755editdlrm
pygettext3.py215370755editdlrm
python-config610755editdlrm
python-html2text9800755editdlrm
python3154480755editdlrm
python3-config610755editdlrm
python3-html2text9800755editdlrm
python3.9154480755editdlrm
python3.9-config610755editdlrm
python3.9-x86_64-config36240755editdlrm
quota836324755editdlrm
quotasync664320755editdlrm
ranlib573360755editdlrm
read320755editdlrm
readelf6832960755editdlrm
readlink404560755editdlrm
realpath405360755editdlrm
recode-sr-latin154960755editdlrm
red920755editdlrm
rename237840755editdlrm
renew-dummy-cert7290755editdlrm
renice155280755editdlrm
repo-graph36900755editdlrm
repoclosure36900755editdlrm
repodiff36900755editdlrm
repomanage36900755editdlrm
repoquery36900755editdlrm
reposync36900755editdlrm
repotrack36900755editdlrm
rescan-scsi-bus.sh390020755editdlrm
reset279920755editdlrm
resizecons280320755editdlrm
rev155200755editdlrm
rm614320755editdlrm
rmdir444640755editdlrm
rnano3545040755editdlrm
rpcbind613280755editdlrm
rpcinfo364320755editdlrm
rpm242000755editdlrm
rpm2archive238800755editdlrm
rpm2cpio154800755editdlrm
rpmdb202160755editdlrm
rpmkeys159680755editdlrm
rpmquery242000755editdlrm
rpmverify242000755editdlrm
rsync5885680755editdlrm
rsync-ssl51320755editdlrm
run-parts19870755editdlrm
run-with-aspell890755editdlrm
runcon363120755editdlrm
rvi14522560755editdlrm
rview14522560755editdlrm
s-nail10375680755editdlrm
sadf4698560755editdlrm
sar1389280755editdlrm
sccmap239280755editdlrm
scl404960755editdlrm
scl_enabled2620755editdlrm
scl_source19290755editdlrm
scp1361040755editdlrm
script528160755editdlrm
scriptlive445200755editdlrm
scriptreplay361440755editdlrm
scsi-rescan390020755editdlrm
scsi_logging_level85880755editdlrm
scsi_mandat36060755editdlrm
scsi_readcap13310755editdlrm
scsi_ready11250755editdlrm
scsi_satl38340755editdlrm
scsi_start12890755editdlrm
scsi_stop14780755editdlrm
scsi_temperature9400755editdlrm
sdiff452640755editdlrm
secon289280755editdlrm
sed1155440755editdlrm
sedismod2959520755editdlrm
sedispol2252080755editdlrm
semodule_expand154800755editdlrm
semodule_link154960755editdlrm
semodule_package196240755editdlrm
semodule_unpackage154880755editdlrm
seq487360755editdlrm
sestatus236800755editdlrm
setarch281360755editdlrm
setfacl444160755editdlrm
setfattr278640755editdlrm
setfont528800755editdlrm
setkeycodes155680755editdlrm
setleds197360755editdlrm
setmetamode156720755editdlrm
setpriv402880755editdlrm
setsid155120755editdlrm
setterm361760755editdlrm
setup-nsssysinit15430755editdlrm
setup-nsssysinit.sh15430755editdlrm
setvtrgb156320755editdlrm
sfdp156000755editdlrm
sftp1608640755editdlrm
sg417444755editdlrm
sginfo753600755editdlrm
sgm_dd402880755editdlrm
sgp_dd445920755editdlrm
sg_bg_ctl157120755editdlrm
sg_compare_and_write284320755editdlrm
sg_copy_results246480755editdlrm
sg_dd567120755editdlrm
sg_decode_sense160400755editdlrm
sg_emc_trespass154960755editdlrm
sg_format412000755editdlrm
sg_get_config370400755editdlrm
sg_get_elem_status283040755editdlrm
sg_get_lba_status243760755editdlrm
sg_ident158000755editdlrm
sg_inq1236000755editdlrm
sg_logs1565680755editdlrm
sg_luns242320755editdlrm
sg_map196480755editdlrm
sg_map26283200755editdlrm
sg_modes481200755editdlrm
sg_opcodes368160755editdlrm
sg_persist378160755editdlrm
sg_prevent156960755editdlrm
sg_raw284240755editdlrm
sg_rbuf241760755editdlrm
sg_rdac154800755editdlrm
sg_read278480755editdlrm
sg_readcap242240755editdlrm
sg_read_attr384240755editdlrm
sg_read_block_limits157440755editdlrm
sg_read_buffer290320755editdlrm
sg_read_long159120755editdlrm
sg_reassign158640755editdlrm
sg_referrals158800755editdlrm
sg_rep_pip157840755editdlrm
sg_rep_zones285040755editdlrm
sg_requests241680755editdlrm
sg_reset158960755editdlrm
sg_reset_wp158160755editdlrm
sg_rmsn157040755editdlrm
sg_rtpg158080755editdlrm
sg_safte241120755editdlrm
sg_sanitize285280755editdlrm
sg_sat_identify200560755editdlrm
sg_sat_phy_event203360755editdlrm
sg_sat_read_gplog200400755editdlrm
sg_sat_set_features200000755editdlrm
sg_scan196480755editdlrm
sg_seek202080755editdlrm
sg_senddiag287680755editdlrm
sg_ses1239600755editdlrm
sg_ses_microcode289280755editdlrm
sg_start201920755editdlrm
sg_stpg241200755editdlrm
sg_stream_ctl200160755editdlrm
sg_sync158800755editdlrm
sg_test_rwbuf199840755editdlrm
sg_timestamp242000755editdlrm
sg_turs282800755editdlrm
sg_unmap241920755editdlrm
sg_verify202240755editdlrm
sg_vpd1223600755editdlrm
sg_write_buffer287680755editdlrm
sg_write_long159680755editdlrm
sg_write_same284880755editdlrm
sg_write_verify283200755editdlrm
sg_write_x620320755editdlrm
sg_wr_mode241200755editdlrm
sg_xcopy444080755editdlrm
sg_zone201120755editdlrm
sh13890240755editdlrm
sha1hmac361120755editdlrm
sha1sum403920755editdlrm
sha224hmac361120755editdlrm
sha224sum403920755editdlrm
sha256hmac361120755editdlrm
sha256sum403920755editdlrm
sha384hmac361120755editdlrm
sha384sum403920755editdlrm
sha512hmac361120755editdlrm
sha512sum403920755editdlrm
shasum98920755editdlrm
showconsolefont197520755editdlrm
showkey196880755editdlrm
shred529200755editdlrm
shuf489520755editdlrm
sieve-dump387920755editdlrm
sieve-filter443840755editdlrm
sieve-test443120755editdlrm
sievec390480755editdlrm
signver405520755editdlrm
size323680755editdlrm
skill321520755editdlrm
slabinfo439840755editdlrm
slabtop239840755editdlrm
sleep322240755editdlrm
slencheck154880755editdlrm
sm3hmac361120755editdlrm
snice321520755editdlrm
socat3962080755editdlrm
soelim329520755editdlrm
soelim.groff329520755editdlrm
sort1156080755editdlrm
sotruss42820755editdlrm
spell1250755editdlrm
splain194110755editdlrm
split533600755editdlrm
sprof362960755editdlrm
sqlite316102240755editdlrm
ssh9178960755editdlrm
ssh-add3130560755editdlrm
ssh-agent3253280755editdlrm
ssh-copy-id141740755editdlrm
ssh-keygen4868240755editdlrm
ssh-keyscan3463520755editdlrm
ssltap732560755editdlrm
sss_ssh_authorizedkeys238480755editdlrm
sss_ssh_knownhostsproxy279520755editdlrm
stat817680755editdlrm
stdbuf446000755editdlrm
strace21766640755editdlrm
strace-log-merge18790755editdlrm
stream154560755editdlrm
streamzip78450755editdlrm
strings325040755editdlrm
strip1898080755editdlrm
stty774560755editdlrm
su569364750editdlrm
sudo2976884111editdlrm
sudoedit2976884111editdlrm
sudoreplay998880111editdlrm
sum362320755editdlrm
sw-engine253140960755editdlrm
sxpm323360755editdlrm
sync362000755editdlrm
systemctl3055760755editdlrm
systemd-analyze2064160755editdlrm
systemd-ask-password199280755editdlrm
systemd-cat197280755editdlrm
systemd-cgls240320755editdlrm
systemd-cgtop403600755editdlrm
systemd-creds448560755editdlrm
systemd-cryptenroll738080755editdlrm
systemd-delta279680755editdlrm
systemd-detect-virt197200755editdlrm
systemd-dissect489280755editdlrm
systemd-escape238160755editdlrm
systemd-firstboot574320755editdlrm
systemd-hwdb156480755editdlrm
systemd-id128280320755editdlrm
systemd-inhibit238720755editdlrm
systemd-machine-id-setup200160755editdlrm
systemd-mount614720755editdlrm
systemd-notify238720755editdlrm
systemd-path197200755editdlrm
systemd-repart1733280755editdlrm
systemd-run655600755editdlrm
systemd-socket-activate280080755editdlrm
systemd-stdio-bridge238240755editdlrm
systemd-sysext489040755editdlrm
systemd-sysusers740880755editdlrm
systemd-tmpfiles1275280755editdlrm
systemd-tty-ask-password-agent403120755editdlrm
systemd-umount614720755editdlrm
tabs196240755editdlrm
tac1028080755editdlrm
tail695360755editdlrm
tapestat280240755editdlrm
tar5348240755editdlrm
taskset237840755editdlrm
tbl1340000755editdlrm
tclsh160640755editdlrm
tclsh8.6160640755editdlrm
tcptraceroute15890755editdlrm
tdspool2640480755editdlrm
team2bond161380755editdlrm
teamd1705920755editdlrm
teamdctl380080755editdlrm
teamnl238160755editdlrm
tee363440755editdlrm
test446640755editdlrm
tic898960755editdlrm
timedatectl488080755editdlrm
timeout368480755editdlrm
tload198000755editdlrm
tmon435040755editdlrm
tmpwatch368960755editdlrm
toe237840755editdlrm
top1354480755editdlrm
touch940480755editdlrm
tput279040755editdlrm
tr447280755editdlrm
tracepath196800755editdlrm
traceroute791440755editdlrm
traceroute6791440755editdlrm
tracker36257440755editdlrm
tred157200755editdlrm
troff7496400755editdlrm
true279360755editdlrm
truncate363280755editdlrm
trust2753360755editdlrm
tset279920755editdlrm
tsort487440755editdlrm
tsql2598400755editdlrm
tty322240755editdlrm
turbostat1726080755editdlrm
twopi156000755editdlrm
type320755editdlrm
tzselect153520755editdlrm
uapi34781120755editdlrm
udevadm6019600755editdlrm
ul238160755editdlrm
ulimit340755editdlrm
ulockmgr_server198400755editdlrm
umask330755editdlrm
umount361124755editdlrm
unalias350755editdlrm
uname322320755editdlrm
uname26281360755editdlrm
unexpand404800755editdlrm
unflatten157360755editdlrm
unicode_start26330755editdlrm
unicode_stop3670755editdlrm
uniq446800755editdlrm
unlink322240755editdlrm
unpigz1360240755editdlrm
unshare323120755editdlrm
unxz869760755editdlrm
unzip2006880755editdlrm
unzipsfx898080755editdlrm
update-ca-trust44660755editdlrm
update-crypto-policies870755editdlrm
update-gtk-immodules3160755editdlrm
update-mime-database613040755editdlrm
upower244480755editdlrm
uptime156560755editdlrm
users322560755editdlrm
usleep156560755editdlrm
utmpdump237680755editdlrm
uuidgen196160755editdlrm
uuidparse237680755editdlrm
vdir1407520755editdlrm
VGAuthService1357120755editdlrm
vi14522560755editdlrm
view1460755editdlrm
vimdot10860755editdlrm
vlock240160755editdlrm
vm-support128790755editdlrm
vmhgfs-fuse493600755editdlrm
vmstat403600755editdlrm
vmtoolsd821920755editdlrm
vmware-alias-import870160755editdlrm
vmware-checkvm155680755editdlrm
vmware-hgfsclient156400755editdlrm
vmware-namespace-cmd237760755editdlrm
vmware-rpctool198400755editdlrm
vmware-toolbox-cmd612880755editdlrm
vmware-vgauth-cmd196320755editdlrm
vmware-xferlogs342400755editdlrm
w239280755editdlrm
wait320755editdlrm
wall237840755editdlrm
watch285360755editdlrm
watchgnupg237600755editdlrm
wc445760755editdlrm
wdctl320800755editdlrm
wget5337200755editdlrm
whatis496880755editdlrm
whatis.man-db496880755editdlrm
whereis326080755editdlrm
which285600755editdlrm
whiptail326960755editdlrm
who528320755editdlrm
whoami322240755editdlrm
wireplumber241920755editdlrm
wmf2eps201920755editdlrm
wmf2fig202880755editdlrm
wmf2gd161920755editdlrm
wmf2svg202960755editdlrm
wmf2x160800755editdlrm
word-list-compress160800755editdlrm
wpctl737600755editdlrm
wpexec200720755editdlrm
write238002755editdlrm
x86_64281360755editdlrm
x86_64-redhat-linux-c++10972240755editdlrm
x86_64-redhat-linux-g++10972240755editdlrm
x86_64-redhat-linux-gcc10931280755editdlrm
x86_64-redhat-linux-gcc-1110931280755editdlrm
x86_64-redhat-linux-gnu-pkg-config8290755editdlrm
x86_energy_perf_policy396560755editdlrm
xargs656320755editdlrm
xb-tool322240755editdlrm
xdg-dbus-proxy578960755editdlrm
xgettext3038240755editdlrm
xml2-config18770755editdlrm
xmlcatalog237120755editdlrm
xmllint824880755editdlrm
xmlsec1730880755editdlrm
xmlwf405760755editdlrm
xslt-config26390755editdlrm
xsltproc319840755editdlrm
xsubpp50800755editdlrm
xz869760755editdlrm
xzcat869760755editdlrm
xzcmp66370755editdlrm
xzdec162320755editdlrm
xzdiff66370755editdlrm
xzegrep59080755editdlrm
xzfgrep59080755editdlrm
xzgrep59080755editdlrm
xzless18030755editdlrm
xzmore21660755editdlrm
yat2m410000755editdlrm
yes320640755editdlrm
ypdomainname244080755editdlrm
yum20940755editdlrm
yum-builddep36900755editdlrm
yum-config-manager36900755editdlrm
yum-debug-dump36900755editdlrm
yum-debug-restore36900755editdlrm
yum-groups-manager36900755editdlrm
yumdownloader36900755editdlrm
zcat19880755editdlrm
zcmp16820755editdlrm
zdiff64510755editdlrm
zdump280000755editdlrm
zegrep330755editdlrm
zfgrep330755editdlrm
zforce20850755editdlrm
zgrep81160755editdlrm
zip2264000755editdlrm
zipcloak775120755editdlrm
zipdetails599690755editdlrm
zipgrep29570755editdlrm
zipinfo2006880755editdlrm
zipnote692320755editdlrm
zipsplit651040755editdlrm
zless22100755editdlrm
zlib_decompress1178800755editdlrm
zmore18460755editdlrm
znew45810755editdlrm
zone2json14109280755editdlrm
zone2sql14355360755editdlrm
zsoelim329520755editdlrm
[528720755editdlrm
Edit: /usr/bin/h2xs (60931B)
#!/usr/bin/perl eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if $running_under_some_shell; BEGIN { pop @INC if $INC[-1] eq '.' } use warnings; =head1 NAME h2xs - convert .h C header files to Perl extensions =head1 SYNOPSIS B [B ...] [headerfile ... [extra_libraries]] B B<-h>|B<-?>|B<--help> =head1 DESCRIPTION I builds a Perl extension from C header files. The extension will include functions which can be used to retrieve the value of any #define statement which was in the C header files. The I will be used for the name of the extension. If module_name is not supplied then the name of the first header file will be used, with the first character capitalized. If the extension might need extra libraries, they should be included here. The extension Makefile.PL will take care of checking whether the libraries actually exist and how they should be loaded. The extra libraries should be specified in the form -lm -lposix, etc, just as on the cc command line. By default, the Makefile.PL will search through the library path determined by Configure. That path can be augmented by including arguments of the form B<-L/another/library/path> in the extra-libraries argument. In spite of its name, I may also be used to create a skeleton pure Perl module. See the B<-X> option. =head1 OPTIONS =over 5 =item B<-A>, B<--omit-autoload> Omit all autoload facilities. This is the same as B<-c> but also removes the S> statement from the .pm file. =item B<-B>, B<--beta-version> Use an alpha/beta style version number. Causes version number to be "0.00_01" unless B<-v> is specified. =item B<-C>, B<--omit-changes> Omits creation of the F file, and adds a HISTORY section to the POD template. =item B<-F>, B<--cpp-flags>=I Additional flags to specify to C preprocessor when scanning header for function declarations. Writes these options in the generated F too. =item B<-M>, B<--func-mask>=I selects functions/macros to process. =item B<-O>, B<--overwrite-ok> Allows a pre-existing extension directory to be overwritten. =item B<-P>, B<--omit-pod> Omit the autogenerated stub POD section. =item B<-X>, B<--omit-XS> Omit the XS portion. Used to generate a skeleton pure Perl module. C<-c> and C<-f> are implicitly enabled. =item B<-a>, B<--gen-accessors> Generate an accessor method for each element of structs and unions. The generated methods are named after the element name; will return the current value of the element if called without additional arguments; and will set the element to the supplied value (and return the new value) if called with an additional argument. Embedded structures and unions are returned as a pointer rather than the complete structure, to facilitate chained calls. These methods all apply to the Ptr type for the structure; additionally two methods are constructed for the structure type itself, C<_to_ptr> which returns a Ptr type pointing to the same structure, and a C method to construct and return a new structure, initialised to zeroes. =item B<-b>, B<--compat-version>=I Generates a .pm file which is backwards compatible with the specified perl version. For versions < 5.6.0, the changes are. - no use of 'our' (uses 'use vars' instead) - no 'use warnings' Specifying a compatibility version higher than the version of perl you are using to run h2xs will have no effect. If unspecified h2xs will default to compatibility with the version of perl you are using to run h2xs. =item B<-c>, B<--omit-constant> Omit C from the .xs file and corresponding specialised C from the .pm file. =item B<-d>, B<--debugging> Turn on debugging messages. =item B<-e>, B<--omit-enums>=[I] If I is not given, skip all constants that are defined in a C enumeration. Otherwise skip only those constants that are defined in an enum whose name matches I. Since I is optional, make sure that this switch is followed by at least one other switch if you omit I and have some pending arguments such as header-file names. This is ok: h2xs -e -n Module::Foo foo.h This is not ok: h2xs -n Module::Foo -e foo.h In the latter, foo.h is taken as I. =item B<-f>, B<--force> Allows an extension to be created for a header even if that header is not found in standard include directories. =item B<-g>, B<--global> Include code for safely storing static data in the .xs file. Extensions that do no make use of static data can ignore this option. =item B<-h>, B<-?>, B<--help> Print the usage, help and version for this h2xs and exit. =item B<-k>, B<--omit-const-func> For function arguments declared as C, omit the const attribute in the generated XS code. =item B<-m>, B<--gen-tied-var> B: for each variable declared in the header file(s), declare a perl variable of the same name magically tied to the C variable. =item B<-n>, B<--name>=I Specifies a name to be used for the extension, e.g., S<-n RPC::DCE> =item B<-o>, B<--opaque-re>=I Use "opaque" data type for the C types matched by the regular expression, even if these types are C-equivalent to types from typemaps. Should not be used without B<-x>. This may be useful since, say, types which are C-equivalent to integers may represent OS-related handles, and one may want to work with these handles in OO-way, as in C<$handle-Edo_something()>. Use C<-o .> if you want to handle all the Ced types as opaque types. The type-to-match is whitewashed (except for commas, which have no whitespace before them, and multiple C<*> which have no whitespace between them). =item B<-p>, B<--remove-prefix>=I Specify a prefix which should be removed from the Perl function names, e.g., S<-p sec_rgy_> This sets up the XS B keyword and removes the prefix from functions that are autoloaded via the C mechanism. =item B<-s>, B<--const-subs>=I Create a perl subroutine for the specified macros rather than autoload with the constant() subroutine. These macros are assumed to have a return type of B, e.g., S<-s sec_rgy_wildcard_name,sec_rgy_wildcard_sid>. =item B<-t>, B<--default-type>=I Specify the internal type that the constant() mechanism uses for macros. The default is IV (signed integer). Currently all macros found during the header scanning process will be assumed to have this type. Future versions of C may gain the ability to make educated guesses. =item B<--use-new-tests> When B<--compat-version> (B<-b>) is present the generated tests will use C rather than C which is the default for versions before 5.6.2. C will be added to PREREQ_PM in the generated C. =item B<--use-old-tests> Will force the generation of test code that uses the older C module. =item B<--skip-exporter> Do not use C and/or export any symbol. =item B<--skip-ppport> Do not use C: no portability to older version. =item B<--skip-autoloader> Do not use the module C; but keep the constant() function and C for constants. =item B<--skip-strict> Do not use the pragma C. =item B<--skip-warnings> Do not use the pragma C. =item B<-v>, B<--version>=I Specify a version number for this extension. This version number is added to the templates. The default is 0.01, or 0.00_01 if C<-B> is specified. The version specified should be numeric. =item B<-x>, B<--autogen-xsubs> Automatically generate XSUBs basing on function declarations in the header file. The package C should be installed. If this option is specified, the name of the header file may look like C. In this case NAME1 is used instead of the specified string, but XSUBs are emitted only for the declarations included from file NAME2. Note that some types of arguments/return-values for functions may result in XSUB-declarations/typemap-entries which need hand-editing. Such may be objects which cannot be converted from/to a pointer (like C), pointers to functions, or arrays. See also the section on L>. =back =head1 EXAMPLES # Default behavior, extension is Rusers h2xs rpcsvc/rusers # Same, but extension is RUSERS h2xs -n RUSERS rpcsvc/rusers # Extension is rpcsvc::rusers. Still finds h2xs rpcsvc::rusers # Extension is ONC::RPC. Still finds h2xs -n ONC::RPC rpcsvc/rusers # Without constant() or AUTOLOAD h2xs -c rpcsvc/rusers # Creates templates for an extension named RPC h2xs -cfn RPC # Extension is ONC::RPC. h2xs -cfn ONC::RPC # Extension is a pure Perl module with no XS code. h2xs -X My::Module # Extension is Lib::Foo which works at least with Perl5.005_03. # Constants are created for all #defines and enums h2xs can find # in foo.h. h2xs -b 5.5.3 -n Lib::Foo foo.h # Extension is Lib::Foo which works at least with Perl5.005_03. # Constants are created for all #defines but only for enums # whose names do not start with 'bar_'. h2xs -b 5.5.3 -e '^bar_' -n Lib::Foo foo.h # Makefile.PL will look for library -lrpc in # additional directory /opt/net/lib h2xs rpcsvc/rusers -L/opt/net/lib -lrpc # Extension is DCE::rgynbase # prefix "sec_rgy_" is dropped from perl function names h2xs -n DCE::rgynbase -p sec_rgy_ dce/rgynbase # Extension is DCE::rgynbase # prefix "sec_rgy_" is dropped from perl function names # subroutines are created for sec_rgy_wildcard_name and # sec_rgy_wildcard_sid h2xs -n DCE::rgynbase -p sec_rgy_ \ -s sec_rgy_wildcard_name,sec_rgy_wildcard_sid dce/rgynbase # Make XS without defines in perl.h, but with function declarations # visible from perl.h. Name of the extension is perl1. # When scanning perl.h, define -DEXT=extern -DdEXT= -DINIT(x)= # Extra backslashes below because the string is passed to shell. # Note that a directory with perl header files would # be added automatically to include path. h2xs -xAn perl1 -F "-DEXT=extern -DdEXT= -DINIT\(x\)=" perl.h # Same with function declaration in proto.h as visible from perl.h. h2xs -xAn perl2 perl.h,proto.h # Same but select only functions which match /^av_/ h2xs -M '^av_' -xAn perl2 perl.h,proto.h # Same but treat SV* etc as "opaque" types h2xs -o '^[S]V \*$' -M '^av_' -xAn perl2 perl.h,proto.h =head2 Extension based on F<.h> and F<.c> files Suppose that you have some C files implementing some functionality, and the corresponding header files. How to create an extension which makes this functionality accessible in Perl? The example below assumes that the header files are F and I, and you want the perl module be named as C. If you need some preprocessor directives and/or linking with external libraries, see the flags C<-F>, C<-L> and C<-l> in L<"OPTIONS">. =over =item Find the directory name Start with a dummy run of h2xs: h2xs -Afn Ext::Ension The only purpose of this step is to create the needed directories, and let you know the names of these directories. From the output you can see that the directory for the extension is F. =item Copy C files Copy your header files and C files to this directory F. =item Create the extension Run h2xs, overwriting older autogenerated files: h2xs -Oxan Ext::Ension interface_simple.h interface_hairy.h h2xs looks for header files I changing to the extension directory, so it will find your header files OK. =item Archive and test As usual, run cd Ext/Ension perl Makefile.PL make dist make make test =item Hints It is important to do C as early as possible. This way you can easily merge(1) your changes to autogenerated files if you decide to edit your C<.h> files and rerun h2xs. Do not forget to edit the documentation in the generated F<.pm> file. Consider the autogenerated files as skeletons only, you may invent better interfaces than what h2xs could guess. Consider this section as a guideline only, some other options of h2xs may better suit your needs. =back =head1 ENVIRONMENT No environment variables are used. =head1 AUTHOR Larry Wall and others =head1 SEE ALSO L, L, L, and L. =head1 DIAGNOSTICS The usual warnings if it cannot read or write the files involved. =head1 LIMITATIONS of B<-x> F would not distinguish whether an argument to a C function which is of the form, say, C, is an input, output, or input/output parameter. In particular, argument declarations of the form int foo(n) int *n should be better rewritten as int foo(n) int &n if C is an input parameter. Additionally, F has no facilities to intuit that a function int foo(addr,l) char *addr int l takes a pair of address and length of data at this address, so it is better to rewrite this function as int foo(sv) SV *addr PREINIT: STRLEN len; char *s; CODE: s = SvPV(sv,len); RETVAL = foo(s, len); OUTPUT: RETVAL or alternately static int my_foo(SV *sv) { STRLEN len; char *s = SvPV(sv,len); return foo(s, len); } MODULE = foo PACKAGE = foo PREFIX = my_ int foo(sv) SV *sv See L and L for additional details. =cut # ' # Grr use strict; my( $H2XS_VERSION ) = ' $Revision: 1.23 $ ' =~ /\$Revision:\s+([^\s]+)/; my $TEMPLATE_VERSION = '0.01'; my @ARGS = @ARGV; my $compat_version = $]; use Getopt::Long; use Config; use Text::Wrap; $Text::Wrap::huge = 'overflow'; $Text::Wrap::columns = 80; use ExtUtils::Constant qw (WriteConstants WriteMakefileSnippet autoload); use File::Compare; use File::Path; sub usage { warn "@_\n" if @_; die <. --skip-strict Do not use the pragma C. --skip-warnings Do not use the pragma C. -v, --version Specify a version number for this extension. -x, --autogen-xsubs Autogenerate XSUBs using C::Scan. --use-xsloader Use XSLoader in backward compatible modules (ignored when used with -X). extra_libraries are any libraries that might be needed for loading the extension, e.g. -lm would try to link in the math library. EOFUSAGE } my ($opt_A, $opt_B, $opt_C, $opt_F, $opt_M, $opt_O, $opt_P, $opt_X, $opt_a, $opt_c, $opt_d, $opt_e, $opt_f, $opt_g, $opt_h, $opt_k, $opt_m, $opt_n, $opt_o, $opt_p, $opt_s, $opt_v, $opt_x, $opt_b, $opt_t, $new_test, $old_test, $skip_exporter, $skip_ppport, $skip_autoloader, $skip_strict, $skip_warnings, $use_xsloader ); Getopt::Long::Configure('bundling'); Getopt::Long::Configure('pass_through'); my %options = ( 'omit-autoload|A' => \$opt_A, 'beta-version|B' => \$opt_B, 'omit-changes|C' => \$opt_C, 'cpp-flags|F=s' => \$opt_F, 'func-mask|M=s' => \$opt_M, 'overwrite_ok|O' => \$opt_O, 'omit-pod|P' => \$opt_P, 'omit-XS|X' => \$opt_X, 'gen-accessors|a' => \$opt_a, 'compat-version|b=s' => \$opt_b, 'omit-constant|c' => \$opt_c, 'debugging|d' => \$opt_d, 'omit-enums|e:s' => \$opt_e, 'force|f' => \$opt_f, 'global|g' => \$opt_g, 'help|h|?' => \$opt_h, 'omit-const-func|k' => \$opt_k, 'gen-tied-var|m' => \$opt_m, 'name|n=s' => \$opt_n, 'opaque-re|o=s' => \$opt_o, 'remove-prefix|p=s' => \$opt_p, 'const-subs|s=s' => \$opt_s, 'default-type|t=s' => \$opt_t, 'version|v=s' => \$opt_v, 'autogen-xsubs|x' => \$opt_x, 'use-new-tests' => \$new_test, 'use-old-tests' => \$old_test, 'skip-exporter' => \$skip_exporter, 'skip-ppport' => \$skip_ppport, 'skip-autoloader' => \$skip_autoloader, 'skip-warnings' => \$skip_warnings, 'skip-strict' => \$skip_strict, 'use-xsloader' => \$use_xsloader, ); GetOptions(%options) || usage; usage if $opt_h; if( $opt_b ){ usage "You cannot use -b and -m at the same time.\n" if ($opt_b && $opt_m); $opt_b =~ /^v?(\d+)\.(\d+)\.(\d+)/ || usage "You must provide the backwards compatibility version in X.Y.Z form. " . "(i.e. 5.5.0)\n"; my ($maj,$min,$sub) = ($1,$2,$3); if ($maj < 5 || ($maj == 5 && $min < 6)) { $compat_version = $sub ? sprintf("%d.%03d%02d",$maj,$min,$sub) : sprintf("%d.%03d", $maj,$min); } else { $compat_version = sprintf("%d.%03d%03d",$maj,$min,$sub); } } else { my ($maj,$min,$sub) = $compat_version =~ /(\d+)\.(\d\d\d)(\d*)/; $sub ||= 0; warn sprintf <<'EOF', $maj,$min,$sub; Defaulting to backwards compatibility with perl %d.%d.%d If you intend this module to be compatible with earlier perl versions, please specify a minimum perl version with the -b option. EOF } if( $opt_B ){ $TEMPLATE_VERSION = '0.00_01'; } if( $opt_v ){ $TEMPLATE_VERSION = $opt_v; # check if it is numeric my $temp_version = $TEMPLATE_VERSION; my $beta_version = $temp_version =~ s/(\d)_(\d\d)/$1$2/; my $notnum; { local $SIG{__WARN__} = sub { $notnum = 1 }; use warnings 'numeric'; $temp_version = 0+$temp_version; } if ($notnum) { my $module = $opt_n || 'Your::Module'; warn <<"EOF"; You have specified a non-numeric version. Unless you supply an appropriate VERSION class method, users may not be able to specify a minimum required version with C. EOF } else { $opt_B = $beta_version; } } # -A implies -c. $skip_autoloader = $opt_c = 1 if $opt_A; # -X implies -c and -f $opt_c = $opt_f = 1 if $opt_X; $opt_t ||= 'IV'; my %const_xsub; %const_xsub = map { $_,1 } split(/,+/, $opt_s) if $opt_s; my $extralibs = ''; my @path_h; while (my $arg = shift) { if ($arg =~ /^-l/i) { $extralibs .= "$arg "; next; } last if $extralibs; push(@path_h, $arg); } usage "Must supply header file or module name\n" unless (@path_h or $opt_n); my $fmask; my $tmask; $fmask = qr{$opt_M} if defined $opt_M; $tmask = qr{$opt_o} if defined $opt_o; my $tmask_all = $tmask && $opt_o eq '.'; if ($opt_x) { eval {require C::Scan; 1} or die <= 0.70 or die <curdir(), $Config{usrinc}, (split / +/, $Config{locincpth} // ""), '/usr/include'); } foreach my $path_h (@path_h) { $name ||= $path_h; $module ||= do { $name =~ s/\.h$//; if ( $name !~ /::/ ) { $name =~ s#^.*/##; $name = "\u$name"; } $name; }; if( $path_h =~ s#::#/#g && $opt_n ){ warn "Nesting of headerfile ignored with -n\n"; } $path_h .= ".h" unless $path_h =~ /\.h$/; my $fullpath = $path_h; $path_h =~ s/,.*$// if $opt_x; $fullpath{$path_h} = $fullpath; # Minor trickery: we can't chdir() before we processed the headers # (so know the name of the extension), but the header may be in the # extension directory... my $tmp_path_h = $path_h; my $rel_path_h = $path_h; my @dirs = @paths; if (not -f $path_h) { my $found; for my $dir (@paths) { $found++, last if -f ($path_h = File::Spec->catfile($dir, $tmp_path_h)); } if ($found) { $rel_path_h = $path_h; $fullpath{$path_h} = $fullpath; } else { (my $epath = $module) =~ s,::,/,g; $epath = File::Spec->catdir('ext', $epath) if -d 'ext'; $rel_path_h = File::Spec->catfile($epath, $tmp_path_h); $path_h = $tmp_path_h; # Used during -x push @dirs, $epath; } } if (!$opt_c) { die "Can't find $tmp_path_h in @dirs\n" if ( ! $opt_f && ! -f "$rel_path_h" ); # Scan the header file (we should deal with nested header files) # Record the names of simple #define constants into const_names # Function prototypes are processed below. open(CH, "<", "$rel_path_h") || die "Can't open $rel_path_h: $!\n"; defines: while () { if ($pre_sub_tri_graphs) { # Preprocess all tri-graphs # including things stuck in quoted string constants. s/\?\?=/#/g; # | ??=| #| s/\?\?\!/|/g; # | ??!| || s/\?\?'/^/g; # | ??'| ^| s/\?\?\(/[/g; # | ??(| [| s/\?\?\)/]/g; # | ??)| ]| s/\?\?\-/~/g; # | ??-| ~| s/\?\?\//\\/g; # | ??/| \| s/\?\?/}/g; # | ??>| }| } if (/^[ \t]*#[ \t]*define\s+([\$\w]+)\b(?!\()\s*(?=[^"\s])(.*)/) { my $def = $1; my $rest = $2; $rest =~ s!/\*.*?(\*/|\n)|//.*!!g; # Remove comments $rest =~ s/^\s+//; $rest =~ s/\s+$//; if ($rest eq '') { print("Skip empty $def\n") if $opt_d; next defines; } # Cannot do: (-1) and ((LHANDLE)3) are OK: #print("Skip non-wordy $def => $rest\n"), # next defines if $rest =~ /[^\w\$]/; if ($rest =~ /"/) { print("Skip stringy $def => $rest\n") if $opt_d; next defines; } print "Matched $_ ($def)\n" if $opt_d; $seen_define{$def} = $rest; $_ = $def; next if /^_.*_h_*$/i; # special case, but for what? if (defined $opt_p) { if (!/^$opt_p(\d)/) { ++$prefix{$_} if s/^$opt_p//; } else { warn "can't remove $opt_p prefix from '$_'!\n"; } } $prefixless{$def} = $_; if (!$fmask or /$fmask/) { print "... Passes mask of -M.\n" if $opt_d and $fmask; $const_names{$_}++; } } } if (defined $opt_e and !$opt_e) { close(CH); } else { # Work from miniperl too - on "normal" systems my $SEEK_SET = eval 'use Fcntl qw/SEEK_SET/; SEEK_SET' || 0; seek CH, 0, $SEEK_SET; my $src = do { local $/; }; close CH; no warnings 'uninitialized'; # Remove C and C++ comments $src =~ s#/\*[^*]*\*+([^/*][^*]*\*+)*/|("(\\.|[^"\\])*"|'(\\.|[^'\\])*'|.[^/"'\\]*)#$2#gs; $src =~ s#//.*$##gm; while ($src =~ /\benum\s*([\w_]*)\s*\{\s([^}]+)\}/gsc) { my ($enum_name, $enum_body) = ($1, $2); # skip enums matching $opt_e next if $opt_e && $enum_name =~ /$opt_e/; my $val = 0; for my $item (split /,/, $enum_body) { next if $item =~ /\A\s*\Z/; my ($key, $declared_val) = $item =~ /(\w+)\s*(?:=\s*(.*))?/; $val = defined($declared_val) && length($declared_val) ? $declared_val : 1 + $val; $seen_define{$key} = $val; $const_names{$key} = { name => $key, macro => 1 }; } } # while (...) } # if (!defined $opt_e or $opt_e) } } } # Save current directory so that C::Scan can use it my $cwd = File::Spec->rel2abs( File::Spec->curdir ); # As Ilya suggested, use a name that contains - and then it can't clash with # the names of any packages. A directory 'fallback' will clash with any # new pragmata down the fallback:: tree, but that seems unlikely. my $constscfname = 'const-c.inc'; my $constsxsfname = 'const-xs.inc'; my $fallbackdirname = 'fallback'; my $ext = chdir 'ext' ? 'ext/' : ''; my @modparts = split(/::/,$module); my $modpname = join('-', @modparts); my $modfname = pop @modparts; my $modpmdir = join '/', 'lib', @modparts; my $modpmname = join '/', $modpmdir, $modfname.'.pm'; if ($opt_O) { warn "Overwriting existing $ext$modpname!!!\n" if -e $modpname; } else { die "Won't overwrite existing $ext$modpname\n" if -e $modpname; } -d "$modpname" || mkpath([$modpname], 0, 0775); chdir($modpname) || die "Can't chdir $ext$modpname: $!\n"; my %types_seen; my %std_types; my $fdecls = []; my $fdecls_parsed = []; my $typedef_rex; my %typedefs_pre; my %known_fnames; my %structs; my @fnames; my @fnames_no_prefix; my %vdecl_hash; my @vdecls; if( ! $opt_X ){ # use XS, unless it was disabled unless ($skip_ppport) { require Devel::PPPort; warn "Writing $ext$modpname/ppport.h\n"; Devel::PPPort::WriteFile('ppport.h') || die "Can't create $ext$modpname/ppport.h: $!\n"; } open(XS, ">", "$modfname.xs") || die "Can't create $ext$modpname/$modfname.xs: $!\n"; if ($opt_x) { warn "Scanning typemaps...\n"; get_typemap(); my @td; my @good_td; my $addflags = $opt_F || ''; foreach my $filename (@path_h) { my $c; my $filter; if ($fullpath{$filename} =~ /,/) { $filename = $`; $filter = $'; } warn "Scanning $filename for functions...\n"; my @styles = $Config{gccversion} ? qw(C++ C9X GNU) : qw(C++ C9X); $c = C::Scan->new('filename' => $filename, 'filename_filter' => $filter, 'add_cppflags' => $addflags, 'c_styles' => \@styles); $c->set('includeDirs' => ["$Config::Config{archlib}/CORE", $cwd]); $c->get('keywords')->{'__restrict'} = 1; push @$fdecls_parsed, @{ $c->get('parsed_fdecls') }; push(@$fdecls, @{$c->get('fdecls')}); push @td, @{$c->get('typedefs_maybe')}; if ($opt_a) { my $structs = $c->get('typedef_structs'); @structs{keys %$structs} = values %$structs; } if ($opt_m) { %vdecl_hash = %{ $c->get('vdecl_hash') }; @vdecls = sort keys %vdecl_hash; for (local $_ = 0; $_ < @vdecls; ++$_) { my $var = $vdecls[$_]; my($type, $post) = @{ $vdecl_hash{$var} }; if (defined $post) { warn "Can't handle variable '$type $var $post', skipping.\n"; splice @vdecls, $_, 1; redo; } $type = normalize_type($type); $vdecl_hash{$var} = $type; } } unless ($tmask_all) { warn "Scanning $filename for typedefs...\n"; my $td = $c->get('typedef_hash'); # eval {require 'dumpvar.pl'; ::dumpValue($td)} or warn $@ if $opt_d; my @f_good_td = grep $td->{$_}[1] eq '', keys %$td; push @good_td, @f_good_td; @typedefs_pre{@f_good_td} = map $_->[0], @$td{@f_good_td}; } } { local $" = '|'; $typedef_rex = qr(\b(?[$i][1] =~ /$fmask/; # [1] is NAME push @good, $i; print "... Function $fdecls_parsed->[$i][1] passes -M mask.\n" if $opt_d; } $fdecls = [@$fdecls[@good]]; $fdecls_parsed = [@$fdecls_parsed[@good]]; } @fnames = sort map $_->[1], @$fdecls_parsed; # 1 is NAME # Sort declarations: { my %h = map( ($_->[1], $_), @$fdecls_parsed); $fdecls_parsed = [ @h{@fnames} ]; } @fnames_no_prefix = @fnames; @fnames_no_prefix = sort map { ++$prefix{$_} if s/^$opt_p(?!\d)//; $_ } @fnames_no_prefix if defined $opt_p; # Remove macros which expand to typedefs print "Typedefs are @td.\n" if $opt_d; my %td = map {($_, $_)} @td; # Add some other possible but meaningless values for macros for my $k (qw(char double float int long short unsigned signed void)) { $td{"$_$k"} = "$_$k" for ('', 'signed ', 'unsigned '); } # eval {require 'dumpvar.pl'; ::dumpValue( [\@td, \%td] ); 1} or warn $@; my $n = 0; my %bad_macs; while (keys %td > $n) { $n = keys %td; my ($k, $v); while (($k, $v) = each %seen_define) { # print("found '$k'=>'$v'\n"), $bad_macs{$k} = $td{$k} = $td{$v} if exists $td{$v}; } } # Now %bad_macs contains names of bad macros for my $k (keys %bad_macs) { delete $const_names{$prefixless{$k}}; print "Ignoring macro $k which expands to a typedef name '$bad_macs{$k}'\n" if $opt_d; } } } my (@const_specs, @const_names); for (sort(keys(%const_names))) { my $v = $const_names{$_}; push(@const_specs, ref($v) ? $v : $_); push(@const_names, $_); } -d $modpmdir || mkpath([$modpmdir], 0, 0775); open(PM, ">", "$modpmname") || die "Can't create $ext$modpname/$modpmname: $!\n"; $" = "\n\t"; warn "Writing $ext$modpname/$modpmname\n"; print PM <<"END"; package $module; use $compat_version; END print PM <<"END" unless $skip_strict; use strict; END print PM "use warnings;\n" unless $skip_warnings or $compat_version < 5.006; unless( $opt_X || $opt_c || $opt_A ){ # we'll have an AUTOLOAD(), and it will have $AUTOLOAD and # will want Carp. print PM <<'END'; use Carp; END } print PM <<'END' unless $skip_exporter; require Exporter; END my $use_Dyna = (not $opt_X and $compat_version < 5.006 and not $use_xsloader); print PM <<"END" if $use_Dyna; # use DynaLoader, unless XS was disabled require DynaLoader; END # Are we using AutoLoader or not? unless ($skip_autoloader) { # no autoloader whatsoever. unless ($opt_c) { # we're doing the AUTOLOAD print PM "use AutoLoader;\n"; } else { print PM "use AutoLoader qw(AUTOLOAD);\n" } } if ( $compat_version < 5.006 ) { my $vars = '$VERSION @ISA'; $vars .= ' @EXPORT @EXPORT_OK %EXPORT_TAGS' unless $skip_exporter; $vars .= ' $AUTOLOAD' unless $opt_X || $opt_c || $opt_A; $vars .= ' $XS_VERSION' if $opt_B && !$opt_X; print PM "use vars qw($vars);"; } # Determine @ISA. my @modISA; push @modISA, 'Exporter' unless $skip_exporter; push @modISA, 'DynaLoader' if $use_Dyna; # no XS my $myISA = "our \@ISA = qw(@modISA);"; $myISA =~ s/^our // if $compat_version < 5.006; print PM "\n$myISA\n\n"; my @exported_names = (@const_names, @fnames_no_prefix, map '$'.$_, @vdecls); my $tmp=''; $tmp .= <<"END" unless $skip_exporter; # Items to export into callers namespace by default. Note: do not export # names by default without a very good reason. Use EXPORT_OK instead. # Do not simply export all your public functions/methods/constants. # This allows declaration use $module ':all'; # If you do not need this, moving things directly into \@EXPORT or \@EXPORT_OK # will save memory. our %EXPORT_TAGS = ( 'all' => [ qw( @exported_names ) ] ); our \@EXPORT_OK = ( \@{ \$EXPORT_TAGS{'all'} } ); our \@EXPORT = qw( @const_names ); END $tmp .= "our \$VERSION = '$TEMPLATE_VERSION';\n"; if ($opt_B) { $tmp .= "our \$XS_VERSION = \$VERSION;\n" unless $opt_X; $tmp .= "\$VERSION = eval \$VERSION; # see L\n"; } $tmp .= "\n"; $tmp =~ s/^our //mg if $compat_version < 5.006; print PM $tmp; if (@vdecls) { printf PM "our(@{[ join ', ', map '$'.$_, @vdecls ]});\n\n"; } print PM autoload ($module, $compat_version) unless $opt_c or $opt_X; if( ! $opt_X ){ # print bootstrap, unless XS is disabled if ($use_Dyna) { $tmp = <<"END"; bootstrap $module \$VERSION; END } else { $tmp = <<"END"; require XSLoader; XSLoader::load('$module', \$VERSION); END } $tmp =~ s:\$VERSION:\$XS_VERSION:g if $opt_B; print PM $tmp; } # tying the variables can happen only after bootstrap if (@vdecls) { printf PM <))[0,6]; if (defined $username && defined $author) { $author =~ s/,.*$//; # in case of sub fields my $domain = $Config{'mydomain'}; $domain =~ s/^\.//; $email = "$username\@$domain"; } }; $author =~ s/'/\\'/g if defined $author; $author ||= "A. U. Thor"; $email ||= 'a.u.thor@a.galaxy.far.far.away'; $licence = sprintf << "DEFAULT", $^V; Copyright (C) ${\(1900 + (localtime) [5])} by $author This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version %vd or, at your option, any later version of Perl 5 you may have available. DEFAULT my $revhist = ''; $revhist = < should be removed. # #EOD $exp_doc .= <${email}E # #=head1 COPYRIGHT AND LICENSE # $licence_hash # #=cut END $pod =~ s/^\#//gm unless $opt_P; print PM $pod unless $opt_P; close PM; if( ! $opt_X ){ # print XS, unless it is disabled warn "Writing $ext$modpname/$modfname.xs\n"; print XS <<"END"; #define PERL_NO_GET_CONTEXT #include "EXTERN.h" #include "perl.h" #include "XSUB.h" END print XS <<"END" unless $skip_ppport; #include "ppport.h" END if( @path_h ){ foreach my $path_h (@path_h_ini) { my($h) = $path_h; $h =~ s#^/usr/include/##; if ($^O eq 'VMS') { $h =~ s#.*vms\]#sys/# or $h =~ s#.*[:>\]]##; } print XS qq{#include <$h>\n}; } print XS "\n"; } print XS <<"END" if $opt_g; /* Global Data */ #define MY_CXT_KEY "${module}::_guts" XS_VERSION typedef struct { /* Put Global Data in here */ int dummy; /* you can access this elsewhere as MY_CXT.dummy */ } my_cxt_t; START_MY_CXT END my %pointer_typedefs; my %struct_typedefs; sub td_is_pointer { my $type = shift; my $out = $pointer_typedefs{$type}; return $out if defined $out; my $otype = $type; $out = ($type =~ /\*$/); # This converts only the guys which do not have trailing part in the typedef if (not $out and $typedef_rex and $type =~ s/($typedef_rex)/$typedefs_pre{$1}/go) { $type = normalize_type($type); print "Is-Pointer: Type mutation via typedefs: $otype ==> $type\n" if $opt_d; $out = td_is_pointer($type); } return ($pointer_typedefs{$otype} = $out); } sub td_is_struct { my $type = shift; my $out = $struct_typedefs{$type}; return $out if defined $out; my $otype = $type; $out = ($type =~ /^(struct|union)\b/) && !td_is_pointer($type); # This converts only the guys which do not have trailing part in the typedef if (not $out and $typedef_rex and $type =~ s/($typedef_rex)/$typedefs_pre{$1}/go) { $type = normalize_type($type); print "Is-Struct: Type mutation via typedefs: $otype ==> $type\n" if $opt_d; $out = td_is_struct($type); } return ($struct_typedefs{$otype} = $out); } print_tievar_subs(\*XS, $_, $vdecl_hash{$_}) for @vdecls; if( ! $opt_c ) { # We write the "sample" files used when this module is built by perl without # ExtUtils::Constant. # h2xs will later check that these are the same as those generated by the # code embedded into Makefile.PL unless (-d $fallbackdirname) { mkdir "$fallbackdirname" or die "Cannot mkdir $fallbackdirname: $!\n"; } warn "Writing $ext$modpname/$fallbackdirname/$constscfname\n"; warn "Writing $ext$modpname/$fallbackdirname/$constsxsfname\n"; my $cfallback = File::Spec->catfile($fallbackdirname, $constscfname); my $xsfallback = File::Spec->catfile($fallbackdirname, $constsxsfname); WriteConstants ( C_FILE => $cfallback, XS_FILE => $xsfallback, DEFAULT_TYPE => $opt_t, NAME => $module, NAMES => \@const_specs, ); print XS "#include \"$constscfname\"\n"; } my $prefix = defined $opt_p ? "PREFIX = $opt_p" : ''; # Now switch from C to XS by issuing the first MODULE declaration: print XS <<"END"; MODULE = $module PACKAGE = $module $prefix END # If a constant() function was #included then output a corresponding # XS declaration: print XS "INCLUDE: $constsxsfname\n" unless $opt_c; print XS <<"END" if $opt_g; BOOT: { MY_CXT_INIT; /* If any of the fields in the my_cxt_t struct need to be initialised, do it here. */ } END foreach (sort keys %const_xsub) { print XS <<"END"; char * $_() CODE: #ifdef $_ RETVAL = $_; #else croak("Your vendor has not defined the $module macro $_"); #endif OUTPUT: RETVAL END } my %seen_decl; my %typemap; sub print_decl { my $fh = shift; my $decl = shift; my ($type, $name, $args) = @$decl; return if $seen_decl{$name}++; # Need to do the same for docs as well? my @argnames = map {$_->[1]} @$args; my @argtypes = map { normalize_type( $_->[0], 1 ) } @$args; if ($opt_k) { s/^\s*const\b\s*// for @argtypes; } my @argarrays = map { $_->[4] || '' } @$args; my $numargs = @$args; if ($numargs and $argtypes[-1] eq '...') { $numargs--; $argnames[-1] = '...'; } local $" = ', '; $type = normalize_type($type, 1); print $fh <<"EOP"; $type $name(@argnames) EOP for my $arg (0 .. $numargs - 1) { print $fh <<"EOP"; $argtypes[$arg] $argnames[$arg]$argarrays[$arg] EOP } } sub print_tievar_subs { my($fh, $name, $type) = @_; print $fh <[0] =~ /_ANON/) { if (defined $item->[2]) { push @items, map [ @$_[0, 1], "$item->[2]_$_->[2]", "$item->[2].$_->[2]", ], @{ $structs{$item->[0]} }; } else { push @items, @{ $structs{$item->[0]} }; } } else { my $type = normalize_type($item->[0]); my $ttype = $structs{$type} ? normalize_type("$type *") : $type; print $fh <<"EOF"; $ttype $item->[2](THIS, __value = NO_INIT) $ptrname THIS $type __value PROTOTYPE: \$;\$ CODE: if (items > 1) THIS->$item->[-1] = __value; RETVAL = @{[ $type eq $ttype ? "THIS->$item->[-1]" : "&(THIS->$item->[-1])" ]}; OUTPUT: RETVAL EOF } } } sub accessor_docs { my($name, $struct) = @_; return unless defined $struct && $name !~ /\s|_ANON/; $name = normalize_type($name); my $ptrname = $name . 'Ptr'; my @items = @$struct; my @list; while (@items) { my $item = shift @items; if ($item->[0] =~ /_ANON/) { if (defined $item->[2]) { push @items, map [ @$_[0, 1], "$item->[2]_$_->[2]", "$item->[2].$_->[2]", ], @{ $structs{$item->[0]} }; } else { push @items, @{ $structs{$item->[0]} }; } } else { push @list, $item->[2]; } } my $methods = (join '(...)>, C<', @list) . '(...)'; my $pod = <<"EOF"; # #=head2 Object and class methods for C<$name>/C<$ptrname> # #The principal Perl representation of a C object of type C<$name> is an #object of class C<$ptrname> which is a reference to an integer #representation of a C pointer. To create such an object, one may use #a combination # # my \$buffer = $name->new(); # my \$obj = \$buffer->_to_ptr(); # #This exercises the following two methods, and an additional class #C<$name>, the internal representation of which is a reference to a #packed string with the C structure. Keep in mind that \$buffer should #better survive longer than \$obj. # #=over # #=item C<\$object_of_type_$name-E_to_ptr()> # #Converts an object of type C<$name> to an object of type C<$ptrname>. # #=item C<$name-Enew()> # #Creates an empty object of type C<$name>. The corresponding packed #string is zeroed out. # #=item C<$methods> # #return the current value of the corresponding element if called #without additional arguments. Set the element to the supplied value #(and return the new value) if called with an additional argument. # #Applicable to objects of type C<$ptrname>. # #=back # EOF $pod =~ s/^\#//gm; return $pod; } # Should be called before any actual call to normalize_type(). sub get_typemap { # We do not want to read ./typemap by obvios reasons. my @tm = qw(../../../typemap ../../typemap ../typemap); my $stdtypemap = "$Config::Config{privlib}/ExtUtils/typemap"; unshift @tm, $stdtypemap; my $proto_re = "[" . quotemeta('\$%&*@;') . "]" ; # Start with useful default values $typemap{float} = 'T_NV'; foreach my $typemap (@tm) { next unless -e $typemap ; # skip directories, binary files etc. warn " Scanning $typemap\n"; warn("Warning: ignoring non-text typemap file '$typemap'\n"), next unless -T $typemap ; open(TYPEMAP, "<", $typemap) or warn ("Warning: could not open typemap file '$typemap': $!\n"), next; my $mode = 'Typemap'; while () { next if /^\s*\#/; if (/^INPUT\s*$/) { $mode = 'Input'; next; } elsif (/^OUTPUT\s*$/) { $mode = 'Output'; next; } elsif (/^TYPEMAP\s*$/) { $mode = 'Typemap'; next; } elsif ($mode eq 'Typemap') { next if /^\s*($|\#)/ ; my ($type, $image); if ( ($type, $image) = /^\s*(.*?\S)\s+(\S+)\s*($proto_re*)\s*$/o # This may reference undefined functions: and not ($image eq 'T_PACKED' and $typemap eq $stdtypemap)) { $typemap{normalize_type($type)} = $image; } } } close(TYPEMAP) or die "Cannot close $typemap: $!"; } %std_types = %types_seen; %types_seen = (); } sub normalize_type { # Second arg: do not strip const's before \* my $type = shift; my $do_keep_deep_const = shift; # If $do_keep_deep_const this is heuristic only my $keep_deep_const = ($do_keep_deep_const ? '\b(?![^(,)]*\*)' : ''); my $ignore_mods = "(?:\\b(?:(?:__const__|const)$keep_deep_const|static|inline|__inline__)\\b\\s*)*"; if ($do_keep_deep_const) { # Keep different compiled /RExen/o separately! $type =~ s/$ignore_mods//go; } else { $type =~ s/$ignore_mods//go; } $type =~ s/([^\s\w])/ $1 /g; $type =~ s/\s+$//; $type =~ s/^\s+//; $type =~ s/\s+/ /g; $type =~ s/\* (?=\*)/*/g; $type =~ s/\. \. \./.../g; $type =~ s/ ,/,/g; $types_seen{$type}++ unless $type eq '...' or $type eq 'void' or $std_types{$type}; $type; } my $need_opaque; sub assign_typemap_entry { my $type = shift; my $otype = $type; my $entry; if ($tmask and $type =~ /$tmask/) { print "Type $type matches -o mask\n" if $opt_d; $entry = (td_is_struct($type) ? "T_OPAQUE_STRUCT" : "T_PTROBJ"); } elsif ($typedef_rex and $type =~ s/($typedef_rex)/$typedefs_pre{$1}/go) { $type = normalize_type $type; print "Type mutation via typedefs: $otype ==> $type\n" if $opt_d; $entry = assign_typemap_entry($type); } # XXX good do better if our UV happens to be long long return "T_NV" if $type =~ /^(unsigned\s+)?long\s+(long|double)\z/; $entry ||= $typemap{$otype} || (td_is_struct($type) ? "T_OPAQUE_STRUCT" : "T_PTROBJ"); $typemap{$otype} = $entry; $need_opaque = 1 if $entry eq "T_OPAQUE_STRUCT"; return $entry; } for (@vdecls) { print_tievar_xsubs(\*XS, $_, $vdecl_hash{$_}); } if ($opt_x) { for my $decl (@$fdecls_parsed) { print_decl(\*XS, $decl) } if ($opt_a) { while (my($name, $struct) = each %structs) { print_accessors(\*XS, $name, $struct); } } } close XS; if (%types_seen) { my $type; warn "Writing $ext$modpname/typemap\n"; open TM, ">", "typemap" or die "Cannot open typemap file for write: $!"; for $type (sort keys %types_seen) { my $entry = assign_typemap_entry $type; print TM $type, "\t" x (5 - int((length $type)/8)), "\t$entry\n" } print TM <<'EOP' if $need_opaque; # Older Perls do not have correct entry ############################################################################# INPUT T_OPAQUE_STRUCT if (sv_derived_from($arg, \"${ntype}\")) { STRLEN len; char *s = SvPV((SV*)SvRV($arg), len); if (len != sizeof($var)) croak(\"Size %d of packed data != expected %d\", len, sizeof($var)); $var = *($type *)s; } else croak(\"$var is not of type ${ntype}\") ############################################################################# OUTPUT T_OPAQUE_STRUCT sv_setref_pvn($arg, \"${ntype}\", (char *)&$var, sizeof($var)); EOP close TM or die "Cannot close typemap file for write: $!"; } } # if( ! $opt_X ) warn "Writing $ext$modpname/Makefile.PL\n"; open(PL, ">", "Makefile.PL") || die "Can't create $ext$modpname/Makefile.PL: $!\n"; my $prereq_pm = ''; if ( $compat_version < 5.006002 and $new_test ) { $prereq_pm .= q%'Test::More' => 0, %; } elsif ( $compat_version < 5.006002 ) { $prereq_pm .= q%'Test' => 0, %; } if (!$opt_X and $use_xsloader) { $prereq_pm .= q%'XSLoader' => 0, %; } print PL <<"END"; use $compat_version; use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( NAME => '$module', VERSION_FROM => '$modpmname', # finds \$VERSION, requires EU::MM from perl >= 5.5 PREREQ_PM => {$prereq_pm}, # e.g., Module::Name => 1.1 ABSTRACT_FROM => '$modpmname', # retrieve abstract from module AUTHOR => '$author <$email>', #LICENSE => 'perl', #Value must be from legacy list of licenses here #https://metacpan.org/pod/Module::Build::API END if (!$opt_X) { # print C stuff, unless XS is disabled $opt_F = '' unless defined $opt_F; my $I = (((glob '*.h') || (glob '*.hh')) ? '-I.' : ''); my $Ihelp = ($I ? '-I. ' : ''); my $Icomment = ($I ? '' : < ['$extralibs'], # e.g., '-lm' DEFINE => '$opt_F', # e.g., '-DHAVE_SOMETHING' $Icomment INC => '$I', # e.g., '${Ihelp}-I/usr/include/other' END my $C = grep {$_ ne "$modfname.c"} (glob '*.c'), (glob '*.cc'), (glob '*.C'); my $Cpre = ($C ? '' : '# '); my $Ccomment = ($C ? '' : < '\$(O_FILES)', # link all the C files too END } # ' # Grr print PL ");\n"; if (!$opt_c) { my $generate_code = WriteMakefileSnippet ( C_FILE => $constscfname, XS_FILE => $constsxsfname, DEFAULT_TYPE => $opt_t, NAME => $module, NAMES => \@const_specs, ); print PL <<"END"; if (eval {require ExtUtils::Constant; 1}) { # If you edit these definitions to change the constants used by this module, # you will need to use the generated $constscfname and $constsxsfname # files to replace their "fallback" counterparts before distributing your # changes. $generate_code } else { use File::Copy; use File::Spec; foreach my \$file ('$constscfname', '$constsxsfname') { my \$fallback = File::Spec->catfile('$fallbackdirname', \$file); copy (\$fallback, \$file) or die "Can't copy \$fallback to \$file: \$!"; } } END eval $generate_code; if ($@) { warn <<"EOM"; Attempting to test constant code in $ext$modpname/Makefile.PL: $generate_code __END__ gave unexpected error $@ Please report the circumstances of this bug in h2xs version $H2XS_VERSION using the issue tracker at https://github.com/Perl/perl5/issues. EOM } else { my $fail; foreach my $file ($constscfname, $constsxsfname) { my $fallback = File::Spec->catfile($fallbackdirname, $file); if (compare($file, $fallback)) { warn << "EOM"; Files "$ext$modpname/$fallbackdirname/$file" and "$ext$modpname/$file" differ. EOM $fail++; } } if ($fail) { warn fill ('','', <<"EOM") . "\n"; It appears that the code in $ext$modpname/Makefile.PL does not autogenerate the files $ext$modpname/$constscfname and $ext$modpname/$constsxsfname correctly. Please report the circumstances of this bug in h2xs version $H2XS_VERSION using the issue tracker at https://github.com/Perl/perl5/issues. EOM } else { unlink $constscfname, $constsxsfname; } } } close(PL) || die "Can't close $ext$modpname/Makefile.PL: $!\n"; # Create a simple README since this is a CPAN requirement # and it doesn't hurt to have one warn "Writing $ext$modpname/README\n"; open(RM, ">", "README") || die "Can't create $ext$modpname/README:$!\n"; my $thisyear = (gmtime)[5] + 1900; my $rmhead = "$modpname version $TEMPLATE_VERSION"; my $rmheadeq = "=" x length($rmhead); my $rm_prereq; if ( $compat_version < 5.006002 and $new_test ) { $rm_prereq = 'Test::More'; } elsif ( $compat_version < 5.006002 ) { $rm_prereq = 'Test'; } else { $rm_prereq = 'blah blah blah'; } print RM <<_RMEND_; $rmhead $rmheadeq The README is used to introduce the module and provide instructions on how to install the module, any machine dependencies it may have (for example C compilers and installed libraries) and any other information that should be provided before the module is installed. A README file is required for CPAN modules since CPAN extracts the README file from a module distribution so that people browsing the archive can use it get an idea of the modules uses. It is usually a good idea to provide version information here so that people can decide whether fixes for the module are worth downloading. INSTALLATION To install this module type the following: perl Makefile.PL make make test make install DEPENDENCIES This module requires these other modules and libraries: $rm_prereq COPYRIGHT AND LICENCE Put the correct copyright and licence information here. $licence _RMEND_ close(RM) || die "Can't close $ext$modpname/README: $!\n"; my $testdir = "t"; my $testfile = "$testdir/$modpname.t"; unless (-d "$testdir") { mkdir "$testdir" or die "Cannot mkdir $testdir: $!\n"; } warn "Writing $ext$modpname/$testfile\n"; my $tests = @const_names ? 2 : 1; open EX, ">", "$testfile" or die "Can't create $ext$modpname/$testfile: $!\n"; print EX <<_END_; # Before 'make install' is performed this script should be runnable with # 'make test'. After 'make install' it should work as 'perl $modpname.t' ######################### # change 'tests => $tests' to 'tests => last_test_to_print'; use strict; use warnings; _END_ my $test_mod = 'Test::More'; if ( $old_test or ($compat_version < 5.006002 and not $new_test )) { my $test_mod = 'Test'; print EX <<_END_; use Test; BEGIN { plan tests => $tests }; use $module; ok(1); # If we made it this far, we're ok. _END_ if (@const_names) { my $const_names = join " ", @const_names; print EX <<'_END_'; my $fail; foreach my $constname (qw( _END_ print EX wrap ("\t", "\t", $const_names); print EX (")) {\n"); print EX <<_END_; next if (eval "my \\\$a = \$constname; 1"); if (\$\@ =~ /^Your vendor has not defined $module macro \$constname/) { print "# pass: \$\@"; } else { print "# fail: \$\@"; \$fail = 1; } } if (\$fail) { print "not ok 2\\n"; } else { print "ok 2\\n"; } _END_ } } else { print EX <<_END_; use Test::More tests => $tests; BEGIN { use_ok('$module') }; _END_ if (@const_names) { my $const_names = join " ", @const_names; print EX <<'_END_'; my $fail = 0; foreach my $constname (qw( _END_ print EX wrap ("\t", "\t", $const_names); print EX (")) {\n"); print EX <<_END_; next if (eval "my \\\$a = \$constname; 1"); if (\$\@ =~ /^Your vendor has not defined $module macro \$constname/) { print "# pass: \$\@"; } else { print "# fail: \$\@"; \$fail = 1; } } ok( \$fail == 0 , 'Constants' ); _END_ } } print EX <<_END_; ######################### # Insert your test code below, the $test_mod module is use()ed here so read # its man page ( perldoc $test_mod ) for help writing this test script. _END_ close(EX) || die "Can't close $ext$modpname/$testfile: $!\n"; unless ($opt_C) { warn "Writing $ext$modpname/Changes\n"; $" = ' '; open(EX, ">", "Changes") || die "Can't create $ext$modpname/Changes: $!\n"; @ARGS = map {/[\s\"\'\`\$*?^|&<>\[\]\{\}\(\)]/ ? "'$_'" : $_} @ARGS; print EX <', 'MANIFEST') or die "Can't create MANIFEST: $!"; my @files = grep { -f } (<*>, , <$fallbackdirname/*>, <$modpmdir/*>); if (!@files) { eval {opendir(D,'.');}; unless ($@) { @files = readdir(D); closedir(D); } } if (!@files) { @files = map {chomp && $_} `ls`; } if ($^O eq 'VMS') { foreach (@files) { # Clip trailing '.' for portability -- non-VMS OSs don't expect it s%\.$%%; # Fix up for case-sensitive file systems s/$modfname/$modfname/i && next; $_ = "\U$_" if $_ eq 'manifest' or $_ eq 'changes'; $_ = 'Makefile.PL' if $_ eq 'makefile.pl'; } } print MANI join("\n",@files), "\n"; close MANI;