Lines Matching refs:lock_mode
641 int lock_mode, lock_flag, lock_dbf = 0; in php_dba_open() local
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()
768 if (lock_mode) { in php_dba_open()
788 lock_mode = (lock_flag & DBA_LOCK_TRUNC) ? LOCK_EX : 0; in php_dba_open()
809 if (!lock_mode) { in php_dba_open()
820 lock_mode |= LOCK_NB; /* test =: non blocking */ in php_dba_open()
836 info->lock.mode = lock_mode; in php_dba_open()
844 if ( ( (lock_mode&LOCK_EX) && (other->lock.mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
845 || ( (other->lock.mode&LOCK_EX) && (lock_mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
852 if (!error && lock_mode) { in php_dba_open()
898 if (php_stream_lock(info->lock.fp, lock_mode)) { in php_dba_open()