Home
last modified time | relevance | path

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

12

/PHP-5.6/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
10 $file = dirname(__FILE__)."/flock.dat";
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-5.6/ext/standard/
H A Dflock_compat.c41 PHPAPI int flock(int fd, int operation) in flock() function
50 struct flock flck; in php_flock()
165 #warning no proper flock support for your site
H A Dflock_compat.h35 PHPAPI int flock(int fd, int operation);
H A Dfile.h60 PHP_FUNCTION(flock);
H A Dfile.c340 PHP_FUNCTION(flock) in PHP_FUNCTION() argument
/PHP-5.6/ext/opcache/
H A DZendAccelerator.h104 struct flock name = {start, len, -1, type, whence}
107 struct flock name = {type, whence, start, len}
110 struct flock name = {type, whence, start, len, 0}
114 struct flock name = {type, whence, 0, 0, 0, start, len }
117 struct flock name = {type, whence, start, len}
121 struct flock name = {start, len, -1, type, whence}
124 struct flock name = {type, whence, start, len}
H A Dconfig.m4330 AC_MSG_CHECKING("whether flock struct is linux ordered")
333 struct flock lock = { 1, 2, 3, 4, 5 };
342 AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
346 AC_MSG_CHECKING("whether flock struct is BSD ordered")
349 struct flock lock = { 1, 2, 3, 4, 5 };
358 AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type])
363 AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no])
H A DZendAccelerator.c597 static inline void kill_all_lockers(struct flock *mem_usage_check) in kill_all_lockers()
/PHP-5.6/win32/
H A Dflock.h11 PHPAPI int flock(int fd, int op);
H A Dflock.c55 PHPAPI int flock(int fd, int op) in flock() function
/PHP-5.6/ext/zlib/tests/
H A Dzlib_wrapper_flock_basic.phpt13 var_dump(flock($h, LOCK_SH));
/PHP-5.6/ext/session/
H A Dmod_files.c114 flock(data->fd, LOCK_UN); in ps_files_close()
171 ret = flock(data->fd, LOCK_EX); in ps_files_open()
/PHP-5.6/ext/spl/internal/
H A Dsplfileobject.inc118 function flock($operation, &$wouldblock)
120 return flock($this->fp, $operation, $wouldblock);
/PHP-5.6/sapi/fpm/fpm/
H A Dfastcgi.c98 struct flock lock; \
114 struct flock lock; \
/PHP-5.6/sapi/cgi/
H A Dfastcgi.c99 struct flock lock; \
115 struct flock lock; \
/PHP-5.6/main/streams/
H A Dplain_wrapper.c643 if (!flock(fd, value)) { in php_stdiop_set_option()
/PHP-5.6/
H A DREADME.STREAMS43 names: fread, fwrite, fprintf, feof, fgetc, fgets, fclose, fflush, fseek, ftell, flock.
H A Dacinclude.m41426 AC_CACHE_CHECK(for struct flock,ac_cv_struct_flock,
1431 [struct flock x;],
1439 AC_DEFINE(HAVE_STRUCT_FLOCK, 1,[whether you have struct flock])
H A Dconfigure.in615 flock \
/PHP-5.6/ext/spl/
H A Dspl_directory.c2761 FileFunction(flock)
3100 SPL_ME(SplFileObject, flock, arginfo_file_object_flock, ZEND_ACC_PUBLIC)

Completed in 79 milliseconds

12