Create an exclusive lock using .
lock semantics. All locks are equivalent to write locks (exclusive).
The function does nothing and returns success (zero), when dot locking had not been compiled.
path |
a path to lock |
-1 on error, sets |