Commit Graph

102 Commits

Author SHA1 Message Date
Sebastian Dransfeld 979ef9217c eina: fix eina_file_iterator
Remove false check. When we reach the last line we want to return it.
This check will happen the next time we hit the next function.

SVN revision: 73054
2012-06-29 20:37:33 +00:00
Cedric BAIL 54e102fcc4 eina: also track lines index.
SVN revision: 73029
2012-06-29 10:45:58 +00:00
Carsten Haitzler b6b502885a use memset so we never have this problem again and also put in
eina_file_win32.c



SVN revision: 71345
2012-05-23 04:26:24 +00:00
Carsten Haitzler 6bacd49c6d if we are mallocing structs... lets set all the members to sane values
shall we... or use CALLOC! :/



SVN revision: 71343
2012-05-23 04:21:43 +00:00
Cedric BAIL 061c37176d eina: that was a useless piece of code !
SVN revision: 70930
2012-05-11 10:51:29 +00:00
Cedric BAIL f0a9acefa0 eina: add eina_file_map_lines.
This almost replace a loop of fopen/fgets/fclose, but it avoid
one memcpy.


SVN revision: 70871
2012-05-08 10:31:12 +00:00
Vincent Torri f00cf44117 Eina: fix shm_open() check (can be in libc or librt) + various autotools cleaning
This works in linux and windows, and should fix shm_detection on BSD (including Mac)

BSD, Mac and solaris users : please check that it compiles and shm_open is detected


SVN revision: 69608
2012-03-25 11:12:32 +00:00
Cedric BAIL 4a5fab140b eina: fix dead lock issue. This is hidding a bug with eina_hash_pointer_new.
SVN revision: 69338
2012-03-14 15:35:12 +00:00
Cedric BAIL 486d214a31 eina: build back on FreeBSD.
SVN revision: 69293
2012-03-13 11:25:56 +00:00
Mike Blumenkrantz 14998f066d warn--
SVN revision: 69022
2012-03-07 19:52:21 +00:00
Cedric BAIL 4d1dc8ca35 eina: don't reopen file when file didn't change.
NOTE: we were leaking file at very high speed !


SVN revision: 68924
2012-03-07 10:40:49 +00:00
Vincent Torri a6770d97ff Eina: cosmetic (move eina_file_mmap_faulty to the 'global' part)
SVN revision: 68908
2012-03-07 08:58:55 +00:00
Cedric BAIL b693dd6035 eina: introduce Eina_Stat to prevent issue when building with different config option.
SVN revision: 68315
2012-02-23 11:45:25 +00:00
Cedric BAIL ddbf4f1252 eina: update info in eina_file_stat seems more usefull.
SVN revision: 68264
2012-02-22 11:50:29 +00:00
Cedric BAIL c461a7eed9 eina: add eina_file_stat helper function.
SVN revision: 68259
2012-02-22 10:24:11 +00:00
Vincent Torri 2b932abc9c Eina: formatting
eina_file_init() and eina_file_shutdown() are global symbols, not local ones


SVN revision: 67423
2012-01-21 08:23:23 +00:00
Sebastian Dransfeld 8be657aed8 eina: formatting
SVN revision: 67309
2012-01-19 00:36:05 +00:00
Cedric BAIL a1f2535799 eina: warning--.
SVN revision: 66801
2012-01-03 15:24:15 +00:00
Cedric BAIL edbee63134 eina: detect fault during Eina_File mmap memory access and improve Xattr functions.
SVN revision: 66799
2012-01-03 14:59:07 +00:00
Cedric BAIL a285a94120 eina: the new endless story of fixing header in all possible configuration.
SVN revision: 65974
2011-12-06 21:33:39 +00:00
Cedric BAIL 0d4c616dc5 eina: follow Vincent advice.
SVN revision: 65905
2011-12-05 14:25:25 +00:00
Cedric BAIL 1561954c05 eina: improve system header detection.
SVN revision: 65900
2011-12-05 13:57:10 +00:00
Vincent Torri 5e673a311f Eina: warning--
patch by Fabien Romano from OpenBSD


