freebsd-skq/usr.bin
John Baldwin 1175b23f77 Rework syscall structure lookups.
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
2016-12-06 00:39:00 +00:00
..
addr2line
alias
apply
ar
asa
at
atm
awk
banner
basename DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
bc
biff
bluetooth
bmake
brandelf
bsdcat MFV r307859: 2016-10-24 14:08:05 +00:00
bsdiff
bzip2
bzip2recover
c89
c99
caesar
calendar Fix packaging calendar(1) files. 2016-10-31 20:31:56 +00:00
cap_mkdb
catman
chat
checknr
chkey
chpass
cksum
clang Fix packaging for clang, lldb and lld 3.9.0 2016-11-28 20:13:56 +00:00
cmp DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
col DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
colcrt
colldef
colrm
column
comm
compile_et
compress
cpio MFV r307859: 2016-10-24 14:08:05 +00:00
cpuset
csplit
ctags
ctlstat
cut
cxxfilt
dc DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
dirname DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
dpv
drill
dtc fdt: Expect strchr() to return a const char* 2016-11-26 12:36:11 +00:00
du Fix improper use of "its". 2016-11-08 23:59:41 +00:00
ee
elf2aout
elfcopy
elfdump DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
enigma
env
expand
factor
false
fetch
file
file2c
find
finger
fmt
fold fold(1): Revert incorrect r308432 2016-11-15 00:24:18 +00:00
fortune Fix sorting after r308293, using the ../tools/do_sort script. 2016-11-05 15:01:41 +00:00
from
fstat
fsync
ftp
gcore Cleanup some leftovers from '-s' removal in r302792. 2016-11-17 23:16:56 +00:00
gencat
getconf
getent
getopt DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
gprof
grdc
grep
gzip style(9) indent changes, no actual code change. 2016-11-26 07:02:44 +00:00
head
hesinfo
hexdump
host
iconv
id
ident
indent indent(1): remove unneeded comma. 2016-12-04 03:10:25 +00:00
ipcrm
ipcs
iscsictl
join
jot DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
kdump DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
keylogin
keylogout
killall
ktrace
ktrdump
lam
last
lastcomm
ldd
leave
less
lessecho
lesskey
lex
limits
locale locale: enable more warnings; fix them 2016-12-01 17:36:31 +00:00
localedef
locate DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
lock
lockf
logger
login Clarify warning message when failing to configure audit on user login: 2016-11-30 14:02:36 +00:00
logins
logname DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
look
lorder
lsvfs
lzmainfo
m4
mail
makewhatis
man
mandoc
mesg
minigzip
ministat Reduce the bogosity of ministat's % difference calculations. 2016-11-05 06:33:39 +00:00
mkcsmapper
mkcsmapper_static
mkdep
mkesdb
mkesdb_static
mkfifo
mkimg
mklocale
mkstr
mktemp
mkuzip
morse
msgs
mt
nc
ncal ncal: fix a reference to an out-of-scope stack buffer 2016-11-05 14:08:14 +00:00
netstat Use bogus_page to properly reduce number of I/Os in sendfile(2). The new 2016-11-17 21:02:55 +00:00
newgrp
newkey
nfsstat Use November instead of the abbreviation. 2016-11-26 20:58:05 +00:00
nice
nl
nm
nohup
numactl
number
opieinfo
opiekey
opiepasswd
pagesize
pamtest
passwd
paste
patch
pathchk
perror
pom
pr
primes
printenv DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
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 sed(1): add LEGACY_BSDSED_COMPAT compile-time flag. 2016-11-04 20:49:59 +00:00
send-pr
seq
setchannel
shar
showmount
size
smbutil
sockstat
soelim
sort pages and psize are always assigned, so there is no need to initialize 2016-11-28 06:38:41 +00:00
split
ssh-copy-id
stat
stdbuf
strings
su
svn
systat Fix error in the example section 2016-12-05 13:23:22 +00:00
tabs
tail
talk
tar MFV r307859: 2016-10-24 14:08:05 +00:00
tcopy
tee DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
telnet
tests
tftp
time
timeout
tip
top Add the laundry page count to the displays of systat, top, and vmstat. 2016-11-10 19:55:45 +00:00
touch
tput
tr DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
true
truncate
truss Rework syscall structure lookups. 2016-12-06 00:39:00 +00:00
tset
tsort
tty
ul
uname
unexpand
unifdef
uniq
units
unvis
unzip
usbhidaction
usbhidctl
users
uudecode
uuencode
vacation
vgrind
vi
vis
vmstat Remove a lingering reference to cache pages from vmstat(8). 2016-11-16 00:21:18 +00:00
vtfontcvt
w
wall
wc
what
whereis
which
who
whois More robust handling of whois referrals from RIRs. 2016-11-17 15:19:06 +00:00
write DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
xargs
xinstall
xlint Fix improper use of "its". 2016-11-08 23:59:41 +00:00
xo
xstr
xz
xzdec
yacc
yes DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
ypcat
ypmatch
ypwhich
Makefile
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc
Makefile.sparc64