Lines Matching refs:operation
22 PHPAPI int flock(int fd, int operation) in flock() argument
24 return php_flock(fd, operation); in flock()
28 PHPAPI int php_flock(int fd, int operation) in php_flock() argument
37 if (operation & LOCK_SH) in php_flock()
39 else if (operation & LOCK_EX) in php_flock()
41 else if (operation & LOCK_UN) in php_flock()
48 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),