aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Downs <downsj@downsj.com>2008-12-04 03:30:30 +0000
committerJason Downs <downsj@downsj.com>2008-12-04 03:30:30 +0000
commitff0652948b6a93041f7ec72d2b2fe0cf0d72b6c1 (patch)
tree08c0604941e544eb773958ac04717ea468955a50
parente1d8a0a1b317ee64dabfbfca28cb72cdae0bbf92 (diff)
downloadgdbm-ff0652948b6a93041f7ec72d2b2fe0cf0d72b6c1.tar.gz
gdbm-ff0652948b6a93041f7ec72d2b2fe0cf0d72b6c1.tar.bz2
Disabled/removed gdbm_locked() for now.
-rw-r--r--ChangeLog5
-rw-r--r--src/gdbm.proto1
-rw-r--r--src/lock.c2
-rw-r--r--src/proto.h1
4 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 004b0dd..8e6826b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec 3 19:29:25 PST 2008 Jason Downs (downsj@downsj.com)
+
+ * src/lock.c, src/gdbm.proto, src/proto.h: Disabled/removed
+ gdbm_locked() for now, it's not needed.
+
Sun Nov 30 16:48:29 PST 2008 Jason Downs (downsj@downsj.com)
* src/lock.c: Check errno to see if a lock failed because it's already
diff --git a/src/gdbm.proto b/src/gdbm.proto
index b159c56..d0d5ab5 100644
--- a/src/gdbm.proto
+++ b/src/gdbm.proto
@@ -99,7 +99,6 @@ extern void gdbm_sync __P((GDBM_FILE));
extern int gdbm_exists __P((GDBM_FILE, datum));
extern int gdbm_setopt __P((GDBM_FILE, int, int *, int));
extern int gdbm_fdesc __P((GDBM_FILE));
-extern int gdbm_locked __P((GDBM_FILE));
extern int gdbm_export __P((GDBM_FILE, const char *, int, int));
extern int gdbm_import __P((GDBM_FILE, const char *, int));
diff --git a/src/lock.c b/src/lock.c
index 4fd5cd6..9f40f4f 100644
--- a/src/lock.c
+++ b/src/lock.c
@@ -50,11 +50,13 @@
#define HAVE_FCNTL_LOCK 0
#endif
+#if 0
int
gdbm_locked (gdbm_file_info *dbf)
{
return (dbf->lock_type != LOCKING_NONE);
}
+#endif
void
_gdbm_unlock_file (gdbm_file_info *dbf)
diff --git a/src/proto.h b/src/proto.h
index 129ed55..90b28ed 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -51,7 +51,6 @@ off_t _gdbm_mapped_lseek (gdbm_file_info *, off_t, int);
int _gdbm_mapped_sync (gdbm_file_info *);
/* From lock.c */
-int gdbm_locked (gdbm_file_info *);
void _gdbm_unlock_file (gdbm_file_info *);
int _gdbm_lock_file (gdbm_file_info *);

Return to:

Send suggestions and report system problems to the System administrator.