Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge pull request #15 from ewmailing/master | Fabio Mascarenhas | 2012-09-26 | 1 | -6/+10 | |
|\ | | | | | Improvements to use of getcwd() for using the correct max path length | |||||
| * | Due to Android (and apparently Sun) not supporting getcwd(NULL, 0), I've ↵ | Eric Wing | 2012-05-01 | 1 | -6/+10 | |
| | | | | | | | | | | | | changed to call to getcwd to specify a buffer and explicit size which successfully works around the problem. One minor performance advantage is that one less malloc/free is needed since the buffer is now created on the stack. Apparently, this was already changed in a prior commit I didn't see initially, but I think the use of an invented/arbitrary PATH_MAX is incorrect. Platforms should generally provide a constant for this and PATH_MAX itself is already defined on some systems like Linux which can cause collisions. This commit improves on those changes by leveraging the constants provided by the compiler/system. To help keep the code consistent but still correct, new platform specific code needed to be introduced for the max length. On POSIX I am assuming it is that <sys/param.h> provides MAXPATHLEN. This is what the Mac/BSD man page says to use and verified this is also defined on Ubuntu Linux and Android. On Windows, MAX_PATH is used. MAX_PATH seems to still be 260 which seems kind of small; is there a different constant we are supposed to use? In both cases, the respective constants are mapped to a new #define for LFS_MAXPATHLEN to allow the code to refer to one constant and avoid any potential name collisions in case MAXPATHLEN is defined already by something else on Windows (e.g. Cygwin). | |||||
* | | Merge pull request #14 from icgood/master | Fabio Mascarenhas | 2012-08-31 | 1 | -0/+9 | |
|\ \ | |/ |/| | 5.2 compatibility | |||||
| * | implements fake luaL_register in Lua 5.2+ | Ian Good | 2012-02-28 | 1 | -0/+9 | |
| | | ||||||
* | | applied debian patches from enrico tassi | Fabio Mascarenhas | 2012-04-08 | 1 | -3/+57 | |
|/ | ||||||
* | Simplify and clarify metatable creation functions. | Reuben Thomas | 2011-06-09 | 1 | -10/+12 | |
| | ||||||
* | Add lfs.link. | Reuben Thomas | 2011-06-09 | 1 | -0/+43 | |
| | ||||||
* | Add a comment for make_dir. | Reuben Thomas | 2011-06-09 | 1 | -0/+4 | |
| | ||||||
* | Simplify dir_iter_factory slightly. | Reuben Thomas | 2011-06-09 | 1 | -5/+3 | |
| | ||||||
* | Add .gitignore for *.o and *.so. | Reuben Thomas | 2011-06-09 | 1 | -0/+2 | |
| | ||||||
* | Add trivial implementation of setmode on non-Windows platforms. | Reuben Thomas | 2011-06-09 | 1 | -12/+3 | |
| | ||||||
* | Add trivial link_info support on Windows (using STAT_FUNC). | Reuben Thomas | 2011-06-09 | 1 | -8/+1 | |
| | ||||||
* | change to build with lua 5.2 alpha, issue #5 | Fabio Mascarenhas | 2011-06-06 | 1 | -1/+1 | |
| | ||||||
* | fixed dir length bug in windows directory iterator | Fabio Mascarenhas | 2010-06-09 | 2 | -9/+8 | |
| | ||||||
* | removed umask calls in lfs.mkdir, see kepler-list message from Enrico at ↵ | Fabio Mascarenhas | 2009-12-29 | 1 | -3/+0 | |
| | | | | 2009-12-27 | |||||
* | packaging for version 1.5.0 - changing _VERSIONv1.5.0 | Fabio Mascarenhas | 2009-10-20 | 1 | -2/+2 | |
| | ||||||
* | overhaul of lock_dir to remove staleness checks (due to race condition) and ↵ | mascarenhas | 2009-07-04 | 1 | -33/+14 | |
| | | | | simplify the function | |||||
* | added explicit next and close methods to second return value of lfs.dir (the ↵ | mascarenhas | 2009-06-03 | 1 | -6/+15 | |
| | | | | directory object), for explicit iteration or explicit closing | |||||
* | fixing lfs.lock_dir on windows to return "File exists" instead of looping, plus | mascarenhas | 2009-04-24 | 1 | -4/+9 | |
| | | | | documenting lfs.lock_dir | |||||
* | added lfs.lock_dir (directory locking) for Windows. On Windows the timeout | mascarenhas | 2009-04-24 | 1 | -9/+36 | |
| | | | | parameter is ignored, as killing the process removes the lock automatically | |||||
* | locking via lockfiles in posix systems. API: | mascarenhas | 2009-03-25 | 1 | -1/+81 | |
| | | | | | | | | | | | | 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. | |||||
* | Packaging version 1.4.2v1_4_2 | carregal | 2009-02-03 | 2 | -3/+3 | |
| | ||||||
* | compiling with borland c | mascarenhas | 2008-12-15 | 1 | -4/+19 | |
| | ||||||
* | Fixing bug [#13198] lfs.attributes(filename, 'size') overflow on files > 2 ↵ | carregal | 2008-07-31 | 1 | -8/+8 | |
| | | | | | | Gb again (bug report and patch by KUBO Takehiro) | |||||
* | Packaging version 1.4.1 | carregal | 2008-05-07 | 2 | -3/+3 | |
| | ||||||
* | fixed bug 2293 | mascarenhas | 2008-04-24 | 1 | -3/+3 | |
| | ||||||
* | large file support in Linux needs STAT64=-DHAVE_STAT64 in LuaRocks | mascarenhas | 2008-03-25 | 1 | -2/+9 | |
| | | | | config | |||||
* | large file support in lfs.attributes (bug #2185) | mascarenhas | 2008-03-25 | 1 | -25/+40 | |
| | ||||||
* | fixed windows compile problem | mascarenhas | 2008-02-19 | 2 | -17/+20 | |
| | ||||||
* | removed warnings | mascarenhas | 2008-02-18 | 1 | -3/+6 | |
| | ||||||
* | Preparing the 1.4.0 release. | carregal | 2008-02-11 | 3 | -27/+29 | |
| | | | | Added documentation for lfs.setmode | |||||
* | lfs.attributes raises an error if attribute does not exist | mascarenhas | 2008-01-25 | 1 | -2/+5 | |
| | ||||||
* | *** empty log message *** | mascarenhas | 2008-01-16 | 1 | -2/+2 | |
| | ||||||
* | getcwd no longer passes a buffer | mascarenhas | 2008-01-16 | 1 | -11/+12 | |
| | ||||||
* | Added lfs.setmode for changing file's mode (only for Windows) | mascarenhas | 2007-12-22 | 1 | -1/+42 | |
| | ||||||
* | Version 1.3.0 (final) | carregal | 2007-10-26 | 1 | -2/+2 | |
| | ||||||
* | Changing version to LuaFileSystem 1.3.0 (work) | carregal | 2007-10-05 | 1 | -2/+2 | |
| | ||||||
* | Improving conditional compilation for Windows version (thanks to Varol Kaptan) | tomas | 2007-08-30 | 1 | -1/+6 | |
| | ||||||
* | Avoiding dependency in backwards compatibility to Lua 5.0 | tomas | 2007-06-22 | 1 | -2/+2 | |
| | ||||||
* | Adding function symlinkatributes. Updating version to 1.3.0 | tomas | 2007-06-07 | 1 | -6/+24 | |
| | ||||||
* | Compilation bug fix: ISO C90 forbids mixed declarations and code | tomas | 2007-05-15 | 1 | -2/+3 | |
| | ||||||
* | Details for the 1.2.1 release. Version number, droping Lua 5.0 support | carregal | 2007-05-08 | 2 | -3/+3 | |
| | ||||||
* | Windows Makefile and config | mascarenhas | 2006-12-04 | 1 | -0/+5 | |
| | ||||||
* | Dropped Lua 5.0 support. | mascarenhas | 2006-12-04 | 1 | -5/+1 | |
| | ||||||
* | Correcting version number | tomas | 2006-06-08 | 1 | -2/+2 | |
| | ||||||
* | Adding support for compilation on both Lua 5.0 and Lua 5.1 | tomas | 2006-06-08 | 1 | -1/+3 | |
| | ||||||
* | Standardizing execution errors to nil followed by an error message | tomas | 2006-03-14 | 1 | -5/+7 | |
| | ||||||
* | Removing unused code | tomas | 2006-03-13 | 1 | -28/+1 | |
| | ||||||
* | Comments update - minor details | carregal | 2006-03-10 | 2 | -4/+4 | |
| | ||||||
* | Comments update - minor details | carregal | 2006-03-10 | 2 | -3/+12 | |
| |