Peter Melnichenko
695def20ef
Get rid of goto in lfs_g_setmode
2016-04-25 15:33:12 +03:00
NiteHawk
ba6d0e1ad9
Have make_link() use pushresult() instead of pusherror() on Windows
...
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
2016-03-25 13:07:13 +01:00
Ignacio Burgueño
95d946e0fe
Adds badges [ci skip]
2016-01-21 15:41:48 -03:00
Ignacio Burgueño
22d539e199
Adds AppVeyor integration
2016-01-21 15:28:14 -03:00
Ignacio Burgueño
3674e4f52f
Adds missing -lluacov test
2016-01-21 15:08:25 -03:00
Ignacio Burgueño
5daddd4c2b
Drop sudo from call
2016-01-21 14:58:15 -03:00
Ignacio Burgueño
6232ca6dbd
source script instead of just calling it
...
Thanks @moteus
2016-01-21 14:56:15 -03:00
Ignacio Burgueño
7ede630d6d
Pass --user flag to pip
2016-01-21 14:53:32 -03:00
Ignacio Burgueño
5131a28067
Adds coverage
...
Begin work adding coverage.
2016-01-21 14:08:20 -03:00
Ignacio Burgueño
9e7f97ea4c
Change readme to markdown format
2016-01-21 13:59:29 -03:00
Ignacio Burgueño
488304b5a5
Updates Travis CI scripts
2016-01-21 13:54:17 -03:00
Ignacio Burgueño
222330973c
Merge pull request #60 from MisterDA/doc-permissions
...
Add documentation for attributes.permissions, fix #59
2016-01-18 14:43:39 -03:00
Antonin Décimo
c0965e8048
Add documentation for attributes.permissions, fix #59
2016-01-18 16:28:06 +01:00
Hisham Muhammad
6d039ff385
Merge pull request #53 from Tieske/fix_warning
...
fix warning for redefining macro on MinGW
2015-08-24 16:32:49 -03:00
Thijs Schreijer
dc00750ea9
fix warning for redefining macro on MinGW
2015-08-24 20:54:36 +02:00
Hisham Muhammad
b6d5b37c1b
Merge pull request #52 from siffiejoe/checkfile
...
Fix detection of closed files on Lua 5.2/5.3.
2015-06-15 17:25:40 -03:00
Philipp Janda
c315150aff
Fix detection of closed files on Lua 5.2/5.3.
...
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).
2015-06-14 22:44:46 +02:00
Hisham Muhammad
5f8b6461a2
Cleanup readme. Too many places with duplicated info.
2015-03-19 14:53:20 -03:00
Hisham Muhammad
75eed716c6
Merge branch 'master' of git://github.com/keplerproject/luafilesystem
2015-03-19 14:52:14 -03:00
Hisham Muhammad
3f9f2a5afd
Merge pull request #50 from catharanthus/master
...
DEF file fixes
2015-02-19 04:04:42 -02:00
Alex
6fcb1bb8ad
Merge remote-tracking branch 'upstream/master'
2015-02-16 08:18:57 +03:00
Alex
644c9c32ca
DEF file fixes (DESCRIPTION is deprecated; VERSION must contain one or two numers)
2015-02-16 08:15:41 +03:00
Hisham Muhammad
3cc1a84c93
Merge pull request #49 from catharanthus/master
...
Minor fixes needed to compile LFS as C++
2015-02-15 11:31:04 -02:00
Alex
25ecbd31db
A few minor things fixed which prevented compilation of LuaFileSystem as C++ code
2015-02-15 08:20:50 +03:00
Hisham Muhammad
8014725009
Prepare for release 1.6.3
v_1_6_3
v1_6_3
2015-01-15 16:58:20 -02:00
Hisham Muhammad
0a82aae451
Cleanup use of explicit \0
2015-01-15 16:50:01 -02:00
Hisham Muhammad
a86072a7ec
Merge pull request #48 from trms/upmaster
...
Lua 5.3, warnings in windows, extra null byte
2015-01-15 16:47:01 -02:00
Andrew Starks
e798c4f07f
Updated to support Lua 5.3. Fixed to supress warnings in windows. Removed extra null byte off of const string (windows only).
2015-01-15 12:39:51 -06:00
Hisham Muhammad
5422c7ac6b
Merge pull request #46 from moteus/master
...
Add. Travis files.
2014-11-12 15:57:35 -02:00
Alexey Melnichuk
8f2949974a
Fix. Support Lua 5.3.beta
2014-11-12 14:51:55 +04:00
Hisham Muhammad
a0ca710cea
Merge pull request #47 from Mikhael-Danilov/patch-2
...
Add LFS_DO_NOT_USE_LARGE_FILE flag.
This seems harmless for those who won't use it, so I'm merging this in.
2014-09-25 14:28:03 -03:00
Mikhael-Danilov
40171f36b3
Add LFS_DO_NOT_USE_LARGE_FILE flag
...
Which disables LARGE_FILE support
2014-09-25 21:26:12 +04:00
Alexey Melnichuk
9db234cc10
Fix. Exclude some files from coveralls.
2014-08-14 09:50:15 +05:00
Alexey Melnichuk
c0552d59a4
Add. Travis files.
2014-08-14 09:41:04 +05:00
Hisham Muhammad
97f2308f40
Merge pull request #45 from moteus/master
...
Fix. Compile with MSVC and with gcc without `-std=c99`
2014-08-13 12:49:15 -03:00
Alexey Melnichuk
ebe20b66f0
Fix. Compile with MSVC and with gcc without -std=c99
2014-08-13 18:18:42 +05:00
Hisham Muhammad
601b4e5498
Merge pull request #44 from stefan991/fix-attribute-lookup
...
Fix attributes `blksize` and `blocks`
2014-08-09 14:54:41 -03:00
Stefan Hoffmann
4437e19455
Fix lfs.attributes(file, 'blksize')
...
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.
2014-08-09 12:33:33 +02:00
Stefan Hoffmann
6b178640f0
Add test target to Makefile
...
easy way to run the tests without installing the library
2014-08-09 12:11:20 +02:00
Hisham Muhammad
95573506c5
Remove old references
v1_6_2
2014-01-29 21:43:20 -02:00
Hisham Muhammad
1b3e3d4b4b
Add top-level LICENSE file. Closes #33 .
2014-01-29 21:15:29 -02:00
Hisham Muhammad
3bfdafcf4c
Fix documentation for setmode. Closes #32 .
2014-01-29 20:33:43 -02:00
Hisham Muhammad
00b17c6f1a
Merge branch 'master' of https://github.com/keplerproject/luafilesystem
2014-01-29 17:27:04 -02:00
Hisham Muhammad
2111509acc
Improve indentation consistency
2014-01-29 17:26:45 -02:00
Hisham Muhammad
18afb5a089
Use local stylesheet, suitable for truly offline viewing.
2014-01-29 17:22:49 -02:00
Hisham Muhammad
ebf867f729
Remove outdated links
2014-01-29 17:21:59 -02:00
Hisham Muhammad
5be0c7156e
Merge pull request #28 from moteus/patch-1
...
Fix. Prevents double close the same handle (#24 )
2014-01-08 06:53:06 -08:00
Alexey Melnichuk
cc6007171b
Fix. Prevents double close the same handle ( #24 )
...
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...
2014-01-08 16:18:31 +03:00
Hisham Muhammad
2b80db36f0
Merge pull request #27 from moteus/patch-1
...
Fix. Use intptr_t to file handle on Windows (#26 )
2014-01-04 12:13:23 -08:00
Alexey Melnichuk
ab8348e9bc
Fix. Use intptr_t to file handle on Windows ( #26 )
...
Tested on MS VS2008(x32) MinGW(x32) and MS VS2012(x64)
2014-01-04 10:02:16 +03:00