NetBSD/usr.bin
ginsbach a3a3ad0162 Changes for standards compliance:
- Accept "-" for msgfile (STDIN) and catfile (STDOUT)

- Merge msgfile into formatted catfile.  The catfile is created if
  it does not exist (current behavior).  If the catfile exists,
  its messages are included in the new catfile.  Collisions between
  set and message numbers cause the msgfile message text to replace
  the existing message text.

  (The $delset directive now makes more sense.)

Standards: The Open Group Base Specifications Issue 6
           IEEE Std 1003.1, 2004 Edition

- Replace corrupt()/nomem() with errx().  The replaced routines
  called local error() -> warning() which prints an input file line
  number.  This probably makes no sense for these conditions (it
  is not a syntax error in msgfile).  Line numbers are completely
  nonsense when dealing with reading a formatted catfile.

- Modify warning() to only print line number when reading from a
  message file.  Also print the current file being processed.

- Don't issue a warning when processing a line with only a message
  number and no trailing space.  This is valid and will delete any
  existing message with that number from the current set.

- Reset lineno for each msgfile processed.
2007-11-21 13:40:09 +00:00
..
apply Fix example; from sat@freebsd via jmc@openbsd. 2006-12-24 10:07:18 +00:00
apropos
asa - use fwrite instead of printf. 2007-06-24 23:23:10 +00:00
at Convert to using raise_default_signal(3). 2007-10-05 07:22:23 +00:00
atf-compile Add the atf tools 2007-11-12 15:00:00 +00:00
atf-config Add the atf tools 2007-11-12 15:00:00 +00:00
atf-report Add the atf tools 2007-11-12 15:00:00 +00:00
atf-run Add the atf tools 2007-11-12 15:00:00 +00:00
atf-version Add the atf tools 2007-11-12 15:00:00 +00:00
audio Convert to raise_default_signal(3). 2007-10-05 07:27:41 +00:00
awk use -Wno-pointer-sign for GCC4. 2006-05-11 01:19:55 +00:00
banner
basename
bdes Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
biff
bthset Needs errno.h if !gcc. 2007-09-16 18:44:19 +00:00
btkey Add a new utility 'btkey' for managment of Bluetooth Link Keys stored 2007-11-09 21:18:22 +00:00
btpin Add a new utility 'btkey' for managment of Bluetooth Link Keys stored 2007-11-09 21:18:22 +00:00
bzip2 Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
bzip2recover Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
cal
calendar typo 2007-10-14 11:30:37 +00:00
cap_mkdb
cdplay Correct documentation: 2007-04-23 11:47:55 +00:00
checknr Coverity CID 2969: Check for negative stack in the 'P' case like we do in 2006-04-25 19:25:19 +00:00
chflags Adapt chflags to the move of string_to_flags() and flags_to_string() 2006-12-14 20:57:00 +00:00
chpass Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
cksum Remove duplicate #includes 2007-01-17 00:21:43 +00:00
cmp change error printing to signed for consistency. From Anon Ymous 2007-08-22 16:59:19 +00:00
col
colcrt
colrm
column - Change all emalloc to ecalloc, since the previous implementation of emalloc 2006-12-09 21:42:40 +00:00
comm
compile_et
compress Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
config Don't defattr machinearch if it's NULL. Pointed out by 2007-11-11 17:35:27 +00:00
crontab Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
crunch PR/36867 - Zafer Aydogan -- trsp is no longer 2007-08-30 18:56:51 +00:00
csplit Convert to raise_default_signal(3). 2007-10-05 07:27:41 +00:00
ctags don't do the -Wno-pointer-sign dance for host programs. 2006-05-12 01:18:25 +00:00
cut PR/36583: Aleksey Cheusov: /usr/bin/cut: -[bcf] positions are limited to 2048 2007-07-02 18:41:03 +00:00
db Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
deroff
dirname
du Fix typo in usage. 2006-09-24 07:19:57 +00:00
eject PR bin/27066 by Sergey Svishchev: "eject(1) does not DTRT for floppy drives 2006-09-24 08:42:55 +00:00
elf2aout
elf2ecoff Fix "pointer targets in passing argument X of 'Y' differ in signedness" 2006-05-31 08:09:55 +00:00
env Improve description of EXIT CODES. Based on the following OpenBSD commit, 2007-06-08 18:20:42 +00:00
error Convert to raise_default_signal(3). 2007-10-05 07:27:41 +00:00
expand
extattr mark strpy safe 2006-06-17 08:32:42 +00:00
false
fdformat Bump date for previous. 2006-07-22 08:36:14 +00:00
fgen Coverity CID 1748: Free alias on error. 2006-04-22 17:51:09 +00:00
file Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
find revert previous thinko 2007-09-25 04:10:12 +00:00
finger Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
fmt make sure we have args before we try to parse numbers in the compat argument 2007-06-03 22:39:21 +00:00
fold
fpr
from Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
fsplit
fstat Bug fix: filed.fd_ofiles is always a pointer to the open files 2007-09-09 01:26:55 +00:00
ftp Cast the field precision calculation to int. 2007-08-22 23:47:13 +00:00
gcore
genassym Remove unneeded \ from awk script. 2006-10-21 04:48:29 +00:00
gencat Changes for standards compliance: 2007-11-21 13:40:09 +00:00
getconf Add _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF for sysconf(). These 2007-10-15 14:12:54 +00:00
getent Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
getopt ANSIfy, remove unnecessary errno.h inclusion. 2006-07-09 21:39:48 +00:00
gprof
grep Changed the type of some size variables from int to size_t. Added const 2006-05-15 21:12:21 +00:00
gzip Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
head
hesinfo Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
hexdump use ecalloc in previous 2006-10-09 14:27:06 +00:00
iconv More programs using efun. 2006-08-26 18:17:41 +00:00
id Make syntax checking for id(1), groups(1) and whoami(1) commands stronger so 2007-11-16 18:09:50 +00:00
indent WFORMAT is no more... 2006-10-08 17:52:28 +00:00
innetgr Fix minor grammar nit. 2007-07-05 19:44:02 +00:00
ipcrm
ipcs PR/34837: Mindaguas: Add SysV SHM dynamic reallocation and locking to the 2006-11-25 21:40:04 +00:00
join Be a good citizen and close files that are no longer used. 2007-02-21 20:45:27 +00:00
jot WFORMAT is no more... 2006-10-08 17:52:28 +00:00
kdestroy Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
kdump Apply the -N (show syscalls by number) to the system return trace. 2007-11-07 22:22:31 +00:00
kgetcred Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
kinit Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
klist Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
ktrace Remove 'U' (was scheduler activations) from the list of default trace points. 2007-08-27 16:35:47 +00:00
ktruss Deal correctly with mulithreaded processes. Among other problems this mixed 2007-08-01 21:39:36 +00:00
lam WFORMAT is no more... 2006-10-08 17:52:28 +00:00
last Convert to raise_default_signal(3). 2007-10-05 07:27:41 +00:00
lastcomm Note that ACOMPAT and ASU are no longer recorded. 2006-12-22 08:00:20 +00:00
ldd call sysconf, before add paths. From Kurt Schreiner 2007-10-08 12:51:21 +00:00
leave
less Add the list of differences between more and less provided by mrg@ in 2006-12-17 16:16:53 +00:00
lex WFORMAT is no more... 2006-10-08 17:52:28 +00:00
locale
locate fix typos 2007-04-29 20:23:34 +00:00
lock Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
logger Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
login Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
logname
look
lorder In preparation for making TOOL_LORDER use TOOL_JOIN, TOOL_MKTEMP and 2007-01-14 16:29:35 +00:00
m4 Convert to using raise_default_signal(3). 2007-10-05 07:36:45 +00:00
machine
mail From Anon Ymous 2007-11-14 22:06:04 +00:00
make Allow .PATH<suffix> to be used for .include "". 2007-10-22 15:36:13 +00:00
man Convert to using raise_default_signal(3). 2007-10-05 07:36:45 +00:00
menuc Fully initialize the last element of menu_def[]. 2006-10-23 19:29:48 +00:00
mesg
midiplay Bump date for previous. New sentence, new line. 2006-07-02 01:48:51 +00:00
mixerctl
mk_cmds
mkcsmapper mapper_std iconv module and mkcsmapper(1) now can treat 2006-09-09 14:35:17 +00:00
mkdep remove unnecessary #include 2007-09-25 04:36:30 +00:00
mkesdb
mkfifo
mklocale
mkstr
mktemp Sync usage with man page. 2006-09-19 19:01:56 +00:00
modstat Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
moduli make MKCRYPTO=no work again. 2006-06-25 03:02:19 +00:00
msgc eliminate an alloca use. 2006-12-03 01:18:34 +00:00
msgs
netgroup Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
netstat don't bother to print unmaintained statistics. (m_drops, m_wait) 2007-11-10 12:05:08 +00:00
newgrp Move the grutil code from su to here. Requested by ginsbach@ 2007-10-27 15:36:21 +00:00
newsyslog WARNS=4, pass lint 2007-07-22 17:03:13 +00:00
nfsstat remove nqnfs leftovers. 2007-08-05 22:06:14 +00:00
nice
nl WFORMAT is no more... 2006-10-08 17:52:28 +00:00
nohup
openssl Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
pagesize
passwd Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
paste Remove duplicate #includes 2007-01-17 00:21:43 +00:00
patch Convert to using raise_default_signal(3). 2007-10-14 04:54:34 +00:00
pathchk
pcc x86 -> i386. 2007-10-28 10:06:41 +00:00
pkill Allow the -l (long format) option to be used with pkill too. 2007-03-21 20:05:18 +00:00
pmap Merge from vmlocking: 2007-10-10 20:42:20 +00:00
pmc - add volatile 2006-10-22 16:25:19 +00:00
pr Convert to using raise_default_signal(3). 2007-10-14 11:21:32 +00:00
printenv
printf
progress Dynamically allocate the buffer used for reading data from the input 2007-06-06 17:49:14 +00:00
pwhash
qsubst
quota eliminate MFSTYPENAME 2007-07-17 21:36:18 +00:00
radioctl u_long -> u_int in many places. i guess radioctl(1) was broken on sparc64. 2006-05-11 01:24:14 +00:00
rdist Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
renice
rev
revoke Remove advertising clause from all of my stuff. 2007-01-09 12:49:36 +00:00
rfcomm_sppd Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rlogin Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rpcgen xdr sucks. sprinkle some (void *) casts into it's functions taking void **, 2006-05-11 17:11:57 +00:00
rpcinfo Since Christos cleaned up the use of libc internals here, we can switch 2007-05-28 18:12:06 +00:00
rs
rsh Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rup Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
ruptime Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rusers Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rwall Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rwho Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
script PR/36955: Ighighi: Use fseeko instead of fseek. 2007-09-09 12:20:27 +00:00
sdiff PR/34630: GNU sdiff(1) replacement 2007-02-18 22:13:42 +00:00
sdpquery use stderr for printing usage messages 2007-11-06 21:35:52 +00:00
sed provide _POSIX2_LINE_MAX if not there. 2007-04-17 20:30:29 +00:00
seq
shar
shlock PR/30819: Peter Postma: src/usr.bin/shlock has no license 2006-10-07 21:13:00 +00:00
showmount Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
shuffle Xref shuffle(1) from random(6), and vice versa 2007-03-20 16:12:40 +00:00
skey
skeyinfo Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
skeyinit Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
sockstat Document the option -n and bump date. 2006-07-14 21:14:24 +00:00
soelim
sort <ctype.h> is unused. What's still needed is <sys/cdefs.h> (which is 2007-02-21 20:15:17 +00:00
spell use c99 initializers. 2006-10-22 16:36:44 +00:00
split Add a new command-line option "-n chunk_count", that splits the input 2007-05-31 01:35:35 +00:00
ssh Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
stat Put back the NetBSD tag 2007-11-10 03:12:10 +00:00
string2key Add linking against -lutil to pick up estrdup(). Fixes evbsh5 build. 2006-08-31 07:18:39 +00:00
su bump date. 2007-10-27 18:43:37 +00:00
systat Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
tail Coverity CID 3204: The USE_SLEEP case can close the fp, and break does 2006-05-24 16:34:25 +00:00
talk Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
tcopy Coverity CID 1565: Fix memory leak. 2006-04-30 23:30:13 +00:00
tee
telnet Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
tftp Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
time Make -p, -l, and -c exclusive (any one turns off the other two). 2007-02-26 21:56:17 +00:00
tip Move #include <libgen.h> from tip.h to the place where it's really needed. 2007-03-09 23:45:21 +00:00
tn3270 Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
top Don't bias priority by PZERO. 2007-11-06 00:43:25 +00:00
touch
tput
tr Remove duplicate #includes 2007-01-17 00:21:43 +00:00
true
tset Rename cat to tset_cat so that coverity does not get confused by the global 2006-05-01 23:18:37 +00:00
tsort
tty
ul
uname
unexpand
unifdef Coverity CID 1206: Confusion between && and || leads to indexing an array 2006-04-30 23:56:42 +00:00
uniq Don't limit lines to 8K. 2007-01-06 02:18:24 +00:00
units dipotre -> dioptre. 2007-02-15 22:37:27 +00:00
unvis
usbhidaction Sprinkle static, pass lib, warns=4 2006-05-19 14:43:58 +00:00
usbhidctl Sync usage with manpage. 2006-10-26 11:12:41 +00:00
users
utoppya
uudecode implement HOST_CPPFLAGS+= -DNO_BASE64 2006-09-24 21:43:14 +00:00
uuencode Add -m to SYNOPSIS. 2006-09-24 15:56:42 +00:00
uuidgen
vacation PR/36644: Edgar Fuss: vacation does not work if homedir not present 2007-07-13 14:52:15 +00:00
vgrind Need assert.h now. 2006-05-01 05:14:22 +00:00
vi exit(3) needs stdlib.h. 2007-01-22 11:46:43 +00:00
vis
vmstat Add -C option to display pool_cache info, eg: 2007-11-07 00:24:18 +00:00
vndcompress Make example consistent (fix typo in file names). 2007-03-24 23:16:11 +00:00
w Test p_pctcpu instead of p_estcpu (the latter is specific to SCHED_4BSD). 2007-11-05 20:46:08 +00:00
wall Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
wc
what
whatis PR/9742: whatis doesn't deal with '.' in manpage names (John Hawkinson) 2006-09-26 04:16:24 +00:00
whereis Apply patch from Michael van Elst to fix PR bin/34114: 2006-07-30 11:50:29 +00:00
who Use Pq. 2007-01-18 00:15:05 +00:00
whois PR/36957: sm: whois does not follow AfriNIC referral 2007-09-09 18:31:45 +00:00
window from Anon Ymous: 2006-12-18 20:04:55 +00:00
write Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
xargs Bring in xargs from FreeBSD to gain -I, -J etc. but keep our GNU compatible 2007-04-18 15:56:06 +00:00
xinstall - When compiling nbinstall for the tool chain, use the target strip 2007-06-28 19:05:55 +00:00
xlint tlst[inptype(...)] is bad C code because inptype() can realloc tlst 2007-09-28 21:53:50 +00:00
xstr
yacc fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
yes Make yes exit if a write fails (due to, e.g., EPIPE or revocation). 2006-04-24 05:24:03 +00:00
ypcat Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
ypmatch Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
ypwhich Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
Makefile Add the atf tools 2007-11-12 15:00:00 +00:00
Makefile.inc WFORMAT is no more... 2006-10-08 17:52:28 +00:00