Commit Graph

123 Commits

Author SHA1 Message Date
martin
827c798e7b Fix obvious copy&pasto 2020-10-29 08:50:42 +00:00
abs
f6c2394005 Update mopd for 4k VAX page size and support 1k page a.out binaries
From dreamlayers
2020-10-27 17:16:24 +00:00
abs
c185136d00 Fix Linux pfInit() parameter order for mopd
From dreamlayers
2020-10-27 17:07:14 +00:00
joerg
339d115139 loop.c owns iflist 2020-04-22 23:57:56 +00:00
joerg
14fa6887c5 Let loop.c own iflist 2020-04-22 23:55:29 +00:00
msaitoh
a0403cde04 s/transfered/transferred/ 2019-12-27 09:41:48 +00:00
christos
7300145099 Drop the advertising clause to match the other files. 2019-12-07 04:55:01 +00:00
mrg
de11d87641 introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
2019-10-13 07:28:04 +00:00
christos
3e135a8eaf delete generated file 2016-06-08 02:58:19 +00:00
christos
56eb3ad46e Port to linux 2016-06-08 01:19:05 +00:00
christos
7a9cbcee88 port to linux 2016-06-08 01:17:54 +00:00
christos
a8c503e1c4 Port to linux 2016-06-08 01:16:35 +00:00
christos
3af7e55f48 compile on linux 2016-06-08 01:15:26 +00:00
christos
32c5e1062b portability macros. 2016-06-08 01:13:14 +00:00
christos
cdd21bd307 Quick+Dirty port to linux 2016-06-08 01:11:49 +00:00
snj
f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
dholland
d78881479c Fix broken snprintf usage; noted in PR 47976 from Henning Petersen.
As a bonus, this removes the nonliteral format arguments.
2014-07-27 04:38:03 +00:00
joerg
e553fe2cbd No need for libkvm here. 2014-05-30 02:16:10 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
christos
0a77b69ab6 fix unused variable warnings. 2013-10-19 17:16:37 +00:00
wiz
a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
joerg
9edf9a0457 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
65e58969b4 Fix build on mips (NOAOUT case). 2011-08-31 13:09:10 +00:00
joerg
732d96f1f0 ANSIfy + __printflike + __dead 2011-08-30 19:49:10 +00:00
joerg
9c4f17f60e Use of non-literal format strings 2011-08-25 16:47:20 +00:00
christos
21a5b878f0 gcc-4.5 is picky about potential negative indexes. appease it. 2011-08-16 16:45:20 +00:00
mrg
c111245a78 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
75e42fa7da 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
77a6772536 Kill redundant () 2011-05-24 13:08:16 +00:00
drochner
86b474fa0d ANSIfy, sprinkle "const" 2009-11-17 18:58:07 +00:00
snj
07ce40632e 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
4ab84a7335 Fix markup. Handle the DECnet documentation like a journal. 2009-10-04 20:53:23 +00:00
he
463a3128d5 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
2a7ab7d442 Define NOAOUT if we're building for mips. 2009-08-20 21:59:12 +00:00
lukem
f7271183be Fix WARNS=4 issues (many -Wshadow, -Wcast-qual) 2009-04-17 04:16:57 +00:00
joerg
afe5a26320 Fix preamble 2009-03-11 13:59:33 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
gmcgarry
3c9a95916d 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
66176dfdff 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
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tls
4147a3c54a 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
1232ea27c4 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
bd00756294 Coverity CID 2524: Return error instead of trying to allocate random bytes
from the stack.
2006-05-25 00:27:56 +00:00
mrg
e13fd87f5f use -Wno-pointer-sign with GCC4. 2006-05-12 01:54:57 +00:00
mrg
132e581078 remove a couple of extra externs 2006-05-12 01:54:32 +00:00
christos
c438716d36 Use cloning bpf. 2004-12-01 23:15:08 +00:00
lukem
b817247988 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
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
darrenr
221fa57241 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
27ccd5bd0f Remove trailing whitespace. 2004-01-23 20:55:19 +00:00