Home
last modified time | relevance | path

Searched refs:lock_file (Results 1 – 4 of 4) sorted by relevance

/php-src/ext/standard/tests/file/
H A Dflock_basic.phpt12 $lock_file = preg_replace("~\.phpt?$~", '', __FILE__);
14 $file_handle = fopen($lock_file, "w");
20 unlink($lock_file);
/php-src/ext/opcache/
H A Dzend_shared_alloc.c62 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()
107 if (lock_file >= 0) { in zend_shared_alloc_create_lock()
113 lock_file = mkstemp(lockfile_name); in zend_shared_alloc_create_lock()
114 if (lock_file == -1) { in zend_shared_alloc_create_lock()
118 fchmod(lock_file, 0666); in zend_shared_alloc_create_lock()
120 val = fcntl(lock_file, F_GETFD, 0); in zend_shared_alloc_create_lock()
122 fcntl(lock_file, F_SETFD, val); in zend_shared_alloc_create_lock()
335 close(lock_file); in zend_shared_alloc_shutdown()
[all …]
H A DZendAccelerator.h91 extern int lock_file;
H A DZendAccelerator.c273 if (fcntl(lock_file, F_SETLK, &restart_in_progress) == -1) { in accel_restart_enter()
294 if (fcntl(lock_file, F_SETLK, &restart_finished) == -1) { in accel_restart_leave()
311 if (fcntl(lock_file, F_GETLK, &restart_check) == -1) { in accel_restart_is_active()
343 if (fcntl(lock_file, F_SETLK, &mem_usage_lock) == -1) { in accel_activate_add()
369 if (fcntl(lock_file, F_SETLK, &mem_usage_unlock) == -1) { in accel_deactivate_sub()
380 if (lock_file == -1) { in accel_unlock_all()
391 if (fcntl(lock_file, F_SETLK, &mem_usage_unlock_all) == -1) { in accel_unlock_all()
875 if (fcntl(lock_file, F_GETLK, mem_usage_check) == -1) { in kill_all_lockers()
908 if (fcntl(lock_file, F_GETLK, &mem_usage_check) == -1) { in accel_is_inactive()

Completed in 28 milliseconds