file-lock.h revision 1107c86ff3fa4f29796c2e76134b78d0b4a0db50
98N/A/* Parse lock method from given string. Returns TRUE if ok, 98N/A FALSE if name is unknown. */ 98N/A/* Convert lock method to string. */ 98N/A/* Lock the file. Returns 1 if successful, 0 if file is already locked, 98N/A or -1 if error. lock_type is F_WRLCK or F_RDLCK. */ 98N/A/* Like file_try_lock(), but return the error message as a string instead 98N/A of logging it. Also when returning 0 an error message is returned. */ 493N/A/* Like lock_try_lock(), but return 0 only after having tried to lock for 911N/A/* Like file_wait_lock(), but return the error message as a string instead 911N/A of logging it. Also when returning 0 an error message is returned. */ 98N/A/* Change the lock type. */ 493N/A/* Unlock and free the lock. */ 98N/A/* Free the lock without unlocking it (because you're closing the fd anyway). */ 705N/A/* Returns human-readable string containing the process that has the file 720N/A currently locked. Returns "" if unknown, otherwise " (string)". */