freebsd-dev/usr.bin
Maxim Sobolev 8701af62ee Fix one serious bug and one potential problem with in-place editing code:
- original version of code worked incorrectly when more than one
  input files were specified - it was moving the last line from the 1st file
  to be the first line of the 2nd, last line of the 2nd to be the first
  line of the 3rd and so on;

- use mmap()->write() to create temporary file instead of
  malloc()->read()->write(), which was not only slower, but also did not
  bother to free allocated memory once backup file was created, potentially
  leading to memory exhausting when regex is applied to a big file or a large
  number of small ones.
2002-06-14 01:28:52 +00:00
..
apply Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
ar Add .Pp before enumerating options 2002-04-19 23:18:18 +00:00
asa mdoc(7) police: minor markup nits. 2002-05-30 13:33:59 +00:00
at mdoc(7) police: lint. 2002-05-29 18:00:23 +00:00
awk BWK awk appears to work for world builds just fine now. We want to make 2002-05-10 20:36:21 +00:00
banner remove __P 2002-03-22 01:22:50 +00:00
basename Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
biff Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
brandelf Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
bzip2 Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
c89 Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00
calendar beforeinstall target: 2002-06-13 21:21:59 +00:00
cap_mkdb Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
catman mdoc(7) police: tidy up. 2002-05-30 13:39:43 +00:00
chat Remove GCC-specific flags. 2002-04-28 13:53:38 +00:00
checknr Use `The .Nm utility'. Introduce options with well known sentence. 2002-04-19 23:23:28 +00:00
chflags Reorder for style. 2002-04-28 13:54:45 +00:00
chkey Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
chpass Use libutil and libypclnt for all passwd manipulation and NIS needs. 2002-05-08 00:54:29 +00:00
cksum remove __P 2002-03-22 01:22:50 +00:00
cmp No need to check for "-" explicitly in getopt() loop. 2002-06-07 02:35:21 +00:00
col Sort options in Description section. 2002-06-04 09:17:30 +00:00
colcrt Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
colldef Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
colrm Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
column remove __P 2002-03-22 01:22:50 +00:00
comm Add a History section. comm(1) appeared in V4. 2002-05-28 09:35:30 +00:00
compile_et
compress mdoc(7) police: lint. 2002-05-29 18:12:21 +00:00
csplit Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
ctags Document conformance to IEEE Std 1003.1-2001. 2002-05-30 12:13:18 +00:00
cut cut(1) appeared at least as early as System III. 2002-06-11 08:11:12 +00:00
dig
dirname remove __P 2002-03-22 01:22:50 +00:00
dnskeygen MAN[1-9] -> MAN. 2001-03-27 10:52:19 +00:00
dnsquery
doscmd More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
du More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
ee Assume __STDC__, remove non-__STDC__ code. 2002-05-28 19:23:47 +00:00
elf2aout Make it work for a different endianness binary. 2002-05-25 13:43:16 +00:00
enigma Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
env remove __P 2002-03-22 01:22:50 +00:00
expand If processing of one file fails, try to process the remaining files and 2002-05-24 06:00:47 +00:00
false Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00
fetch Reorder LDADD to fix static linking. 2002-06-12 12:46:50 +00:00
file Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
file2c Modernize my email address 2002-03-25 13:53:46 +00:00
find Support the SysV-style -exec utility args.. {} + function, required by 2002-06-02 12:57:41 +00:00
finger Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
fmt Very minor whitespace nit. 2002-04-28 13:59:42 +00:00
fold Typo: use plural now that we have more than one option. 2002-05-25 03:08:21 +00:00
from Introduce flags enumeration with standard 2002-03-26 12:15:31 +00:00
fstat Factor out some code in preparation for un-kmeming fstat(1). 2002-06-06 18:39:53 +00:00
fsync Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00
ftp Connect lukemftp to the build as the default ftp client. Lukemftp 2001-12-13 23:46:44 +00:00
gcore Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
gencat Use mkstemp(3) to avoid /tmp race. 2002-05-29 14:23:10 +00:00
getconf confstr() returns (size_t)-1 on failure. Check for this explicitly instead 2002-06-04 08:45:38 +00:00
getopt Minor nit; return(foo) from main rather than exit(foo). 2002-04-28 14:04:24 +00:00
gprof Fix preprocessor directive syntax (text after #endif). 2002-05-30 21:18:01 +00:00
head Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
help Add support for non-numeric key lookup via the 'cmds' file, by using the key 2002-06-04 06:14:11 +00:00
hesinfo Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
hexdump mdoc(7) police: tidy up the markup. 2002-05-29 18:49:22 +00:00
host
id remove __P 2002-03-22 01:22:50 +00:00
indent Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ipcrm Add some function prototypes to squash warnings. 2002-04-28 13:49:15 +00:00
ipcs Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
join Remove -j from synopsis. The form given in the synopsis was incorrect, 2002-06-10 10:39:33 +00:00
jot Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
kdump I now don't seem to be able to reproduce the -DNOCLEAN buildworld 2002-04-11 14:49:32 +00:00
kenv mdoc(7) police: punctuation. 2002-05-29 18:52:02 +00:00
keylogin Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
keylogout Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
killall mdoc(7) police: lint. 2002-05-29 18:53:22 +00:00
ktrace Warnings fix; ANSIfy, constify, mark unused function parameter(s). 2002-04-28 13:00:16 +00:00
ktrdump Added missing DPADD detected by ``make checkdpadd''. 2002-06-06 11:30:57 +00:00
lam Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
last Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
lastcomm Use `The .Nm utility'. Add section number to .Xr. 2002-04-20 21:28:47 +00:00
ldd Fix a tiny bug in shlib support of ldd(1); if dlopen(lib, RTLD_TRACE) 2002-05-17 17:06:56 +00:00
leave Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
less Update for less v371 2002-01-07 20:37:33 +00:00
lessecho
lesskey MAN[1-9] -> MAN. 2001-03-27 10:52:19 +00:00
lex Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
limits Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
locate remove __P 2002-03-22 01:22:50 +00:00
lock Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
lockf Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
logger .Nm is not required at the begining of this sentence. 2002-04-20 21:33:10 +00:00
login Drive-by whitespace cleanup. 2002-05-28 06:46:37 +00:00
logname remove __P 2002-03-22 01:22:50 +00:00
look Fix a const-char vs char issue. 2002-04-28 12:39:12 +00:00
lorder Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
lsvfs More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
m4 Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
mail Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
make Avoid classy use of a variable one time with a constant value. 2002-06-13 08:57:53 +00:00
makewhatis Use size_t or ino_t instead of int, and remove a few warnings. 2002-06-07 01:01:08 +00:00
mesg Affect the first of stdin, stdout and stderr that is attached to a terminal. 2002-05-06 04:33:04 +00:00
minigzip Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mkdep Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mkfifo Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mklocale Declarations cleanup; make sure externs are in a common header. 2002-04-28 12:34:54 +00:00
mkstr warns fixes; ANSIfy, deregister, constify. 2002-04-28 12:28:41 +00:00
mktemp Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
msgs mdoc(7) police: removed unnecessary .Ns. 2002-05-30 05:52:19 +00:00
mt mdoc(7) police: removed unnecessary .Ns. 2002-05-30 05:52:19 +00:00
ncal Correct History: cal(1) appeared in V5, not V6. 2002-06-03 15:02:02 +00:00
ncplist Style fixes; whitespace and header order. 2002-04-28 12:21:31 +00:00
ncplogin Fix VCS inclusion and tidy up #includes. 2002-04-28 12:19:30 +00:00
netstat Use calculated column widths for the routing table display when -W is 2002-06-05 18:29:26 +00:00
newgrp mdoc(7) police: one minor change that was not probably worth a commit. 2002-05-30 13:57:35 +00:00
newkey ANSIfy, VCS inclusions and some very minor style. 2002-04-28 12:09:33 +00:00
nfsstat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
nice Correct History: nice(1) appeared in V4. 2002-06-03 14:56:57 +00:00
nl The XCU issue 5 requirement of accepting the file operand intermingled 2002-05-27 06:53:54 +00:00
nm Fix some easy warnings; ANSIfy, constify. 2002-04-28 12:04:20 +00:00
nohup remove __P 2002-03-22 01:33:25 +00:00
objformat Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
opieinfo Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
opiekey Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
opiepasswd Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
pagesize Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
passwd #include <stdlib.h> for exit(3) prototype. 2002-05-11 03:18:14 +00:00
paste paste(1) appeared at least as early as 32v. 2002-06-11 08:13:03 +00:00
pathchk When stat(2) fails, put the name of the component it failed on in the 2002-06-10 10:03:46 +00:00
perl Install a "perl5.6.1" wrapper. I think this is going too far as now 2002-06-07 18:55:42 +00:00
pr Add P1003.1-2001 -f and -p options. 2002-03-31 18:44:36 +00:00
printenv Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
printf Typo: characer -> character 2002-05-31 00:33:40 +00:00
quota Call getmntinfo with MNT_NOWAIT to avoid hanging if any NFS servers 2002-06-03 12:06:49 +00:00
ranlib ANSIfy functions, and move extern declarations into a shared header 2002-04-28 11:59:43 +00:00
renice mdoc(7) police: untangle SYNOPSIS's markup. 2002-05-30 06:03:08 +00:00
rev remove __P 2002-03-22 01:33:25 +00:00
rlogin Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
rpcgen Back out part of previous commit - K&R doesn't have const. 2002-05-09 11:24:58 +00:00
rpcinfo Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
rs Contrary to what the comments said, rs -H did not recycle storage, it just 2002-06-07 07:08:06 +00:00
rsh Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits. 2002-05-08 00:47:01 +00:00
rup Style only; format function declarations, sort header includes, and 2002-04-28 10:49:15 +00:00
ruptime Use __FBSDID(), ANSIfy headings, use const/unsigned in minor but 2002-04-28 10:56:09 +00:00
rusers Trivial warnings fixes; staticise and use unsigned. 2002-04-28 11:13:20 +00:00
rwall Revert/fix the most controversial parts of the last commit: 2002-03-07 14:11:41 +00:00
rwho remove __P 2002-03-22 01:33:25 +00:00
sasc remove __P 2002-03-22 01:42:45 +00:00
sccs We have a version of help(SCCS) in /usr/bin now. 2002-06-01 01:07:50 +00:00
script Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
sed Fix one serious bug and one potential problem with in-place editing code: 2002-06-14 01:28:52 +00:00
shar mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
showmount More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
size Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
smbutil Add bmake glue for src/contrib/smbfs and connect userland smbfs 2001-12-14 11:41:22 +00:00
sockstat Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
soelim Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
split Sort sections. 2002-06-03 14:42:28 +00:00
stat Virgin import of NetBSD's stat(1) 2002-06-06 19:27:17 +00:00
strings Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
strip Do not override the `install' target. 2002-04-29 10:28:11 +00:00
su Make our child the leader of its own process group to avoid receiving 2002-05-29 03:32:17 +00:00
symorder Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
systat debug.{numvnodes,freevnodes} moved to vfs. 2002-06-06 23:01:50 +00:00
tabs Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
tail Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
talk nroff and pr no longer try to disallow messages. 2002-06-08 10:19:07 +00:00
tconv Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tcopy Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tee Revert part of the previous revision. Changing exit() to return() in main() 2002-05-17 11:16:49 +00:00
telnet Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
tftp mdoc(7) police: markup nits. 2002-05-30 06:18:53 +00:00
time Correct History: time(1) appeared at least as early as V3. 2002-06-03 14:54:04 +00:00
tip More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
top remove __P 2002-03-22 01:42:45 +00:00
touch remove __P 2002-03-22 01:42:45 +00:00
tput Skip %pN comes from ncurses 2002-06-03 10:44:39 +00:00
tr remove __P 2002-03-22 01:42:45 +00:00
true Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
truncate remove __P 2002-03-22 01:42:45 +00:00
truss OOPS! rev 1.16 accidently changed the default outfile from stderr to 2002-05-16 21:58:57 +00:00
tset Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
tsort Style nit: group together optional flags under the one Fl macro. 2002-06-07 01:17:54 +00:00
tty A space between switch and open-paren. Don't explicitly cast the value 2002-05-29 17:12:30 +00:00
uac Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
ul Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uname Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
unexpand Some minor nits exposed by the Open Group's VSC Lite verification suite: 2002-04-25 23:04:52 +00:00
unifdef Character 0 is nul not null. 2002-05-30 11:42:44 +00:00
uniq Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
units Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon. 2001-12-18 11:25:58 +00:00
unvis Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
usbhidctl Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
users Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uudecode Synch usage() and manpage for b64encode/b64decode. 2002-05-19 11:22:54 +00:00
uuencode Fix a late-night buglet in MLINKS ordering. 2002-05-19 20:39:42 +00:00
uuidgen mdoc(7) police: kill hard sentence breaks. 2002-05-30 14:10:44 +00:00
vacation Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
vgrind Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
vi Remove Perl and TCL/TK bits, neither of which are in the base system 2002-05-18 14:27:17 +00:00
vis Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
vmstat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
w ANSI style function declarations. 2002-06-07 01:41:54 +00:00
wall Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
wc Correct the Standards section: wc is a utility, not a function. 2002-06-13 13:18:57 +00:00
what Document standards conformance. 2002-05-29 13:45:16 +00:00
whereis mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
which which(1) was once a Perl script. 2002-05-30 08:33:13 +00:00
who Refer to environ(7) for description of COLUMNS. Note the effects of LANG, 2002-06-07 00:50:22 +00:00
whois Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
window Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
write Use getopt() to reject any options and skip "--" arguments. 2002-05-29 13:14:51 +00:00
xargs Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
xinstall Start the (overdue) de-orbit sequence for the -d -C combo, 2002-06-05 17:37:48 +00:00
xlint Make sure the file in Attic is really "dead". 2002-05-07 06:57:04 +00:00
xstr Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
yacc Use the constants from <limits.h> for the sizes of integral C types 2002-06-11 11:27:20 +00:00
yes Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypcat Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypmatch Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypwhich Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
Makefile Per previous discussion, and with Mark's blessing, update the value 2002-06-09 09:28:02 +00:00
Makefile.inc Backout -Werror protection. No need to walk all over the upcoming 2002-02-06 18:13:12 +00:00