Lines Matching refs:lock_mode
466 int lock_mode, lock_flag = 0; in php_dba_open() local
640 lock_mode = (lock_flag & DBA_LOCK_READER) ? LOCK_SH : 0; in php_dba_open()
645 lock_mode = (lock_flag & DBA_LOCK_WRITER) ? LOCK_EX : 0; in php_dba_open()
656 lock_mode = (lock_flag & DBA_LOCK_CREAT) ? LOCK_EX : 0; in php_dba_open()
657 if (lock_mode) { in php_dba_open()
693 lock_mode = (lock_flag & DBA_LOCK_TRUNC) ? LOCK_EX : 0; in php_dba_open()
710 if (!lock_mode) { in php_dba_open()
721 lock_mode |= LOCK_NB; /* test =: non blocking */ in php_dba_open()
733 info->lock.mode = lock_mode; in php_dba_open()
741 if ( ( (lock_mode&LOCK_EX) && (other->lock.mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
742 || ( (other->lock.mode&LOCK_EX) && (lock_mode&(LOCK_EX|LOCK_SH)) ) in php_dba_open()
752 if (!error && lock_mode) { in php_dba_open()
801 if (!error && php_stream_lock(info->lock.fp, lock_mode)) { in php_dba_open()