Home
last modified time | relevance | path

Searched refs:F_WRLCK (Results 1 – 25 of 5410) sorted by relevance

12345678910>>...217

/dports/net/netatalk3/netatalk-3.1.12/libatalk/tdb/
H A Ddump.c67 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_dump_chain()
71 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
80 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
100 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) in tdb_printfreelist()
107 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
115 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
121 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
135 return tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
H A Dlock.c55 if ((rw_type == F_WRLCK) && (tdb->read_only || tdb->traverse_read)) { in tdb_brlock()
103 if (tdb_brlock(tdb, offset, F_WRLCK, F_SETLKW, 1, len) == 0) { in tdb_brlock_upgrade()
434 return _tdb_lockall(tdb, F_WRLCK, F_SETLKW); in tdb_lockall()
441 return _tdb_lockall(tdb, F_WRLCK | TDB_MARK_LOCK, F_SETLKW); in tdb_lockall_mark()
448 return _tdb_unlockall(tdb, F_WRLCK | TDB_MARK_LOCK); in tdb_lockall_unmark()
454 int ret = _tdb_lockall(tdb, F_WRLCK, F_SETLK); in tdb_lockall_nonblock()
463 return _tdb_unlockall(tdb, F_WRLCK); in tdb_unlockall()
492 int ret = tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock()
502 int ret = tdb_lock_nonblock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainlock_nonblock()
525 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); in tdb_chainunlock()
[all …]
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/lib/tdb/common/
H A Ddump.c65 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_dump_chain()
69 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
78 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
98 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) in tdb_printfreelist()
105 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
113 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
119 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
133 return tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
/dports/net/samba412/samba-4.12.15/lib/tdb/common/
H A Dlock.c83 type = F_WRLCK; in fcntl_unlock()
313 tdb->allrecord_lock.ltype = F_WRLCK; in tdb_allrecord_upgrade()
366 new_lck->ltype = F_WRLCK; in tdb_nest_lock()
414 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
420 tdb_brunlock(tdb, F_WRLCK, OPEN_LOCK, 1); in tdb_lock_and_recover()
421 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
810 return tdb_allrecord_unlock(tdb, F_WRLCK, true); in tdb_lockall_unmark()
873 F_WRLCK, TDB_LOCK_MARK_ONLY); in tdb_chainlock_mark()
883 F_WRLCK, true); in tdb_chainlock_unmark()
937 if (tdb->allrecord_lock.ltype == F_WRLCK) { in tdb_write_lock_record()
[all …]
H A Ddump.c72 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_check_record()
76 return tdb_unlock(tdb, i, F_WRLCK);
93 return tdb_unlock(tdb, i, F_WRLCK);
113 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0)
120 tdb_unlock(tdb, -1, F_WRLCK);
128 tdb_unlock(tdb, -1, F_WRLCK);
134 tdb_unlock(tdb, -1, F_WRLCK);
147 return tdb_unlock(tdb, -1, F_WRLCK);
/dports/databases/tdb/tdb-1.4.3/common/
H A Dlock.c83 type = F_WRLCK; in fcntl_unlock()
313 tdb->allrecord_lock.ltype = F_WRLCK; in tdb_allrecord_upgrade()
366 new_lck->ltype = F_WRLCK; in tdb_nest_lock()
414 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
420 tdb_brunlock(tdb, F_WRLCK, OPEN_LOCK, 1); in tdb_lock_and_recover()
421 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
810 return tdb_allrecord_unlock(tdb, F_WRLCK, true); in tdb_lockall_unmark()
873 F_WRLCK, TDB_LOCK_MARK_ONLY); in tdb_chainlock_mark()
883 F_WRLCK, true); in tdb_chainlock_unmark()
937 if (tdb->allrecord_lock.ltype == F_WRLCK) { in tdb_write_lock_record()
[all …]
H A Ddump.c72 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_dump_chain()
76 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
93 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
113 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) in tdb_printfreelist()
120 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
128 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
134 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
147 return tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
/dports/databases/ldb20/ldb-2.0.10/lib/tdb/common/
H A Dlock.c83 type = F_WRLCK; in fcntl_unlock()
313 tdb->allrecord_lock.ltype = F_WRLCK; in tdb_allrecord_upgrade()
366 new_lck->ltype = F_WRLCK; in tdb_nest_lock()
414 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
420 tdb_brunlock(tdb, F_WRLCK, OPEN_LOCK, 1); in tdb_lock_and_recover()
421 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
810 return tdb_allrecord_unlock(tdb, F_WRLCK, true); in tdb_lockall_unmark()
873 F_WRLCK, TDB_LOCK_MARK_ONLY); in tdb_chainlock_mark()
883 F_WRLCK, true); in tdb_chainlock_unmark()
937 if (tdb->allrecord_lock.ltype == F_WRLCK) { in tdb_write_lock_record()
[all …]
H A Ddump.c72 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_dump_chain()
76 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
93 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
113 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) in tdb_printfreelist()
120 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
128 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
134 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
147 return tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
/dports/databases/ldb15/ldb-1.5.6/lib/tdb/common/
H A Dlock.c83 type = F_WRLCK; in fcntl_unlock()
313 tdb->allrecord_lock.ltype = F_WRLCK; in tdb_allrecord_upgrade()
366 new_lck->ltype = F_WRLCK; in tdb_nest_lock()
414 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
420 tdb_brunlock(tdb, F_WRLCK, OPEN_LOCK, 1); in tdb_lock_and_recover()
421 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
810 return tdb_allrecord_unlock(tdb, F_WRLCK, true); in tdb_lockall_unmark()
873 F_WRLCK, TDB_LOCK_MARK_ONLY); in tdb_chainlock_mark()
883 F_WRLCK, true); in tdb_chainlock_unmark()
934 if (tdb->allrecord_lock.ltype == F_WRLCK) { in tdb_write_lock_record()
[all …]
H A Ddump.c72 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_dump_chain()
76 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
93 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
113 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) in tdb_printfreelist()
120 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
128 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
134 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
147 return tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
/dports/databases/ldb21/ldb-2.1.5/lib/tdb/common/
H A Dlock.c83 type = F_WRLCK; in fcntl_unlock()
313 tdb->allrecord_lock.ltype = F_WRLCK; in tdb_allrecord_upgrade()
366 new_lck->ltype = F_WRLCK; in tdb_nest_lock()
414 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
420 tdb_brunlock(tdb, F_WRLCK, OPEN_LOCK, 1); in tdb_lock_and_recover()
421 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
810 return tdb_allrecord_unlock(tdb, F_WRLCK, true); in tdb_lockall_unmark()
873 F_WRLCK, TDB_LOCK_MARK_ONLY); in tdb_chainlock_mark()
883 F_WRLCK, true); in tdb_chainlock_unmark()
937 if (tdb->allrecord_lock.ltype == F_WRLCK) { in tdb_write_lock_record()
[all …]
H A Ddump.c72 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_dump_chain()
76 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
93 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
113 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) in tdb_printfreelist()
120 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
128 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
134 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
147 return tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
/dports/databases/ldb22/ldb-2.2.1/lib/tdb/common/
H A Dlock.c83 type = F_WRLCK; in fcntl_unlock()
313 tdb->allrecord_lock.ltype = F_WRLCK; in tdb_allrecord_upgrade()
366 new_lck->ltype = F_WRLCK; in tdb_nest_lock()
414 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
420 tdb_brunlock(tdb, F_WRLCK, OPEN_LOCK, 1); in tdb_lock_and_recover()
421 tdb_brunlock(tdb, F_WRLCK, FREELIST_TOP, 0); in tdb_lock_and_recover()
810 return tdb_allrecord_unlock(tdb, F_WRLCK, true); in tdb_lockall_unmark()
873 F_WRLCK, TDB_LOCK_MARK_ONLY); in tdb_chainlock_mark()
883 F_WRLCK, true); in tdb_chainlock_unmark()
937 if (tdb->allrecord_lock.ltype == F_WRLCK) { in tdb_write_lock_record()
[all …]
H A Ddump.c72 if (tdb_lock(tdb, i, F_WRLCK) != 0) in tdb_dump_chain()
76 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
93 return tdb_unlock(tdb, i, F_WRLCK); in tdb_dump_chain()
113 if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) in tdb_printfreelist()
120 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
128 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
134 tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
147 return tdb_unlock(tdb, -1, F_WRLCK); in tdb_printfreelist()
/dports/sysutils/pxp-agent/pxp-agent-1.15.16/lib/tests/unit/util/posix/
H A Dpid_file_test.cc254 REQUIRE_NOTHROW(PIDFile::lockFile(fd, F_WRLCK));
263 REQUIRE_NOTHROW(testConcurrentLock(F_WRLCK, F_RDLCK, false));
271 REQUIRE_NOTHROW(testConcurrentLock(F_WRLCK, F_WRLCK, false));
296 PIDFile::lockFile(first_fd, F_WRLCK);
402 REQUIRE(PIDFile::canLockFile(fd, F_WRLCK));
411 REQUIRE(PIDFile::canLockFile(fd, F_WRLCK));
413 PIDFile::lockFile(fd, F_WRLCK);
416 REQUIRE(PIDFile::canLockFile(fd, F_WRLCK));
425 REQUIRE_NOTHROW(testLockCheck(F_RDLCK, F_WRLCK, false));
429 REQUIRE_NOTHROW(testLockCheck(F_WRLCK, F_RDLCK, false));
[all …]
/dports/net/samba412/samba-4.12.15/lib/tdb/test/
H A Drun-marklock-deadlock.c56 ret = tdb_allrecord_lock(tdb, F_WRLCK, TDB_LOCK_WAIT, false); in do_allrecord_lock()
156 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
159 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
180 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
183 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
214 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
217 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
227 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
230 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
/dports/databases/tdb/tdb-1.4.3/test/
H A Drun-marklock-deadlock.c56 ret = tdb_allrecord_lock(tdb, F_WRLCK, TDB_LOCK_WAIT, false); in do_allrecord_lock()
156 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
159 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
180 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
183 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
214 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
217 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
227 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
230 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
/dports/databases/ldb15/ldb-1.5.6/lib/tdb/test/
H A Drun-marklock-deadlock.c56 ret = tdb_allrecord_lock(tdb, F_WRLCK, TDB_LOCK_WAIT, false); in do_allrecord_lock()
156 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
159 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
180 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
183 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
214 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
217 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
227 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
230 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
/dports/databases/ldb20/ldb-2.0.10/lib/tdb/test/
H A Drun-marklock-deadlock.c56 ret = tdb_allrecord_lock(tdb, F_WRLCK, TDB_LOCK_WAIT, false);
156 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK);
159 ret = tdb_unlock(tdb, -1, F_WRLCK);
180 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK);
183 ret = tdb_unlock(tdb, -1, F_WRLCK);
214 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK);
217 ret = tdb_unlock(tdb, -1, F_WRLCK);
227 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK);
230 ret = tdb_unlock(tdb, -1, F_WRLCK);
/dports/databases/ldb21/ldb-2.1.5/lib/tdb/test/
H A Drun-marklock-deadlock.c56 ret = tdb_allrecord_lock(tdb, F_WRLCK, TDB_LOCK_WAIT, false);
156 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK);
159 ret = tdb_unlock(tdb, -1, F_WRLCK);
180 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK);
183 ret = tdb_unlock(tdb, -1, F_WRLCK);
214 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK);
217 ret = tdb_unlock(tdb, -1, F_WRLCK);
227 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK);
230 ret = tdb_unlock(tdb, -1, F_WRLCK);
/dports/databases/ldb22/ldb-2.2.1/lib/tdb/test/
H A Drun-marklock-deadlock.c56 ret = tdb_allrecord_lock(tdb, F_WRLCK, TDB_LOCK_WAIT, false); in do_allrecord_lock()
156 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
159 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
180 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
183 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
214 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
217 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
227 ret = tdb_lock_nonblock(tdb, -1, F_WRLCK); in do_tests()
230 ret = tdb_unlock(tdb, -1, F_WRLCK); in do_tests()
/dports/audio/sweep/sweep-0.9.3/src/tdb/
H A Dtdb.c609 tdb_unlock(tdb, -1, F_WRLCK);
616 tdb_unlock(tdb, -1, F_WRLCK);
622 tdb_unlock(tdb, -1, F_WRLCK);
742 tdb_unlock(tdb, -1, F_WRLCK);
746 tdb_unlock(tdb, -1, F_WRLCK);
865 tdb_unlock(tdb, -1, F_WRLCK);
868 tdb_unlock(tdb, -1, F_WRLCK);
945 tdb_unlock(tdb, -1, F_WRLCK);
957 tdb_unlock(tdb, -1, F_WRLCK);
1965 tdb_unlock(tdb, j, F_WRLCK);
[all …]
/dports/devel/rudiments/rudiments-1.2.2/test/
H A Dfile.cpp144 #if defined(F_WRLCK) in main()
145 F_WRLCK in main()
177 #if defined(F_WRLCK) in main()
178 F_WRLCK in main()
185 #if defined(F_WRLCK) in main()
186 F_WRLCK in main()
/dports/sysutils/pxp-agent/pxp-agent-1.15.16/lib/src/util/posix/
H A Dpid_file.cc76 lockFileBlocking(pidfile_fd, F_WRLCK); in lockWrite()
78 lockFile(pidfile_fd, F_WRLCK); in lockWrite()
87 return canLockFile(pidfile_fd, F_WRLCK); in canLockWrite()
167 assert(lock_type == F_RDLCK || lock_type == F_WRLCK); in lockFile()
184 assert(lock_type == F_RDLCK || lock_type == F_WRLCK); in lockFileBlocking()
205 assert(lock_type == F_RDLCK || lock_type == F_WRLCK); in canLockFile()

12345678910>>...217