aboutsummaryrefslogtreecommitdiff
path: root/vc6
diff options
context:
space:
mode:
authormascarenhas <mascarenhas>2009-03-25 19:14:17 +0000
committermascarenhas <mascarenhas>2009-03-25 19:14:17 +0000
commitd21c4ae194f84338cbcd85a878fdeefa46fff4f7 (patch)
tree4efaccb5521e3deb4cadb68b21cc56f254cde560 /vc6
parent342df4a5a3c67c4ff2567090d203280b6505f580 (diff)
downloadluafilesystem-d21c4ae194f84338cbcd85a878fdeefa46fff4f7.tar.gz
luafilesystem-d21c4ae194f84338cbcd85a878fdeefa46fff4f7.tar.bz2
luafilesystem-d21c4ae194f84338cbcd85a878fdeefa46fff4f7.zip
locking via lockfiles in posix systems. API:
lock, err = lfs.lock_dir(path, [seconds_stale]) Creates a lockfile (called lockfile.lfs) in <path> if it does not exist and returns the lock. If the lock already exists checks it it's stale, using the second parameter (default for the second parameter is INT_MAX, which in practice means the lock will never be stale. To free the the lock call lock:free(). In case of any errors it returns nil and the error message. In particular, if the lock exists and is not stale it returns the "File exists" message.
Diffstat (limited to 'vc6')
0 files changed, 0 insertions, 0 deletions