aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* win32: declare lfs_win32_pusherror, windowsToUnixTime, lfs_win32_lstat as staticHEADmasterFractalU2024-10-281-3/+3
|
* Explicitly cast void * pointers - allows code to build cleanly as C++. (#165)Vas Crabb2023-12-121-2/+2
|
* Fix a few compiler warnings (#171)rpatters12023-12-121-4/+4
| | | Fixes warnings (probably) introduced with 64-bit. Mainly explicit typecasts to int to silence "possible loss of precision" warnings. These are lengths of filenames, so they're not going to exceed 4GB.
* keplerproject -> lunarmodulesHisham Muhammad2022-07-262-21/+9
|
* win32: use standard memmove functionHisham Muhammad2022-07-151-1/+1
|
* Release 1.8.0v1_8_0Hisham Muhammad2020-04-222-2/+2
|
* Lua 5.4: use __close to close dir if you break the iteratorHisham Muhammad2020-04-221-0/+11
|
* indent -kr -nut -i2 src/lfs.c src/lfs.hHisham Muhammad2020-04-222-555/+690
|
* Use CREATE_ALWAYS instead of CREATE_NEW云风2020-04-211-1/+1
|
* win32: strip UNC prefix if presentHisham Muhammad2020-04-211-0/+6
|
* win32 lstat: if it's not a link, just do statHisham Muhammad2020-04-211-0/+3
|
* win32: obtain symlink attributesHisham Muhammad2020-04-211-26/+78
|
* Add Windows compatibility for lfs.linkEroica2020-04-211-41/+65
| | | | Co-Authored-By: Hisham Muhammad <hisham@gobolinux.org>
* Support Lua 5.4Peter Melnichenko2020-04-201-2/+2
|
* Fallback to _POSIX_PATH_MAX when MAXPATHLEN isn't available (#130)James McCoy2019-10-291-1/+6
| | | | On systems where MAXPATHLEN isn't defined, like GNU/Hurd, use _POSIX_PATH_MAX as the starting size for the getcwd() buffer.
* Fix memory leak in case of realloc failure. (#102)Hisham Muhammad2017-11-271-5/+11
| | | Fixes #101.
* Update version in lfs.def (#96)Stephen E. Baker2017-10-081-1/+1
| | | Version number of current release is 1.7
* Fix _VERSION entryHisham Muhammad2017-09-151-1/+1
| | | | Thanks Milind Gupta for noting!
* Merge branch '1.7'Peter Melnichenko2017-09-141-60/+48
|\
| * Merge branch 'master' into 1.7Peter Melnichenko2016-06-212-12/+14
| |\
| * | Return errno from lfs.attributes on errorPeter Melnichenko2016-05-051-1/+2
| | |
| * | Return errno from lfs.touch on errorPeter Melnichenko2016-05-051-18/+16
| | |
| * | Return errno from lfs.rmdir on errorPeter Melnichenko2016-05-051-12/+2
| | |
| * | Return errno from lfs.mkdir on errorPeter Melnichenko2016-05-051-29/+28
| | | | | | | | | | | | | | | Change pushresult() to return true on success. Change make_link to keep returning 0.
* | | Update copyright year [ci skip]Peter Melnichenko2017-09-142-3/+3
| | |
* | | Fix compilation warning for LuaJIT 2.1Peter Melnichenko2017-09-141-3/+5
| | | | | | | | | | | | | | | Do not redefine or reimplement standard Lua C API function luaL_newlib, use another name (new_lib) instead.
* | | Dynamically size getcwd() buffer in get_dir function (#84)NiteHawk2016-10-141-41/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Dynamically size getcwd() buffer in get_dir function This should fix issue 42. * Fixup: Properly respect NO_GETCWD * Fixup: Get rid of getcwd_error, handle NO_GETCWD in a single place
* | | Fix lfs.attributes and lfs.symlinkattributes extra argument handlingPeter Melnichenko2016-08-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the second argument is not a string, _file_info() wants to ensure that there is a table on top of the stack: the second argument or a new table. If a new table is pushed it's created on top immediately, but if a table is passed as the second argument it can be followed by extra arguments, with the last one ending up being used as a table, causing a crash. The fix is to remove any potential extra arguments using `lua_settop(L, 2)`. Also added a few tests for this case. Ref #80.
* | | Add a 'target' field for symlinkattributes.NiteHawk2016-07-161-1/+48
| |/ |/| | | | | | | | | | | It returns the resolved path of the symlink. Original version by Hisham <hisham@gobolinux.org>, modified to use a different strategy for sizing the readlink() buffer.
* | Fix export of luaopen_lfs on Windows (#74)Eric Cosatto2016-06-012-12/+14
|/ | | | * Make lfs export luaopen_lfs under Windows
* Include strerror(errno) into error message in lfs.attributesPeter Melnichenko2016-05-051-2/+2
|
* Add attribute name to error on invalid attribute in lfs.attributesPeter Melnichenko2016-05-051-1/+1
|
* Document passing table as second argument to lfs.attributesPeter Melnichenko2016-05-041-1/+1
|
* Refactor set_info() using lua_setfieldPeter Melnichenko2016-05-041-9/+6
| | | | | | | About indentation: currently parts of lfs.c use 2 spaces and parts use 8. It would be nice to slowly switch to one of styles over some time, as code is being touched here and there. 2 spaces seem preferrable as it's what Lua itself uses.
* Update top level commentsPeter Melnichenko2016-05-042-7/+4
|
* Fix a warning when compiling as C++11Peter Melnichenko2016-05-041-1/+1
|
* Merge pull request #68 from mpeterv/setmode-refactorHisham Muhammad2016-04-251-11/+6
|\ | | | | Minor refactoring of setmode
| * Don't pass Lua state to lfs_setmode, it's always unusedPeter Melnichenko2016-04-251-4/+4
| |
| * Use pusherror in lfs_g_setmodePeter Melnichenko2016-04-251-5/+1
| |
| * Get rid of goto in lfs_g_setmodePeter Melnichenko2016-04-251-2/+1
| |
* | Have make_link() use pushresult() instead of pusherror() on WindowsNiteHawk2016-03-251-1/+2
|/ | | | | | | | | | The pushresult(L, -1, ...) call will delegate to pusherror() anyway, but this avoids the "Unused static" warning for pushresult. Also take care of assigning something meaningful to `errno`, as strerror(errno) is used for constructing the Lua error message. Fixes #65
* fix warning for redefining macro on MinGWThijs Schreijer2015-08-241-0/+2
|
* Fix detection of closed files on Lua 5.2/5.3.Philipp Janda2015-06-141-4/+12
| | | | | | | | | Lua 5.2 changed the protocol on how to represent closed files: Lua 5.1 sets the file pointer to NULL, Lua 5.2 sets the close function pointer to NULL (a NULL file pointer now signals an incompletely constructed object). Also `luaL_checkudata` never returns NULL, it raises an error instead if you have an invalid value (no userdata/not correct userdata type).
* Merge branch 'master' of git://github.com/keplerproject/luafilesystemHisham Muhammad2015-03-193-4/+10
|\
| * DEF file fixes (DESCRIPTION is deprecated; VERSION must contain one or two ↵Alex2015-02-161-2/+1
| | | | | | | | numers)
| * A few minor things fixed which prevented compilation of LuaFileSystem as C++ ↵Alex2015-02-152-2/+9
| | | | | | | | code
* | Prepare for release 1.6.3v_1_6_3v1_6_3Hisham Muhammad2015-01-151-1/+1
| |
* | Cleanup use of explicit \0Hisham Muhammad2015-01-151-2/+2
|/
* Updated to support Lua 5.3. Fixed to supress warnings in windows. Removed ↵Andrew Starks2015-01-152-18/+26
| | | | extra null byte off of const string (windows only).
* Merge pull request #46 from moteus/masterHisham Muhammad2014-11-121-0/+8
|\ | | | | Add. Travis files.