Vincent Torri
a943f063bc
ecore, eio : revert alloca commits (and other solaris math commits, i know)
...
SVN revision: 79610
2012-11-23 21:55:46 +00:00
Sebastian Dransfeld
b67bef4ed0
eio: correctly define alloca
...
SVN revision: 79576
2012-11-23 20:11:15 +00:00
Cedric BAIL
ae78bed101
eio: fix build with xattr and without splice.
...
Fix bug #1511 reported by Sleep Walker.
SVN revision: 76634
2012-09-14 02:06:24 +00:00
Cedric BAIL
f82152f150
eio: fix memory leak when using file associate.
...
SVN revision: 75854
2012-08-30 08:52:15 +00:00
Cedric BAIL
f809c0a706
eio: fix messy Xattr use.
...
SVN revision: 69898
2012-04-03 13:34:04 +00:00
Vincent Torri
71f42dcebc
Eio: fix shadow var warnings and make it compile on Windows. Needs more love though
...
SVN revision: 69809
2012-03-31 06:30:08 +00:00
Vincent Torri
e82fb99e0f
Eio: autotools cleanup
...
SVN revision: 69619
2012-03-25 19:15:44 +00:00
Cedric BAIL
cbd7088c63
eio: fix open use with O_CREATE.
...
SVN revision: 67394
2012-01-20 16:08:10 +00:00
Cedric BAIL
a49186092e
eio: temporary fix when splice is not available.
...
SVN revision: 67294
2012-01-18 15:45:01 +00:00
Cedric BAIL
f185e2d950
eio: use new Eina_File infra to detect IO error during mmap copy.
...
SVN revision: 66800
2012-01-03 15:00:30 +00:00
Cedric BAIL
2e21c6899f
eio: move documentation into header like other EFL library.
...
NOTE: need some help to finish splitting this API in a more meaningfull sense.
TODO: Fix a few FIXME and update monitoring backend to work on most system.
SVN revision: 65840
2011-12-03 13:21:07 +00:00
Cedric BAIL
d6eea5fcc8
eio: improve eio_dir_stat_ls to work with Eio_Associate and make it faster.
...
SVN revision: 62939
2011-08-29 11:20:27 +00:00
Cedric BAIL
ceecea1f3e
eio: morning speedup, pack feedback together to reduce context switch.
...
SVN revision: 60935
2011-07-02 11:06:52 +00:00
Cedric BAIL
2217f284f7
eio: make it possible to know if an Eio_File was cancelled.
...
SVN revision: 60689
2011-06-25 22:49:01 +00:00
Cedric BAIL
28c4f6f8f5
eio: eio doesn't modify data at all, so make it const.
...
SVN revision: 60635
2011-06-23 13:29:45 +00:00
Cedric BAIL
19d5fb205a
eio: associate data to a file behing listed assynchronously.
...
SVN revision: 60043
2011-06-07 16:30:10 +00:00
Cedric BAIL
d41e80a29c
eio: add eio_file_container_get.
...
SVN revision: 59646
2011-05-24 10:41:37 +00:00
Cedric BAIL
fb2310d5a4
eio: add beginning of xattr support.
...
SVN revision: 59146
2011-05-03 10:36:51 +00:00
Cedric BAIL
fc27a465a3
eio: also copy xattr when available.
...
SVN revision: 59015
2011-04-28 16:45:45 +00:00
Cedric BAIL
fc2aaf9935
eio: fix issue on 32bits system.
...
SVN revision: 57626
2011-03-09 14:53:55 +00:00
Cedric BAIL
c6cb315e35
eio: add eio_dir_stat_ls.
...
SVN revision: 57129
2011-02-17 15:59:07 +00:00
Cedric BAIL
581a3c66e2
* eio: fix API to match the rest of the EFL API.
...
SVN revision: 54504
2010-11-12 14:08:01 +00:00
Cedric BAIL
e61f8560ea
* ecore: break Ecore_Thread API once and for all to make it consistent.
...
SVN revision: 54502
2010-11-12 13:28:19 +00:00
Cedric BAIL
058deb3c1f
* eio: add eio_file_stat_ls.
...
SVN revision: 54106
2010-11-02 17:08:00 +00:00
Cedric BAIL
eb4cd21f0c
* eina: remove dirent so apps don't rely on non portable code.
...
SVN revision: 54103
2010-11-02 15:11:05 +00:00
Cedric BAIL
9b279fa367
* eio: break Eio error callback API to match the rest of the API.
...
SVN revision: 53986
2010-10-29 12:36:43 +00:00
Cedric BAIL
a5abd3d320
* eio: add eio_file_ls() tutorial.
...
SVN revision: 53915
2010-10-27 12:30:12 +00:00
Vincent Torri
c2d941930c
[eio] check if threads, grp.h and fchmod() are available
...
SVN revision: 53723
2010-10-21 17:51:21 +00:00
Vincent Torri
600053d7a9
[eio] improve documentation layout and add a tutorial for
...
eio_dir_copy()
SVN revision: 53704
2010-10-21 05:03:23 +00:00
Vincent Torri
3a5d43ea9c
[eio] reorganize code like eina, clean up doc
...
SVN revision: 53688
2010-10-20 19:17:30 +00:00
Cedric BAIL
10ff95e654
* eio: small doxy fix.
...
SVN revision: 53656
2010-10-20 12:08:56 +00:00
Cedric BAIL
f3b720812e
* e, eio: fix ecore_thread_run breakage.
...
SVN revision: 53371
2010-10-13 17:46:02 +00:00
Carsten Haitzler
8cde3d4ba6
ok... bad eio hackers. you know setting things like gnu_source and
...
file_offset_bits .. CHANGES the size of structs like dirent? so if u
do it differently in different c files... u end up with.. GASP
different structs with different sizes! dont do this. unify everything
into eio_private.h so its at least CONSISTENT for eio's internals.
SVN revision: 53322
2010-10-13 00:26:12 +00:00
Vincent Torri
0304666261
improve doc. Now, cedric, it's up to you :p
...
SVN revision: 53308
2010-10-12 14:59:30 +00:00
Cedric BAIL
cb8d2cf2f9
* eio: improve allocation code for eio_file_direct_ls.
...
SVN revision: 53262
2010-10-11 12:40:20 +00:00
Gustavo Sverzut Barbieri
98e0d9f009
safer and louder about errors.
...
SVN revision: 53204
2010-10-08 20:14:21 +00:00
Eduardo de Barros Lima
9910581b1c
Eio: No need to #define _GNU_SOURCE
...
SVN revision: 53165
2010-10-07 21:06:54 +00:00
Cedric BAIL
71ae9cd4e5
* eio: reduce code duplication.
...
SVN revision: 53094
2010-10-06 09:54:00 +00:00
Cedric BAIL
96172a4066
* eio: fix coding style, the other way.
...
SVN revision: 53071
2010-10-05 16:57:51 +00:00
Cedric BAIL
f352ce15bc
* eio: follow efl coding style.
...
SVN revision: 53066
2010-10-05 15:58:19 +00:00
Cedric BAIL
a1ea2ed6cd
* eio: more code to share.
...
SVN revision: 53065
2010-10-05 15:32:24 +00:00
Cedric BAIL
9e019c7227
* eio: report current operation during progress.
...
SVN revision: 53063
2010-10-05 14:55:47 +00:00
Cedric BAIL
d85ab417fd
* eio: fix docs and typos.
...
SVN revision: 53062
2010-10-05 14:29:58 +00:00
Cedric BAIL
5999ca1825
* eio: share more code and make copy cancellable.
...
SVN revision: 53057
2010-10-05 12:56:07 +00:00
Cedric BAIL
bb76ca8100
* eio: share some code.
...
SVN revision: 53056
2010-10-05 11:44:03 +00:00
Cedric BAIL
7088845157
* eio: add eio_file_move (completly asynchronous and non
...
blocking move). It first try a rename, then fallback to
an eio_file_copy + eio_file_unlink.
Small example on how to use it :
#include <Ecore.h>
#include <Eio.h>
static void
_test_done_cb(void *data)
{
printf("move done\n");
ecore_main_loop_quit();
}
static void
_test_error_cb(int error, void *data)
{
fprintf(stderr, "error: [%s]\n", strerror(error));
ecore_main_loop_quit();
}
int
main(int argc, char **argv)
{
Eio_File *cp;
if (argc != 3)
{
fprintf(stderr, "eio_cp source_file destination_file\n");
return -1;
}
ecore_init();
eio_init();
cp = eio_file_move(argv[1], argv[2],
NULL,
_test_done_cb,
_test_error_cb,
NULL);
ecore_main_loop_begin();
eio_shutdown();
ecore_shutdown();
return 0;
}
SVN revision: 52845
2010-09-28 09:05:51 +00:00
Cedric BAIL
135a0f570a
* eio: add eio_file_copy (using splice when available and
...
fallback to mmap/write with huge tlb when not).
That what an eio_cp would look like :
#include <Ecore.h>
#include <Eio.h>
static void
_test_progress_cb(void *data, const Eio_Progress *info)
{
printf("%f (%zi / %zi octets)\n", info->percent, info->current, info->max);
}
static void
_test_done_cb(void *data)
{
printf("copy done\n");
ecore_main_loop_quit();
}
static void
_test_error_cb(int error, void *data)
{
fprintf(stderr, "error: [%s]\n", strerror(error));
ecore_main_loop_quit();
}
int
main(int argc, char **argv)
{
Eio_File *cp;
if (argc != 3)
{
fprintf(stderr, "eio_cp source_file destination_file\n");
return -1;
}
ecore_init();
eio_init();
cp = eio_file_copy(argv[1], argv[2],
_test_progress_cb,
_test_done_cb,
_test_error_cb,
NULL);
ecore_main_loop_begin();
eio_shutdown();
ecore_shutdown();
return 0;
}
SVN revision: 52787
2010-09-26 21:47:48 +00:00
Cedric BAIL
8036a32918
* ecore: rename ecore_long_run to ecore_thread_feedback_run.
...
SVN revision: 52573
2010-09-22 09:47:55 +00:00
Cedric BAIL
d287f127fd
* eio: callback are allowed to modify their own data.
...
Don't know how I wrote this non sense.
SVN revision: 52189
2010-09-13 13:44:24 +00:00
Cedric BAIL
0a4134fd5f
* eio: return errno on error.
...
SVN revision: 51946
2010-09-07 14:43:51 +00:00