Lines Matching refs:lock

486  *    when this lock is expected to expire.  Otherwise, return
805 const dav_lock *lock;
810 ** The resource will have one or more lock tokens. We only
814 ** One token case: It is an exclusive or shared lock. Either
822 for (lock = lock_list; lock != NULL; lock = lock->next) {
824 if (!(*locks_hooks->compare_locktoken)(state_list->locktoken, lock->locktoken)) {
836 * Returns NULL if path/uri meets if-header and lock requirements
853 dav_lock *lock;
869 ** 2) One exclusive lock. The locktoken must appear *anywhere* in the
884 ** If this is a new lock request, <flags> will contain the requested
885 ** lock scope. Three rules apply:
888 ** applying another shared lock)
890 ** 3) If the scope is shared and we see an exclusive lock, fail.
918 ** For a new, exclusive lock: if any locks exist, fail.
919 ** For a new, shared lock: if an exclusive lock exists, fail.
925 "Existing lock(s) on the requested resource "
926 "prevent an exclusive lock.");
938 ** (and only) lock will be EXCLUSIVE, or none of them will be.
940 for (lock = lock_list; lock != NULL; lock = lock->next) {
941 if (lock->scope == DAV_LOCKSCOPE_EXCLUSIVE) {
960 ** (per RFC 4918 the lock token is not required on resources
1144 ** a lock database).
1149 "a State-token was supplied, but a lock database "
1150 "is not available for to provide the required lock.";
1155 * ANY of the lock->locktokens match
1158 * NONE of the lock->locktokens match
1162 for (lock = lock_list; lock != NULL; lock = lock->next) {
1166 (*locks_hooks->format_locktoken)(p, lock->locktoken),
1171 if ((*locks_hooks->compare_locktoken)(state_list->locktoken, lock->locktoken)) {
1201 ** the lock, only the same user may submit that locktoken
1204 if (lock->auth_user &&
1206 strcmp(lock->auth_user, r->user))) {
1213 lock->auth_user, "\".", NULL);
1221 ** Break out of the lock scan -- we only needed to find
1223 ** matches in the lock list).
1337 "locktokens for this resource's lock(s).");
1414 "locktokens for this resource's lock(s).");
1584 ** If necessary, open the lock database (read-only, lazily);
1585 ** the validation process may need to retrieve or update lock info.
1845 * lockdb - pointer to lock database (opened if necessary)
1870 "but there is no lock provider.");
1875 "Cannot open lock database to determine "
2029 /* make sure lock database is closed */