aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix. Support Lua 5.3.betaAlexey Melnichuk2014-11-121-0/+8
| |
* | Add LFS_DO_NOT_USE_LARGE_FILE flagMikhael-Danilov2014-09-251-0/+4
|/ | | Which disables LARGE_FILE support
* Fix. Compile with MSVC and with gcc without `-std=c99`Alexey Melnichuk2014-08-131-2/+6
|
* Fix lfs.attributes(file, 'blksize')Stefan Hoffmann2014-08-091-24/+15
| | | | | | | fs.attributes(file, 'blksize') and fs.attributes(file, 'blocks) return the wrong values. Compare the whole attribute name instead of the first char and remove buggy special casing with wrong indexes into the member array.
* Fix. Prevents double close the same handle (#24)Alexey Melnichuk2014-01-081-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...
* Fix. Use intptr_t to file handle on Windows (#26)Alexey Melnichuk2014-01-041-1/+1
| | | Tested on MS VS2008(x32) MinGW(x32) and MS VS2012(x64)
* Update src/lfs.cMikhael-Danilov2013-02-201-1/+1
| | | Fix Windows build: make_link now returns int as it should
* Merge pull request #19 from devurandom/fix/warningsFabio Mascarenhas2012-10-041-4/+6
|\ | | | | Fix some warnings GCC produced on Linux
| * Fix warnings: unused variableDennis Schridde2012-10-041-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 C90Dennis Schridde2012-10-041-3/+5
| |
* | Set global "lfs" when opening moduleDennis Schridde2012-10-041-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 Schridde2012-10-031-1/+3
| | | | | | | | better visible
* | Full Lua 5.2 compatibility and adherance to modules-create-no-globalsDennis Schridde2012-10-031-13/+7
|/
* lfs.c: use Lua 5.2's own luaL_registerReuben Thomas2012-10-011-9/+1
|
* luafilesystem 1.6.0Fabio Mascarenhas2012-10-011-330/+330
|
* Merge pull request #15 from ewmailing/masterFabio Mascarenhas2012-09-261-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 Wing2012-05-011-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/masterFabio Mascarenhas2012-08-311-0/+9
|\ \ | |/ |/| 5.2 compatibility
| * implements fake luaL_register in Lua 5.2+Ian Good2012-02-281-0/+9
| |
* | applied debian patches from enrico tassiFabio Mascarenhas2012-04-081-3/+57
|/
* Simplify and clarify metatable creation functions.Reuben Thomas2011-06-091-10/+12
|
* Add lfs.link.Reuben Thomas2011-06-091-0/+43
|
* Add a comment for make_dir.Reuben Thomas2011-06-091-0/+4
|
* Simplify dir_iter_factory slightly.Reuben Thomas2011-06-091-5/+3
|
* Add .gitignore for *.o and *.so.Reuben Thomas2011-06-091-0/+2
|
* Add trivial implementation of setmode on non-Windows platforms.Reuben Thomas2011-06-091-12/+3
|
* Add trivial link_info support on Windows (using STAT_FUNC).Reuben Thomas2011-06-091-8/+1
|
* change to build with lua 5.2 alpha, issue #5Fabio Mascarenhas2011-06-061-1/+1
|
* fixed dir length bug in windows directory iteratorFabio Mascarenhas2010-06-092-9/+8
|
* removed umask calls in lfs.mkdir, see kepler-list message from Enrico at ↵Fabio Mascarenhas2009-12-291-3/+0
| | | | 2009-12-27
* packaging for version 1.5.0 - changing _VERSIONv1.5.0Fabio Mascarenhas2009-10-201-2/+2
|
* overhaul of lock_dir to remove staleness checks (due to race condition) and ↵mascarenhas2009-07-041-33/+14
| | | | simplify the function
* added explicit next and close methods to second return value of lfs.dir (the ↵mascarenhas2009-06-031-6/+15
| | | | directory object), for explicit iteration or explicit closing
* fixing lfs.lock_dir on windows to return "File exists" instead of looping, plusmascarenhas2009-04-241-4/+9
| | | | documenting lfs.lock_dir
* added lfs.lock_dir (directory locking) for Windows. On Windows the timeoutmascarenhas2009-04-241-9/+36
| | | | parameter is ignored, as killing the process removes the lock automatically
* locking via lockfiles in posix systems. API:mascarenhas2009-03-251-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_2carregal2009-02-032-3/+3
|
* compiling with borland cmascarenhas2008-12-151-4/+19
|
* Fixing bug [#13198] lfs.attributes(filename, 'size') overflow on files > 2 ↵carregal2008-07-311-8/+8
| | | | | | Gb again (bug report and patch by KUBO Takehiro)
* Packaging version 1.4.1carregal2008-05-072-3/+3
|
* fixed bug 2293mascarenhas2008-04-241-3/+3
|
* large file support in Linux needs STAT64=-DHAVE_STAT64 in LuaRocksmascarenhas2008-03-251-2/+9
| | | | config
* large file support in lfs.attributes (bug #2185)mascarenhas2008-03-251-25/+40
|
* fixed windows compile problemmascarenhas2008-02-192-17/+20
|
* removed warningsmascarenhas2008-02-181-3/+6
|
* Preparing the 1.4.0 release.carregal2008-02-113-27/+29
| | | | Added documentation for lfs.setmode
* lfs.attributes raises an error if attribute does not existmascarenhas2008-01-251-2/+5
|
* *** empty log message ***mascarenhas2008-01-161-2/+2
|
* getcwd no longer passes a buffermascarenhas2008-01-161-11/+12
|
* Added lfs.setmode for changing file's mode (only for Windows)mascarenhas2007-12-221-1/+42
|