NetBSD/usr.bin
dsl 7b4a02befd Rework the way sort generates sort keys:
- If we generate a key, it is always sortable using memcmp()
- If we are sorting the whole record, then a weight-table must be used
  during compares.
- Major surgery to encoding of numbers to ensure unique keys for equal
  numeric values.  Reverse numerics are handled by inverting the sign.
- Case folding (-f) is handled when the sort keys are generated. No other
  code has to care at all.
- Key uniqueness (-u) is done during merge for large datasets. It only
  has to be done when writing the output file for small files.
  Since the file is in key order this is simple!
Probably fixes all of: PR/27257 PR/25551 PR/22182 PR/31095 PR/30504
PR/36816 PR/37860 PR/39308
Also PR/18614 should no longer die, but a little more work needs to be
done on the merging for very large files.
2009-08-22 10:53:28 +00:00
..
apply Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
apropos Add support for -S and -s option, which limit the results to a specific 2009-05-08 12:48:43 +00:00
asa Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
at Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
audio note that -t can take [.dddddd]. sort -q. 2009-07-02 04:45:27 +00:00
awk Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
banner Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
basename Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
bdes Fix sign-compare issues 2009-04-14 10:11:28 +00:00
biff Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
bthset update to use the new service discovery API 2009-05-12 18:39:55 +00:00
btkey Sort options. Sort sections. Remove superfluous .Pp. 2009-05-18 12:03:06 +00:00
btpin add a -P flag to attempt immediate pairing 2009-05-16 07:18:42 +00:00
bzip2
bzip2recover
cal fix WARNS=4 issues 2009-04-11 11:26:34 +00:00
calendar Chuck Berry was born in St. Louis, Missouri, and not in St. Jose, 2009-06-07 10:25:39 +00:00
cap_mkdb Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
cdplay Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
checknr Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
chflags Add some markup to improve clarity. 2009-06-29 03:49:41 +00:00
chpass Fix WARNS=4 (-Wcast-qual -Wsign-compare -Wshadow) issues. 2009-04-11 12:10:02 +00:00
cksum Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
cmp Compare size_t vs off_t by casting both to uintmax_t 2009-04-18 06:24:05 +00:00
col Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
colcrt Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
colrm Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
column Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
comm fix -Wcast-qual issues for WARNS=4 2009-04-11 12:18:45 +00:00
compile_et Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
compress Fix -Wcast-qual and -Wsign-compare issues 2009-04-11 12:24:37 +00:00
config Dependency on config_time.src was removed today from Makefile.kern.inc, so 2009-05-13 18:54:34 +00:00
crontab
crunch Move the include of <a.out.h> and <sys/exec_aout.h> until after 2009-08-20 17:40:26 +00:00
csplit Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
ctags Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
cut Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
db Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
deroff Remove superfluous parenthesis in #ifdef DEBUG. 2009-08-07 14:05:58 +00:00
dirname Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
du Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
eject Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
elf2aout Don't build for MIPS anymore 2009-08-12 23:39:13 +00:00
elf2ecoff Fix -Wcast-qual and -Wsign-compare issues. 2009-04-23 14:49:32 +00:00
env
error Pass WARNS=4, not without some gross preprocessor hackery. 2009-08-13 06:59:37 +00:00
expand Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
extattr Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
false
fdformat fix -Wsign-compare issues 2009-04-12 02:53:56 +00:00
fgen define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 2009-04-20 16:05:29 +00:00
find Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
finger Fix WARNS=4 issues (-Wshadow, -Wcast-qual, -Wsign-compare) 2009-04-12 06:18:54 +00:00
fmt Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
fold Modify to support multibyte characters. 2009-07-21 01:35:02 +00:00
fpr Fix markup. 2009-03-15 15:18:04 +00:00
from
fsplit Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
fstat move _KMEMUSER higher! 2009-07-13 21:44:32 +00:00
ftp back out previous; luke says: 2009-08-17 09:08:16 +00:00
gcore
genassym
gencat Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
getconf Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
getent Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
getopt Use semantic markup 2009-03-11 13:53:30 +00:00
gprof
grep Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
gss Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
gzip Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
head
hesinfo
hexdump Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
hxtool Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
iconv Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
id Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
indent Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-12 11:09:49 +00:00
innetgr
ipcrm Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ipcs Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
join Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-12 11:18:21 +00:00
jot fix sign-compare issue 2009-04-12 11:19:18 +00:00
kdestroy Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
kdump Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
kgetcred Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
kinit Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
klist Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
krb5-config Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ktrace Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ktruss Delay emulation record output, to be processed after the current 2009-07-24 11:34:03 +00:00
lam fix -Wcast-qual issues 2009-04-12 13:01:55 +00:00
last Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-12 13:07:21 +00:00
lastcomm fix sign-compare issue 2009-04-12 13:08:31 +00:00
ldd kill ldd_aout. it didn't work anyway...not since i don't know when. 2009-08-22 06:52:15 +00:00
leave
less Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
lex ansi prototypes for yyinput. 2009-07-20 21:13:28 +00:00
locale Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
locate Fix WARNS=4 issues 2009-04-12 13:53:02 +00:00
lock
logger fix sign-compare issue 2009-04-12 13:53:48 +00:00
login Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
logname
look fix broken overflow test. 2009-04-26 15:55:50 +00:00
lorder
m4 Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
machine
mail Declare "com" as volatile in execute(), to make it safe to use 2009-07-14 21:15:48 +00:00
make JobExec: child of vfork must not empty the sigset_t that parent will 2009-06-26 01:26:32 +00:00
man Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
menuc mandoc(1): -width is redundant for a item list 2009-07-11 18:38:30 +00:00
mesg Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
midiplay fix sign-compare and cast-qual issues 2009-04-12 14:15:08 +00:00
mixerctl Fix-up syntax after wizd. 2009-08-19 15:26:59 +00:00
mk_cmds Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
mkcsmapper define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 2009-04-20 16:05:29 +00:00
mkdep fix -Wcast-qual & -Wsign-compare issues 2009-04-12 14:23:30 +00:00
mkesdb define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 2009-04-20 16:05:29 +00:00
mkfifo
mklocale Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
mkstr fix sign-compare issues 2009-04-13 00:41:28 +00:00
mktemp Fix typo. 2009-08-15 20:44:56 +00:00
moduli Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
msgc define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 2009-04-20 16:05:29 +00:00
msgs fix -Wcast-qual issues 2009-04-12 14:31:02 +00:00
nbperf GCC doesn't trace switch (foo & 7) completely, so add a default: abort() 2009-08-17 14:15:07 +00:00
nbsvtool Fix markup 2009-03-11 13:54:05 +00:00
netgroup
netstat Fix typo 2009-06-28 19:02:46 +00:00
newgrp Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
newsyslog Reset ziptype on each line. Failure to do this caused any log file to 2009-08-21 08:20:19 +00:00
nfsstat Fix -Wextra and -Wsign-compare issues 2009-04-12 23:34:11 +00:00
nice
nl Fix -Wextra and -Wsign-compare issues 2009-04-12 23:34:11 +00:00
nohup Fix -Wcast-qual issue 2009-04-12 23:38:17 +00:00
nvi Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
pagesize
passwd avoid compiler warnings about shadowed declarations. 2009-04-18 09:04:34 +00:00
paste Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
patch Explicitly include fcntl.h for O_CREAT to not depend on namespace 2009-06-05 19:55:43 +00:00
pathchk Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
pkill Fix sign-compare issues 2009-04-13 00:12:16 +00:00
pmap Fix WARNS=4 issues (-Wcast-qual -Wextra -Wsign-compare) 2009-04-13 00:27:38 +00:00
pmc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
pr Fix -Wcast-qual issues 2009-04-13 00:37:05 +00:00
printenv de-__P() and ANSIfy; no functional change 2009-07-25 08:20:24 +00:00
printf Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
progress
pwhash Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
qsubst
quota Fix -Wcast-qual and -Wshadow issues 2009-04-13 04:16:38 +00:00
radioctl Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 04:24:29 +00:00
rdist Nesting displays is not valid groff syntax. 2009-08-19 14:54:35 +00:00
renice Fix markup. 2009-04-08 13:20:23 +00:00
rev Apply some ANSI and KNF. 2009-07-21 01:25:14 +00:00
revoke Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rfcomm_sppd use system provided MAX(a, b) macro instead of defining our own 2009-05-21 14:44:01 +00:00
rlogin Fix sign-compare issues 2009-04-13 04:37:53 +00:00
rpcgen Add support for hyper and quad keywords. (See Sun ONC+ Developer's Guide 2009-05-06 14:30:51 +00:00
rpcinfo Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rs Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
rsh Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rup Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ruptime Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 07:10:25 +00:00
rusers
rwall Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rwho fix -Wsign-compare issue 2009-04-13 07:11:37 +00:00
script Fix WARNS=4 issues (-Wcast-qual -Wshadow) 2009-04-13 07:15:32 +00:00
sdiff Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
sdpquery add SupportedRepositories attribute for Phonebook Access profile 2009-08-20 11:07:42 +00:00
sed Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
seq Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
shar
shlock Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
showmount fix -Wcast-qual issue 2009-04-13 07:30:49 +00:00
shuffle fix sign-compare issue 2009-04-13 07:31:36 +00:00
skey
skeyinfo
skeyinit Fix -Wsign-compare issue 2009-04-14 09:53:08 +00:00
sockstat Fix WARNS=4 issues (-Wshadow -Wsign-compare) 2009-04-13 10:56:56 +00:00
soelim Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
sort Rework the way sort generates sort keys: 2009-08-22 10:53:28 +00:00
spell Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
split Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
stat Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 23:02:36 +00:00
string2key Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
su Sort options. 2009-05-18 09:37:44 +00:00
systat Don't assume that two identical-looking string literals will have the 2009-07-14 21:08:31 +00:00
tabs Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tail Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare) 2009-04-13 23:33:25 +00:00
talk Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wextra) 2009-04-13 23:43:36 +00:00
tcopy Fix -Wcast-qual issue 2009-04-13 23:44:49 +00:00
tee Fix -Wcast-qual issues 2009-04-13 23:45:50 +00:00
telnet Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tftp Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
time Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tip Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tn3270 Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
touch remove read-write code because it's dangerous. 2009-04-28 02:47:12 +00:00
tput Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tr Fix markup. 2009-08-22 00:23:02 +00:00
true
tset Fix WARNS=4 issues (-Wcast-qual, -Wsign-compare) 2009-04-14 05:45:23 +00:00
tsort Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tty
ul Fix -Wcast-qual issues 2009-04-14 05:46:25 +00:00
uname
unexpand Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
unifdef Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
uniq Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
units Appease -Wcast-qual with a liberal sprinkling of const. 2009-04-14 05:55:12 +00:00
unvis Add RFC 2045 MIME Quoted-Printable support. 2009-02-10 23:06:31 +00:00
unzip Add -p and -q support. 2009-08-22 02:19:42 +00:00
usbhidaction Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
usbhidctl fix sign-compare issues 2009-04-14 06:14:10 +00:00
users
utoppya fix sign-compare issues 2009-04-14 06:14:10 +00:00
uudecode Fix -Wcast-qual issue 2009-04-14 06:16:59 +00:00
uuencode Specify width for tag list. 2009-03-10 19:54:43 +00:00
uuidgen Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vacation Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
verify_krb5_conf Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vgrind Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vi/docs
vis Fix typo in usage. 2009-02-11 06:42:31 +00:00
vmstat Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vndcompress Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
w Fix -Wcast-qual issue 2009-04-14 07:41:36 +00:00
wall Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-14 07:54:51 +00:00
wc Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 07:58:38 +00:00
what
whatis
whereis Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
who PR/41313: Chris Spiegel: getutentries() in src/usr.bin/who/utmpentry.c thinks 2009-05-01 14:26:10 +00:00
whois Punctuation. 2009-05-04 21:13:58 +00:00
window Don't use .Xo/.Xc. Fix markup of alias command. 2009-08-19 15:17:05 +00:00
write fix sign-compare issue 2009-04-14 07:59:17 +00:00
xargs Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
xinstall When installing via a temporary file, base the name of the temporary 2009-07-25 11:45:58 +00:00
xlint Fix typos in comment. 2009-08-05 19:08:28 +00:00
xstr Fix WARNS=4 (-Wcast-qual). 2009-04-14 09:18:41 +00:00
yacc Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 09:41:30 +00:00
yes Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ypcat Remove superfluous quotes. 2009-06-21 15:05:59 +00:00
ypmatch Sync usage with man page. 2009-06-21 14:59:53 +00:00
ypwhich Sync usage with man page. 2009-06-21 15:04:56 +00:00
Makefile Add nbperf(1), a minimal perfect hash function generator. 2009-08-15 16:21:04 +00:00
Makefile.inc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00