Commit Graph

349 Commits

Author SHA1 Message Date
Peter Melnichenko
b37e88b3d6 Return errno from lfs.attributes on error 2016-05-05 12:39:17 +03:00
Peter Melnichenko
8f167ef1de Return errno from lfs.touch on error 2016-05-05 12:39:17 +03:00
Peter Melnichenko
8b85d257a6 Return errno from lfs.rmdir on error 2016-05-05 12:39:17 +03:00
Peter Melnichenko
d186dda4d7 Return errno from lfs.mkdir on error
Change pushresult() to return true on success.
Change make_link to keep returning 0.
2016-05-05 12:38:28 +03:00
Peter Melnichenko
1937ba848b Include strerror(errno) into error message in lfs.attributes 2016-05-05 12:12:07 +03:00
Peter Melnichenko
732f9e9309 Add attribute name to error on invalid attribute in lfs.attributes 2016-05-05 12:10:04 +03:00
Peter Melnichenko
03e01ff953 Document passing table as second argument to lfs.attributes 2016-05-04 18:25:06 +03:00
Peter Melnichenko
3789521838 Refactor set_info() using lua_setfield
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.
2016-05-04 13:40:30 +03:00
Peter Melnichenko
5220452e3b Update top level comments 2016-05-04 13:35:55 +03:00
Peter Melnichenko
12d1f260f3 Fix a warning when compiling as C++11 2016-05-04 13:05:19 +03:00
Peter Melnichenko
e5458bfa74 Merge pull request #71 from jinq0123/fix_makefile
Delete $(CFLAGS) in Makefile.
2016-05-04 13:58:49 +04:00
Peter Melnichenko
dd6376411f Update docs [ci skip]
Remove dead links, 'contact us' section with dead e-mail, etc.
2016-05-04 12:37:19 +03:00
Jin Qing
e3253069b9 Delete $(CFLAGS).
$(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
->
$(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
2016-05-04 11:17:35 +08:00
Peter Melnichenko
83b8fa6c6b Merge pull request #70 from mpeterv/hererocks-ci
Use hererocks for CI
2016-05-04 03:18:58 +04:00
Peter Melnichenko
1146cc2b33 Use hererocks for Appveyor 2016-05-03 20:26:06 +03:00
Peter Melnichenko
a9a95acd68 Use hererocks for Travis-CI 2016-05-03 20:24:08 +03:00
Hisham Muhammad
210322f493 Merge pull request #69 from hughperkins/master
add build artefact to .gitignore
2016-04-30 16:01:50 -03:00
Hugh Perkins
9cbb967b55 add build artefact to .gitignore 2016-04-30 20:37:37 +02:00
Peter Melnichenko
2d4d609d81 .travis.yml: run tests from root directory
Fixes missing view for tests/test.lua coverage on coveralls site.
2016-04-26 11:00:34 +03:00
Hisham Muhammad
436bc441fa Merge pull request #68 from mpeterv/setmode-refactor
Minor refactoring of setmode
2016-04-25 16:56:26 -03:00
Hisham Muhammad
e519c13036 Merge pull request #66 from n1tehawk/contrib
Have make_link() use pushresult() instead of pusherror() on Windows
2016-04-25 11:57:40 -03:00
Peter Melnichenko
c1e9c70214 Don't pass Lua state to lfs_setmode, it's always unused 2016-04-25 15:42:54 +03:00
Peter Melnichenko
655ec8baa3 Use pusherror in lfs_g_setmode 2016-04-25 15:36:37 +03:00
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