1 2Tue Oct 15 15:00:11 PDT 2002 Jason Downs (downsj@downsj.com) 3 4 * samp1.cc: Remove. 5 6 * gdbm.3, gdbm.texinfo: 1.8.3. 7 8 * version.c: Version 1.8.3., modernize string (release date is in 9 American format). 10 11 * gdbmreorg.c: Remove small memory leak. 12 13 * Makefile.in: Use more subs from configure, remove mention of SunOS. 14 Add support for spec'ing an install time prefix via INSTALL_ROOT. 15 16 * INSTALL: Remove extra text from top. 17 18 * config.guess, config.sub: Update to latest versions. 19 20 * autoconf.h.in: Regenerate. 21 22 * configure.in: Modernize. 23 24 * systems.h: HAVE_ST_BLKSIZE -> HAVE_STRUCT_STAT_ST_BLKSIZE. 25 26Fri Sep 27 16:12:44 PDT 2002 Jason Downs (downsj@downsj.com) 27 28 * Makefile.in: Remove `info' target from all, since we don't even 29 bother installing the one we built anyway. 30 31 * Fix a few checks against dbf.read_write. 32 33Wed Sep 25 15:19:00 PDT 2002 Jason Downs (downsj@downsj.com) 34 35 * Makefile.in: Remove the dbm and ndbm routines from the main 36 library, moving them to gdbm_compat. install-compat now 37 installs the compat headers and the library. Increment the 38 MAJOR number of the shared library due to the removal of 39 the compat functions. 40 41 * gdbm.3, gdbm.texinfo, version.c: 1.8.1; note gdbm_compat. 42 43 * proto.h: Change _gdbm_fatal() to void. 44 45 * update.c(_gdbm_fatal): Change function declaration to void. 46 47 * update.c(_gdbm_fatal): Change default exit status to 1. 48 49 * gdbmopen.c(gdbm_open): Remove setting of flags since we always check 50 it against the mask. 51 52 * testdbm.c, testndbm.c: Added stdlib.h inclusions. 53 54 * falloc.c(push_avail_block): Fixed extremely rare case where the 55 header avail table could fill up, causing us to over flow the 56 table, corrupting memory, and eventually crashing. Also forced 57 merging of blocks within the scope of this routine (possibly 58 should force them whenever the header avail table is being used). 59 60 * gdbmerrno.c: Fix error count, there are more than 18. 61 62 * gdbmerrno.h: Fix typo; GDBM_OPT_ILLEGAL is 20. 63 64 * gdbmopen.c: Fix typo; s/GDBM_OPENMASK/GDBM_WRITER/. 65 66Tue May 18 19:25:25 PDT 1999 Jason Downs (downsj@downsj.com) 67 68 * gdbm.3, gdbm.texinfo: Update for 1.8. 69 70 * Makefile.in, configure.in: Switch to using libtool, but without 71 automake. 72 73 * aclocal.m4, config.guess, config.sub, ltconfig, ltmain.sh: New 74 files (libtool 1.2). 75 76Wed May 12 01:26:15 PDT 1999 Jason Downs (downsj@downsj.com) 77 78 * gdbmopen.c, gdbmclose.c, gdbmreorg.c: check file_locking before 79 calling locking macros; add support for setting GDBM_NOLOCK in 80 gdbm_open(). 81 82 * gdbmdefs.h: add file_locking flag to gdbm_file_info. 83 84 * gdbmconst.h, gdbm.proto: add GDBM_NOLOCK flag. 85 86 * gdbmfdesc.c: new file, adds external gdbm_fdesc() routine. 87 88 * gdbm.proto, gdbm.proto2: clean up, use __P, and compress. 89 90 * gdbmerrno.h: kill the enum, add defines for errors. 91 92 * gdbmsetopt.c, testgdbm.c: support GDBM_SYNC/GDBM_SYNCMODE. 93 94 * gdbmopen.c: gdbm_open() now DEFAULTS to ``fast mode''; use 95 GDBM_SYNC to turn it off. GDBM_FAST is obsolete and ignored. 96 97 * gdbmconst.h: add GDBM_SYNC and GDBM_SYNCMODE. 98 99 * proto.h, various source files: switch _ARGS to __P. 100 101 * systems.h, various source files: kill word_t, just use int 102 everywhere. 103 104 * configure.in, autoconf.h.in: remove alloca() goo and modernize. 105 106 * many source files: replace all instances of alloca() with real 107 malloc()s and free()s. 108 109 * update.c: don't deref NULL in _gdbm_fatal(), and don't use stdio. 110 111[ The following are entries revived from a dead experimental branch. ] 112 113Tue Nov 1 00:35:11 1994 Jason Downs (downsj@downsj.com) 114 115 * gdbmopen.c (gdbm_open): actually initialize central_free and 116 coalesce_blocks. 117 118 * gdbmdefs.h: added coalesce_blocks. these should've been bitmapped. 119 oh well. 120 121 * falloc.c (various routines): made block merging an option. 122 123 * gdbmsetopt.c (gdbm_setopt): added GDBM_COALESCEBLKS option. 124 125 * gdbmconst.h: added GDBM_COALESCEBLKS option. 126 127Fri Jun 3 09:45:19 1994 Jason Downs (downsj@downsj.com) 128 129 * falloc.c (_gdbm_free): if central_free is set, all blocks are 130 put into the header. 131 132 * gdbmsetopt.c (gdbm_setopt): add GDBM_CENTFREE case. 133 134 * gdbmdefs.h, gdbmconst.h, gdbm.proto: add central free option. 135 136Fri Jun 3 05:57:36 1994 Jason Downs (downsj@downsj.com) 137 138 * falloc.c (pop_avail_block): merge block with header, instead 139 of replace, since header may not be empty any longer. 140 141 * falloc.c (_gdbm_alloc): pop a block off the stack when the 142 current header is half empty, instead of zero. 143 144Fri Jun 3 05:11:33 1994 Jason Downs (downsj@downsj.com) 145 146 * gdbmstore.c (gdbm_store): don't alloc new disk if we're replacing 147 and the records are the same size. suggested by phil a long time 148 ago. 149 150Fri Jun 3 03:47:46 1994 Jason Downs (downsj@downsj.com) 151 152 * falloc.c (_gdbm_put_av_elem): allow adjacent blocks to be 153 merged. inspired by the enhancement by Tim Howes. 154 155Thu Jun 2 22:15:19 1994 Jason Downs (downsj@downsj.com) 156 157 * Makefile.in: add installation mode, owner, and group. 158 159Thu Jun 2 04:24:58 1994 Jason Downs (downsj@downsj.com) 160 161 * Makefile.in: run mkinstalldirs before installing files. 162 163 * mkinstalldirs: new file. 164 165[ End of revived entries. ] 166 167Thu May 19 15:50:04 1994 Jason Downs (downsj@downsj.com) 168 169 * NEWS, README: update to 1.7.3. 170 171 * gdbm.texinfo: update to 1.7.3, slight fixes. 172 173 * gdbm.3: update to 1.7.3, slight reformat. 174 175Thu May 19 14:45:51 1994 Jason Downs (downsj@downsj.com) 176 177 * gdbmconst.h: removed the header magic numbers from this 178 branch. 179 180 * version.c: added an include of autoconf.h, updated version 181 182 * gdbm.proto: added a define for GDBM_FASTMODE. 183 184Sun May 15 02:39:48 1994 Jason Downs (downsj@downsj.com) 185 186 * gdbm.3, gdbm.texinfo: updates for 1.7.2 187 188 * README, NEWS, version.c: update for 1.7.2 189 190 * Makefile.in: removed files, changed (drastically) how the 191 package compiles and installs. 192 193 * bytewise.c, bytewise.h: removed from this branch. 194 195Wed Mar 23 00:44:43 1994 Jason Downs (downsj@downsj.com) 196 197 * extern.h: removed bogus (old) function declarations. 198 199Mon Mar 14 01:37:09 1994 Jason Downs (downsj@downsj.com) 200 201 * Makefile.in: added new files. 202 203 * bytewise.c, bytewise.h: new portable byte order conversion 204 package; supports 64bit longs/16bit ints. 205 206Sun Mar 13 22:56:10 1994 Jason Downs (downsj@downsj.com) 207 208 * gdbmsetopt.c, gdbmconst.h: added GDBM_FASTMODE option. 209 210 * falloc.c: taught _gdbm_alloc() about the header avail table. 211 hopefully, this will fix the bloating problem. i dunno, though, 212 as i've never had that problem, myself. 213 214Sun Dec 26 05:17:04 1993 Jason Downs (downsj@downsj.com) 215 216 * version.c: made gdbm_version const. 217 218 * gdbmerrno.c: made gdbm_strerror() and it's array const. 219 220 * various files: general clean up, reformating of code. 221 222 * systems.h: put <memory.h> inside of a conditional. 223 224 * configure.in, autoconf.h.in: added check for <memory.h>. 225 226 * systems.h: added a default define of SEEK_SET. 227 228 * bucket.c, gdbmopen.c, gdbmseq.c, gdbmdelete.c, gdbmdefs.h: 229 cleaned up some uses of word_t. 230 231Tue Nov 16 03:11:56 1993 Jason Downs (downsj@downsj.com) 232 233 * gdbm.3, gdbm.texinfo: updated versions to 1.3 for release 234 235 * version.c, README, NEWS: updated versions to 1.7.1 for release 236 237Sun Nov 14 17:21:03 1993 Jason Downs (downsj@downsj.com) 238 239 * Makefile.in: added $(srcdir) to a few file references. 240 241Sat Nov 13 13:56:37 1993 Jason Downs (downsj@downsj.com) 242 243 * gdbm.3, gdbm.texinfo: added new gdbm_firstkey()/gdbm_nextkey() 244 documentation. 245 246 * gdbmopen.c: added SGI alloca patch. 247 248 * Makefile.in: changed installation prefix semantics. 249 250Sat Nov 13 01:52:31 1993 Jason Downs (downsj@downsj.com) 251 252 * various source: redid the AIX alloca declaration. any new files 253 that call alloca will have to start with the same header. 254 255 * all source, configure.in, Makefile.in: switched over to using 256 autoconf.h, rather than packing all of the autoconf defs into 257 the DEFS line. 258 259 * autoconf.h.in: new file. 260 261 * Makefile.in: changed rule for tndbm.o, hopefully making it more 262 portable. 263 264 * alloca.c: added inclusion of stdlib.h 265 266Fri Nov 12 13:11:03 1993 Jason Downs (downsj@downsj.com) 267 268 * Makefile.in, configure.in: fixed getop related bugs. 269 270 * systems.h: moved sys/types.h include to top. 271 272Wed Nov 3 17:18:59 1993 Jason Downs (downsj@downsj.com) 273 274 * version.c: changed version to 1.7, for release. 275 276 * gdbmdefs.h: Moved all system includes to systems.h. 277 278Sun Oct 31 02:50:12 1993 Jason Downs (downsj@downsj.com) 279 280 * version.c: changed version number to 1.7alpha. 281 282 * gdbm.texinfo: updated to reflect new routines and changes. 283 284 * getopt.c, getopt.h: Added the GNU getopt.c to the dist, for 285 compilation of testgdbm and conv2gdbm on machines without getopt(). 286 287 * various source files: changed all appropiate occurances of 'long' 288 to type 'off_t'. Added off_t check to configure.in. 289 290 * gdbm.3: updated to reflect new routines and changes. 291 292Sat Oct 30 05:20:45 1993 Jason Downs (downsj@downsj.com) 293 294 * testgdbm.c: Added support for bucket cache and block sizes, 295 adding -c, -b and -g flags. Must use -g to specify the file 296 name, now. 297 298 * bucket.c, gdbmopen.c, gdbmclose.c, gdbmreorg.c, update.c, 299 gdbmconst.h, gdbmdefs.h: Implemented dynamic, delayed 300 initialization, bucket cache. New routine: _gdbm_init_cache(). 301 302 * proto.h, gdbmerrno.c, gdbmerrno.h: Added gdbm_setopt() errors 303 and prototypes. 304 305 * gdbmsetopt.c: New file, implements the gdbm_setopt() routine. 306 307 * testgdbm.c, testndbm.c, testdbm.c, conv2gdbm.c: cleaned up 308 compiler warnings. 309 310 * update.c: repaired declarations and added prototypes for 311 static routines, repaired declaration of _gdbm_fatal(). 312 313 * falloc.c: repaired declarations and added prototypes for 314 static routines. 315 316 * gdbmstore.c: commented out unsed variables in gdbm_store(). 317 318 * proto.h: added prototypes for _gdbm_read_entry(), 319 _gdbm_find_key(), and gdbm_sync(). 320 321 * bucket.c, proto.h: changed _gdbm_get_bucket() and 322 _gdbm_write_bucket() over to type void. 323 324Sat Oct 30 00:56:24 1993 Jason Downs (downsj@downsj.com) 325 326 * gdbmerrno.c, gdbmexists.c, close.c, dbmrdonly.c: New files, 327 adding the routines gdbm_strerror(), gdbm_exists(), and for 328 better compatibility with the old dbm/ndbm libraries, the 329 dbmclose() and dbm_rdonly() routines. 330 331 * various headers: Added prototypes for the new routines, and 332 rearranged how gdbm.h is generated. 333 334Fri Oct 29 07:02:41 1993 Jason Downs (downsj@downsj.com) 335 336 * README: split into README, INSTALL, and NEWS. INSTALL 337 includes more tips on compiling. NEWS contains the 'short form' 338 ChangeLog. 339 340 * Makefile.in, configure.in: Redid parts of the autoconf 341 stuff, and repaired many bugs. 342 343 * systems.h: Repaired the alloca declarations, among other 344 things. 345 346 * various source files: changed all relevant usage of type 347 'long' to type 'word_t', which will always be 32bits wide. 348 'word_t' is defined in systems.h. 349 350Fri Jul 30 13:27:24 1993 Phil Nelson (phil@cs.wwu.edu) 351 352 * findkey.c: Added a check of elem_loc == -1 in determining if 353 the data cache held the item being looked for. 354 355Tue Jul 20 13:08:47 1993 Phil Nelson (phil at cs.wwu.edu) 356 357 * gdbm.texinfo: Fixed some errors. 358 359 * Makefile.in: Fixed some errors. 360 361 * version.c: Set version to 1.6 for release. 362 363Mon Jul 19 15:02:40 1993 Phil Nelson (phil at cs.wwu.edu) 364 365 * COPYING: Replaced Version 1 with Version 2. Also updated 366 all file notices to refer to version 2. 367 368 * gdbm.texinfo: Updated the documentation. 369 370 * README: Updated to current version. 371 372 * Makefile: updated clean and install. 373 374Wed Jul 14 13:37:44 1993 Phil Nelson (phil at cs.wwu.edu) 375 376 * Makfile.in: Added samp1.cc to the list of distributed files. 377 378Sat Jun 5 21:35:59 1993 Phil Nelson (phil at cs.wwu.edu) 379 380 * gdbm.proto, Makefile.in: Added #ifndef _GDBM_H_ protection 381 for the final gdbm.h file. Also added prototypes and C++ 382 support. 383 384 * gdbmseq.c: Added gdbm_errno initialization to gdbm_nextkey. 385 386 * gdbmerrno.h and others: Moved the extern definition of 387 gdbm_erron to gdbmerrno.h from the other files. 388 389Mon May 17 12:32:02 1993 Phil Nelson (phil at cs.wwu.edu) 390 391 * gdbm.proto: Added GDBM_FAST to the read_write flags. 392 393Sun May 16 12:50:01 1993 Phil Nelson (phil at cs.wwu.edu) 394 395 * configure.in, Makefile.in: Added autoconf configuration 396 to gdbm. 397 398Tue Mar 30 00:08:48 1993 Phil Nelson (phil at cs.wwu.edu) 399 400 * global.c: Set gdbm_errno to GDBM_NO_ERROR to force 401 it into the data segment. 402 403Sun Mar 28 22:51:40 1993 Phil Nelson (phil at cs.wwu.edu) 404 405 * gdbmfetch.c: Set return_val.dsize to 0 as a default return 406 value. (I was told that was more compatible with dbm/ndbm.) 407 408 * gdbmopen.c: Changed a "sizeof(int)" to "sizeof(long)". 409 410 * testgdbm.c: Changed "char opt" to "int opt" to make sure 411 opt can be -1. 412 413 * hash.c: Added "unsigned" to declaration of value for 414 better overflow operation. 415 416 * gdbmreorg.c: Added a free for data.dptr in the main loop. 417 Also changed the malloc for new_name to an alloca. 418 Removed all frees on new_name. 419 420Sat Mar 27 23:25:14 1993 Phil Nelson (phil at cs.wwu.edu) 421 422 * gdbmconst.h, gdbmdefs.h, gdbmopen.c, gdbmreorg.c, 423 testgdbm.c, update.c, gdbm.h: Added code to allow for a 424 GDBM_FAST mode in which fsync is not called during 425 database update mode. Added a new flag "-f" to 426 testgdbm to make use of the new fast mode. 427 428 * gdbmsync.c: Added this function to allow a programmer 429 to use the GDBM_FAST mode but still be able to sync 430 a database. 431 432 * gdbmopen.c, gdbmdelete.c, gdbmfetch.c, gdbmseq.c, gdbmstore.c, 433 gdbmreorg.c: Added initialization of gdbm_errno to GDBM_NO_ERROR. 434 435Mon Mar 22 23:03:36 1993 Phil Nelson (phil at cs.wwu.edu) 436 437 * gdbmclose.c: (gdbmclose) Added a fsync before close to make 438 sure the file is written to disk before continuing. 439 440Sun Mar 21 21:33:31 1993 Phil Nelson (phil at cs.wwu.edu) 441 442 * proto.h: Added this as a new file. It adds ANSI prototypes 443 for ANSI compilers. 444 445 * gdbmdefs.h: Added an include of proto.h. 446 447 * Makefile: Added proper references to proto.h 448 449 * gdbmopen.c: Changed (int *) casts to (long *) and added 450 an initialization to dbf->header. 451 452 * gdbmreorg.c: Added an "end update" on the new database and 453 correctly set up the bucket cache. 454 455 * update.c: (_gdbm_end_update) Added type void to header. 456 457Wed Mar 17 19:14:27 1993 Phil Nelson (phil at cs.wwu.edu) 458 459 * Changed copyright on all files to include 1993. Also deleted 460 all references to my phone number. 461 462Thu Feb 28 17:05:09 1991 Phil Nelson (phil at strawberry.cs.wwu.edu) 463 464 * Added 1991 to copyright lines on all files. 465 466 * gdbmfetch.c: Fixed a bug introduced by previous changes. 467 468 * version.c: Updated version to 1.5. 469 470Fri Feb 8 12:27:13 1991 Phil Nelson (phil at strawberry.cs.wwu.edu) 471 472 * Change author's e-mail address in all comments. 473 474 * gdbmopen.c, systems.h: Changed opening sequence so that a 475 database will not be truncated in NEWDB mode until the 476 write has locked the file. 477 478 * testgdbm.c: Fixed a bug that caused a segmentation fault on 479 one computer. Also added the flags "-r" for opening the 480 database as a READER and "-n" for opening the database as 481 a NEWDB writer. The default mode remains the WRCREAT mode. 482 483 * Various source files, changed the data types of various 484 variables from int to long. This should not make any difference 485 to systems where sizeof(int) = sizeof(long). It should make 486 it easier to move to other systems. 487 488 * gdbmstore.c: Added a check for NULL key or content dptr. Due to 489 NULLs being used as error indications, data cannot be NULL also. 490 491 * gdbmfetch.c, gdbmseq.c, fetch.c: Added checks for zero sized 492 key and content so malloc will not try to allocate zero bytes. 493 494 * gdbmconst.h: Added this file so that all constants are in one 495 central place. A few constants can be changed without changing 496 the header sizes. 497 498Tue Aug 14 13:08:43 1990 Phil Nelson (phil at unicorn.wwu.edu) 499 500 * Version 1.4 released. (version.c: Updated to correct version.) 501 502 * Makefile: Added $(LIBS) to link for conv2gdbm. 503 504 * README: Updated to version 1.4 and added a 1.0-1.4 change 505 statement. 506 507Wed Aug 8 16:57:29 1990 Phil Nelson (phil at unicorn.wwu.edu) 508 509 * gdbmopen.c: Restructured some code to initialize dbf 510 more completely. 511 512 * dbm.h: Added a null define to satisfy some versions that 513 require a dbmclose() call. 514 515 * findkey.c: (_gdbm_findkey) Added a check for the NULL 516 pointer in ...ca_data.dptr. 517 518 * gdbmdelete.c: Added code to more completely remove the 519 cache entry for a deleted item. 520 521 * gdbmreorg.c: Added code to finish the transfer of information 522 from the new_dbf to the orginal dbf. 523 524Fri May 30 08:29:16 1990 Phil Nelson (phil at unicorn.wwu.edu) 525 526 * gdbmstore.c: Changed a strncpy to bcopy. 527 528Tue May 15 09:55:21 1990 Phil Nelson (phil at unicorn.wwu.edu) 529 530 * Version 1.3 released. 531 532 * systems.h: Changed the defines for alloca to use the 533 name builtin_alloca to depend on BUILTIN_ALLOCA instead 534 of __GNUC__. Added a definition of BUILTIN_ALLOCA for 535 GNUC and for sun sparc. 536 537Fri May 11 12:15:56 1990 Phil Nelson (phil at unicorn.wwu.edu) 538 539 * systems.h: Removed the include for <sys/types> and now 540 systems.h requires <sys/types> included before it. 541 542 * Makefile: Corrected the makefile to include a file that 543 was missing before. Also, switched order of conv2gdbm 544 and alldbm in the all option. 545 546 * findkey.c (_gdbm_read_entry): Reordered some statements 547 to make the code more readable. 548 549 * update.c (_gdbm_fatal): Changed fatal message from "dbm fatal:" 550 to "gdbm fatal:". 551 552Mon Apr 30 10:18:24 1990 Phil Nelson (phil at unicorn.wwu.edu) 553 554 * Version 1.2 released. 555 556Fri Apr 27 09:49:59 1990 Phil Nelson (phil at unicorn.wwu.edu) 557 558 * Makefile: Added the dist option. Similar to the 559 addition from hack@ai.mit.edu, but correct. 560 561 * falloc.c (push_avail_block): Change the avail count 562 to reflect the correct number of entries. 563 564 * dbminit.c (dbminit): Changed the stat call to stat the 565 ".dir" file as is done in dbmopen.c (dbm_open). 566 567Tue Apr 10 12:18:40 1990 Phil Nelson (phil at unicorn.wwu.edu) 568 569 * Version 1.1. released. 570 571 * gdbmopen.c (gdbm_open): Clear out bucket cache. 572 573 574 575