SVN revision: 65206
2011-11-14 22:08:02 +00:00
Youness Alaoui 187f4eee8b Eina: Port eina to the Ps3 by including Escape
SVN revision: 64778
2011-11-05 17:49:30 +00:00
Cedric BAIL e40386c4f9 eina: fallback for case where file system doesn't handle MAP_HUGETLB properly.
SVN revision: 64181
2011-10-19 16:09:14 +00:00
Carsten Haitzler 4364c5720c fd leak --
SVN revision: 63914
2011-10-07 17:47:55 +00:00
Gustavo Sverzut Barbieri 6ecdda5121 eina: remove couple of warnings
SVN revision: 63842
2011-10-05 20:00:29 +00:00
Cedric BAIL a8d945f0a6 eina: actually sanitize all file inserted in the cache.
SVN revision: 63789
2011-10-04 02:33:45 +00:00
Cedric BAIL d1999e9125 eina: add sub-second resolution correctness.
SVN revision: 63787
2011-10-04 02:04:40 +00:00
Cedric BAIL 49fa59342f eina: forgotten lock in eina_file.
SVN revision: 63786
2011-10-04 01:55:41 +00:00
Youness Alaoui bfda6af5e5 Eina: In eina_file_open, only set the CLOEXEC flag if system supports exec
SVN revision: 63462
2011-09-18 21:57:10 +00:00
Youness Alaoui 12b0bf3896 Eina: Always use fpathconfig and never assume NAME_MAX is defined
SVN revision: 63460
2011-09-18 21:56:54 +00:00
Cedric BAIL 0c6ed213ad eina: add eina_xattr.{c,h}.
SVN revision: 63412
2011-09-15 15:37:28 +00:00
Cedric BAIL 286252b18a eina: use eina safety check in eina_file.c.
SVN revision: 63409
2011-09-15 13:57:27 +00:00
Cedric BAIL 680170b3f9 eina: add XAttr support to eina.
SVN revision: 63408
2011-09-15 12:39:40 +00:00
Mike Blumenkrantz b45b6fb6af seriously guys.
null checks.
why are there still functions that don't have them after we've hit 1.0?


SVN revision: 62900
2011-08-28 06:30:51 +00:00
Mike Blumenkrantz c2d2867a2b fix segv from missing null check
SVN revision: 62320
2011-08-10 22:42:27 +00:00
Cedric BAIL 5d21b6699b eina: fix build on NetBSD.
NOTE: we need a fallback for shm_open that will work on BSD system.


SVN revision: 61324
2011-07-13 08:51:19 +00:00
Carsten Haitzler d926889559 add eina mmap safety handling.
SVN revision: 60976
2011-07-04 09:29:59 +00:00
Carsten Haitzler 6c96111e0a dont bloody cache files! all this will do is leak them forever. no
cache. JUSt a shared hash. ZERO speculative retention cache. it was
broken before anyway.

grrrrr..........



SVN revision: 60589
2011-06-22 12:47:12 +00:00
Cedric BAIL 5fa5eb95cd eina: make Eina_File thread safe.
SVN revision: 59995
2011-06-06 17:08:06 +00:00
Vincent Torri f0d24bcef1 Eina : eina_file : eina_file_size_get() should return a size_t
SVN revision: 59859
2011-06-01 06:54:49 +00:00
Cedric BAIL c9a4fc3054 eina: fix eina_file to be really usable.
SVN revision: 59470
2011-05-17 16:17:28 +00:00
Cedric BAIL 31e53c82bf eina: always put map in memory when requested and use HUGETLB when available.
SVN revision: 59366
2011-05-13 10:44:29 +00:00
Carsten Haitzler 3b167a62f5 populate optional.
SVN revision: 58792
2011-04-21 11:54:16 +00:00
Vincent Torri 2816a9b59d Eina: eina_file.c: use fcntl instead of O_CLOEXEC
SVN revision: 58649
2011-04-14 05:52:24 +00:00
Vincent Torri 644bf855f4 Eina: eina_file.c replace ACCESSPERMS, which is not protable, by its value
SVN revision: 58648
2011-04-14 05:39:09 +00:00
Carsten Haitzler cd1c9be1f9 errrr.. how about we DONT make every eina using app spew out:
ERR<23281>:eina eina_main.c:173 _eina_shutdown_from_desc() Problems
shutting down eina module 'file', ignored.

now there's a bright idea eh?



SVN revision: 58645
2011-04-13 21:50:23 +00:00
Vincent Torri 3d26976ef8 move doxy tag
SVN revision: 58641
2011-04-13 17:03:24 +00:00
Vincent Torri 4ae466a30c put __UNUSED__ where we usually put it : after the parameter name
SVN revision: 58638
2011-04-13 16:29:29 +00:00