Home
last modified time | relevance | path

Searched refs:LOCK_NB (Results 1 – 12 of 12) sorted by relevance

/PHP-8.2/ext/standard/tests/file/
H A Duserstreams_004.phpt37 test("fclock($mode|LOCK_NB)", $fd, constant($mode)|LOCK_NB);
50 ------ fclock(LOCK_SH|LOCK_NB): -------
54 ------ fclock(LOCK_EX|LOCK_NB): -------
58 ------ fclock(LOCK_UN|LOCK_NB): -------
H A Dflock.phpt12 var_dump(flock($fp, LOCK_SH|LOCK_NB));
19 var_dump(flock($fp, LOCK_SH|LOCK_NB));
25 var_dump(flock($fp, LOCK_SH|LOCK_NB, $would));
H A Dflock_basic.phpt15 var_dump(flock($file_handle, LOCK_SH|LOCK_NB));
26 var_dump(flock($dir_handle, LOCK_SH|LOCK_NB));
H A Dflock_error.phpt20 LOCK_NB,
45 var_dump(flock($fp, LOCK_SH|LOCK_NB));
H A Dbug65272.phpt12 var_dump(flock($fp2, LOCK_EX|LOCK_NB, $wouldblock));
H A Dflock_variation.phpt15 LOCK_SH|LOCK_NB,
16 LOCK_EX|LOCK_NB,
/PHP-8.2/ext/standard/
H A Dflock_compat.c48 ret = fcntl(fd, operation & LOCK_NB ? F_SETLK : F_SETLKW, &flck); in php_flock()
50 if ((operation & LOCK_NB) && ret == -1 && in php_flock()
117 switch (operation & ~LOCK_NB) { /* translate to LockFileEx() op */
120 ((operation & LOCK_NB) ? LOCKFILE_FAIL_IMMEDIATELY : 0),
125 if (LockFileEx(hdl, ((operation & LOCK_NB) ? LOCKFILE_FAIL_IMMEDIATELY : 0),
H A Dflock_compat.h40 # define LOCK_NB 4 macro
H A Dfile.stub.php41 const LOCK_NB = UNKNOWN; define
H A Dfile.c217 act = flock_values[act - 1] | (operation & PHP_LOCK_NB ? LOCK_NB : 0); in php_flock_common()
/PHP-8.2/main/streams/
H A Duserspace.c921 if (value & LOCK_NB) { in php_userstreamop_set_option()
924 switch(value & ~LOCK_NB) { in php_userstreamop_set_option()
/PHP-8.2/ext/dba/
H A Ddba.c721 lock_mode |= LOCK_NB; /* test =: non blocking */ in php_dba_open()

Completed in 20 milliseconds