104 Commits

Author SHA1 Message Date
christos
f73ad3bad9 fix unused variable warnings. 2013-10-19 17:16:37 +00:00
wiz
becb6b8fff Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
joerg
9b3bb3443b Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
2012-08-10 12:10:27 +00:00
nakayama
57a91d6250 Fix build on mips (NOAOUT case). 2011-08-31 13:09:10 +00:00
joerg
ef3e6e6424 ANSIfy + __printflike + __dead 2011-08-30 19:49:10 +00:00
joerg
6e5fe150f1 Use of non-literal format strings 2011-08-25 16:47:20 +00:00
christos
c0180dc6d9 gcc-4.5 is picky about potential negative indexes. appease it. 2011-08-16 16:45:20 +00:00
mrg
d9b5972014 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
mrg
174f8a4a36 remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
joerg
e56c1f58dd Kill redundant () 2011-05-24 13:08:16 +00:00
drochner
fa3eebf9dc ANSIfy, sprinkle "const" 2009-11-17 18:58:07 +00:00
snj
59ff02bd7c Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
2009-10-20 00:51:13 +00:00
joerg
fe7d874daf Fix markup. Handle the DECnet documentation like a journal. 2009-10-04 20:53:23 +00:00
he
3469d76593 Use NOAOUT so that this builds without a.out support, and enable
that define if we're building for mips.
2009-08-20 22:26:19 +00:00
he
ceb32b93af Define NOAOUT if we're building for mips. 2009-08-20 21:59:12 +00:00
lukem
75f93ed674 Fix WARNS=4 issues (many -Wshadow, -Wcast-qual) 2009-04-17 04:16:57 +00:00
joerg
879255f896 Fix preamble 2009-03-11 13:59:33 +00:00
apb
e620f0410d Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
gmcgarry
8c68c4f018 Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
lukem
78effd319d Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
martin
56ff8c2329 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tls
49f58f8893 Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
elad
cb3fc6416d PR/18906: roskens at elfin dot net: misc. select() to poll() updates.
Adapted to -current by myself, thanks for the patch!
2006-10-07 17:27:57 +00:00
christos
8d2d10aa05 Coverity CID 2524: Return error instead of trying to allocate random bytes
from the stack.
2006-05-25 00:27:56 +00:00
mrg
2d66b4f2c1 use -Wno-pointer-sign with GCC4. 2006-05-12 01:54:57 +00:00
mrg
64f5cca084 remove a couple of extra externs 2006-05-12 01:54:32 +00:00
christos
4e83c41d47 Use cloning bpf. 2004-12-01 23:15:08 +00:00
lukem
d1330fc30d Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
setting NOLINT, NOPIC, NOPROFILE (etc)
2004-05-23 02:24:50 +00:00
simonb
729be59562 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
darrenr
9cfabb6d83 With recent changes to BPF, pushing the default buffer size to 1MB, running
a bunch of small daemons that seem small packet flows can easily chew up
significant kernel memory (each BPF device opened takes 2*buffersize of
wired memory.)  In each of these applications, add code to set the buffer
size to 32k before setting the interface.
2004-04-10 17:53:05 +00:00
wiz
3be975349e Remove trailing whitespace. 2004-01-23 20:55:19 +00:00
fair
1a50cff2d7 Commit patch from PR 22539 to document adding ".SYS" to filenames.
New sentence, new line. Change date. Expand "MOP" as Maintenance
Operations Protocol for permuted index.
2004-01-23 20:46:38 +00:00
wiz
8d10b727b7 Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-10 08:51:51 +00:00
lukem
c77e1a0b77 Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem
f8f1b72461 support MAKEVERBOSE 2003-10-19 06:12:07 +00:00
itojun
cd48fc30d6 SIOCGIFCONF -> getifaddrs conversion 2003-08-18 05:39:52 +00:00
itojun
73ef846074 use bounded string op 2003-07-14 08:36:34 +00:00
christos
e20fc78a98 interactive errors. 2003-04-20 00:19:56 +00:00
christos
591d0586bc Interactive logs 2003-04-20 00:19:05 +00:00
christos
c27d960b62 interactive error output. 2003-04-20 00:18:33 +00:00
christos
8497de7362 new logging files. 2003-04-20 00:17:42 +00:00
christos
1b89cfc426 PR/3343: Jonathan Stone: Errors and warnings to stderr if interactive 2003-04-20 00:17:22 +00:00
wiz
bb2aebf7b2 .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
thorpej
fae2a5b032 Allow more than one interface to be specified on the command line. 2002-11-05 14:18:04 +00:00
thorpej
ec11878985 For ELF, set d->loadaddr to 0, as we do for a.out.
On both my 4000/60 and SIMH, a boot program NOT loaded at 0 consistently
is loaded +0x5200 too high in memory, which which causes a fatal trap back
into the console even before the self-relocating code can run.  "wHATEver."
2002-11-05 06:08:29 +00:00
thorpej
10b8b2f790 Make sure to fill in the load address in the dest. MOP header. 2002-11-05 05:06:05 +00:00
thorpej
0e44fbf0ba Show the load address in hex. 2002-11-05 04:54:26 +00:00
mycroft
27fea982b0 select() -> poll() 2002-09-20 14:16:03 +00:00
lukem
a6819b86f6 minor makefile delint 2002-09-18 13:31:52 +00:00
itojun
284e9bd2d0 string manipulation fixes. from openbsd 2002-08-22 07:18:42 +00:00