tv
c08a2cb7c2
Add hooks for reachover builds from src/tools/compat.
2002-01-21 21:33:42 +00:00
aymeric
51411b7d2b
fix printf(3) warnings when defined(DEBUG)
2002-01-12 11:27:16 +00:00
aymeric
9e09072f0e
use %p instead of %x when displaying a pointer
2002-01-12 11:26:13 +00:00
aymeric
238cdd6720
add missing prototype when defined(DEBUG)
2002-01-12 11:24:48 +00:00
thorpej
e23f3d9104
Fix -Wshadow warnings (gcc 3.1).
2001-12-30 19:26:28 +00:00
thorpej
585dfd612c
Rename the local variable "index" to "idx" to avoid shadowing a global
...
declaration.
2001-12-30 19:20:40 +00:00
thorpej
42a6d41394
__bt_search(): Rename the local variable "index" to "idx" to avoid
...
shadowing a global declaration.
2001-12-30 19:18:23 +00:00
lukem
50f5afd52e
fix WARNS=2 (-Wshadow) warnings
2001-11-04 13:57:29 +00:00
aymeric
b39251c6b2
indx_t can be a 16 bit type, and is thus not suited to hold a difference
...
between two pointers in the general case. Replace it by ptrdiff_t.
-> recno databases can now handle records of more than 64KB
-> nvi can now handle files with lines bigger than 64KB
Problem and fix suggested by FreeBSD PR#9350
2001-09-30 21:12:00 +00:00
wiz
260d59cdbe
Boring whitespace fixes.
2001-09-16 02:57:26 +00:00
wiz
40ac848024
Fix various misspellings of compatible/compatibility.
2001-06-11 01:50:48 +00:00
cgd
579369d368
build new hsearch() code
2001-02-14 05:44:29 +00:00
cgd
603bfd4ff7
nuke old, unredeemably broken DB-based version of hsearch() et al.
2001-02-14 05:41:46 +00:00
cgd
66678fd1bb
move db/man/hcreate.3 to stdlib/hcreate.3
2001-02-14 05:41:01 +00:00
christos
f0c45fdbc9
protect against multiple inclusions.
2000-12-20 20:54:01 +00:00
msaitoh
f9b799b651
check LIBC_SCCS
2000-09-13 22:32:25 +00:00
mycroft
8102096d08
Delint.
2000-01-23 00:49:41 +00:00
mycroft
605490369c
Delint.
...
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
scw
2a8d425699
After writing a page out to disk, run the page back through the user's
...
input filter to ensure we don't end up with a cached copy of the page
in the wrong byte-order for the host cpu.
This fixes a fatal bug which bites when the DB 'lorder' is different
to the cpu's, and a cached page is accessed soon after it was flushed
to disk.
2000-01-09 19:56:15 +00:00
mycroft
648d6d9529
Only squeeze a short key/value pair onto a page with other complete key/value
...
pairs, not onto a page containing the end of a big pair.
1999-07-29 08:58:46 +00:00
mycroft
72a2509e35
When deleting a big key, the offset of an empty page should be bsize, not
...
bsize-1; otherwise an insertion into the empty page will cause the new key to
be elongated by 1 byte.
1999-07-29 07:48:03 +00:00
mycroft
3bf07e90f3
Fix a condition where the hole would be inserted in the wrong place during a
...
split.
1999-07-29 04:07:27 +00:00
mycroft
462e381edd
Previous bug fix was slightly wrong. In this case, the data must start on a
...
new page, or we will mistakenly think the first page is the end of the data.
1999-07-29 01:12:57 +00:00
mycroft
8458b947ac
Document EFBIG as a valid error.
1999-07-29 00:22:29 +00:00
mycroft
343c90058f
Return a useful errno value in the overflow case.
...
Also, print a message to stderr in one more case.
1999-07-29 00:19:43 +00:00
mycroft
14f4149717
Make the packing more dense in a couple of cases.
1999-07-28 19:41:36 +00:00
mycroft
ec7d7ed5ec
If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would cause an
...
invariant (actually, an ugly hack) to fail, and all Hell would break loose.
1999-07-28 19:33:03 +00:00
christos
dc1c2ccb47
don't compare non-pointer values against NULL.
1999-07-10 17:48:54 +00:00
garbled
38c96853cf
Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Wheee!
1999-03-22 19:44:33 +00:00
christos
d4639c815b
Adding missing braces that gcc-2.8.1 likes.
1999-03-16 18:17:56 +00:00
erh
bdfd2b2770
Add missing .El lines.
1999-03-09 19:45:09 +00:00
kleink
cbab327fc8
Manual page for hcreate(3) and friends.
1999-03-08 18:43:21 +00:00
kleink
276331d152
Per XSI5, make ENTRY.data a typeless pointer.
1999-02-16 18:23:00 +00:00
kleink
983e1024bf
Per XSI5, let hcreate() take a size_t argument.
1999-02-16 18:12:24 +00:00
kleink
fbed58df1f
Dispose private search.h header.
1999-02-16 18:01:37 +00:00
kleink
3b5a19a494
Dispose the private search.h header and use <search.h>, which is a superset,
...
instead.
1999-02-16 17:59:18 +00:00
lukem
9d8c1e50bf
need <fcntl.h> as well. i hit this, but found that [lib/6782] also noted it
1999-02-07 07:27:13 +00:00
christos
61238e7179
delint
1998-12-09 12:42:46 +00:00
christos
d826507120
s/LALIGN/BTLALIGN
1998-11-06 19:42:43 +00:00
kleink
abc6d45e5c
Need "namespace.h".
1998-10-14 11:56:28 +00:00
thorpej
e79648d085
Add some braces to make egcs happy.
1998-08-18 23:50:08 +00:00
mycroft
ea09e5f2d4
Reinitialize the mkstemp() template each time it's used.
1998-07-26 14:05:20 +00:00
thorpej
317d4e84d6
Use pread(2) and pwrite(2) where appropriate.
1998-06-30 21:30:52 +00:00
kleink
23a9b2c5c9
Change the file mode argument to dbopen() and the db backends from int to
...
mode_t.
1998-05-07 19:24:20 +00:00
kleink
9eb0e33ef6
Change the file mode argument to dbm_open() from int to mode_t.
1998-05-07 19:11:14 +00:00
fair
5f06216718
/tmp to _PATH_TMP from paths.h
1998-04-07 10:40:21 +00:00
mycroft
4462053ab3
Fill in missing (default) mmap(2) flags.
1998-02-20 09:27:18 +00:00
mrg
4e252e8c4d
add missing .Nm entries. from spz@serpens.swb.de.
1997-11-14 02:04:36 +00:00
lukem
d0e23d974a
- use CPPFLAGS instead of CFLAGS
...
- use ${COMPILE.C} ... instead of ${CC} ${CFLAGS} -c ...
1997-10-22 23:14:04 +00:00
is
8871c98bb7
Bug fixes from Sleepycat Software for db_btree databases; for some corner
...
cases in splitting pages, and for correctly updating data base metadata.
1997-10-10 21:08:53 +00:00
fair
bc102d2921
install mpool.3 and links, per PR#4055
1997-09-24 07:33:49 +00:00
kleink
66105c37fc
Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
...
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
kleink
cbb9288e9f
Lseek(2) returns -1 on failure, so checking for "n < -1" is not appropriate.
1997-08-24 16:13:28 +00:00
jtc
43fa6fe319
If port provides __weak_alias(), provide an Standard C and POSIX pure
...
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.
This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
christos
00ae392d92
Fix RCSID's
...
Fix gcc warnings.
1997-07-13 18:51:48 +00:00
pk
58efb9d20c
NULL => 0 (Arne Juul; PR#3629)
1997-05-17 19:24:44 +00:00
mrg
9cd5492c02
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
...
- some KNF.
1997-01-23 14:01:45 +00:00
tls
a28ecdff3c
RCS ID Police
1997-01-13 20:31:18 +00:00
jtc
135c9d2460
Rename the errno field in struct htab to err, as the former name
...
conflicts with a macro implementation of errno.h's errno.
1996-11-07 06:48:01 +00:00
cgd
e4cf519e27
fix a bug that shows up only on alphas: ndbm "datum" variables can't be
...
cast to DBTs, because the 'size' fields are int and size_t,
respectively, and that means that the DBT size field would be
partially filled with garbage on the Alpha. Bug fix sent to bostic.
1996-05-04 00:38:58 +00:00
cgd
5e5ebf658f
a script, along the lines of the gcc2netbsd script used to set up gcc
...
trees for import, to set up Berkeley DB trees for import.
1996-05-03 22:43:02 +00:00
cgd
7f7f8e8fe2
reapply diff from rev. 1.7. can't cast pointers to ints; what's really wanted
...
here is foo != NULL.
1996-05-03 22:16:32 +00:00
cgd
24420c0109
merge DB 1.85 changes
1996-05-03 21:50:36 +00:00
cgd
738330da77
merge DB 1.85 changes
1996-05-03 21:38:43 +00:00
cgd
17140cef26
merge DB 1.85 changes
1996-05-03 21:26:48 +00:00
cgd
90031d7892
add RCS id
1996-05-03 21:20:56 +00:00
cgd
5840471668
clean up README files and merge properly with 1.85
1996-05-03 21:17:07 +00:00
cgd
5fb6a3660e
Import of Berkeley DB version 1.85
1996-05-03 21:04:19 +00:00
jtc
15206427d4
Add btree(3) cross reference.
...
Lose self-referential cross reference.
1995-06-13 00:53:40 +00:00
mycroft
4c34be6b52
Clean up deleted files.
1995-03-01 00:00:00 +00:00
cgd
2c84ad3a41
add unintrusive Ids
1995-02-27 13:22:58 +00:00
cgd
402f19d1dd
add unintrusive Ids
1995-02-27 13:21:44 +00:00
cgd
a954b0787c
add unintrusive Ids
1995-02-27 13:19:23 +00:00
cgd
ae9172d6cd
specify man pages the new way.
1994-12-22 09:57:51 +00:00
cgd
a1388b1815
be a bit nicer with the return value
1994-10-19 03:19:01 +00:00
cgd
a6d14e368c
clean up import
1994-08-18 00:38:04 +00:00
cgd
a2f41483b7
repeat after me: realloc, THEN assign pointer...
1994-02-24 09:03:39 +00:00
cgd
bc3e04db85
DTRT when recno db's are extended beyond current end of db
1994-02-21 08:39:53 +00:00
pk
53fa5af0d5
Remove potential spoilsport.
1994-02-17 21:13:26 +00:00
cgd
f7b4cb000f
update to 1.73 from UCB. I didn't even notice this was out!
1994-01-24 03:59:39 +00:00
mycroft
2c00baa34c
Clean up deleted files.
1994-01-24 03:44:49 +00:00
mycroft
044908faa7
Clean up deleted files.
1994-01-24 02:48:36 +00:00
cgd
98a60eb83a
fix sall memory leak. from Christopher Jon Kane <kane@kidd.vet.purdue.edu>
1994-01-13 22:55:55 +00:00
cgd
32661c1f77
update to v1.72 of new DB code
1993-10-20 07:25:53 +00:00
cgd
72b27fe90c
get rid of extraneous include of machine/endian.h now that it's
...
included by sys/types.h
1993-09-17 01:49:27 +00:00
cgd
65aeeefb0a
version 1.71 of new db code
1993-09-17 01:06:18 +00:00
cgd
45e27c8018
upgrade new DB code to version 1.7
1993-09-09 02:41:04 +00:00
jtc
9c20f740a3
Declare rcsid strings so they are stored in text segment.
1993-08-26 00:43:03 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
b1bd4afedc
Add RCS indentifiers.
1993-08-01 07:42:49 +00:00
mycroft
cda4f8f6ee
Add RCS identifiers.
1993-08-01 05:37:30 +00:00
cgd
9f0aa214be
update db code to v1.6 from vangogh, and put it in "db" rather than "DB"
1993-06-14 23:52:39 +00:00
mycroft
6609149bb3
Clean up deleted files.
1993-06-14 21:16:14 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00