Lines Matching refs:operation
35 PHPAPI int flock(int fd, int operation) in flock() argument
37 return php_flock(fd, operation); in flock()
41 PHPAPI int php_flock(int fd, int operation) in php_flock() argument
50 if (operation & LOCK_SH) in php_flock()
52 else if (operation & LOCK_EX) in php_flock()
54 else if (operation & LOCK_UN) in php_flock()
61 ret = fcntl(fd, operation & LOCK_NB ? F_SETLK : F_SETLKW, &flck); in php_flock()
63 if (operation & LOCK_NB && ret == -1 && in php_flock()
130 switch (operation & ~LOCK_NB) { /* translate to LockFileEx() op */
133 ((operation & LOCK_NB) ? LOCKFILE_FAIL_IMMEDIATELY : 0),
138 if (LockFileEx(hdl, ((operation & LOCK_NB) ? LOCKFILE_FAIL_IMMEDIATELY : 0),