17
17
/* Parse lock method from given string. Returns TRUE if ok,
18
18
FALSE if name is unknown. */
19
19
bool file_lock_method_parse(const char *name, enum file_lock_method *method_r);
21
23
/* Lock the file. Returns 1 if successful, 0 if file is already locked,
22
24
or -1 if error. lock_type is F_WRLCK or F_RDLCK. */