1175b23f77
Avoid always using an O(n^2) loop over known syscall structures with strcmp() on each system call. Instead, use a per-ABI cache indexed by the system call number. The first 1024 system calls (which should cover all of the normal system calls in currently-supported ABIs) use a flat array indexed by the system call number to find system call structure. For other system calls, a linked list of structures storing an integer to structure mapping is stored in the ABI. The linked list isn't very smart, but it should only be used by buggy applications invoking unknown system calls. This also fixes handling of unknown system calls which currently trigger a NULL pointer dereference. Reviewed by: kib MFC after: 2 weeks |
||
---|---|---|
.. | ||
addr2line | ||
alias | ||
apply | ||
ar | ||
asa | ||
at | ||
atm | ||
awk | ||
banner | ||
basename | ||
bc | ||
biff | ||
bluetooth | ||
bmake | ||
brandelf | ||
bsdcat | ||
bsdiff | ||
bzip2 | ||
bzip2recover | ||
c89 | ||
c99 | ||
caesar | ||
calendar | ||
cap_mkdb | ||
catman | ||
chat | ||
checknr | ||
chkey | ||
chpass | ||
cksum | ||
clang | ||
cmp | ||
col | ||
colcrt | ||
colldef | ||
colrm | ||
column | ||
comm | ||
compile_et | ||
compress | ||
cpio | ||
cpuset | ||
csplit | ||
ctags | ||
ctlstat | ||
cut | ||
cxxfilt | ||
dc | ||
dirname | ||
dpv | ||
drill | ||
dtc | ||
du | ||
ee | ||
elf2aout | ||
elfcopy | ||
elfdump | ||
enigma | ||
env | ||
expand | ||
factor | ||
false | ||
fetch | ||
file | ||
file2c | ||
find | ||
finger | ||
fmt | ||
fold | ||
fortune | ||
from | ||
fstat | ||
fsync | ||
ftp | ||
gcore | ||
gencat | ||
getconf | ||
getent | ||
getopt | ||
gprof | ||
grdc | ||
grep | ||
gzip | ||
head | ||
hesinfo | ||
hexdump | ||
host | ||
iconv | ||
id | ||
ident | ||
indent | ||
ipcrm | ||
ipcs | ||
iscsictl | ||
join | ||
jot | ||
kdump | ||
keylogin | ||
keylogout | ||
killall | ||
ktrace | ||
ktrdump | ||
lam | ||
last | ||
lastcomm | ||
ldd | ||
leave | ||
less | ||
lessecho | ||
lesskey | ||
lex | ||
limits | ||
locale | ||
localedef | ||
locate | ||
lock | ||
lockf | ||
logger | ||
login | ||
logins | ||
logname | ||
look | ||
lorder | ||
lsvfs | ||
lzmainfo | ||
m4 | ||
makewhatis | ||
man | ||
mandoc | ||
mesg | ||
minigzip | ||
ministat | ||
mkcsmapper | ||
mkcsmapper_static | ||
mkdep | ||
mkesdb | ||
mkesdb_static | ||
mkfifo | ||
mkimg | ||
mklocale | ||
mkstr | ||
mktemp | ||
mkuzip | ||
morse | ||
msgs | ||
mt | ||
nc | ||
ncal | ||
netstat | ||
newgrp | ||
newkey | ||
nfsstat | ||
nice | ||
nl | ||
nm | ||
nohup | ||
numactl | ||
number | ||
opieinfo | ||
opiekey | ||
opiepasswd | ||
pagesize | ||
pamtest | ||
passwd | ||
paste | ||
patch | ||
pathchk | ||
perror | ||
pom | ||
pr | ||
primes | ||
printenv | ||
printf | ||
proccontrol | ||
procstat | ||
protect | ||
quota | ||
random | ||
rctl | ||
readelf | ||
renice | ||
resizewin | ||
rev | ||
revoke | ||
rlogin | ||
rpcgen | ||
rpcinfo | ||
rs | ||
rsh | ||
rup | ||
ruptime | ||
rusers | ||
rwall | ||
rwho | ||
script | ||
sdiff | ||
sed | ||
send-pr | ||
seq | ||
setchannel | ||
shar | ||
showmount | ||
size | ||
smbutil | ||
sockstat | ||
soelim | ||
sort | ||
split | ||
ssh-copy-id | ||
stat | ||
stdbuf | ||
strings | ||
su | ||
svn | ||
systat | ||
tabs | ||
tail | ||
talk | ||
tar | ||
tcopy | ||
tee | ||
telnet | ||
tests | ||
tftp | ||
time | ||
timeout | ||
tip | ||
top | ||
touch | ||
tput | ||
tr | ||
true | ||
truncate | ||
truss | ||
tset | ||
tsort | ||
tty | ||
ul | ||
uname | ||
unexpand | ||
unifdef | ||
uniq | ||
units | ||
unvis | ||
unzip | ||
usbhidaction | ||
usbhidctl | ||
users | ||
uudecode | ||
uuencode | ||
vacation | ||
vgrind | ||
vi | ||
vis | ||
vmstat | ||
vtfontcvt | ||
w | ||
wall | ||
wc | ||
what | ||
whereis | ||
which | ||
who | ||
whois | ||
write | ||
xargs | ||
xinstall | ||
xlint | ||
xo | ||
xstr | ||
xz | ||
xzdec | ||
yacc | ||
yes | ||
ypcat | ||
ypmatch | ||
ypwhich | ||
Makefile | ||
Makefile.amd64 | ||
Makefile.arm | ||
Makefile.i386 | ||
Makefile.inc | ||
Makefile.powerpc | ||
Makefile.sparc64 |