freebsd-dev/usr.bin
Dimitry Andric 07b202a847 Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.

Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang       (disables -Werror)
- NO_WCAST_ALIGN.clang  (disables -Wcast-align)
- NO_WFORMAT.clang	(disables -Wformat and friends)
- CLANG_NO_IAS		(disables integrated assembler)
- CLANG_OPT_SMALL	(adds flags for extra small size optimizations)

As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf!  For clang, use the following:

CC=clang
CXX=clang++
CPP=clang-cpp

MFC after:	2 weeks
2012-02-28 18:30:18 +00:00
..
alias Make hash, type and ulimit available via execve(). 2010-04-25 17:38:53 +00:00
apply Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ar Update libarchive to 3.0.3 2012-02-25 10:58:02 +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 Remove extra sentence, a leftover from r202845. 2012-01-25 18:49:11 +00:00
biff Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
bluetooth
brandelf Fix warning when compiling with gcc46: 2012-01-10 02:58:29 +00:00
bsdiff Silence bogus warning when compiling with gcc46: 2012-01-10 02:58:44 +00:00
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 Add underscore symbol to the end of definition strings 2012-02-24 11:40:20 +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 mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
checknr Mark global functions and/or variables in checknr(1) static where possible. 2011-11-06 18:49:03 +00:00
chkey Handle NULL return from crypt(3). Mostly from DragonFly 2012-02-22 06:27:20 +00:00
chpass Remove unnecessary cast 2012-02-14 10:11:45 +00:00
cksum Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
clang Add a WITH_CLANG_EXTRAS option for src.conf(5), disabled by default, 2012-02-05 23:56:22 +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 Don't generate input() since it's not used. 2010-11-22 14:16:22 +00:00
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 Add helpful clarification text. While not strictly necessary, these 2011-11-16 22:02:59 +00:00
compile_et
compress Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
cpio Update libarchive to 3.0.3 2012-02-25 10:58:02 +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 Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
ctags Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ctlstat Fix building ctlstat with clang. 2012-01-12 22:12:42 +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 du: Allow multiple -HLP options, the last one wins. 2011-12-17 23:18:14 +00:00
ee
elf2aout
elfdump Don't extract the n_type value from the elf header, since it is never used 2012-02-16 05:16:55 +00:00
enigma Handle NULL return from crypt(3). Mostly from DragonFly 2012-02-22 06:27:20 +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 Fix two issues related to the use of SIGINFO in fetch(1) to display 2012-01-18 15:13:21 +00:00
file
file2c
find Replace char copyright[] by static const char copyright[]. 2011-12-10 18:11:06 +00:00
finger Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +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 Backout r230934 which didn't work with unix sockets and 2012-02-27 17:39:34 +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 Removed unused code: fixes compiler warning with CC=gcc46 2012-02-16 05:17:01 +00:00
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 More fixes for correct printf length modifiers usr.bin/gprof. 2011-12-17 14:51:24 +00:00
grep Remove duplicate line from usage 2012-01-15 17:01:28 +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 Fix decoding of escape sequences in format strings: 2012-01-28 18:49:04 +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 Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
ipcrm
ipcs Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +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 Fix style in previous commit. 2012-02-24 20:12:53 +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 - Replace "wtmp" with "utx.log" because last(1) no longer reads wtmp. 2012-01-22 11:34:24 +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 Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
limits Add -P option to allow get and set limits for other processes. 2012-01-25 20:14:41 +00:00
locale
locate Touch up some more small typos missed in the previous round. 2012-01-05 21:36:45 +00:00
lock Handle NULL return from crypt(3). Mostly from DragonFly 2012-02-22 06:27:20 +00:00
lockf mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
logger Add missing static keywords to logger(1) 2011-11-06 08:15:53 +00:00
login Remove unnecessary cast 2012-02-14 10:11:45 +00:00
logins Reencode files from latin1 to UTF-8. 2011-12-30 10:59:15 +00:00
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 Globally replace u_int*_t from (non-contributed) man pages. 2012-02-12 18:29:56 +00:00
mail fgets(3) returns a pointer, so compare against NULL, not integer 0. 2012-01-13 06:51:15 +00:00
make Include target names in diagnostic output. 2012-02-12 05:34:01 +00:00
makewhatis
man Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +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 - Remove a GCC-specific compiler flag that was added before to eliminate 2011-12-21 12:07:14 +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
mkulzma mkulzma used to create lzma compressed images, just like mkuzip do. 2012-01-04 23:45:10 +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 In usr.bin/mt/mt.c, the c_code member of struct commands should really 2011-12-17 02:23:30 +00:00
nc MFV: nc(1) from OpenBSD 4.8. 2010-10-19 00:01:53 +00:00
ncal o Use ISO 3166 county code for Sweden. 2012-02-22 21:08:58 +00:00
ncplist Fix warning when compiling with gcc46: 2012-01-10 02:58:20 +00:00
ncplogin Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
netstat Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to 2012-02-28 18:30:18 +00:00
newgrp Handle NULL return from crypt(3). Mostly from DragonFly 2012-02-22 06:27:20 +00:00
newkey mdoc cleanup 2010-06-02 10:20:23 +00:00
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 pathchk(1): Fix the example so it allows arbitrary pathnames. 2010-05-01 22:10:45 +00:00
perror
pr Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
printenv Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
printf Style cleanups for printf. 2012-01-12 20:30:20 +00:00
procstat When displaying security credential information show also process umask. 2012-02-26 14:27:34 +00:00
quota Add missing static keywords to quota(1) 2011-11-06 08:16:29 +00:00
rctl Formatting fixes: 2011-12-23 00:29:01 +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 Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
rpcgen In usr.bin/rpcgen/rpc_main.c, use execvp(3) instead of execv(3), so 2012-02-06 21:35:11 +00:00
rpcinfo Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +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 Apply style(9) and unbreak build. 2010-11-06 15:04:56 +00:00
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 Try to avoid ambiguity when sysctl returns ENOMEM additionally 2012-02-01 18:03:21 +00:00
split Fix warning when compiling with gcc46: 2012-01-10 02:55:43 +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 Whitespace fixes. 2012-02-05 09:17:49 +00:00
tabs
tail Add missing static keywords to tail(1) 2011-11-06 08:17:17 +00:00
talk Remove hand-written version of strcspn(). 2012-01-03 11:13:07 +00:00
tar Update libarchive to 3.0.3 2012-02-25 10:58:02 +00:00
tcopy Add missing static keywords to tcopy(1) 2011-11-06 08:17:29 +00:00
tee Reverting last change r231449 (fix bin/164947) due to concerns voiced 2012-02-11 16:34:03 +00:00
telnet
tftp fgets(3) returns a pointer, so compare against NULL, not integer 0. 2012-01-13 06:51:15 +00:00
time Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tip Make tip exit if the device disappears, for instance when unplugging 2012-01-28 20:45:47 +00:00
top Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
touch Remove useless and potentially dangerous rw() function which tries to 2012-02-04 13:37:31 +00:00
tput Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tr Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +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 Add more static keywords to truss(1) source code. 2011-12-10 18:27:55 +00:00
tset Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +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 fgets(3) returns a pointer, so compare against NULL, not integer 0. 2012-01-13 06:51:15 +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 Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to 2012-02-28 18:30:18 +00:00
vgrind Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
vi
vis Add missing static keywords to vis(1) 2011-11-06 08:18:42 +00:00
vmstat In usr.bin/vmstat/vmstat.c, cast several printf field widths to int, and 2011-12-17 19:22:24 +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 Reencode files from latin1 to UTF-8. 2011-12-30 10:59:15 +00:00
which Mark global functions and/or variables in which(1) static where possible. 2011-11-06 18:50:26 +00:00
who And of course, I forgot to add -a to the usage. 2012-02-11 21:50:44 +00:00
whois Mark global functions and/or variables in whois(1) static where possible. 2011-11-06 18:50:33 +00:00
write Fix write(1) to support wide characters. 2012-02-13 14:40:15 +00:00
xargs xargs: Remove an unclear comment that only tried to repeat what the code did 2012-02-26 23:06:30 +00:00
xinstall Add missing static keywords to xinstall(1) 2011-11-06 08:19:07 +00:00
xlint Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
xstr Mark global functions and/or variables in xstr(1) static where possible. 2011-11-06 18:50:39 +00:00
xz Upgrade xz to git snapshot as of 20101010 2010-10-11 21:16:50 +00:00
xzdec Remove unneeded WARNS=3 lines. 2011-10-16 08:04:43 +00:00
yacc Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +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 Variable 'getmap' is unused. 2010-06-19 16:24:55 +00:00
Makefile Remove wtmpcvt(1). 2012-01-13 15:40:49 +00:00
Makefile.amd64 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.arm Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.i386 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.ia64 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.inc
Makefile.powerpc Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.sparc64 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00