freebsd-skq/usr.bin
fanf fd4a464ac4 Sync with up-stream version, including a number of bug-fixes:
* The partial-evaluation of #elif sequences was broken and the
spaghetti logic of its implementation was too hard to understand.
I've re-done it using a straight-forward table-driven push-down
automaton.

* The pre-processor line parser did not allow for all of the weird
places that people might put comments, which could have caused it
to add syntax-errors to the output by removing a #if line containing
the start- or end-marker of a comment.

* The lexer didn't need to special-case the handling of string-literals
or character-constants, but it did need to learn about line-continuations
(backslash-newline).

* The input routine was buggy and bit-rotten and trivially replacable
with fgets(). I've also made the program static- and const-safe and
improved the presentation-order. The formatting of the state-transition
tables remains non-stylish.

This commit-messsage was brought to you by code-point 45.

MFC-after: one-week
2002-12-18 20:50:44 +00:00
..
alias Fix installworld. 2002-07-17 15:35:31 +00:00
apply WARNS=4 2002-07-14 18:23:22 +00:00
ar WARNS=4 2002-07-14 18:23:22 +00:00
asa mdoc(7) police: minor markup nits. 2002-05-30 13:33:59 +00:00
at mdoc(7) police: 2002-11-26 17:55:41 +00:00
awk
banner
basename ANSIify function definitions. 2002-09-04 23:29:10 +00:00
biff Bump document date for the 'beep only' change. 2002-08-16 03:08:25 +00:00
bluetooth mdoc(7) police: markup fixes. 2002-12-12 13:26:32 +00:00
brandelf Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
bzip2
c89
c99 mdoc(7) police: overhaul. 2002-12-11 17:26:53 +00:00
calendar Add description of a number of "default" files that have been added 2002-11-19 00:30:38 +00:00
cap_mkdb ANSIify function definitions to avoid a warning. 2002-07-28 14:41:26 +00:00
catman mdoc(7) police: sort xrefs in SEE ALSO. 2002-12-13 16:53:51 +00:00
chat Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
checknr ANSIify function definitions to avoid a warning. 2002-07-28 14:55:59 +00:00
chflags ANSIify function definitions. 2002-09-04 23:29:10 +00:00
chkey Use strchr() instead of index(). Use getopt(). Use err(). 2002-08-27 19:06:44 +00:00
chpass Don't try to dereference a NULL pw pointer. This would happen when 2002-10-29 12:45:32 +00:00
cksum ANSIify function definitions to avoid a warning. 2002-07-28 15:13:17 +00:00
cmp ANSIify function definitions to avoid a warning. 2002-07-28 15:13:17 +00:00
col ANSIify function definitions. 2002-09-04 23:29:10 +00:00
colcrt ANSIify function definitions. 2002-09-04 23:29:10 +00:00
colldef mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
colrm ANSIify function definitions to avoid a warning. 2002-07-28 15:22:43 +00:00
column ANSify function definitions to avoid a warning. 2002-07-28 15:25:15 +00:00
comm ANSIify function definitions to avoid a warning. 2002-07-28 15:28:38 +00:00
compile_et
compress Spelling. 2002-10-16 12:42:15 +00:00
csplit mdoc(7) police: simplify. 2002-08-14 11:38:30 +00:00
ctags mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
cut mdoc(7) police: markup polishing. 2002-11-26 10:51:47 +00:00
dig
dirname ANSIify function definitions to avoid a warning. 2002-07-28 15:50:38 +00:00
dnskeygen
dnsquery
doscmd Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
du Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
ee Reimplemented bsd.nls.mk using bsd.files.mk and bsd.links.mk. 2002-07-02 12:37:09 +00:00
elf2aout Set NO_WERROR to ignore the following warning which is emitted on 2002-07-11 18:06:09 +00:00
enigma ANSIify function definitions. 2002-09-04 23:29:10 +00:00
env ANSIify function definitions. 2002-09-04 23:29:10 +00:00
expand mdoc(7) police: markup polishing. 2002-11-26 10:57:57 +00:00
false Consistently use FBSDID 2002-06-30 05:25:07 +00:00
fetch Use the URL instead of the output file name when reporting errors relating 2002-11-27 20:52:07 +00:00
file Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
file2c Consistently use FBSDID 2002-06-30 05:25:07 +00:00
find Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
finger Make a CR/LF sequence measure up to its name: the order of the CR and LF 2002-12-02 20:38:12 +00:00
fmt Consistently use FBSDID 2002-06-30 05:25:07 +00:00
fold ANSIify function definitions. 2002-09-04 23:29:10 +00:00
from ANSIify function definitions. 2002-09-04 23:29:10 +00:00
fstat Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
fsync Consistently use FBSDID 2002-06-30 05:25:07 +00:00
ftp Update for lukemftp-1.6-beta2. 2002-06-15 09:42:17 +00:00
gcore Add #include <sys/queue.h> for sparc64's benefit. The MD includes there 2002-09-13 18:24:59 +00:00
gencat Use mkstemp(3) to avoid /tmp race. 2002-05-29 14:23:10 +00:00
getconf Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
getopt ANSIify function definitions. 2002-09-04 23:29:10 +00:00
gprof Add powerpc.h. Still missing powerpc.[ch] in gprof, but this gets 2002-12-10 02:22:01 +00:00
head Remove duplicate __FBSDID() - spotted by trying to build with a non-GNU 2002-07-23 14:39:20 +00:00
hesinfo ANSIify function definitions. 2002-09-04 23:29:10 +00:00
hexdump Capitalize ASCII code names. 2002-12-05 08:50:00 +00:00
host
id ANSIify function definitions. 2002-09-04 23:29:10 +00:00
indent Spelling 2002-10-16 13:58:39 +00:00
ipcrm ANSIify function definitions. 2002-09-04 23:29:10 +00:00
ipcs Consistently use FBSDID 2002-06-30 05:25:07 +00:00
join mdoc(7) police: nit. 2002-11-26 11:25:04 +00:00
jot Don't depend on pollution in <limits.h> for the definition of 2002-07-05 15:58:27 +00:00
kdump Backed out revs 1.32-1.33. The problem has been fixed better by 2002-09-16 10:06:02 +00:00
kenv kenv(1) is WARNS=6 clean. 2002-11-11 11:56:28 +00:00
keylogin Consistently use FBSDID 2002-06-30 05:25:07 +00:00
keylogout Consistently use FBSDID 2002-06-30 05:25:07 +00:00
killall s/progname/procname/ to be consistent with the other occurrences 2002-07-15 11:33:30 +00:00
ktrace Consistently use FBSDID 2002-06-30 05:25:07 +00:00
ktrdump Use strlcpy() instead of strcpy() to not overflow static buffers. 2002-10-06 23:52:06 +00:00
lam Back out my minorly disputed and possibly not well thought out changes to how 2002-07-01 18:03:30 +00:00
last Fix core dumps when invoking with something like ``last -w1''. 2002-10-30 18:19:59 +00:00
lastcomm ANSIify function definitions. 2002-09-04 23:29:10 +00:00
ldd Fix a problem with RTLD_TRACE flag to dlopen(3), which sometimes can return 2002-10-19 10:18:29 +00:00
leave ANSIify function definitions. 2002-09-04 23:29:10 +00:00
less Use ${BINDIR} instead of hardcoded path. 2002-12-18 10:14:01 +00:00
lessecho
lesskey
lex Catch up with the ISO-C++ standard. 2002-09-09 02:58:42 +00:00
limits Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
locale Add locale(1). I have used it for while as useful debugging tool 2002-10-16 13:17:18 +00:00
locate Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
lock ANSIify function definitions. 2002-09-04 23:29:10 +00:00
lockf Consistently use FBSDID 2002-06-30 05:25:07 +00:00
logger ANSIify function definitions. 2002-09-04 23:29:10 +00:00
login Change the process title as soon as possible to mask information passed on 2002-12-04 15:00:10 +00:00
logname ANSIify function definitions. 2002-09-04 23:29:10 +00:00
look ANSIify function definitions. 2002-09-04 23:29:10 +00:00
lorder Make it work with POSIX sort (POS arg) 2002-09-24 18:16:36 +00:00
lsvfs Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
m4 When we appear to want a signed value from sizeof(), use ssize_t in the cast, 2002-10-30 15:50:00 +00:00
mail Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
make Check the return status of chdir() when using the -C option. 2002-12-17 04:26:22 +00:00
makewhatis Install /usr/libexec/makewhatis.local and /usr/libexec/catman.local. 2002-11-18 10:11:22 +00:00
mesg ANSIify function definitions. 2002-09-04 23:29:10 +00:00
minigzip mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
mkdep
mkfifo ANSIify function definitions. 2002-09-04 23:29:10 +00:00
mklocale mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
mkstr Remove claim that pi and ex use mkstr; pi is long gone, and nex doesn't 2002-11-01 12:22:41 +00:00
mktemp Use proper article. 2002-07-16 05:38:26 +00:00
msgs ANSIify function definitions. 2002-09-04 23:29:10 +00:00
mt Add information about the SDLT density codes. 2002-10-15 12:53:29 +00:00
ncal Teach ncal(1) about month names specified on the command line. 2002-10-02 12:31:10 +00:00
ncplist
ncplogin ANSIify function definitions. 2002-09-04 23:29:10 +00:00
netstat Warns cleanups for netstat: 2002-09-05 17:06:51 +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 The .Nm utility 2002-07-14 15:12:00 +00:00
nfsstat
nice ANSIify function definitions. 2002-09-04 23:29:10 +00:00
nl Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
nm Introduce enumerate of options using the standard way: 2002-10-16 15:28:20 +00:00
nohup WARNS=4 2002-07-14 18:23:22 +00:00
objformat mdoc(7) police: markup and spelling. 2002-11-26 17:34:25 +00:00
opieinfo
opiekey
opiepasswd
pagesize
passwd Introduce enumerate of options using the standard way. 2002-10-16 15:32:16 +00:00
paste mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
pathchk Unbreak support for systems that have no limit on pathname length. 2002-12-15 00:40:47 +00:00
pr ANSIify function definitions. 2002-09-04 23:29:10 +00:00
printenv mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
printf ANSIify function definitions. 2002-09-04 23:29:10 +00:00
quota Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
ranlib
renice The .Nm utility 2002-07-14 15:12:00 +00:00
rev ANSIify function definitions. 2002-09-04 23:29:10 +00:00
rlogin Dekerberise. The corresponding userland stuff has been dekerberised 2002-10-16 16:09:05 +00:00
rpcgen mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
rpcinfo Change the name for the local unix-socket based protocol 2002-12-16 22:24:26 +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 Dekerberise. The corresponding userland stuff has been dekerberised 2002-10-16 16:10:46 +00:00
rup
ruptime
rusers
rwall ANSIify function definitions. 2002-09-04 23:29:10 +00:00
rwho Modernise; ISOify, use __FBSDID(), use headers instead of hand-declaring. 2002-07-01 16:40:33 +00:00
sasc
script ANSIify function definitions. 2002-09-04 23:29:10 +00:00
sed mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
shar
showmount Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
size
smbutil
sockstat mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
soelim Output .lf directives. 2002-10-30 03:24:16 +00:00
split Support larger files (at least 64-bit offsets) by using off_t instead of 2002-07-15 05:31:55 +00:00
stat Adjust the size passed to readlink so that the null termination 2002-10-25 07:26:36 +00:00
strings
strip Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
su mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
symorder Introduce option enumeration the standard way. 2002-10-17 12:58:14 +00:00
systat Adjust for getbsize argument type change. 2002-10-23 19:02:17 +00:00
tabs mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
tail When doing tail -F, return if the freopen() of the file fails instead of 2002-12-15 11:26:57 +00:00
talk Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
tconv
tcopy
tee ANSIify function definitions. 2002-09-04 23:29:10 +00:00
telnet Be more careful when parsing arguments. 2002-11-20 17:59:20 +00:00
tftp mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
time ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tip Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
top Catch up to SMTX -> SLOCK changes. 2002-10-02 20:33:52 +00:00
touch ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tput ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tr mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
true A function which takes no arguments has an argument list spelled (void) in the 2002-06-20 05:35:40 +00:00
truncate
truss mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
tset ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tsort ANSIify function definitions. 2002-09-04 23:29:10 +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 ANSIify function definitions. 2002-09-04 23:29:10 +00:00
uname Use some macro evil to create the functions for using sysctl(3) to get each 2002-09-23 06:47:39 +00:00
unexpand Fix off-by-one error processing the line after an empty line when the 2002-10-04 16:45:25 +00:00
unifdef Sync with up-stream version, including a number of bug-fixes: 2002-12-18 20:50:44 +00:00
uniq mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
units Add enough consts to keep everyone happy. 2002-07-28 16:23:28 +00:00
unvis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
usbhidctl
users ANSIify function definitions. 2002-09-04 23:29:10 +00:00
uudecode Variables that come in in and out pairs should be named accordingly. 2002-11-01 02:08:51 +00:00
uuencode Improve the way base64 mode is enabled based on the program name, 2002-10-20 14:18:25 +00:00
uuidgen o Remove $Id$ from copyright; there's $FreeBSD$, 2002-11-01 06:20:14 +00:00
vacation
vgrind Make it work with POSIX sort (POS arg). 2002-09-24 19:05:40 +00:00
vi Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
vis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
vmstat The boottime variable in sys/kern/kern_tc.c is a struct timeval, not a 2002-08-09 15:47:43 +00:00
w Fix warning when calling w(1) when logged in via xdm/kdm. This is 2002-08-23 04:31:58 +00:00
wall Change iov_base's type from char *' to the standard void *'. All 2002-10-11 14:58:34 +00:00
wc mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
what mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
whereis mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
which Handle relative and absolute pathnames (anything with a `/' in it) in the same 2002-06-30 06:02:39 +00:00
who mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
whois mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
window Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
write ANSIify function definitions. 2002-09-04 23:29:10 +00:00
xargs Take __FreeBSD_version into account when BOOTSTRAPPING. 2002-11-13 13:49:29 +00:00
xinstall Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
xlint mdoc(7) police: overhaul. 2002-12-11 17:13:09 +00:00
xstr Another buffer overflow similar to the recent one in mkstr(1). 2002-11-01 12:48:28 +00:00
yacc mdoc(7) police: back out unproved changes from previous revision. 2002-11-26 15:34:18 +00:00
yes #include <err.h> to make yes warns clean again. 2002-11-09 21:00:39 +00:00
ypcat
ypmatch
ypwhich
Makefile As warned on freebsd-current@, remove the perl wrapper from /usr/src. 2002-11-27 17:46:26 +00:00
Makefile.inc