Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 24 of 24) sorted by relevance

/PHP-7.2/ext/standard/tests/file/
H A Dflock.phpt2 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 Dflock_error.phpt2 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 Dflock_basic.phpt2 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 Dbug65272.phpt2 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 Duserstreams_004.phpt21 flock($fd, $mode);
45 Warning: flock(): test_wrapper_base::stream_lock is not implemented! in %s
H A Dflock_variation.phpt2 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 Dflock_compat.c37 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 Dflock_compat.h35 PHPAPI int flock(int fd, int operation);
H A Dfile.h62 PHP_FUNCTION(flock);
H A Dfile.c333 PHP_FUNCTION(flock) in PHP_FUNCTION() argument
H A Dbasic_functions.c3163 PHP_FE(flock, arginfo_flock)
/PHP-7.2/ext/zlib/tests/
H A Dzlib_wrapper_flock_basic.phpt13 var_dump(flock($h, LOCK_SH));
/PHP-7.2/ext/opcache/
H A Dzend_shared_alloc.c377 struct flock mem_write_lock; in zend_shared_alloc_lock()
414 struct flock mem_write_unlock; in zend_shared_alloc_unlock()
H A DZendAccelerator.c233 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 Dzend_file_cache.c80 # define zend_file_cache_flock flock
/PHP-7.2/ext/session/
H A Dmod_files.c149 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 Dsplfileobject.inc118 function flock($operation, &$wouldblock)
120 return flock($this->fp, $operation, $wouldblock);
/PHP-7.2/main/
H A Dfastcgi.c99 struct flock lock; \
115 struct flock lock; \
/PHP-7.2/main/streams/
H A Dplain_wrapper.c680 if (!flock(fd, value)) { in php_stdiop_set_option()
/PHP-7.2/
H A DREADME.STREAMS43 names: fread, fwrite, fprintf, feof, fgetc, fgets, fclose, fflush, fseek, ftell, flock.
H A Dacinclude.m41417 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 Dconfigure.ac606 flock \
/PHP-7.2/ext/spl/
H A Dspl_directory.c2753 FileFunction(flock)
3089 SPL_ME(SplFileObject, flock, arginfo_file_object_flock, ZEND_ACC_PUBLIC)
/PHP-7.2/ext/sqlite3/libsqlite/
H A Dsqlite3.c33272 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 …]

Completed in 513 milliseconds