Michelle Legrand
f6d870b4c1
eina: win32 release lock in case of error
...
Summary:
It's better to realese the lock before returning NULL. Otherwise the program
is waiting indefinitely then crashing on Windows ("program not responding").
@fix
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-12 07:43:58 +01:00
Michelle Legrand
b36e2fc701
eina: add more access to created file.
...
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-12 07:43:58 +01:00
Nicolas Aguirre
3b52489368
eina: fix directory listing on windows when directory is empty.
...
Using of INVALID_HANDLE_VALUE and ERROR_NO_MORE_FILES to handle this properlly.
@fix
2015-02-11 17:03:39 +01:00
Adrien Nader
f71a78edcb
eina: correctly handle and report Eina_File error on Windows.
...
@fix
2015-02-11 16:38:15 +01:00
Vincent Torri
788d4d6c3f
eina: open files in read-onnly for eina_file_open() on Windows
...
A previous fix added the read-write access of files with eina_file_open,
so revert that part
@fix
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-10-03 11:05:38 +02:00
Vincent Torri
f61f8d30fc
eina: make error message more precise.
2014-07-17 17:51:22 +02:00
Cedric BAIL
72aca66f8d
eina: win32 and linux version code are the same. Sharing code is better.
2014-07-14 15:46:54 +02:00
Cedric BAIL
f15fc9b0a5
eina: simplify logic.
2014-07-14 15:46:54 +02:00
Vincent Torri
4d68dfe603
eina: (Windows) fix creation of files with eina_file_open() in some cases
...
@fix
2014-07-13 15:17:46 +02:00
Vincent Torri
ea8b4c82ed
eina: call the function, then return
2014-07-13 15:17:34 +02:00
Cedric BAIL
201d9b567d
windows: make those warning explicit about what they imply.
2014-06-27 17:00:23 +02:00
Cedric BAIL
546af159ff
eina: silence warning of unused parameter on Windows.
2014-06-27 13:24:39 +02:00
Cedric BAIL
58f424a199
eina: add more debug information when failing to open a file.
2014-02-21 17:13:09 +09:00
Cedric Bail
e450a8fec3
eina: Eina_File - don't leak memory when file is not found.
2014-01-05 10:59:43 +09:00
Cedric Bail
0cfb40b7fb
eina: cleanup file destruction and reintroduce EINA_MAGIC use.
2013-11-20 20:08:44 +09:00
Jérémy Zurcher
8a3e021298
Revert "eina: fix a possible race condition during eina_file_close."
...
it breaks everything
This reverts commit 7e8fb93206
.
2013-11-20 10:22:00 +01:00
Cedric Bail
7e8fb93206
eina: fix a possible race condition during eina_file_close.
...
The lock on the main hash was taken to late (after we took the decision
to remove the targeted Eina_File from the cache), this means it was possible
to get an Eina_File from the cache that was going to be removed. This patch
attempt to fix that potential race condition.
Hopefully should fix T461.
2013-11-20 13:02:37 +09:00
Cedric Bail
e35c7b19fb
eina: long forgotten function in Eina_File for Windows.
2013-10-28 19:47:40 +09:00
Cedric Bail
caf934e005
eina: don't try close dummy handle.
2013-09-02 12:33:21 +09:00
Cedric Bail
464c58a1c9
eina: another fix for windows build.
2013-08-08 17:17:58 +09:00
Cedric Bail
4dd259f3b1
eina: add eina_file_refresh().
2013-07-31 17:16:40 +09:00
Cedric Bail
f2de8970a1
eina: add support for in memory only Eina_File.
2013-07-31 11:51:51 +09:00
Cedric Bail
9e745d4a2c
efl: add macro to swap Windows and Unix path separators.
2013-03-19 15:15:46 +09:00
Cedric BAIL
0dde9a6574
eina: share eina_file_copy code accross platform.
2013-03-15 16:05:39 +09:00
Cedric BAIL
e70502f1a1
eina: improve portability of Eina_File.
2013-03-15 11:05:25 +09:00
Daniel Willmann
f90726cf35
Revert "eina: improve portability of Eina_File."
...
This reverts commit c002d113f1
.
This commit reliably breaks builds with clang. Please test with
export CC=clang before you commit again.
export CC=clang
./autogen.sh --enable-multisense && make -j 10
The error Jenkins gets (I confirmed locally):
/bin/bash: line 1: 13549 Segmentation fault (core dumped) EFL_RUN_IN_TREE=1 ./bin/edje/edje_cc -id . -fd . -id ./tests/emotion/data tests/emotion/data/theme.edc tests/emotion/data/theme.edj
2013-03-14 17:21:48 +00:00
Cedric BAIL
49887271d2
eina: remove duplicated declaration.
2013-03-14 21:00:03 +09:00
Cedric BAIL
c002d113f1
eina: improve portability of Eina_File.
2013-03-14 20:52:37 +09:00
Gustavo Sverzut Barbieri
0a2d116119
efl: eina_alloca.h to simplify alloca() usage.
...
having to replicate 18 lines per file just to access alloca() is
insane. Let's do that in Eina.h and avoid that crap :-/
SVN revision: 82082
2013-01-03 15:10:34 +00:00
Vincent Torri
7fe3d35994
merge: __UNUSED__ --> EINA_UNUSED and some fixes in eo.
...
SVN revision: 77542
2012-10-05 20:09:47 +00:00
Cedric BAIL
1000f350e3
efl: backport Igor's eina patch.
...
SVN revision: 77415
2012-10-04 09:31:46 +00:00
Vincent Torri
785f2a6b3a
merge : add eina
...
currently, examples, tests and benchmark are not set. That's the next things i'll do
SVN revision: 76710
2012-09-16 10:57:48 +00:00