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
roy
258cf0abec
Add capfile(5) to describe the termcap format.
...
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
joerg
0be065ab9f
More time_t fallout.
2012-03-02 02:58:46 +00:00
joerg
4c7714ac9f
Fix format strings to deal with 64bit time_t.
2012-03-01 22:31:48 +00:00
plunky
9f61b80465
NULL does not need a cast
2011-08-31 16:24:54 +00:00
joerg
bec77c5f43
Use __dead
2011-08-31 13:32:36 +00:00
joerg
011ce1522e
Use __dead and __printflike
2011-08-31 13:30:44 +00:00
christos
6d3347a9d8
Avoid non-literal format strings
2011-08-16 10:39:31 +00:00
christos
73de74d401
document non-literal format string (unsafe)
2011-08-16 08:18:19 +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
0f19a96b11
Kill redundant externs
2011-05-24 13:02:37 +00:00
he
76d4444c78
When using -lcurses, you also need -lterminfo.
...
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
2010-02-06 23:45:24 +00:00
roy
98eb889579
Userland now builds and uses terminfo instead of termcap.
...
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
christos
e5f4435e87
option noinput
2009-10-29 14:39:23 +00:00
drochner
0fa7059102
define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160
2009-04-20 16:05:29 +00:00
lukem
18f69179c9
Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)
2009-04-16 05:56:32 +00:00
joerg
d942d2f2cd
Don't depend on magic default value for -offset. Don't use .br, use a
...
paragraph. Use more sane indentation and avoid compact style for huge
list to make it more readable.
2009-04-09 02:30:51 +00:00
joerg
afe5a26320
Fix preamble
2009-03-11 13:59:33 +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
perry
6bc17775e4
Remove __DATE__ and __TIME__ from usage().
...
This makes successive builds bit identical. The build date and time is
not very useful for debugging purposes.
2008-07-15 17:51:38 +00:00
martin
11a6dbe728
Convert TNF licenses to new 2 clause variant
2008-04-30 13:10:46 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
matt
05f7d79518
Fix incorrect prototype.
2008-02-16 07:26:54 +00:00
pooka
584065ec56
Check against errors when reading trace device. CID 4561.
2007-09-08 15:34:23 +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
hubertf
889da1779b
* Don't include headers twice
...
* Remove a few trailing whitespaces
* Rearrange and join to one #if for some headers
Patch contributed by Slava Semushin <slava.semushin@gmail.com>
in private mail.
2007-01-16 17:32:04 +00:00
hubertf
a383094e4a
Remove duplicate #include <errno.h>
...
From Slava Semushin <slava.semushin@gmail.com> in private mail
2007-01-16 12:07:08 +00:00
christos
0bc3d9d62f
Coverity CID 3792: Avoid double free; while I am here avoid NULL deref.
2006-09-27 21:39:15 +00:00
martin
ad53adb7c1
Make "entries" optional - so that `echo system > /etc/isdn/isdnd.rc; isdnd`
...
works.
2006-05-27 20:11:14 +00:00
christos
d62ef54061
Coverity CID 1442: Update the table, and use the table size instead of
...
hard-coded constant; fixes static buffer overflow.
2006-05-24 23:51:39 +00:00
christos
4f8217f507
Coverity CID 796: Add an extra test to pacify coverity.
2006-05-24 23:44:34 +00:00
christos
aecdec648e
Coverity CID 834: Add a test to pacify coverity.
2006-05-24 23:43:11 +00:00
christos
84a9244669
Coverity CID 1753: don't leak fp's.
2006-05-24 23:41:44 +00:00
mrg
10c621b36e
sprinkle some -Wno-pointer-sign for now.
2006-05-11 08:55:10 +00:00
mrg
0dc9fb54b5
u_char -> char in one place.
2006-05-11 07:08:40 +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
elad
615bdca25f
Fix three off-by-ones found by Coverity, CID 1489.
2006-03-17 21:10:02 +00:00
elad
0ba17c4726
/dev/i4b -> /dev/isdn. From ulfdoz.
2005-12-26 19:11:17 +00:00
lukem
bbd17ef8af
Don't attempt to use an uninitialized variable in a debug message.
...
Detected with gcc -Wuninitialized.
2005-06-02 05:54:44 +00:00
dsl
c32255add6
Add (unsigned char) cast to ctype functions
...
Change validation of -t<number> to use return ptr of strtoul (not isdigit)
2004-10-30 08:31:39 +00:00
dsl
91fe418901
Add (unsigned char) cast to ctype functions
2004-10-30 08:19:30 +00:00
martin
812e909997
Make "local-phone-dialout" optional.
...
This makes creating standard config files for peers that do not care about
the calling number easy and helps roaming users.
2004-05-06 21:13:28 +00:00
pooka
3c143ba9cd
* Make isdnd unlearn that an isdn interface has two B channels, so that it
...
is possible to support 30-channel primary rate adapters.
Mostly from jml@cubical.fi via FreeBSD.
* Follow kernel naming trend: bri => isdnif
2004-03-28 20:49:22 +00:00
martin
3259bd6456
Bail out with a proper error message when mandatory configuration entries
...
are missing. While there improve error messages slightly.
Inspired by PR kern/24807.
2004-03-21 16:31:22 +00:00
jmc
6fe4ead562
Convert to usage of UUDECODE_FILES and standardize on filename extension
2004-03-19 08:07:22 +00:00
grant
cacf2d0f45
s/netbsd.org/NetBSD.org/i
2003-11-12 13:31:07 +00:00
itojun
fdd3180d27
minor KNFs
2003-10-06 09:43:27 +00:00
itojun
e45e8f9d58
use bouded string op as much as possible
2003-10-06 09:18:41 +00:00
itojun
d8db5e11b1
sprintf -> snprintf. hints from Thorsten Glaser
2003-10-06 04:19:41 +00:00
itojun
c4beb9648d
sync w/ header file changes
2003-10-03 23:27:31 +00:00