From c1eff3de6befe526c17da32210887ce38c0cb78f Mon Sep 17 00:00:00 2001 From: mascarenhas Date: Fri, 24 Apr 2009 22:24:06 +0000 Subject: fixing lfs.lock_dir on windows to return "File exists" instead of looping, plus documenting lfs.lock_dir --- doc/us/manual.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/us/manual.html b/doc/us/manual.html index 9d53037..ee80703 100644 --- a/doc/us/manual.html +++ b/doc/us/manual.html @@ -171,6 +171,16 @@ LuaFileSystem offers the following functions: path.
Returns true in case of success or nil plus an error string. + +
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.
lfs.currentdir ()
Returns a string with the current working directory or nil @@ -251,7 +261,7 @@ LuaFileSystem offers the following functions:

Valid XHTML 1.0!

-

$Id: manual.html,v 1.43 2008/05/08 18:45:15 carregal Exp $

+

$Id: manual.html,v 1.44 2009/04/24 22:24:06 mascarenhas Exp $

-- cgit v1.2.3-55-g6feb