NetBSD/usr.bin
christos faf9e3e459 Fix problem when using sort >> foo
If no output file was specified sort fopened("/dev/stdout", "w").
This is *wrong* because "/dev/stdout" will truncate the output file,
thus undoing the append effect the shell had set up. The simple fix
here is to just arrange for outfp = stdout and don't play with /dev/stdout.

While I am here:
	- KNF
	- make pattern for mkstemp have 6 X's.
2001-02-21 19:24:30 +00:00
..
apply convert to use getprogname() 2001-02-19 23:03:42 +00:00
apropos convert to use getprogname() 2001-02-19 23:03:42 +00:00
asa For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
at fix up various .Nm abuses: 2000-11-07 06:43:24 +00:00
audio convert to use getprogname() 2001-02-19 23:03:42 +00:00
awk document systime(), strftime(), gensub(); for gensub(), note that the \n 2001-02-08 20:54:50 +00:00
banner use getprogname() 2001-02-20 23:51:59 +00:00
basename For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
bdes convert to use getprogname() 2001-02-19 23:03:42 +00:00
biff errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
bzip2 add missing prototypes in order to enable full WARNS 2001-02-05 01:35:45 +00:00
bzip2recover
cal
calendar convert to use getprogname() 2001-02-19 23:03:42 +00:00
cap_mkdb Examine input files and set the openinfo hint accordingly to number of 2001-01-28 20:01:42 +00:00
cdplay convert to use getprogname() 2001-02-19 23:03:42 +00:00
checknr comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
chflags Nit. 2000-10-10 14:27:14 +00:00
chpass progname not used here, so don't extern it 2001-02-13 00:11:45 +00:00
cksum convert to use getprogname() 2001-02-19 23:03:42 +00:00
cmp use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
col
colcrt Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>, 2000-07-03 02:51:12 +00:00
colrm
column
comm For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
compile_et Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
compress More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
crontab
crunch Define both NLIST_AOUT and NLIST_ELF32 on all m68k 2001-02-18 05:22:46 +00:00
ctags For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
cut
dirname
du use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
eject Add aliases for `dvd', `dvdrom', et al. 2001-01-21 09:55:40 +00:00
elf2aout remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
elf2ecoff s/a.out/ECOFF/ "oops" 2000-08-24 01:20:35 +00:00
env fix nested extern 2001-02-05 01:39:27 +00:00
error fix redundant and nested decls 2001-02-05 01:44:07 +00:00
expand
false
fdformat convert to use getprogname() 2001-02-19 23:03:42 +00:00
fgen remove redundant decl 2001-02-05 01:47:01 +00:00
file Since arm26 and arm32 now share a core file format, describe such a file 2001-02-13 23:56:13 +00:00
find fixed nested externs 2001-02-05 01:53:48 +00:00
finger fix nested extern 2001-02-05 01:56:51 +00:00
fmt Tweak last to only allow highbit characters >=160, to avoid issues with 2000-10-02 18:32:55 +00:00
fold Un-__P and ANSIfy. 2000-09-08 12:57:28 +00:00
fpr
from Oops, errx() not err(). 2000-09-08 13:14:33 +00:00
fsplit Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>, 2000-07-03 02:51:12 +00:00
fstat use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
ftp convert to use getprogname() 2001-02-19 23:03:42 +00:00
gencat convert to use getprogname() 2001-02-19 23:03:42 +00:00
getconf For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
getopt Fix example; problem report and solution by Jim Bernard in PR 10259. 2000-11-08 12:53:14 +00:00
gprof
head convert to use getprogname() 2001-02-19 23:03:42 +00:00
hesinfo convert to use getprogname() 2001-02-19 23:03:42 +00:00
hexdump PR/9195: Tanaka Akira: od does not display short files containing nulls. Fix 2001-02-15 18:16:12 +00:00
id convert to use getprogname() 2001-02-19 23:03:42 +00:00
indent Due to infinite wisdom by the language designers, the difference of pointers 2000-10-14 18:07:10 +00:00
innetgr convert to use getprogname() 2001-02-19 23:03:42 +00:00
ipcrm
ipcs convert to use getprogname() 2001-02-19 23:03:42 +00:00
join Fix another off-by-one error, attempting to output a non-existant field. 2000-06-10 19:21:05 +00:00
jot More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
kdestroy Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
kdump Cosmetic fix so that RET record after CALL execve get the appropriate syscall 2001-02-16 23:28:44 +00:00
kf Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
kinit Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
klist Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
kpasswd Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
ktrace convert to use getprogname() 2001-02-19 23:03:42 +00:00
ktruss Use the errno.h and signal.h passed in on the command line. 2001-02-18 18:38:18 +00:00
lam More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
last Fix botch in previous - include the day of the month in the output! 2000-06-30 06:19:58 +00:00
lastcomm
ldd convert to use getprogname() 2001-02-19 23:03:42 +00:00
leave Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>, 2000-07-03 02:51:12 +00:00
less convert to use getprogname() 2001-02-19 23:03:42 +00:00
lex remove duplicate decls/nested externs. 2001-01-06 02:09:48 +00:00
locate Do not count the end of a line in the bigram table. Newlines are stripped 2000-05-06 10:26:45 +00:00
lock Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile. 2000-10-18 00:24:18 +00:00
logger use getprogname() 2001-02-20 23:51:59 +00:00
login * Use krb5_warn() instead of non-functional com_err(). 2001-01-19 21:55:19 +00:00
logname
look
lorder
m4 couple more whitespace fixes, by Nathan Ahlstrom 2000-10-18 17:23:18 +00:00
machine
mail fix nested externs 2001-02-05 02:07:52 +00:00
make <sys/time.h>, rather than <time.h>. The former is actually the documented 2001-01-23 02:48:05 +00:00
man convert to use getprogname() 2001-02-19 23:03:42 +00:00
menuc use getprogname() 2001-02-20 23:51:59 +00:00
mesg
midiplay convert to use getprogname() 2001-02-19 23:03:42 +00:00
mixerctl Add ++ and -- for changing mixer controls. They bump the value to 2000-12-29 13:30:26 +00:00
mk_cmds Fix oversights in last commit. 2000-12-30 15:25:19 +00:00
mkdep call setprogname(argv[0]) at start of main() 2001-02-21 00:06:22 +00:00
mkfifo - The type of return value of setmode is a void * and getmode takes it, 2000-10-10 14:30:40 +00:00
mklocale If the new locale's variable data is length 0, don't bother trying 2001-01-28 00:50:04 +00:00
mkstr More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
mktemp fix up various .Nm abuses: 2000-11-07 06:43:24 +00:00
modstat add support for COMPAT LKMs 2000-12-10 11:52:09 +00:00
msgc Fix typos and wording. 2000-12-04 22:33:52 +00:00
msgs - Use strlcpy(), snprintf(). 2000-07-06 14:21:47 +00:00
netgroup convert to use getprogname() 2001-02-19 23:03:42 +00:00
netstat use u_quad_t for rtstat. 2001-02-21 05:45:11 +00:00
newsyslog fix up various .Nm abuses: 2000-11-07 06:43:24 +00:00
nfsstat Use the NFS_NFSSTATS sysctl that has been around since Feb '96. 2000-06-13 12:39:43 +00:00
nice For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
nl More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
nohup * Support the getopt() "--" option delimiter; addresses PR standards/11230. 2000-11-04 18:51:40 +00:00
openssl link openssl with -lcrypto_rc5 and/or -lcrypto_idea (before -lcrypto) if 2001-01-08 07:49:01 +00:00
pagesize
passwd convert to use getprogname() 2001-02-19 23:03:42 +00:00
paste
patch Support the 1003.2-92 -i option to specify a patchfile; 2000-10-16 07:05:04 +00:00
pmc use getprogname() 2001-02-20 23:51:59 +00:00
pr Don't be silly and try to read an strftime() format string from the LC_TIME 2000-10-22 15:06:52 +00:00
printenv
printf More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
qsubst
quota
rdist use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
renice convert to use getprogname() 2001-02-19 23:03:42 +00:00
rev be more descriptive in the description of what rev(1) does 2001-01-21 01:01:08 +00:00
rlogin convert to use getprogname() 2001-02-19 23:03:42 +00:00
rpcgen call setprogname(argv[0]) at start of main() 2001-02-21 00:06:22 +00:00
rpcinfo getopt(3) returns -1 not EOF. 2000-10-04 20:09:04 +00:00
rs More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
rsh convert to use getprogname() 2001-02-19 23:03:42 +00:00
rup labels (even default:) _must_ be followed by statements! usr.bin/fgen/fgen.l 2001-01-16 02:43:37 +00:00
ruptime ANSIfy, alphabetize arguments. 2001-01-05 07:14:46 +00:00
rusers convert to use getprogname() 2001-02-19 23:03:42 +00:00
rwall - Knf auto variables in modified line by me. 2000-10-02 03:28:42 +00:00
rwho Add a setlocale() call and use strftime(). 2000-09-06 12:13:48 +00:00
script
sed More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
shar
shlock More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
showmount comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
shuffle convert to use getprogname() 2001-02-19 23:03:42 +00:00
skey consistency for usage() 2001-01-08 14:12:06 +00:00
skeyinfo
skeyinit Filter out non-alpha-numeric characters from the default 2000-07-28 19:19:23 +00:00
soelim convert to use getprogname() 2001-02-19 23:03:42 +00:00
sort Fix problem when using sort >> foo 2001-02-21 19:24:30 +00:00
split
ssh sync with 2/14. 2001-02-14 01:06:48 +00:00
string2key build & install string2key manpage, too 2001-01-24 23:09:30 +00:00
su convert to use getprogname() 2001-02-19 23:03:42 +00:00
systat use -msoft-quad-float on the sparc64. 2001-02-04 14:42:31 +00:00
tail avoid C sequence point issues warned about by development version of gcc. 2001-01-16 02:41:17 +00:00
talk Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>, 2000-07-03 02:51:12 +00:00
tcopy use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
tee
telnet comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
tftp fix argument validation mistake in setpeer(). 2000-12-30 18:00:18 +00:00
time Correct double `s' in `ressource'. 2001-02-03 19:37:56 +00:00
tip More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
tn3270 Let src/usr.bin build with recursive parallel make.. 2000-12-30 14:54:39 +00:00
top s/Swap/Swp in Memory: line. 2001-01-30 13:29:58 +00:00
touch
tput More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
tr
true
tset More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
tsort call setprogname(argv[0]) at start of main() 2001-02-21 00:06:22 +00:00
tty
ul Use new termcap interface. 2000-05-28 10:27:13 +00:00
uname Sort options alphabetically 2000-10-19 11:34:10 +00:00
unexpand
unifdef Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>, 2000-07-03 02:51:12 +00:00
uniq
units Add 's' to netherlandguilder. Fixes bin/12082 by Benjamin Wong. 2001-01-30 12:26:11 +00:00
unvis
usbhidaction use getprogname() 2001-02-20 23:51:59 +00:00
usbhidctl convert to use getprogname() 2001-02-19 23:03:42 +00:00
users
uudecode
uuencode For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
vacation revert part of previous, and change back to LOG_USER (from LOG_MAIL). 2001-01-10 23:15:42 +00:00
vgrind typo (: -> ;) and sync with 1998 change in ../regexp.c 2000-06-23 15:40:13 +00:00
vi Undo rev. 1.2 -- not like it'll do much good -- seems like there is 2001-01-29 00:24:24 +00:00
vis Move out-of-order line to where it belongs. 2000-10-05 17:50:56 +00:00
vmstat Prevent integer overflow. 2001-01-27 11:10:18 +00:00
w convert to use getprogname() 2001-02-19 23:03:42 +00:00
wall ANSIfy 2001-01-05 04:06:49 +00:00
wc
what For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
whatis
whereis add comma between xrefs in SEE ALSO 2000-07-16 22:05:46 +00:00
which
who
whois don't know when the TOPDOMAIN compile-time option might be useful, but 2001-01-27 22:31:52 +00:00
window convert to use getprogname() 2001-02-19 23:03:42 +00:00
write un__Pify, ANSIfy and constify. 2001-01-03 13:25:11 +00:00
xargs For commands and utilities, use EXIT STATUS rather than RETURN VALUES or 2000-09-04 07:35:15 +00:00
xinstall call setprogname(argv[0]) at start of main() 2001-02-21 00:06:22 +00:00
xlint use getprogname() 2001-02-20 23:51:59 +00:00
xstr convert to use getprogname() 2001-02-19 23:03:42 +00:00
yacc remove duplicate prototypes. 2001-02-04 17:45:24 +00:00
yes yes(1) dates back at least to v7 Unix. Closes PR bin/10403 2000-08-02 15:39:17 +00:00
ypcat convert to use getprogname() 2001-02-19 23:03:42 +00:00
ypmatch convert to use getprogname() 2001-02-19 23:03:42 +00:00
ypwhich convert to use getprogname() 2001-02-19 23:03:42 +00:00
Makefile put back sort, it's fixed now 2001-01-13 20:11:49 +00:00
Makefile.inc Fix indentation.. 2000-12-30 14:44:49 +00:00