Commit Graph

81 Commits

Author SHA1 Message Date
joerg dccf569e0e Use __dead. 2011-08-29 20:38:53 +00:00
christos 93bbed154f use const char [] for format 2011-08-21 08:59:50 +00:00
christos 6f0b276b18 fix non-literal strings 2011-08-16 08:02:18 +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
wiz 7e975aaf96 Add missing breaks in switch statement. Found by cppcheck. 2011-01-04 09:16:17 +00:00
lukem 7affd6558f Fix -Wsign-compare issues 2009-04-15 00:13:50 +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
xtraeme c8f61d2b50 WARNS=4 2008-05-02 19:22:10 +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
tls be45f4d02a For FORTIFY_SOURCE: do not pretend to convert code from b* to mem* by
using a #define to turn one into the other, this is pointless and causes
more portability issues than it solves (admittedly, in the year 1702 when
this code was written the opposite may have been the case).
2007-05-27 16:31:41 +00:00
msaitoh 8ce1f4fff2 fix typos 2007-04-29 20:23:34 +00:00
hubertf e4dc235f82 - Remove unused ctype.h header
- Remove unused debug and progname variables
 - Use return instead of exit() for quiting at end of main()
 - Print errors to stderr instead of stdout

From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:16:51 +00:00
reed 5fe28dc7e5 Fix typo or mispelling. 2006-06-17 04:58:14 +00:00
christos 1dc235cd39 Coverity CID 2448: Remove extra NULL check. 2006-05-23 01:29:31 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
mrg 0c37c63edc change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
wiz 5d1e8b2745 Fix some typos. 2006-02-25 02:28:55 +00:00
hira c79d0a54ae usage: Add -f and -m. Use getprogname(). Print to strerr.
Reviewed by uebayasi@.  This closes PR bin/26535.
2004-11-17 13:28:31 +00:00
hira 75febfe0c8 usage: Print program name. Whitespace nit.
Reviewed by uebayasi@.  This closes PR bin/26534.
2004-11-17 13:21:09 +00:00
dsl e09553f3ac Add (unsigned char) cast to ctype functions 2004-10-29 20:33:06 +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
itojun 757e458559 SIOCGIFCONF -> getifaddrs conversion 2003-08-18 05:39:52 +00:00
itojun 47a6a58fe5 use bounded string op 2003-07-14 08:36:34 +00:00
itojun 5402d14cf4 use boundedd string ops 2003-07-14 06:08:04 +00:00
itojun 89bf339ad7 use strlcpy/strlcat 2003-05-17 20:58:39 +00:00
wiz cd68fb44fb guarantee, not guarentee. Idea from miod@openbsd. 2003-02-02 10:24:38 +00:00
wiz 7bd6fd354d unknown, not unkown. Noted by mjl. 2003-01-28 22:19:22 +00:00
wiz c053751628 compatibility, not compatiblity. 2003-01-06 13:26:24 +00:00
wiz a125d07668 Fix typos. Found by Adrian Mrva. 2002-10-29 16:12:25 +00:00
mycroft ab637af34b Minor cosmetica. 2002-09-20 19:23:58 +00:00
mycroft 9b3fb0ad17 Fix pluralization in a syslog message. 2002-09-18 23:16:13 +00:00
mycroft c563d4c7c3 select() -> poll() 2002-09-18 23:13:39 +00:00
lukem c52b93f508 minor makefile delint 2002-09-18 13:31:52 +00:00
wiz aae9c2a083 De-register. 2002-07-14 00:30:02 +00:00
wiz 131109e49e ANSIfy. Remove ifndef __STDC__. 2002-07-13 23:56:39 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz 320ebd413b Whitespace nits. 2002-01-19 03:06:54 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
wiz 1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
wiz 83dadeb5b0 ether_hostton(3), not ether_hton(3) (thanks, Klaus!) 2001-04-11 19:32:25 +00:00
lukem 443a19e035 convert to using .WAIT 2001-01-09 03:13:39 +00:00
enami 270db080e9 Use PRINTOBJDIR. 2001-01-07 08:00:54 +00:00
agc f1eeab30f5 Language police:
"It's" is short for "it is".
	The possessive pronoun is "its".
2001-01-05 17:05:26 +00:00
is d8302e2d73 More format string cleanups by sommerfeld. 2000-10-11 20:23:46 +00:00
kleink 99c164dd65 Need <sys/param.h> for MAXHOSTNAMELEN. 1999-09-26 10:27:40 +00:00
lukem 7e1c62baf8 set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp> 1999-03-13 23:17:46 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
briggs 833414c6d9 Missing ). 1999-01-31 19:12:27 +00:00
mrg a8f9f46183 ensure C strings are nul terminated, and do not overflow buffers. 1999-01-31 10:06:16 +00:00