Commit Graph

9 Commits

Author SHA1 Message Date
Vincent Torri 9c5ce8345e [eio] add check on some functions (will be used later) and
add native win32 mutex code.

Question: with pthread, if a mutex is initialized with
PTHREAD_MUTEX_INITIALIZER, should it be destroyed  with
pthread_mutex_destroy() ?

SVN revision: 53772
2010-10-22 16:44:30 +00:00
Cedric BAIL 318a56c004 * eio: fix eio.pc
SVN revision: 53762
2010-10-22 11:54:54 +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
Cedric BAIL da9d9f4e89 * eio: improve doc.
SVN revision: 53673
2010-10-20 14:44:45 +00:00
Vincent Torri 933bac3a3a add doc support
SVN revision: 53265
2010-10-11 17:18:39 +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");

static void
_test_error_cb(int error, void *data)
   fprintf(stderr, "error: [%s]\n", strerror(error));

main(int argc, char **argv)
   Eio_File *cp;

   if (argc != 3)
        fprintf(stderr, "eio_cp source_file destination_file\n");
        return -1;


   cp = eio_file_copy(argv[1], argv[2],



   return 0;

SVN revision: 52787
2010-09-26 21:47:48 +00:00
Cedric BAIL bf9609ebff * eio: make it compile on Windows. Thanks Vincent !
SVN revision: 51955
2010-09-07 15:47:11 +00:00
Iván Briano 196b7ddf2d eina-0 is no more, check for the right package name
SVN revision: 51227
2010-08-16 20:20:57 +00:00
Cedric BAIL c5cc3b6e19 * eio: please welcome our asynchronous input output library.
NOTE: right now only help with file listing and provide a
	wrapper around eina_file_ls and eina_file_direct_ls and ecore_long_run.
	But the idea is to do the same with all Ecore_File code so that one
	day we can remove Ecore_File.

SVN revision: 50429
2010-07-22 16:08:17 +00:00