Lines Matching refs:lock_flag
641 int lock_mode, lock_flag, lock_dbf = 0; in php_dba_open() local
730 lock_flag = (hptr->flags & DBA_LOCK_ALL); in php_dba_open()
735 lock_flag = DBA_LOCK_ALL; in php_dba_open()
747 lock_flag = 0; in php_dba_open()
751 lock_flag = (hptr->flags&DBA_LOCK_ALL); in php_dba_open()
757 lock_mode = (lock_flag & DBA_LOCK_READER) ? LOCK_SH : 0; in php_dba_open()
762 lock_mode = (lock_flag & DBA_LOCK_WRITER) ? LOCK_EX : 0; in php_dba_open()
767 lock_mode = (lock_flag & DBA_LOCK_CREAT) ? LOCK_EX : 0; in php_dba_open()
788 lock_mode = (lock_flag & DBA_LOCK_TRUNC) ? LOCK_EX : 0; in php_dba_open()
804 if (!lock_flag) { in php_dba_open()
835 …info->flags = (hptr->flags & ~DBA_LOCK_ALL) | (lock_flag & DBA_LOCK_ALL) | (persistent ? DBA_PERSI… in php_dba_open()