Commit Graph

9947 Commits

Author SHA1 Message Date
dholland
3251535c47 Avoid memory leak in error case. From Gao Ya'nan in PR bin/39721. 2008-10-09 07:18:15 +00:00
lukem
a1e399536b WARNS=4 2008-10-08 03:55:18 +00:00
lukem
e9415a55f8 use a const struct hash pointer 2008-10-08 03:55:05 +00:00
lukem
9cec53beb4 Explicitly pull in "nbtool_config.h" if available.
Fixes tools/db build, as reported by Matthias Scheler.
2008-10-07 10:03:47 +00:00
lukem
84d42cdace Fail with a non-zero exit code if deleting a non-existant key.
Fixes bug introduced in rev 1.15, and reported in PR 39710 from Juan RP.

Don't display various warnings in delete if -q.
Suggested in PR 39710.

Add some sanity enforcing abort()s.
2008-10-07 01:32:51 +00:00
joerg
bd681a4d7e Don't use emalloc and friends directly, but call them consistently
bmake_malloc and friends. Implement them via macros for the native case
and provide fallback implementations otherwise. Avoid polluting the
namespace by not defining enomem globally. Don't bother to provide
strdup and strndup, they were only used for the estrdup and estrndup
comapt code.

This addresses the presence of emalloc in system libraries on A/UX and
resulted strange issues as reported by Timothy E. Larson.
2008-10-06 22:09:21 +00:00
dholland
b458f98fad If the parser scrapes up something it thinks is positionally a month, but
is numerically out of range, do something reasonable instead of crashing.
PR bin/39627.
2008-09-30 05:51:41 +00:00
dholland
d65073510e Use off_t, not __off_t. 2008-09-30 04:03:37 +00:00
lukem
b88214a09b update copyrights 2008-09-30 03:41:53 +00:00
dholland
c92bbe4462 Don't accidentally treat "long double" as "long". PR bin/39639. 2008-09-27 20:04:24 +00:00
matt
c58ed3675c Add the complex types to the floating point promotion rules. 2008-09-27 02:30:46 +00:00
matt
2ded04cde2 Add a missing label for LCOMPLEX 2008-09-26 23:51:04 +00:00
matt
9364aa71ae Teach lint about long double _Complex (C99) 2008-09-26 22:52:24 +00:00
hubertf
4841b75981 sign over my copyright to TNF 2008-09-22 13:10:25 +00:00
wiz
ccc14bc16a Sort options. Uppercase GNU. 2008-09-21 16:46:01 +00:00
joerg
d5b2c9a825 Update patch to the version used by DragonFly and derived from OpenBSD.
Major changes are:
- better detection of double applied patches
- rejects remain unified diffs for unified patches
- far less limitations, e.g. patch lines may be arbitrary long

This addresses PR standards/11220 by changing patch -b behavior to be
POSIX compliant. Old behavior can be obtained using --suffix, which
works since NetBSD 1.4. pkgsrc has been adjusted accordingly.
2008-09-19 18:33:34 +00:00
perry
5a047c798a Add a -r flag that is an alias for -E, for compatibility with gnu sed. 2008-09-16 13:32:04 +00:00
christos
dcfa7f5149 handle SI_NOINFO 2008-09-12 20:46:42 +00:00
christos
a5ae52b986 When returning an unknown code, return the code number not NULL 2008-09-12 20:44:40 +00:00
joerg
8a89a3dc54 Check value range of ULONG and UQUAD values. On 32 bit platforms like
i386 "unsigned long x = 0x800000000UL;" passed lint and gcc complains
(rightfully). Validate quad as well to allow using a potentially larger
type to store the value.
2008-09-10 14:05:00 +00:00
jnemeth
60d26697e2 Updated UK Bank Holidays based on http://en.wikipedia.org/wiki/Bank_holiday
Thanks to perry@ for pointing me to this page.
2008-09-10 01:39:00 +00:00
jnemeth
c189d3256b - update all dates that varies (hopefully, they'll be correct for the
first year that NetBSD 5.0 is out)
- add release date of NetBSD 4.0

XXX  There are several UK "Bank Holidays" in calendar.holiday.  Could
     somebody update those and give an indication of when they are, please?
