Age | Commit message (Collapse) | Author | Files |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(gdbm_open): Fix signature to match global declaration
|
|
Remove duplicate declarations.
|
|
(datum): Remove duplicate declaration.
(gdbm_file_info): Change to struct gdbm_file_info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Needs a lot more work...
|
|
|
|
|
|
|
|
|
|
already locked. Also added gdbm_locked() to the API.
* src/lock.c: Check errno to see if a lock failed because it's already
locked. Add external gdbm_locked() routine to return the
status of locking. Move lock type to the dbf.
* src/gdbmdefs.h: Move lock type to the dbf.
* src/gdbm.proto: Add gdbm_export(), gdbm_import(), and gdbm_locked().
|
|
|
|
_gdbm_unlock_file(), which will try to use flock(), lockf(), and fcntl() to
lock the file.
From ChangeLog:
* configure.ac: Add test for lockf.
* src/lock.c: New file, adds _gdbm_unlock_file() and
_gdbm_lock_file() routines. These attempt to use flock(),
lockf(), and fcntl() locking.
* src/proto.h: Add new prototypes.
* src/systems.h: Remove file locking macros.
* src/gdbmopen.c: Rewrite locking code, use _gdbm_lock_file().
* src/gdbmclose.c, src/gdbmreorg.c: Use _gdbm_unlock_file().
|
|
|
|
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.
|
|
|