Lines Matching refs:lock

419 	if (info->fp && info->fp!=info->lock.fp) {  in dba_close()
426 if (info->lock.fp) { in dba_close()
428 php_stream_pclose(info->lock.fp); in dba_close()
430 php_stream_close(info->lock.fp); in dba_close()
433 if (info->lock.name) { in dba_close()
434 pefree(info->lock.name, info->flags&DBA_PERSISTENT); in dba_close()
818 info->lock.mode = lock_mode; in php_dba_open()
826 if ( ( (lock_mode&LOCK_EX) && (other->lock.mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
827 || ( (other->lock.mode&LOCK_EX) && (lock_mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
843 …info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|pe… in php_dba_open()
845 if (!info->lock.fp) { in php_dba_open()
850 info->lock.name = opened_path; in php_dba_open()
853 info->lock.name = pestrdup(opened_path, persistent); in php_dba_open()
859 if (!info->lock.fp) { in php_dba_open()
860 …info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|… in php_dba_open()
861 if (info->lock.fp) { in php_dba_open()
869 info->lock.name = opened_path; in php_dba_open()
871 info->lock.name = pestrdup(opened_path, persistent); in php_dba_open()
879 if (!info->lock.fp) { in php_dba_open()
885 if (!php_stream_supports_lock(info->lock.fp)) { in php_dba_open()
888 if (php_stream_lock(info->lock.fp, lock_mode)) { in php_dba_open()
895 if (info->lock.fp && lock_dbf) { in php_dba_open()
896 info->fp = info->lock.fp; /* use the same stream for locking and database access */ in php_dba_open()