/PHP-7.2/ext/standard/tests/file/ |
H A D | flock.phpt | 2 flock() tests 6 $file = dirname(__FILE__)."/flock.dat"; 8 var_dump(flock()); 9 var_dump(flock("", "", $var)); 14 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 18 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 19 var_dump(flock($fp, LOCK_UN)); 20 var_dump(flock($fp, LOCK_EX)); 21 var_dump(flock($fp, LOCK_UN)); 33 var_dump(flock($fp, -1)); [all …]
|
H A D | flock_error.phpt | 2 Test flock() function: Error conditions 13 $file = dirname(__FILE__)."/flock.tmp"; 32 var_dump(flock($fp, $operation)); 40 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 42 var_dump(flock("", "", $var)); 45 var_dump(flock()); 46 var_dump(flock($fp)); 49 var_dump(flock($fp, "", $var, "")); 55 $file = dirname(__FILE__)."/flock.tmp"; 62 Warning: flock(): Illegal operation argument in %s on line %d [all …]
|
H A D | flock_basic.phpt | 2 Test flock() function: Basic functionality 11 echo "*** Testing flock() fun with file and dir ***\n"; 15 var_dump(flock($file_handle, LOCK_SH|LOCK_NB)); 16 var_dump(flock($file_handle, LOCK_UN)); 17 var_dump(flock($file_handle, LOCK_EX)); 18 var_dump(flock($file_handle, LOCK_UN)); 24 var_dump(flock($dir_handle, LOCK_SH|LOCK_NB)); 25 var_dump(flock($dir_handle, LOCK_UN)); 26 var_dump(flock($dir_handle, LOCK_EX)); 27 var_dump(flock($dir_handle, LOCK_UN)); [all …]
|
H A D | bug65272.phpt | 2 Bug #65272: flock() correctly sets wouldblock out param in windows 13 var_dump(flock($fp1, LOCK_SH)); 16 var_dump(flock($fp2, LOCK_EX|LOCK_NB, $wouldblock));
|
H A D | userstreams_004.phpt | 21 flock($fd, $mode); 45 Warning: flock(): test_wrapper_base::stream_lock is not implemented! in %s
|
H A D | flock_variation.phpt | 2 Test flock() function: Variations 6 Prototype: bool flock(resource $handle, int $operation [, int &$wouldblock]); 11 echo "*** Testing flock() fun with the various operation and 13 $file = dirname(__FILE__)."/flock.tmp"; 52 var_dump(flock($fp, $operation)); 56 var_dump(flock($fp, $operation, $wouldblock)); 68 *** Testing flock() fun with the various operation and
|
/PHP-7.2/ext/standard/ |
H A D | flock_compat.c | 37 PHPAPI int flock(int fd, int operation) in flock() function 46 struct flock flck; in php_flock() 161 #warning no proper flock support for your site
|
H A D | flock_compat.h | 35 PHPAPI int flock(int fd, int operation);
|
H A D | file.h | 62 PHP_FUNCTION(flock);
|
H A D | file.c | 333 PHP_FUNCTION(flock) in PHP_FUNCTION() argument
|
H A D | basic_functions.c | 3163 PHP_FE(flock, arginfo_flock)
|
/PHP-7.2/ext/zlib/tests/ |
H A D | zlib_wrapper_flock_basic.phpt | 13 var_dump(flock($h, LOCK_SH));
|
/PHP-7.2/ext/opcache/ |
H A D | zend_shared_alloc.c | 377 struct flock mem_write_lock; in zend_shared_alloc_lock() 414 struct flock mem_write_unlock; in zend_shared_alloc_unlock()
|
H A D | ZendAccelerator.c | 233 struct flock restart_in_progress; in accel_restart_enter() 253 struct flock restart_finished; in accel_restart_leave() 271 struct flock restart_check; in accel_restart_is_active() 301 struct flock mem_usage_lock; in accel_activate_add() 325 struct flock mem_usage_unlock; in accel_deactivate_sub() 343 struct flock mem_usage_unlock_all; in accel_unlock_all() 678 static inline void kill_all_lockers(struct flock *mem_usage_check) in kill_all_lockers() 742 struct flock mem_usage_check; in accel_is_inactive()
|
H A D | zend_file_cache.c | 80 # define zend_file_cache_flock flock
|
/PHP-7.2/ext/session/ |
H A D | mod_files.c | 149 flock(data->fd, LOCK_UN); in ps_files_close() 214 ret = flock(data->fd, LOCK_EX); in ps_files_open()
|
/PHP-7.2/ext/spl/internal/ |
H A D | splfileobject.inc | 118 function flock($operation, &$wouldblock) 120 return flock($this->fp, $operation, $wouldblock);
|
/PHP-7.2/main/ |
H A D | fastcgi.c | 99 struct flock lock; \ 115 struct flock lock; \
|
/PHP-7.2/main/streams/ |
H A D | plain_wrapper.c | 680 if (!flock(fd, value)) { in php_stdiop_set_option()
|
/PHP-7.2/ |
H A D | README.STREAMS | 43 names: fread, fwrite, fprintf, feof, fgetc, fgets, fclose, fflush, fseek, ftell, flock.
|
H A D | acinclude.m4 | 1417 AC_CACHE_CHECK(for struct flock,ac_cv_struct_flock, 1422 [struct flock x;], 1430 AC_DEFINE(HAVE_STRUCT_FLOCK, 1,[whether you have struct flock])
|
H A D | configure.ac | 606 flock \
|
/PHP-7.2/ext/spl/ |
H A D | spl_directory.c | 2753 FileFunction(flock) 3089 SPL_ME(SplFileObject, flock, arginfo_file_object_flock, ZEND_ACC_PUBLIC)
|
/PHP-7.2/ext/sqlite3/libsqlite/ |
H A D | sqlite3.c | 33272 static int lockTrace(int fd, int op, struct flock *p){ 33301 struct flock l2; 34019 struct flock lock; 34103 struct flock lock; 34189 struct flock lock; 34399 struct flock lock; 34892 do{ rc = flock(fd,op); }while( rc<0 && errno==EINTR ); 34896 # define robust_flock(a,b) flock(a,b) 36915 struct flock lock; 37896 struct flock lockInfo; [all …]
|