Lines Matching refs:lock_file
62 int lock_file = -1; variable
98 lock_file = memfd_create("opcache_lock", MFD_CLOEXEC); in zend_shared_alloc_create_lock()
99 if (lock_file >= 0) in zend_shared_alloc_create_lock()
104 lock_file = mkstemp(lockfile_name); in zend_shared_alloc_create_lock()
105 if (lock_file == -1) { in zend_shared_alloc_create_lock()
109 fchmod(lock_file, 0666); in zend_shared_alloc_create_lock()
111 val = fcntl(lock_file, F_GETFD, 0); in zend_shared_alloc_create_lock()
113 fcntl(lock_file, F_SETFD, val); in zend_shared_alloc_create_lock()
326 close(lock_file); in zend_shared_alloc_shutdown()
500 if (fcntl(lock_file, F_SETLKW, &mem_write_lock) == -1) { in zend_shared_alloc_lock()
531 if (fcntl(lock_file, F_SETLK, &mem_write_unlock) == -1) { in zend_shared_alloc_unlock()