NetBSD/usr.bin
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +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 Reorder sections to canonical order. 2010-05-15 00:08:31 +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 Use .%U instead of .%O for URLs. 2010-01-15 19:39:10 +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 accept uppercase hex digits when parsing a provided key 2009-12-10 18:57:31 +00:00
btpin add a -P flag to attempt immediate pairing 2009-05-16 07:18:42 +00:00
bzip2
bzip2recover
cal Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
calendar Fix spelling of "whether", from Ryo HAYASAKA in PR 43432. 2010-06-08 03:08:47 +00:00
cap_mkdb Fix trailing whitespace 2010-05-14 01:53:28 +00:00
cdplay Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
checknr Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
chflags Missing -width for .Bl -tag 2010-05-14 16:48:02 +00:00
chpass
cksum Use plain \* not \\*. Fix trailing whitespace 2010-05-14 01:57:21 +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 Don't include newlines when comparing to prevent errors when lines have 2009-11-28 03:56:38 +00:00
compile_et Typo: s/ a a/ as a/ 2010-04-05 21:33:09 +00:00
compress
config Prefer a real device for pseudoroot and only create a fake device 2010-05-02 15:35:00 +00:00
crontab
crunch pass LDSTATIC to recursive makes. 2010-04-24 17:58:40 +00:00
csplit Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
ctags Reorder to canonical order. 2010-05-14 16:48:36 +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 don't bother to connect to amd unless necessary. PR/42207 2010-06-23 18:07:59 +00:00
elf2aout build elf2aout and fdformat on macppc64 (for now, it's a lot easier than 2010-03-30 07:26:23 +00:00
elf2ecoff Use %zu for size_t, not %zd. 2009-12-19 10:27:13 +00:00
env
error \\ -> \e 2010-04-05 21:16:21 +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 build elf2aout and fdformat on macppc64 (for now, it's a lot easier than 2010-03-30 07:26:23 +00:00
fgen Some bugfixes and enhancements. Support for case .. of and fix calculation 2010-02-08 20:14:55 +00:00
find Clarify (hopefully) the description of -remove. 2009-11-06 21:03:12 +00:00
finger
fmt Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
fold Fix section order. Use .Ex -std 2010-05-14 16:54:48 +00:00
fpr
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 In ftpvis(), prevent incomplete escape sequences at end of dst, 2010-06-05 13:59:39 +00:00
gcore
genassym Split overly large paragraph. 2010-04-13 09:01:10 +00:00
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 Sort SEE ALSO. New sentence, new line. Whitespace fix. 2010-02-04 09:48:35 +00:00
getopt punctuation 2010-01-24 20:13:28 +00:00
gprof
grep Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
gss Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
gzip Consistently use -- for all programs called. Drop some redundant flags 2010-04-14 20:30:28 +00:00
head Just ignore the errno of strtoimax, it doesn't provide much value. 2010-03-31 21:55:23 +00:00
hesinfo
hexdump DEL is 0x7F, not 0xFF. From FreeBSD via OpenBSD. 2010-02-27 10:45:23 +00:00
hxtool Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +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
infocmp Reorder sections to canonical order. 2010-05-14 17:02:01 +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
jot
kdestroy Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
kdump convert -idirafter to -isystem, as recommended by cgd in PR 11843. 2010-03-22 01:29:29 +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 use .ORDER to avoid race 2009-12-14 05:23:39 +00:00
lam \\ -> \e 2010-04-05 21:16:21 +00:00
last Avoid SIGSEGV on out-of-range time_t. 2010-06-05 03:24:01 +00:00
lastcomm
ldd Sync against new ld.elf_so 2010-02-27 11:17:05 +00:00
leave
less Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
lex Conditionalize the yyinput/input() function definition the same way 2009-12-15 22:46:04 +00:00
locale Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
locate Reorder sections to canonical order. 2010-05-14 17:06:40 +00:00
lock
logger RETURN VALUES -> EXIT STATUS. 2010-05-14 16:58:32 +00:00
login don't repeat the word login twice (syslog prepends the program name login:) 2009-12-29 20:15:15 +00:00
logname
look Reorder sections to canonical order. 2010-05-14 17:06:40 +00:00
lorder
m4 Improve/fix/deuglify markup. 2010-05-14 17:14:28 +00:00
machine
mail - fix format print issue. from anon ymous 2010-06-21 19:49:31 +00:00
make Revert 1.80, which somehow manages to produce different (wrong) 2010-07-06 03:56:59 +00:00
man - centralize the snprintf code. 2010-05-23 22:04:36 +00:00
menuc option noinput 2009-10-29 14:35:25 +00:00
mesg Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
midiplay fix wording: 2010-01-16 08:50:29 +00:00
mixerctl Resort sections to canonical order 2010-05-14 17:20:06 +00:00
mk_cmds Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
mkcsmapper option noinput nounput 2009-10-29 14:37:16 +00:00
mkdep fix empty suffix case. 2010-05-26 18:07:34 +00:00
mkesdb use %option instead of #define YY_NO_... 2009-10-29 14:49:02 +00:00
mkfifo
mklocale 1. split runetype_local.h -> runetype_file.h 2010-06-13 04:14:56 +00:00
mkstr ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +00:00
mktemp Fix typo. 2009-08-15 20:44:56 +00:00
mkubootimage nbtool.h'ify; fixes cross-compilation. 2010-06-22 14:54:11 +00:00
moduli Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
msgc Simplify markup. 2010-05-14 17:24:38 +00:00
msgs Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
nbperf Add a check for duplicate keys. The check is run once and quadratic in 2010-03-03 01:55:04 +00:00
nbsvtool
netgroup
netstat Bump date for previous (mpls). 2010-06-30 07:30:16 +00:00
newgrp Resort sections to canonical order. 2010-05-14 17:28:23 +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 Remove no longer used -DNFS. 2010-03-05 19:53:37 +00:00
nice
nl
nohup Resort sections to canonical order. 2010-05-14 17:28:23 +00:00
nvi When using -lcurses, you also need -lterminfo. 2010-02-06 23:45:24 +00:00
pagesize
passwd Do not call pam_end with an invalid handle if pam_start failed. 2010-03-09 16:14:08 +00:00
paste Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
patch Plug a memory leak. From Igor Zinovik. 2010-01-10 01:10:16 +00:00
pathchk Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
pkill
pmap Explicitly close quote. 2010-05-14 17:31:26 +00:00
pmc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
pr
printenv de-__P() and ANSIfy; no functional change 2009-07-25 08:20:24 +00:00
printf \\*(Pm -> \*(Pm 2010-04-05 21:24:14 +00:00
progress
pwhash Reflow to < 80 chars. 2009-10-16 08:09:12 +00:00
qsubst Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
quota
radioctl
rdist Nesting displays is not valid groff syntax. 2009-08-19 14:54:35 +00:00
renice
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 Add a new feature, allow to specify an alternative PSM value for the 2009-09-24 18:30:37 +00:00
rlogin
rpcgen Add support for hyper and quad keywords. (See Sun ONC+ Developer's Guide 2009-05-06 14:30:51 +00:00
rpcinfo ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +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
rusers
rwall Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rwho
script use system to parse args 2009-10-17 22:36:23 +00:00
sdiff Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
sdpquery Fix typo (specifed -> specified). 2010-02-18 14:00:39 +00:00
sed Merge the following revisions from OpenBSD to let sed(1) handle 2010-02-19 16:35:27 +00:00
seq Rerun valid_format() both before and after unescaping the format 2010-05-27 08:40:19 +00:00
shar
shlock Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
showmount
shuffle
skey
skeyinfo ANSIfy and sort includes 2009-09-05 06:15:24 +00:00
skeyinit
sockstat
soelim Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
sort Fix typo in comment. 2010-06-06 00:00:33 +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 \\ -> \e 2010-04-05 21:25:01 +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 Add per process cache values to the total name translations count. 2010-04-30 16:21:05 +00:00
tabs Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
tail
talk When using -lcurses, you also need -lterminfo. 2010-02-06 23:45:24 +00:00
tcopy
tee
telnet Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
tftp Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tic libterminfo can now compile a single terminfo description which allows 2010-02-22 23:05:39 +00:00
time and, erm, bump date too. 2010-05-16 07:40:53 +00:00
tip fix language 2010-01-28 14:12:11 +00:00
touch remove read-write code because it's dangerous. 2009-04-28 02:47:12 +00:00
tput Fix trailing whitespace 2010-05-14 01:58:07 +00:00
tr Do not use \." for comments, always use .\". Discussed with uwe@. 2009-11-12 00:43:52 +00:00
true
tset We need to cap reset_file/init_file. 2010-02-10 10:34:59 +00:00
tsort Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tty
ul Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
uname
unexpand Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
unifdef fix language 2010-01-28 14:12:11 +00:00
uniq Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
units
unvis
unzip Kill a left-over break from the for-loop that vanished in 1.13. 2010-05-10 15:45:22 +00:00
usbhidaction Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
usbhidctl
users
utoppya
uudecode
uuencode
uuidgen Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vacation s/the the/the/ 2009-12-08 09:46:01 +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
vis
vmstat Follow christos' suggestions, and make ks_active a u_short, and 2010-04-05 08:03:41 +00:00
vndcompress Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
w
wall
wc Report the number of characters, not the number of bytes in the 2010-02-19 11:15:23 +00:00
what
whatis
whereis No trailing whitespace 2010-04-05 16:13:58 +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 \\ -> \e 2010-04-23 22:04:37 +00:00
write
xargs Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
xinstall Reorder sections to canonical order. Use .Ex -std. 2010-05-14 17:03:19 +00:00
xlint remove almost all the ability to build netbsd with an a.out target. 2010-07-06 05:59:50 +00:00
xstr ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +00:00
yacc no braaaains for you! 2010-05-30 00:45:03 +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 - always install pigz. hooary! 2010-06-19 03:50:30 +00:00
Makefile.inc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00