Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove old referencesv1_6_2 | Hisham Muhammad | 2014-01-29 | 4 | -8/+8 |
| | |||||
* | Add top-level LICENSE file. Closes #33. | Hisham Muhammad | 2014-01-29 | 1 | -0/+21 |
| | |||||
* | Fix documentation for setmode. Closes #32. | Hisham Muhammad | 2014-01-29 | 1 | -2/+4 |
| | |||||
* | Merge branch 'master' of https://github.com/keplerproject/luafilesystem | Hisham Muhammad | 2014-01-29 | 1 | -1/+4 |
|\ | |||||
| * | Merge pull request #28 from moteus/patch-1 | Hisham Muhammad | 2014-01-08 | 1 | -1/+4 |
| |\ | | | | | | | Fix. Prevents double close the same handle (#24) | ||||
| | * | Fix. Prevents double close the same handle (#24) | Alexey Melnichuk | 2014-01-08 | 1 | -1/+4 |
| |/ | | | | | | | | | | | | | | | lfs_unlock_dir can be called multiple times for the same object. For example if lock:free is called manually. Then lfs_unlock_dir will be called always again, as soon as the LOCK_METATABLE is collected by GC. This can lead to strange file errors later on, like closing another file, which now has been assigned the same handle... | ||||
* | | Improve indentation consistency | Hisham Muhammad | 2014-01-29 | 1 | -101/+90 |
| | | |||||
* | | Use local stylesheet, suitable for truly offline viewing. | Hisham Muhammad | 2014-01-29 | 5 | -4/+227 |
| | | |||||
* | | Remove outdated links | Hisham Muhammad | 2014-01-29 | 1 | -5/+5 |
|/ | |||||
* | Merge pull request #27 from moteus/patch-1 | Hisham Muhammad | 2014-01-04 | 1 | -1/+1 |
|\ | | | | | Fix. Use intptr_t to file handle on Windows (#26) | ||||
| * | Fix. Use intptr_t to file handle on Windows (#26) | Alexey Melnichuk | 2014-01-04 | 1 | -1/+1 |
|/ | | | Tested on MS VS2008(x32) MinGW(x32) and MS VS2012(x64) | ||||
* | Merge pull request #21 from Mikhael-Danilov/patch-1 | Fabio Mascarenhas | 2013-09-24 | 1 | -1/+1 |
|\ | | | | | Update src/lfs.c | ||||
| * | Update src/lfs.c | Mikhael-Danilov | 2013-02-20 | 1 | -1/+1 |
|/ | | | Fix Windows build: make_link now returns int as it should | ||||
* | Merge pull request #19 from devurandom/fix/warnings | Fabio Mascarenhas | 2012-10-04 | 1 | -4/+6 |
|\ | | | | | Fix some warnings GCC produced on Linux | ||||
| * | Fix warnings: unused variable | Dennis Schridde | 2012-10-04 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | On non-win32 lfs_setmode was defined to 0, ignoring all parameters. Now the parameters are explicitly discarded. Fixes: src/lfs.c: In function ‘lfs_g_setmode’: src/lfs.c:324:7: warning: unused variable ‘op’ [-Wunused-variable] src/lfs.c:321:47: warning: unused parameter ‘f’ [-Wunused-parameter] | ||||
| * | Fix warning: C++ style comments are not allowed in ISO C90 | Dennis Schridde | 2012-10-04 | 1 | -3/+5 |
| | | |||||
* | | Merge pull request #18 from devurandom/fix/lua52 | Fabio Mascarenhas | 2012-10-04 | 5 | -15/+49 |
|\ \ | |/ |/| | Full Lua 5.2 compatibility and adherance to modules-create-no-globals | ||||
| * | Set global "lfs" when opening module | Dennis Schridde | 2012-10-04 | 1 | -0/+3 |
| | | | | | | | | | | * Ensures backward compatibility with LFS 1.5 * Module name is defined as LFS_LIBNAME, similar to how Lua standard libraries are defined | ||||
| * | Bump version to 1.6.2 and set version via define in src/lfs.c to make it ↵ | Dennis Schridde | 2012-10-03 | 4 | -2/+39 |
| | | | | | | | | better visible | ||||
| * | Full Lua 5.2 compatibility and adherance to modules-create-no-globals | Dennis Schridde | 2012-10-03 | 2 | -14/+8 |
|/ | |||||
* | fix build for Lua 5.2; version 1.6.1 | Fabio Mascarenhas | 2012-10-01 | 3 | -0/+39 |
| | |||||
* | Merge pull request #17 from rrthomas/master | Fabio Mascarenhas | 2012-10-01 | 1 | -9/+1 |
|\ | | | | | Use Lua 5.2's own luaL_register | ||||
| * | lfs.c: use Lua 5.2's own luaL_register | Reuben Thomas | 2012-10-01 | 1 | -9/+1 |
|/ | |||||
* | luafilesystem 1.6.0 | Fabio Mascarenhas | 2012-10-01 | 5 | -352/+431 |
| | |||||
* | 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 | 2 | -4/+58 |
|/ | |||||
* | Merge pull request #8 from rrthomas/master | Fabio Mascarenhas | 2011-06-09 | 4 | -58/+97 |
|\ | | | | | New lfs.link and other goodies | ||||
| * | Simplify and clarify metatable creation functions. | Reuben Thomas | 2011-06-09 | 1 | -10/+12 |
| | | |||||
| * | Add lfs.link. | Reuben Thomas | 2011-06-09 | 3 | -2/+55 |
| | | |||||
| * | Use package.config to get directory separator. | Reuben Thomas | 2011-06-09 | 1 | -1/+1 |
| | | |||||
| * | Add a comment for make_dir. | Reuben Thomas | 2011-06-09 | 1 | -0/+4 |
| | | |||||
| * | Fix typo in manual. | Reuben Thomas | 2011-06-09 | 1 | -1/+1 |
| | | |||||
| * | 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 | 3 | -23/+12 |
| | | |||||
| * | Make test.lua find its interpreter using /usr/bin/env. | Reuben Thomas | 2011-06-09 | 1 | -1/+1 |
| | | |||||
| * | Add trivial link_info support on Windows (using STAT_FUNC). | Reuben Thomas | 2011-06-09 | 3 | -17/+8 |
|/ | |||||
* | update links to bug tracker and cvs | Fabio Mascarenhas | 2011-06-06 | 4 | -8/+8 |
| | |||||
* | 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 |
| | |||||
* | packaging for version 1.5.0 | Fabio Mascarenhas | 2009-10-20 | 3 | -18/+39 |
| | |||||
* | cvs rockspecs now point to github | Fabio Mascarenhas | 2009-09-24 | 1 | -2/+1 |
| | |||||
* | fixed typo in makefile | mascarenhas | 2009-09-21 | 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 | ||||
* | updated docs for lfs.dir | mascarenhas | 2009-06-03 | 1 | -4/+5 |
| |