freebsd-dev/usr.bin
Mark Johnston 794c57d3c5 Fix counter reads on platforms where sizeof(uint64_t) != sizeof(uint64_t *).
In the kernel, structs such as tcpstat are manipulated as an array of
counter_u64_t (uint64_t *), but made visible to userland as an array of
uint64_t. kread_counters() was previously copying the counter array into
user space and sequentially overwriting each counter with its value. This
mostly affects IPsec counters, as other counters are exported via sysctl.

PR:		201700
Tested by:	Jason Unovitch
MFC after:	1 week
2015-07-21 23:57:38 +00:00
..
addr2line new depends 2015-06-16 23:37:19 +00:00
alias Add META_MODE support. 2015-06-13 19:20:56 +00:00
apply Add META_MODE support. 2015-06-13 19:20:56 +00:00
ar speed up ar(1) on UFS file systems 2015-06-29 13:48:44 +00:00
asa Add META_MODE support. 2015-06-13 19:20:56 +00:00
at Add META_MODE support. 2015-06-13 19:20:56 +00:00
atm Add META_MODE support. 2015-06-13 19:20:56 +00:00
awk Add META_MODE support. 2015-06-13 19:20:56 +00:00
banner Add META_MODE support. 2015-06-13 19:20:56 +00:00
basename Add META_MODE support. 2015-06-13 19:20:56 +00:00
bc Add META_MODE support. 2015-06-13 19:20:56 +00:00
biff Add META_MODE support. 2015-06-13 19:20:56 +00:00
bluetooth Add META_MODE support. 2015-06-13 19:20:56 +00:00
bmake new depends 2015-06-16 23:37:19 +00:00
brandelf Add META_MODE support. 2015-06-13 19:20:56 +00:00
bsdiff Add META_MODE support. 2015-06-13 19:20:56 +00:00
bzip2 Add META_MODE support. 2015-06-13 19:20:56 +00:00
bzip2recover Add META_MODE support. 2015-06-13 19:20:56 +00:00
c89 Add META_MODE support. 2015-06-13 19:20:56 +00:00
c99 Don't claim c99 is a wrapper around gcc; it's a wrapper around the system cc. 2015-07-13 14:13:15 +00:00
calendar Fix trimming spaces writing at index -1 if an empty string is passed 2015-07-15 18:49:15 +00:00
cap_mkdb Add META_MODE support. 2015-06-13 19:20:56 +00:00
catman Add META_MODE support. 2015-06-13 19:20:56 +00:00
chat Add META_MODE support. 2015-06-13 19:20:56 +00:00
checknr Add META_MODE support. 2015-06-13 19:20:56 +00:00
chkey Add META_MODE support. 2015-06-13 19:20:56 +00:00
chpass Add META_MODE support. 2015-06-13 19:20:56 +00:00
cksum Add META_MODE support. 2015-06-13 19:20:56 +00:00
clang lldb: use .PATH to find man page instead of symlinking it 2015-07-07 18:46:41 +00:00
cmp Add META_MODE support. 2015-06-13 19:20:56 +00:00
col Add META_MODE support. 2015-06-13 19:20:56 +00:00
colcrt Add META_MODE support. 2015-06-13 19:20:56 +00:00
colldef new depends 2015-06-16 23:37:19 +00:00
colrm Add META_MODE support. 2015-06-13 19:20:56 +00:00
column Add META_MODE support. 2015-06-13 19:20:56 +00:00
comm Add META_MODE support. 2015-06-13 19:20:56 +00:00
compile_et Add META_MODE support. 2015-06-13 19:20:56 +00:00
compress Add META_MODE support. 2015-06-13 19:20:56 +00:00
cpio Add META_MODE support. 2015-06-13 19:20:56 +00:00
cpuset Add META_MODE support. 2015-06-13 19:20:56 +00:00
csplit Add META_MODE support. 2015-06-13 19:20:56 +00:00
ctags Add META_MODE support. 2015-06-13 19:20:56 +00:00
ctlstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
cut Add META_MODE support. 2015-06-13 19:20:56 +00:00
cxxfilt Actually add c++filt's Makefile 2015-04-30 22:51:15 +00:00
dc Add META_MODE support. 2015-06-13 19:20:56 +00:00
dirname Add META_MODE support. 2015-06-13 19:20:56 +00:00
dpv mdoc: sort SEE ALSO. 2014-12-26 21:56:23 +00:00
drill Convert to usr.bin/ to LIBADD 2014-11-25 14:29:10 +00:00
dtc dtc: ignore lines starting with #. 2014-06-10 06:16:34 +00:00
du Add META_MODE support. 2015-06-13 19:20:56 +00:00
ee new depends 2015-06-16 23:37:19 +00:00
elf2aout Add META_MODE support. 2015-06-13 19:20:56 +00:00
elfcopy new depends 2015-06-16 23:37:19 +00:00
elfdump Add META_MODE support. 2015-06-13 19:20:56 +00:00
enigma Add META_MODE support. 2015-06-13 19:20:56 +00:00
env Add META_MODE support. 2015-06-13 19:20:56 +00:00
expand Add META_MODE support. 2015-06-13 19:20:56 +00:00
false Add META_MODE support. 2015-06-13 19:20:56 +00:00
fetch Add META_MODE support. 2015-06-13 19:20:56 +00:00
file Add META_MODE support. 2015-06-13 19:20:56 +00:00
file2c Add META_MODE support. 2015-06-13 19:20:56 +00:00
find new depends 2015-06-16 23:37:19 +00:00
finger Add META_MODE support. 2015-06-13 19:20:56 +00:00
fmt Add META_MODE support. 2015-06-13 19:20:56 +00:00
fold Add META_MODE support. 2015-06-13 19:20:56 +00:00
from Add META_MODE support. 2015-06-13 19:20:56 +00:00
fstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
fsync Add META_MODE support. 2015-06-13 19:20:56 +00:00
ftp Add META_MODE support. 2015-06-13 19:20:56 +00:00
gcore Add META_MODE support. 2015-06-13 19:20:56 +00:00
gencat Add META_MODE support. 2015-06-13 19:20:56 +00:00
getconf new depends 2015-06-16 23:37:19 +00:00
getent Add META_MODE support. 2015-06-13 19:20:56 +00:00
getopt Add META_MODE support. 2015-06-13 19:20:56 +00:00
gprof Add META_MODE support. 2015-06-13 19:20:56 +00:00
grep new depends 2015-06-16 23:37:19 +00:00
gzip Add META_MODE support. 2015-06-13 19:20:56 +00:00
head Add META_MODE support. 2015-06-13 19:20:56 +00:00
hesinfo
hexdump Add META_MODE support. 2015-06-13 19:20:56 +00:00
host Add META_MODE support. 2015-06-13 19:20:56 +00:00
iconv Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
id Add META_MODE support. 2015-06-13 19:20:56 +00:00
indent Add META_MODE support. 2015-06-13 19:20:56 +00:00
ipcrm Add META_MODE support. 2015-06-13 19:20:56 +00:00
ipcs Add META_MODE support. 2015-06-13 19:20:56 +00:00
iscsictl Add libxo(3) support to iscsictl(8). 2015-04-12 09:36:50 +00:00
join Add META_MODE support. 2015-06-13 19:20:56 +00:00
jot Add META_MODE support. 2015-06-13 19:20:56 +00:00
kdump Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
keylogin Add META_MODE support. 2015-06-13 19:20:56 +00:00
keylogout Add META_MODE support. 2015-06-13 19:20:56 +00:00
killall Add META_MODE support. 2015-06-13 19:20:56 +00:00
ktrace Add META_MODE support. 2015-06-13 19:20:56 +00:00
ktrdump Add META_MODE support. 2015-06-13 19:20:56 +00:00
lam Add META_MODE support. 2015-06-13 19:20:56 +00:00
last Unbreak "last reboot". 2015-07-21 10:52:05 +00:00
lastcomm Add META_MODE support. 2015-06-13 19:20:56 +00:00
ldd Add META_MODE support. 2015-06-13 19:20:56 +00:00
leave Add META_MODE support. 2015-06-13 19:20:56 +00:00
less new depends 2015-06-16 23:37:19 +00:00
lessecho new depends 2015-06-16 23:37:19 +00:00
lesskey new depends 2015-06-16 23:37:19 +00:00
lex Add META_MODE support. 2015-06-13 19:20:56 +00:00
limits Add META_MODE support. 2015-06-13 19:20:56 +00:00
locale Add META_MODE support. 2015-06-13 19:20:56 +00:00
locate Add META_MODE support. 2015-06-13 19:20:56 +00:00
lock Add META_MODE support. 2015-06-13 19:20:56 +00:00
lockf Add META_MODE support. 2015-06-13 19:20:56 +00:00
logger Add META_MODE support. 2015-06-13 19:20:56 +00:00
login Add META_MODE support. 2015-06-13 19:20:56 +00:00
logins Add META_MODE support. 2015-06-13 19:20:56 +00:00
logname Add META_MODE support. 2015-06-13 19:20:56 +00:00
look Add META_MODE support. 2015-06-13 19:20:56 +00:00
lorder Add META_MODE support. 2015-06-13 19:20:56 +00:00
lsvfs Add META_MODE support. 2015-06-13 19:20:56 +00:00
lzmainfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
m4 Add META_MODE support. 2015-06-13 19:20:56 +00:00
mail Add META_MODE support. 2015-06-13 19:20:56 +00:00
makewhatis Add META_MODE support. 2015-06-13 19:20:56 +00:00
man Add META_MODE support. 2015-06-13 19:20:56 +00:00
mandoc new depends 2015-06-16 23:37:19 +00:00
mesg Add META_MODE support. 2015-06-13 19:20:56 +00:00
minigzip Add META_MODE support. 2015-06-13 19:20:56 +00:00
ministat fix error message... errx since errno may not be set (if we didn't 2015-07-15 06:14:04 +00:00
mkcsmapper mdoc: sort SEE ALSO. 2014-12-26 21:56:23 +00:00
mkcsmapper_static NO_WARNS when building for host 2015-06-14 03:34:09 +00:00
mkdep Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkesdb The LDFLAGS isn't needed, and breaks the build on powerpc64. 2015-06-30 06:02:42 +00:00
mkesdb_static NO_WARNS when building for host 2015-06-14 03:34:09 +00:00
mkfifo Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkimg Add the ntfs alias and support it with the MBR and GPT schemes 2015-06-27 03:28:04 +00:00
mklocale new depends 2015-06-16 23:37:19 +00:00
mkstr Add META_MODE support. 2015-06-13 19:20:56 +00:00
mktemp Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkulzma Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkuzip Add META_MODE support. 2015-06-13 19:20:56 +00:00
msgs Add META_MODE support. 2015-06-13 19:20:56 +00:00
mt Add META_MODE support. 2015-06-13 19:20:56 +00:00
nc Add META_MODE support. 2015-06-13 19:20:56 +00:00
ncal Add META_MODE support. 2015-06-13 19:20:56 +00:00
netstat Fix counter reads on platforms where sizeof(uint64_t) != sizeof(uint64_t *). 2015-07-21 23:57:38 +00:00
newgrp Add META_MODE support. 2015-06-13 19:20:56 +00:00
newkey Add META_MODE support. 2015-06-13 19:20:56 +00:00
nfsstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
nice Add META_MODE support. 2015-06-13 19:20:56 +00:00
nl Add META_MODE support. 2015-06-13 19:20:56 +00:00
nm new depends 2015-06-16 23:37:19 +00:00
nohup Add META_MODE support. 2015-06-13 19:20:56 +00:00
numactl Add an initial NUMA affinity/policy configuration for threads and processes. 2015-07-11 15:21:37 +00:00
opieinfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
opiekey Add META_MODE support. 2015-06-13 19:20:56 +00:00
opiepasswd Add META_MODE support. 2015-06-13 19:20:56 +00:00
pagesize Add META_MODE support. 2015-06-13 19:20:56 +00:00
pamtest Add META_MODE support. 2015-06-13 19:20:56 +00:00
passwd Add META_MODE support. 2015-06-13 19:20:56 +00:00
paste Add META_MODE support. 2015-06-13 19:20:56 +00:00
patch patch(1): Add -Vnone option to disable backup files 2015-07-21 22:57:27 +00:00
pathchk Add META_MODE support. 2015-06-13 19:20:56 +00:00
perror Add META_MODE support. 2015-06-13 19:20:56 +00:00
pr Add META_MODE support. 2015-06-13 19:20:56 +00:00
printenv Add META_MODE support. 2015-06-13 19:20:56 +00:00
printf Add META_MODE support. 2015-06-13 19:20:56 +00:00
procstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
protect Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
quota - Add IPv6 support in quota(1). While rpc.rquotad has supported PF_INET6 2015-07-07 20:15:09 +00:00
rctl mdoc: add missing .El 2015-07-14 19:43:10 +00:00
readelf new depends 2015-06-16 23:37:19 +00:00
renice Add META_MODE support. 2015-06-13 19:20:56 +00:00
rev Add META_MODE support. 2015-06-13 19:20:56 +00:00
revoke Add META_MODE support. 2015-06-13 19:20:56 +00:00
rlogin Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpcgen Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpcinfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
rs Add META_MODE support. 2015-06-13 19:20:56 +00:00
rsh Add META_MODE support. 2015-06-13 19:20:56 +00:00
rup Add META_MODE support. 2015-06-13 19:20:56 +00:00
ruptime Add META_MODE support. 2015-06-13 19:20:56 +00:00
rusers Add META_MODE support. 2015-06-13 19:20:56 +00:00
rwall Add META_MODE support. 2015-06-13 19:20:56 +00:00
rwho Add META_MODE support. 2015-06-13 19:20:56 +00:00
script Add META_MODE support. 2015-06-13 19:20:56 +00:00
sed Add META_MODE support. 2015-06-13 19:20:56 +00:00
send-pr Add a stub send-pr that simply points people towards the online support 2014-06-17 12:59:03 +00:00
seq Add META_MODE support. 2015-06-13 19:20:56 +00:00
setchannel Add META_MODE support. 2015-06-13 19:20:56 +00:00
shar Add META_MODE support. 2015-06-13 19:20:56 +00:00
showmount Add META_MODE support. 2015-06-13 19:20:56 +00:00
size new depends 2015-06-16 23:37:19 +00:00
smbutil Add META_MODE support. 2015-06-13 19:20:56 +00:00
sockstat Move assignments around to avoid a false-positive uninitialized variable 2015-07-17 08:37:13 +00:00
soelim * fix roff terminology in .Nd 2015-05-21 08:28:48 +00:00
sort new depends 2015-06-16 23:37:19 +00:00
split Add META_MODE support. 2015-06-13 19:20:56 +00:00
ssh-copy-id Add META_MODE support. 2015-06-13 19:20:56 +00:00
stat Add META_MODE support. 2015-06-13 19:20:56 +00:00
stdbuf Add META_MODE support. 2015-06-13 19:20:56 +00:00
strings new depends 2015-06-16 23:37:19 +00:00
su Add META_MODE support. 2015-06-13 19:20:56 +00:00
svn Add META_MODE support. 2015-06-13 19:20:56 +00:00
systat Add META_MODE support. 2015-06-13 19:20:56 +00:00
tabs Add META_MODE support. 2015-06-13 19:20:56 +00:00
tail Add META_MODE support. 2015-06-13 19:20:56 +00:00
talk Add META_MODE support. 2015-06-13 19:20:56 +00:00
tar Add META_MODE support. 2015-06-13 19:20:56 +00:00
tcopy Add META_MODE support. 2015-06-13 19:20:56 +00:00
tee Add META_MODE support. 2015-06-13 19:20:56 +00:00
telnet Add META_MODE support. 2015-06-13 19:20:56 +00:00
tests Migrate most of tools/regression/usr.bin/ to the new tests layout. 2014-03-16 08:04:06 +00:00
tftp Add META_MODE support. 2015-06-13 19:20:56 +00:00
time Add META_MODE support. 2015-06-13 19:20:56 +00:00
timeout Add META_MODE support. 2015-06-13 19:20:56 +00:00
tip Add META_MODE support. 2015-06-13 19:20:56 +00:00
top new depends 2015-06-16 23:37:19 +00:00
touch Add META_MODE support. 2015-06-13 19:20:56 +00:00
tput Add META_MODE support. 2015-06-13 19:20:56 +00:00
tr Add META_MODE support. 2015-06-13 19:20:56 +00:00
true Add META_MODE support. 2015-06-13 19:20:56 +00:00
truncate Add META_MODE support. 2015-06-13 19:20:56 +00:00
truss new depends 2015-06-16 23:37:19 +00:00
tset Add META_MODE support. 2015-06-13 19:20:56 +00:00
tsort Add META_MODE support. 2015-06-13 19:20:56 +00:00
tty Add META_MODE support. 2015-06-13 19:20:56 +00:00
ul Add META_MODE support. 2015-06-13 19:20:56 +00:00
uname Add META_MODE support. 2015-06-13 19:20:56 +00:00
unexpand Add META_MODE support. 2015-06-13 19:20:56 +00:00
unifdef Add META_MODE support. 2015-06-13 19:20:56 +00:00
uniq Add META_MODE support. 2015-06-13 19:20:56 +00:00
units Only initialize libedit when necessary 2015-06-28 16:43:07 +00:00
unvis Add META_MODE support. 2015-06-13 19:20:56 +00:00
unzip Add META_MODE support. 2015-06-13 19:20:56 +00:00
usbhidaction Add META_MODE support. 2015-06-13 19:20:56 +00:00
usbhidctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
users Add META_MODE support. 2015-06-13 19:20:56 +00:00
uudecode Add META_MODE support. 2015-06-13 19:20:56 +00:00
uuencode Add META_MODE support. 2015-06-13 19:20:56 +00:00
vacation Add META_MODE support. 2015-06-13 19:20:56 +00:00
vgrind Add META_MODE support. 2015-06-13 19:20:56 +00:00
vi Add META_MODE support. 2015-06-13 19:20:56 +00:00
vis Add META_MODE support. 2015-06-13 19:20:56 +00:00
vmstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
vtfontcvt Add META_MODE support. 2015-06-13 19:20:56 +00:00
w Widen the host field so that a full IPv6 address will be seen. 2015-07-14 18:53:24 +00:00
wall Add META_MODE support. 2015-06-13 19:20:56 +00:00
wc Add META_MODE support. 2015-06-13 19:20:56 +00:00
what Add META_MODE support. 2015-06-13 19:20:56 +00:00
whereis Add META_MODE support. 2015-06-13 19:20:56 +00:00
which Add META_MODE support. 2015-06-13 19:20:56 +00:00
who Add META_MODE support. 2015-06-13 19:20:56 +00:00
whois Add META_MODE support. 2015-06-13 19:20:56 +00:00
write Add META_MODE support. 2015-06-13 19:20:56 +00:00
xargs Convert atoi(3) to stronum(3) which allows to arguments and report proper errors 2015-07-14 19:16:14 +00:00
xinstall short circuit install -l rs 2015-06-26 23:55:02 +00:00
xlint new depends 2015-06-16 23:37:19 +00:00
xo Convert to usr.bin/ to LIBADD 2014-11-25 14:29:10 +00:00
xstr Add META_MODE support. 2015-06-13 19:20:56 +00:00
xz Add META_MODE support. 2015-06-13 19:20:56 +00:00
xzdec Add META_MODE support. 2015-06-13 19:20:56 +00:00
yacc Add META_MODE support. 2015-06-13 19:20:56 +00:00
yes Add META_MODE support. 2015-06-13 19:20:56 +00:00
ypcat Add META_MODE support. 2015-06-13 19:20:56 +00:00
ypmatch Add META_MODE support. 2015-06-13 19:20:56 +00:00
ypwhich Add META_MODE support. 2015-06-13 19:20:56 +00:00
Makefile Add an initial NUMA affinity/policy configuration for threads and processes. 2015-07-11 15:21:37 +00:00
Makefile.amd64 - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00
Makefile.arm
Makefile.i386 - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00
Makefile.inc
Makefile.powerpc - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00
Makefile.sparc64 - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00