summaryrefslogtreecommitdiffabout
path: root/doc
AgeCommit message (Collapse)AuthorFiles
2011-08-17Introduce new error code.Sergey Poznyakoff1
* configure.ac, NEWS: Raise patchlevel to 90. * src/gdbm.h.in: Enclose entire file in conditional extern "C". (GDBM_FILE_STAT_ERROR): New error code. (_GDBM_MAX_ERRNO): Update. * src/gdbmerrno.c (gdbm_errlist): Update. * src/gdbmopen.c: Set GDBM_FILE_STAT_ERROR on fstat failure. * src/gdbmreorg.c: Likewise. * src/mmap.c: Likewise. * src/systems.h: Include errno.h * gdbm.texinfo: Document GDBM_FILE_STAT_ERROR.
2011-08-11New option GDBM_GETDBNAME.Sergey Poznyakoff1
* src/gdbm.h.in (GDBM_GETDBNAME): New option. * src/gdbmsetopt.c (gdbm_setopt): Handle GDBM_GETDBNAME. * doc/gdbm.texinfo (Options): Document GDBM_GETDBNAME.
2011-08-10Improve gdbm_setopt interface.Sergey Poznyakoff1
* src/gdbm.h.in (GDBM_OPENMASK): New constant. * src/gdbmconst.h: Remove constants duplicated in gdbm.h.in. * src/gdbmdefs.h (gdbm_file_info) <allow_mmap> <mmap_inited>: Replace with a single member: memory_mapping. All callers updated. (GDBM_SETCACHESIZE,GDBM_SETSYNCMODE) (GDBM_SETCENTFREE,GDBM_SETCOALESCEBLKS): New option names. (GDBM_SETMMAP,GDBM_GETMMAP,GDBM_GETFLAGS) (GDBM_GETCACHESIZE,GDBM_GETSYNCMODE,GDBM_GETCENTFREE) (GDBM_GETCOALESCEBLKS,GDBM_GETMAXMAPSIZE): New option codes. * src/gdbmsetopt.c: Implement new options. * doc/gdbm.texinfo: Document new options.
2011-08-10Improve memory mapping support.Sergey Poznyakoff1
The new code is more flexible and performs better when lots of inserts are being made (e.g. when populating the database with new data). * src/gdbm.h.in (GDBM_SETMAXMAPSIZE): New constant. * src/gdbmconst.h (SIZE_T_MAX): New define. * src/gdbmdefs.h (gdbm_file_info) <cache_size>: Change type to size_t. <mmap_inited,mapped_size_max>: New member. <mapped_remap>: Remove. * src/gdbmopen.c: Fix a typo. (gdbm_open): Initialize new members. (_gdbm_init_cache): Second argument is size_t. * src/gdbmsetopt.c (gdbm_setopt): Optval argument is void*. Handle GDBM_SETMAXMAPSIZE. Improve error checking. * src/mmap.c (_GDBM_IN_MAPPED_REGION_P): Fix comparison with the lower bound. (_GDBM_NEED_REMAP): Return true if mapped_region is NULL. (SUM_FILE_SIZE): Rewrite. (_gdbm_mapped_unmap): Don't call msync. (_gdbm_internal_remap): Take 2 arguments, the second one giving the new mapped size. Unmap the region prior to remapping it. Always pass NULL as the argument to mmap. (_gdbm_mapped_remap): Rewrite the logic. Change semantics of the third argument. All uses updated. (_gdbm_mapped_init): Reflect the above changes. (_gdbm_mapped_read,_gdbm_mapped_write): Use mmap_inited to decide whether to use mmap, because mapped_region can be reset to zero by another functions (namely, _gdbm_mapped_lseek). Reset mmap_inited to FALSE, if _gdbm_mapped_remap fails. (_gdbm_mapped_lseek): Rewrite offset computations. Invalidate the mapped region. * src/proto.h (_gdbm_init_cache): Change prototype. * src/update.c (write_header, _gdbm_end_update): Remove checks for dbf->mapped_region. * tests/gtload.c: Implement the -maxmap option (set maximal mapped memory size). * doc/gdbm.texinfo: Document GDBM_SETMAXMAPSIZE.
2011-08-10Docs: "Additional information" section.Sergey Poznyakoff1
2011-08-09Spell checking and minor fixes.Sergey Poznyakoff1
2011-08-09Update the docs.Sergey Poznyakoff1
* doc/gdbm.texinfo: Document compatibility functions, provide more cross-references.
2011-08-09Minor changesSergey Poznyakoff1
2011-08-09Update version and contact information.Sergey Poznyakoff1
2011-08-07Minor fixes.Sergey Poznyakoff1
2011-08-06Update docs.Sergey Poznyakoff2
* doc/Config: New file. * doc/gendocs_template: Rewrite for the new site layout.
2011-08-06Document gdbm_version_cmp.Sergey Poznyakoff1
2011-08-05Minor fixes.Sergey Poznyakoff1
2011-08-03Update.Sergey Poznyakoff1
2011-08-03Document gdbm_version_number and GDBM_VERSION_* macros.Sergey Poznyakoff1
2011-08-03Update copyright headers.Sergey Poznyakoff1
2011-08-03Document flat format and related functions.Sergey Poznyakoff1
2011-08-03(check-fixmes): New rule.Sergey Poznyakoff1
2011-08-03New file.Sergey Poznyakoff2
2011-08-03Rewrite.Sergey Poznyakoff1
2011-08-03Revise.Sergey Poznyakoff1
2011-08-03UpdateSergey Poznyakoff1
2011-08-02Update.Sergey Poznyakoff1
2009-01-03Update bug-reporting address.Sergey Poznyakoff3
2008-12-04Add fdl.texiJason Downs1
2008-12-04First pass at updating documentation. Add FDL.Jason Downs3
Needs a lot more work...
2008-12-03Add .cvsignore filesSergey Poznyakoff1
2008-12-01Kill generated filesJason Downs1
2008-12-01gdbm.3 from 1.8.3, needs work.Jason Downs1
2008-11-30The library was not working on Solaris due to file locking. fcntl locks areJason Downs3
not working over NFS at all. They also need to be changed to use flock64 structs, which has been done. File locking needs to be refactored within the library. We likely need to add lockf support, and use a better method for determining which locking type to use (our current method is to just make assumptions). testgdbm now builds on Solaris. From ChangeLog: * configure.ac: Add test for sys/termios.h * src/systems.h: Add macros for Solaris-style 64bit fcntl locks. * src/testgdbm.c: Add support for opening files without locking. Add sys/termios.h include and add check for TIOCWINSZ. * export/export.c: Add support for opening files without locking.
2008-11-21Initial revisionJason Downs5

Return to:

Send suggestions and report system problems to the System administrator.