1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/usr.bin
Ed Schouten 66c5875a45 Simplify getopt switch parsing.
Only one of these flags can be set. Just add them together and check the
value. Also, get rid of the listall variable. The code is already filled
with direct *flag-comparisons.

Obtained from:	Alexander Best (though modified)
2011-11-08 11:36:46 +00:00
..
alias
apply Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ar Don't try to free() an address returned by mmap(). This appears to be 2011-08-04 14:18:09 +00:00
asa
at Partially revert r227233. 2011-11-06 20:30:21 +00:00
atm
awk
banner Add missing static keywords to banner(1) 2011-11-06 08:13:51 +00:00
basename Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
bc
biff Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
bluetooth
brandelf
bsdiff
bzip2
bzip2recover
c89 Revert most of r210764, now that mdocml does the right 2010-12-28 10:08:50 +00:00
c99 Add missing static keywords to c99(1) 2011-11-06 08:13:58 +00:00
calendar Fix typo from r226927 2011-10-30 20:55:32 +00:00
cap_mkdb Add missing static keywords to cap_mkdb(1) 2011-11-06 08:14:03 +00:00
catman Add missing static keywords to catman(1) 2011-11-06 08:14:09 +00:00
chat
checknr Mark global functions and/or variables in checknr(1) static where possible. 2011-11-06 18:49:03 +00:00
chkey
chpass Mark the structure fields as const. 2011-11-06 17:20:44 +00:00
cksum Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
clang Upgrade our copy of llvm/clang to r142614, from upstream's release_30 2011-10-22 14:08:43 +00:00
cmp Add missing static keywords to cmp(1) 2011-11-06 08:14:16 +00:00
col Add missing static keywords to col(1) 2011-11-06 08:14:22 +00:00
colcrt Add missing static keywords to colcrt(1) 2011-11-06 08:14:28 +00:00
colldef
colrm Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
column Add missing static keywords to column(1) 2011-11-06 08:14:34 +00:00
comm Mark global functions and/or variables in comm(1) static where possible. 2011-11-06 18:49:10 +00:00
compile_et
compress Mark global functions and/or variables in compress(1) static where possible. 2011-11-06 18:49:16 +00:00
cpio Correctly link bsdcpio and bsdtar against libmd and libcrpyto 2011-08-01 08:22:40 +00:00
cpuset Add missing static keywords to cpuset(1) 2011-11-06 08:14:40 +00:00
csplit Add missing static keywords to csplit(1) 2011-11-06 08:14:45 +00:00
csup Handle the situation where fixups_close() has been called but more fixups 2011-10-04 14:26:45 +00:00
ctags Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
cut Add missing static keywords to cut(1) 2011-11-06 08:14:51 +00:00
dc Remove unneeded CFLAGS. 2011-11-07 09:42:22 +00:00
dig
dirname Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
du Simplify getopt switch parsing. 2011-11-08 11:36:46 +00:00
ee
elf2aout
elfdump o Use C99 designated initializer to properly handle ELFOSABI_STANDALONE. 2011-10-16 14:11:05 +00:00
enigma Mark global functions and/or variables in enigma(1) static where possible. 2011-11-06 18:49:23 +00:00
env Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
expand Mark global functions and/or variables in expand(1) static where possible. 2011-11-06 18:49:30 +00:00
false Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
fetch latin1 -> utf8 2011-10-04 15:00:54 +00:00
file
file2c
find Get rid of major/minor number distinction. 2011-09-28 18:53:36 +00:00
finger Build finger(1) with WARNS=6. 2011-10-14 07:24:23 +00:00
fmt Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
fold Add missing static keywords to fold(1) 2011-11-06 08:15:23 +00:00
from Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
fstat Mark global functions and/or variables in fstat(1) static where possible. 2011-11-06 18:49:36 +00:00
fsync
ftp Merge tnftp-20100108 from the vendor branch into head. 2011-06-20 08:00:32 +00:00
gcore Match size_t and ssize_t by using %zu and %zd instead of %d. 2011-07-11 05:46:15 +00:00
gencat
getconf
getent Print INIT_PROCESS and LOGIN_PROCESS entries as well. 2011-10-27 16:20:29 +00:00
getopt Fix typo in example getopt(1) script: $i vs $1 [1] 2011-01-26 18:43:15 +00:00
gprof Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
grep - Fix installation when WITH_BSD_GREP is set to yes 2011-10-23 16:04:07 +00:00
gzip According to the NetBSD foundation [1]: 2011-10-16 07:35:26 +00:00
head Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
hesinfo
hexdump Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
host
iconv Remove redundant assignments to WARNS. 2011-06-06 20:24:17 +00:00
id Correct the change made in r227166. 2011-11-06 09:09:45 +00:00
indent
ipcrm
ipcs Remove semaphore map entry count "semmap" field and its tuning 2011-07-14 14:18:14 +00:00
join Add missing static keywords to join(1) 2011-11-06 08:15:35 +00:00
jot Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
kdump It turns out that truss also used kdump's mkioctls script, and expected 2011-10-21 11:08:25 +00:00
keylogin
keylogout
killall Simplify various code that allowed for sys_signame being lower case. 2011-03-06 19:50:47 +00:00
ktrace Make ktrace(1) build cleanly at WARNS level 6 by completely rethinking the 2011-10-18 08:26:12 +00:00
ktrdump Add -H flag to print thread id. 2011-01-26 06:36:14 +00:00
lam Mark global functions and/or variables in lam(1) static where possible. 2011-11-06 18:49:41 +00:00
last Add missing static keywords to last(1) 2011-11-06 08:15:41 +00:00
lastcomm Remove unneeded headers. 2011-06-21 20:36:10 +00:00
ldd Fix clang warnings. 2011-06-18 13:56:33 +00:00
leave Build last(1) and leave(1) with WARNS=6. 2011-10-14 07:26:20 +00:00
less Regenerated with latest configure script. 2011-05-10 01:05:41 +00:00
lessecho
lesskey
lex Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
limits Add link to rctl(8). 2011-04-10 10:17:01 +00:00
locale
locate
lock Add missing static keywords to lock(1) 2011-11-06 08:15:48 +00:00
lockf
logger Add missing static keywords to logger(1) 2011-11-06 08:15:53 +00:00
login Call pam_setcred() before login_getpwclass to support home directories 2011-05-03 10:18:27 +00:00
logins
logname Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
look Add missing static keywords to look(1) 2011-11-06 08:15:59 +00:00
lorder Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
lsvfs
lzmainfo Remove unneeded WARNS=3 lines. 2011-10-16 08:04:43 +00:00
m4 Mark global functions and/or variables in m4(1) static where possible. 2011-11-06 18:49:48 +00:00
mail o Fix -u flag description: it takes a username as an argument. 2010-12-25 17:35:30 +00:00
make Add missing static keywords to make(1) 2011-11-06 08:16:06 +00:00
makewhatis
man Clean up markup. 2011-08-04 08:50:33 +00:00
mesg Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
minigzip
ministat Add missing static keywords to ministat(1) 2011-11-06 08:16:11 +00:00
mkcsmapper [mdoc] Fixed .Dt call. 2011-05-25 14:13:53 +00:00
mkcsmapper_static Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
mkdep Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mkesdb [mdoc] Fixed .Dt call. 2011-05-25 14:13:53 +00:00
mkesdb_static Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
mkfifo Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mklocale Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mkstr Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mktemp Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mkuzip Fixed an embedded shell script. 2011-05-13 09:55:48 +00:00
msgs Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mt Add missing static keywords to mt(1) 2011-11-06 08:16:18 +00:00
nc
ncal Fix typo in order of markup and text. 2011-07-11 10:42:36 +00:00
ncplist Fix ncplist to build with WARNS=6. 2011-10-16 10:00:28 +00:00
ncplogin Remove duplicated header files 2011-06-24 07:18:44 +00:00
netstat Fix the following bugs related to the SCTP support of netstat: 2011-07-22 16:42:12 +00:00
newgrp Partially revert r226274, the old code was right. 2011-10-16 07:05:43 +00:00
newkey
nfsstat Fix nfsstat(1) so that it prints out correct stats for the 2011-08-23 13:44:56 +00:00
nice Not only had I included a syntax / style error, nice.3 is also 2011-02-26 11:20:51 +00:00
nl Make nl(1) build with WARNS=6. 2011-10-14 07:28:39 +00:00
nohup Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
nslookup
nsupdate bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
opieinfo
opiekey
opiepasswd
pagesize Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
passwd Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
paste Mark global functions and/or variables in paste(1) static where possible. 2011-11-06 18:49:53 +00:00
pathchk
perror
pr Add missing static keywords to pr(1) 2011-11-06 08:16:24 +00:00
printenv Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
printf printf(1): Document that %c and precision for %b/%s use bytes, not chars. 2011-05-28 14:32:47 +00:00
procstat When displaying process virtual memory mappings print superpage 2011-11-07 21:16:19 +00:00
quota Add missing static keywords to quota(1) 2011-11-06 08:16:29 +00:00
rctl Rename resource names to match these in login.conf. 2011-07-14 19:18:17 +00:00
renice Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
rev Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
revoke
rlogin Raise rlogin back to a WARNS level of 6. 2011-04-27 17:36:37 +00:00
rpcgen Use strlcpy(). 2011-07-11 05:31:52 +00:00
rpcinfo Constify a few string variables. While I'm there, also convert usage() to 2011-05-13 22:35:06 +00:00
rs Add missing static keywords to rs(1) 2011-11-06 08:16:35 +00:00
rsh Add __unused 2010-12-20 08:47:43 +00:00
rup Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ruptime Add missing static keywords to ruptime(1) 2011-11-06 08:16:41 +00:00
rusers Add missing static keywords to rusers(1) 2011-11-06 08:16:47 +00:00
rwall Add missing static keywords to rwall(1) 2011-11-06 08:16:53 +00:00
rwho Add missing static keywords to rwho(1) 2011-11-06 08:16:59 +00:00
script In r225809 the intention was to send VEOF only once if STDIN was not a 2011-10-15 19:08:22 +00:00
sed Reword '}' description to sound more clear. 2011-10-29 06:13:47 +00:00
seq Add missing static keywords to seq(1) 2011-11-06 08:17:05 +00:00
setchannel
shar Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
showmount Ensure there is a whitespace after a mount point. 2011-05-24 06:56:40 +00:00
smbutil
sockstat
split Add missing static keywords to split(1) 2011-11-06 08:17:11 +00:00
stat Synthesize the change from NetBSD's 1.33: 2011-02-11 05:33:35 +00:00
su Undo r226423. 2011-10-16 09:09:33 +00:00
systat Use integer to store the result of getch(). 2011-10-16 08:36:10 +00:00
tabs
tail Add missing static keywords to tail(1) 2011-11-06 08:17:17 +00:00
talk Add missing static keywords to talk(1) 2011-11-06 08:17:23 +00:00
tar Typo from previous commit. Urgh. 2011-10-22 16:53:29 +00:00
tcopy Add missing static keywords to tcopy(1) 2011-11-06 08:17:29 +00:00
tee Add missing static keywords to tee(1) 2011-11-06 08:17:35 +00:00
telnet
tftp peeraddr is only used in sizeof() evaluations, so instead of declaring it 2011-07-11 05:57:49 +00:00
time Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tip Flush the scriptfile whenever we see a non-graphical character to get 2011-05-10 10:58:57 +00:00
top Rework the dynamic per-CPU stats code a bit. Always set 'statics->ncpus' 2011-07-18 21:15:47 +00:00
touch Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tput Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tr Add missing static keywords to tr(1) 2011-11-06 08:17:42 +00:00
true Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
truncate
truss It turns out that truss also used kdump's mkioctls script, and expected 2011-10-21 11:08:25 +00:00
tset Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tsort Add missing static keywords to tsort(1) 2011-11-06 08:17:47 +00:00
tty Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ul Add missing static keywords to ul(1) 2011-11-06 08:17:53 +00:00
uname Add missing static keywords to uname(1) 2011-11-06 08:17:59 +00:00
unexpand Add missing static keywords to unexpand(1) 2011-11-06 08:18:05 +00:00
unifdef Mark global functions and/or variables in unifdef(1) static where possible. 2011-11-06 18:50:00 +00:00
uniq Add missing static keywords to uniq(1) 2011-11-06 08:18:11 +00:00
units Add missing static keywords to units(1) 2011-11-06 08:18:17 +00:00
unvis Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
unzip Fix broken mdoc. 2011-08-01 22:21:18 +00:00
usbhidaction Add missing static keywords to usbhidaction(1) 2011-11-06 08:18:23 +00:00
usbhidctl Add missing static keywords to usbhidctl(1) 2011-11-06 08:18:30 +00:00
users Let the size of the namebuf depend on the size of the ut_user field. 2011-06-18 07:47:15 +00:00
uudecode Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
uuencode Add missing static keywords to uuencode(1) 2011-11-06 08:18:35 +00:00
vacation
vgrind Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
vi
vis Add missing static keywords to vis(1) 2011-11-06 08:18:42 +00:00
vmstat sintrcnt/sintrnames is the address of the size, not the actual size. 2011-07-18 19:42:18 +00:00
w Add missing static keywords to w(1) 2011-11-06 08:18:47 +00:00
wall Add missing static keywords to wall(1) 2011-11-06 08:18:55 +00:00
wc Add missing static keywords to wc(1) 2011-11-06 08:19:00 +00:00
what Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
whereis Mark global functions and/or variables in whereis(1) static where possible. 2011-11-06 18:50:19 +00:00
which Mark global functions and/or variables in which(1) static where possible. 2011-11-06 18:50:26 +00:00
who Add the XSI option -b to show date of the last reboot. 2011-10-28 12:47:37 +00:00
whois Mark global functions and/or variables in whois(1) static where possible. 2011-11-06 18:50:33 +00:00
write Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
wtmpcvt
xargs Discourage from using "cp -r". 2011-03-24 13:52:59 +00:00
xinstall Add missing static keywords to xinstall(1) 2011-11-06 08:19:07 +00:00
xlint lint: Fix lseek() argument order. 2011-11-05 22:25:15 +00:00
xstr Mark global functions and/or variables in xstr(1) static where possible. 2011-11-06 18:50:39 +00:00
xz
xzdec Remove unneeded WARNS=3 lines. 2011-10-16 08:04:43 +00:00
yacc Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
yes Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ypcat
ypmatch
ypwhich
Makefile Add WITHOUT_UTMPX switch to the build system. 2011-06-17 21:30:21 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.ia64
Makefile.inc
Makefile.powerpc
Makefile.sparc64