2008-09-09 18:47:19 +00:00
gmcgarry
0e0358051d Cast f_type to signed integer before comparison with negative values. 2008-09-09 00:56:23 +00:00
gmcgarry
507b8fdd96 getline() returns int. Don't cast to unsigned value and compare with -1. 2008-09-09 00:48:28 +00:00
wiz
fb73034467 Sort SEE ALSO.
Remove unnecessary Bk/Ek in SYNOPSIS.
2008-09-05 09:05:13 +00:00
lukem
b5b5e891d4 crank to WARNS=4 2008-09-05 07:56:07 +00:00
lukem
68089bcfee Add -P pagesize, to tune the btree psize and hash bsize.
Set to 0 to let the system choose (based on st_blksize of the file)
Defaults to 4096.
2008-09-05 07:55:33 +00:00
lukem
0e22f8f32f Support -Th (VIS_HTTPSTYLE) when -U decoding key/value for delete or write 2008-09-05 05:04:40 +00:00
lukem
081a7c3db2 Fix -N so that it sets O_TRUNC in the flags to pass to dbopen(3)
and not the flags used by db(1) to control internal behaviour.
2008-09-05 03:41:35 +00:00
lukem
82ec76f4db Support -Th to enable VIS_HTTPSTYLE.
Expand description of -T so there's less need to consult
both vis(1) and strvis(3) to determine what the characters mean.
2008-09-04 09:54:56 +00:00
drochner
316dc7a8ab Support -the "-A addressformat" flag for od(1), from FreeBSD.
(I found a script which tries to figure out the byteorder of a box
by "od -An | grep", but it is POSIX anyway.)
There is a little behavioural change: The whitespace without any arguments
is like "-to2" now; before it was custom. It's not worse imho.
2008-09-03 16:32:57 +00:00
christos
369f880abf disable completely. 2008-09-02 09:26:55 +00:00
christos
fb5e0a80e2 Add docs back the best way we can:
1. Don't add changelog and other implementation specific nvi files because
   this have changed from 1.79 and are probably not relevant in 1.81
2. Put back virecover.
3. Descend regularly to subdirs instead of Makefile hacks
4. Use USD.doc stuff from the 1.81 docs except for vi.ref which has
   unfortunately been converted to texinfo. For that, we preserve
   the original documents because we want to still be able to make
   section 13 (building texinfo is not acceptable because it will not
   have the same look and feel as the rest of the book)
5. Since the texinfo reference is probably better maintained, build
   that too as a texinfo document.
2008-09-02 09:25:39 +00:00
dholland
0a268c3ebf Fix description of %b format. PR 39111 from Paul Goyette. 2008-09-01 09:20:41 +00:00
christos
19656dada9 For now descend into old vi for virecover and doc. Unfortunately the
new vi vi.ref is now texinfo and our makeinfo is too old to deal with it.
2008-08-31 12:09:48 +00:00
christos
0d6bb61e85 nvi is now default 2008-08-31 05:17:31 +00:00
christos
45ee307f3b no more magic.mime 2008-08-30 12:25:41 +00:00
cube
baebbcf71a Bump CONFIG_VERSION after the previous fix to main.c. 2008-08-30 02:59:55 +00:00
cube
8e3d873278 In find_declared_option, use the correct hash for file-systems. That way,
information about dependencies are actually processed.
2008-08-30 02:57:42 +00:00
gmcgarry
15631ee3b4 Undefine __PCC__ the same as __GNUC__ inside lint. 2008-08-29 00:44:48 +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
mrg
8cdb9d89bb don't parse $LESS env-var in more_mode. (also, don't parse $LESS twice
in non more_mode.)
2008-08-28 07:20:20 +00:00
gmcgarry
6745125758 Remove old pcc reachover build now that pcc and its libraries are built from
src/external/bsd/pcc.
2008-08-27 12:28:14 +00:00
christos
6677e30757 add the ability to have non widechar build, with USE_WIDECHAR=no
On i386:
vi		308685
nvi.nonwide	296856
nvi.wide	340860
2008-08-27 10:17:49 +00:00
christos
80a5932343 setup _POSIX2_C_BIND per SUSv3, from Andy Shevchenko 2008-08-27 08:56:49 +00:00
christos
d430a181cb - don't compile with debugging on
- split the wide regex options in preparation for a non-wide build.
2008-08-27 05:42:54 +00:00
lukem
c063e13c21 Repeat after me:
* define NOfoo before .including <bsd.own.mk> or anything else that
   might (indirectly) .include it, not after.
 * defining MKfoo=no isn't what Makefiles are supposed to do
(yes, both mistakes were present :)
2008-08-26 12:15:53 +00:00
lukem
7cf6380198 "-indent" isn't a valid directive to .Bl, and "-offset indent" didn't
seem consistent with other man pages.  Remove it.
2008-08-26 12:12:58 +00:00
wiz
8ff1fd42f2 Correction for previous from dillo: it is a backquote, not a single quote. 2008-08-25 09:36:24 +00:00
wiz
affdbfea59 Explicitly mention that it is the single quote character, to unconfuse joerg. 2008-08-23 16:32:50 +00:00