summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-10-10 06:45:09 +0000
committerAndrew Tridgell <tridge@samba.org>2000-10-10 06:45:09 +0000
commit2d33e87424197b993e8e7d218c0945cc2b66078a (patch)
treeec4eeb9c527acd59c9dfdc72cb6be03a5a361540 /source3/include
parent2a9ce69f3b4a020bd1442901625562c6391746cd (diff)
downloadsamba-2d33e87424197b993e8e7d218c0945cc2b66078a.tar.gz
samba-2d33e87424197b993e8e7d218c0945cc2b66078a.tar.bz2
samba-2d33e87424197b993e8e7d218c0945cc2b66078a.zip
got rid of tdb_writelock() and instead lock a chain. tdb_writelock()
is conceptually flawed (This used to be commit 6e4a3585521b7e5928298bd0f1418ff9fbcacfb4)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 27fcb6a921..985a6efa0d 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -279,7 +279,6 @@ pid_t sys_fork(void);
pid_t sys_getpid(void);
int sys_popen(const char *command);
int sys_pclose(int fd);
-int fcntl64(int fd, int cmd, struct flock * lock);
/*The following definitions come from lib/talloc.c */
@@ -3993,13 +3992,13 @@ int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag);
TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags,
int open_flags, mode_t mode);
int tdb_close(TDB_CONTEXT *tdb);
-int tdb_writelock(TDB_CONTEXT *tdb);
-int tdb_writeunlock(TDB_CONTEXT *tdb);
int tdb_lockchain(TDB_CONTEXT *tdb, TDB_DATA key);
int tdb_unlockchain(TDB_CONTEXT *tdb, TDB_DATA key);
/*The following definitions come from tdb/tdbutil.c */
+int tdb_lock_bystring(TDB_CONTEXT *tdb, char *keyval);
+int tdb_unlock_bystring(TDB_CONTEXT *tdb, char *keyval);
int tdb_fetch_int_byblob(TDB_CONTEXT *tdb, char *keyval, size_t len);
int tdb_fetch_int(TDB_CONTEXT *tdb, char *keystr);
int tdb_store_int_byblob(TDB_CONTEXT *tdb, char *keystr, size_t len, int v);