Home
last modified time | relevance | path

Searched refs:F_RDLCK (Results 1 – 25 of 5473) sorted by relevance

12345678910>>...219

/dports/sysutils/pxp-agent/pxp-agent-1.15.16/lib/tests/unit/util/posix/
H A Dpid_file_test.cc246 REQUIRE_NOTHROW(PIDFile::lockFile(fd, F_RDLCK));
259 REQUIRE_NOTHROW(testConcurrentLock(F_RDLCK, F_RDLCK, true));
278 PIDFile::lockFile(fd, F_RDLCK);
280 REQUIRE_NOTHROW(PIDFile::lockFile(fd, F_RDLCK));
281 REQUIRE_NOTHROW(PIDFile::lockFile(fd, F_RDLCK));
395 REQUIRE(PIDFile::canLockFile(fd, F_RDLCK));
408 PIDFile::lockFile(fd, F_RDLCK);
410 REQUIRE(PIDFile::canLockFile(fd, F_RDLCK));
415 REQUIRE(PIDFile::canLockFile(fd, F_RDLCK));
421 REQUIRE_NOTHROW(testLockCheck(F_RDLCK, F_RDLCK, true));
[all …]
/dports/databases/sqlite3/sqlite-src-3350500/tool/
H A Dgetlock.c95 if( isLocked(hDb, F_RDLCK, SHARED_FIRST, SHARED_SIZE, "EXCLUSIVE") ){ in main()
101 if( isLocked(hDb, F_RDLCK, PENDING_BYTE, 1, "PENDING") ) return 0; in main()
102 if( isLocked(hDb, F_RDLCK, RESERVED_BYTE, 1, "RESERVED") ) return 0; in main()
121 if( isLocked(hShm, F_RDLCK, SHM_RECOVER, 1, "WAL-RECOVERY") ){ in main()
124 nLock += isLocked(hShm, F_RDLCK, SHM_CHECKPOINT, 1, "WAL-CHECKPOINT"); in main()
125 nLock += isLocked(hShm, F_RDLCK, SHM_WRITE, 1, "WAL-WRITE"); in main()
/dports/databases/sqlcipher/sqlcipher-3.4.2/tool/
H A Dgetlock.c95 if( isLocked(hDb, F_RDLCK, SHARED_FIRST, SHARED_SIZE, "EXCLUSIVE") ){ in main()
101 if( isLocked(hDb, F_RDLCK, PENDING_BYTE, 1, "PENDING") ) return 0; in main()
102 if( isLocked(hDb, F_RDLCK, RESERVED_BYTE, 1, "RESERVED") ) return 0; in main()
121 if( isLocked(hShm, F_RDLCK, SHM_RECOVER, 1, "WAL-RECOVERY") ){ in main()
124 nLock += isLocked(hShm, F_RDLCK, SHM_CHECKPOINT, 1, "WAL-CHECKPOINT"); in main()
125 nLock += isLocked(hShm, F_RDLCK, SHM_WRITE, 1, "WAL-WRITE"); in main()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/sqlite/src/tool/
H A Dgetlock.c95 if( isLocked(hDb, F_RDLCK, SHARED_FIRST, SHARED_SIZE, "EXCLUSIVE") ){ in main()
101 if( isLocked(hDb, F_RDLCK, PENDING_BYTE, 1, "PENDING") ) return 0; in main()
102 if( isLocked(hDb, F_RDLCK, RESERVED_BYTE, 1, "RESERVED") ) return 0; in main()
121 if( isLocked(hShm, F_RDLCK, SHM_RECOVER, 1, "WAL-RECOVERY") ){ in main()
124 nLock += isLocked(hShm, F_RDLCK, SHM_CHECKPOINT, 1, "WAL-CHECKPOINT"); in main()
125 nLock += isLocked(hShm, F_RDLCK, SHM_WRITE, 1, "WAL-WRITE"); in main()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/sqlite/src/tool/
H A Dgetlock.c95 if( isLocked(hDb, F_RDLCK, SHARED_FIRST, SHARED_SIZE, "EXCLUSIVE") ){ in main()
101 if( isLocked(hDb, F_RDLCK, PENDING_BYTE, 1, "PENDING") ) return 0; in main()
102 if( isLocked(hDb, F_RDLCK, RESERVED_BYTE, 1, "RESERVED") ) return 0; in main()
121 if( isLocked(hShm, F_RDLCK, SHM_RECOVER, 1, "WAL-RECOVERY") ){ in main()
124 nLock += isLocked(hShm, F_RDLCK, SHM_CHECKPOINT, 1, "WAL-CHECKPOINT"); in main()
125 nLock += isLocked(hShm, F_RDLCK, SHM_WRITE, 1, "WAL-WRITE"); in main()
/dports/sysutils/pxp-agent/pxp-agent-1.15.16/lib/src/util/posix/
H A Dpid_file.cc68 lockFileBlocking(pidfile_fd, F_RDLCK); in lockRead()
70 lockFile(pidfile_fd, F_RDLCK); in lockRead()
83 return canLockFile(pidfile_fd, F_RDLCK); in canLockRead()
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()
/dports/net-mgmt/wmi-client/wmi-1.3.16/Samba/source/lib/tdb/common/
H A Dlock.c112 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in tdb_lock()
152 (ltype == tdb->global_lock.ltype || ltype == F_RDLCK)) { in tdb_unlock()
268 return _tdb_lockall(tdb, F_RDLCK); in tdb_lockall_read()
274 return _tdb_unlockall(tdb, F_RDLCK); in tdb_unlockall_read()
291 return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
296 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
304 return off ? tdb->methods->tdb_brlock(tdb, off, F_RDLCK, F_SETLKW, 0, 1) : 0; in tdb_lock_record()
/dports/net/samba412/samba-4.12.15/lib/tdb/common/
H A Dlock.c81 type = F_RDLCK; in fcntl_unlock()
105 rw == F_RDLCK ? "READ" : "WRITE", line); in fcntl_unlock()
352 if ((new_lck->ltype == F_RDLCK) && (ltype == F_WRLCK)) { in tdb_nest_lock()
444 if (ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
452 if (tdb->allrecord_lock.ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
625 if (upgradable && ltype != F_RDLCK) { in tdb_allrecord_check()
755 && (!tdb->allrecord_lock.off || ltype != F_RDLCK)) { in tdb_allrecord_unlock()
847 return tdb_allrecord_unlock(tdb, F_RDLCK, false); in tdb_unlockall_read()
895 ret = tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
903 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
[all …]
/dports/databases/tdb/tdb-1.4.3/common/
H A Dlock.c81 type = F_RDLCK; in fcntl_unlock()
105 rw == F_RDLCK ? "READ" : "WRITE", line); in fcntl_unlock()
352 if ((new_lck->ltype == F_RDLCK) && (ltype == F_WRLCK)) { in tdb_nest_lock()
444 if (ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
452 if (tdb->allrecord_lock.ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
625 if (upgradable && ltype != F_RDLCK) { in tdb_allrecord_check()
755 && (!tdb->allrecord_lock.off || ltype != F_RDLCK)) { in tdb_allrecord_unlock()
847 return tdb_allrecord_unlock(tdb, F_RDLCK, false); in tdb_unlockall_read()
895 ret = tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
903 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
[all …]
/dports/databases/ldb20/ldb-2.0.10/lib/tdb/common/
H A Dlock.c81 type = F_RDLCK; in fcntl_unlock()
105 rw == F_RDLCK ? "READ" : "WRITE", line); in fcntl_unlock()
352 if ((new_lck->ltype == F_RDLCK) && (ltype == F_WRLCK)) { in tdb_nest_lock()
444 if (ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
452 if (tdb->allrecord_lock.ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
625 if (upgradable && ltype != F_RDLCK) { in tdb_allrecord_check()
755 && (!tdb->allrecord_lock.off || ltype != F_RDLCK)) { in tdb_allrecord_unlock()
847 return tdb_allrecord_unlock(tdb, F_RDLCK, false); in tdb_unlockall_read()
895 ret = tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
903 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
[all …]
/dports/databases/ldb15/ldb-1.5.6/lib/tdb/common/
H A Dlock.c81 type = F_RDLCK; in fcntl_unlock()
105 rw == F_RDLCK ? "READ" : "WRITE", line); in fcntl_unlock()
352 if ((new_lck->ltype == F_RDLCK) && (ltype == F_WRLCK)) { in tdb_nest_lock()
444 if (ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
452 if (tdb->allrecord_lock.ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
625 if (upgradable && ltype != F_RDLCK) { in tdb_allrecord_check()
755 && (!tdb->allrecord_lock.off || ltype != F_RDLCK)) { in tdb_allrecord_unlock()
847 return tdb_allrecord_unlock(tdb, F_RDLCK, false); in tdb_unlockall_read()
895 ret = tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
903 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
[all …]
/dports/databases/ldb21/ldb-2.1.5/lib/tdb/common/
H A Dlock.c81 type = F_RDLCK; in fcntl_unlock()
105 rw == F_RDLCK ? "READ" : "WRITE", line); in fcntl_unlock()
352 if ((new_lck->ltype == F_RDLCK) && (ltype == F_WRLCK)) { in tdb_nest_lock()
444 if (ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
452 if (tdb->allrecord_lock.ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
625 if (upgradable && ltype != F_RDLCK) { in tdb_allrecord_check()
755 && (!tdb->allrecord_lock.off || ltype != F_RDLCK)) { in tdb_allrecord_unlock()
847 return tdb_allrecord_unlock(tdb, F_RDLCK, false); in tdb_unlockall_read()
895 ret = tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
903 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
[all …]
/dports/databases/ldb22/ldb-2.2.1/lib/tdb/common/
H A Dlock.c81 type = F_RDLCK; in fcntl_unlock()
105 rw == F_RDLCK ? "READ" : "WRITE", line); in fcntl_unlock()
352 if ((new_lck->ltype == F_RDLCK) && (ltype == F_WRLCK)) { in tdb_nest_lock()
444 if (ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
452 if (tdb->allrecord_lock.ltype == F_RDLCK) { in tdb_lock_covered_by_allrecord_lock()
625 if (upgradable && ltype != F_RDLCK) { in tdb_allrecord_check()
755 && (!tdb->allrecord_lock.off || ltype != F_RDLCK)) { in tdb_allrecord_unlock()
847 return tdb_allrecord_unlock(tdb, F_RDLCK, false); in tdb_unlockall_read()
895 ret = tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainlock_read()
903 return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); in tdb_chainunlock_read()
[all …]
/dports/lang/gcc9-devel/gcc-9-20211007/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d148 enum F_RDLCK = 0; in version() local
305 enum F_RDLCK = 1; in version() local
356 enum F_RDLCK = 1; in version() local
418 enum F_RDLCK = 1; in version() local
490 enum F_RDLCK = 1; in version() local
587 enum F_RDLCK = 1; in version() local
647 enum F_RDLCK = 1; in version() local
740 enum F_RDLCK = 0;
825 F_RDLCK = 0,
874 enum F_RDLCK = 0;
/dports/lang/gcc9-aux/gcc-9.1.0/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d148 enum F_RDLCK = 0; in version() local
305 enum F_RDLCK = 1; in version() local
356 enum F_RDLCK = 1; in version() local
418 enum F_RDLCK = 1; in version() local
490 enum F_RDLCK = 1; in version() local
587 enum F_RDLCK = 1; in version() local
647 enum F_RDLCK = 1; in version() local
740 enum F_RDLCK = 0;
825 F_RDLCK = 0,
874 enum F_RDLCK = 0;
/dports/lang/gcc9/gcc-9.4.0/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d148 enum F_RDLCK = 0; in version() local
305 enum F_RDLCK = 1; in version() local
356 enum F_RDLCK = 1; in version() local
418 enum F_RDLCK = 1; in version() local
490 enum F_RDLCK = 1; in version() local
587 enum F_RDLCK = 1; in version() local
647 enum F_RDLCK = 1; in version() local
740 enum F_RDLCK = 0;
825 F_RDLCK = 0,
874 enum F_RDLCK = 0;
/dports/mail/vpopmail/vpopmail-5.4.33/
H A Dfile_lock.h35 lock_reg(fd, F_SETLK, F_RDLCK, offset, whence, len)
38 lock_reg(fd, F_SETLKW, F_RDLCK, offset, whence, len)
54 lock_test(fd, F_RDLCK, offset, whence, len)
/dports/lang/gcc12-devel/gcc-12-20211205/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d149 enum F_RDLCK = 0; in version() local
314 enum F_RDLCK = 1; in version() local
365 enum F_RDLCK = 1; in version() local
427 enum F_RDLCK = 1; in version() local
499 enum F_RDLCK = 1; in version() local
596 enum F_RDLCK = 1; in version() local
656 enum F_RDLCK = 1; in version() local
749 enum F_RDLCK = 0;
924 F_RDLCK = 0,
977 enum F_RDLCK = 0;
/dports/lang/gcc11/gcc-11.2.0/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d149 enum F_RDLCK = 0; in version() local
306 enum F_RDLCK = 1; in version() local
357 enum F_RDLCK = 1; in version() local
419 enum F_RDLCK = 1; in version() local
491 enum F_RDLCK = 1; in version() local
588 enum F_RDLCK = 1; in version() local
648 enum F_RDLCK = 1; in version() local
741 enum F_RDLCK = 0;
916 F_RDLCK = 0,
969 enum F_RDLCK = 0;
/dports/lang/gcc10/gcc-10.3.0/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d148 enum F_RDLCK = 0; in version() local
305 enum F_RDLCK = 1; in version() local
356 enum F_RDLCK = 1; in version() local
418 enum F_RDLCK = 1; in version() local
490 enum F_RDLCK = 1; in version() local
587 enum F_RDLCK = 1; in version() local
647 enum F_RDLCK = 1; in version() local
740 enum F_RDLCK = 0;
915 F_RDLCK = 0,
964 enum F_RDLCK = 0;
/dports/lang/gcc11-devel/gcc-11-20211009/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d149 enum F_RDLCK = 0; in version() local
306 enum F_RDLCK = 1; in version() local
357 enum F_RDLCK = 1; in version() local
419 enum F_RDLCK = 1; in version() local
491 enum F_RDLCK = 1; in version() local
588 enum F_RDLCK = 1; in version() local
648 enum F_RDLCK = 1; in version() local
741 enum F_RDLCK = 0;
916 F_RDLCK = 0,
969 enum F_RDLCK = 0;
/dports/devel/avr-gcc/gcc-10.2.0/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d148 enum F_RDLCK = 0; in version() local
305 enum F_RDLCK = 1; in version() local
356 enum F_RDLCK = 1; in version() local
418 enum F_RDLCK = 1; in version() local
490 enum F_RDLCK = 1; in version() local
587 enum F_RDLCK = 1; in version() local
647 enum F_RDLCK = 1; in version() local
740 enum F_RDLCK = 0;
915 F_RDLCK = 0,
964 enum F_RDLCK = 0;
/dports/lang/gcc10-devel/gcc-10-20211008/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d148 enum F_RDLCK = 0; in version() local
305 enum F_RDLCK = 1; in version() local
356 enum F_RDLCK = 1; in version() local
418 enum F_RDLCK = 1; in version() local
490 enum F_RDLCK = 1; in version() local
587 enum F_RDLCK = 1; in version() local
647 enum F_RDLCK = 1; in version() local
740 enum F_RDLCK = 0;
915 F_RDLCK = 0,
964 enum F_RDLCK = 0;
/dports/misc/cxx_atomics_pic/gcc-11.2.0/libphobos/libdruntime/core/sys/posix/
H A Dfcntl.d149 enum F_RDLCK = 0; in version() local
306 enum F_RDLCK = 1; in version() local
357 enum F_RDLCK = 1; in version() local
419 enum F_RDLCK = 1; in version() local
491 enum F_RDLCK = 1; in version() local
588 enum F_RDLCK = 1; in version() local
648 enum F_RDLCK = 1; in version() local
741 enum F_RDLCK = 0;
916 F_RDLCK = 0,
969 enum F_RDLCK = 0;
/dports/devel/libassa/libassa-3.5.1/assa/
H A DPidFileLock.cpp188 this->l_type = F_RDLCK; // shared lock in lock_region()
201 (this->l_type == F_RDLCK ? "F_RDLCK" : "F_WRLCK"), in lock_region()
314 (this->l_type == F_RDLCK ? "F_RDLCK" : "F_WRLCK"), in get_lock_status()
327 this->l_type = F_RDLCK; in get_lock_status()
399 if (this->l_type == F_RDLCK) in dump()

12345678910>>...219