summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file (follow)
AgeCommit message (Collapse)Author
2015-05-14ecore_file: use portable environment lookup.Cedric BAIL
2015-05-07ecore: remove the need to order the header correctly for Windows.Cedric BAIL
2015-04-23ecore-file: use hash list for inotify monitor trackingMike Blumenkrantz
inotify reuses watches for multiple instances on the same file, so keeping a multimap here is necessary to avoid hash collision fix T2360
2015-04-17ecore_file: less confusing documentation of ecore_file_download APIkabeer khan
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2373 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-09ecore-file: use hash for finding monitorsMike Blumenkrantz
this should hugely improve the speed of file monitor event processing; in my test case, 800,000+ monitors were present and the application was entirely unable to process them
2015-04-01ecore_file - fix nasty memory issues in ecore_file_app_exe_get()Carsten Haitzler (Rasterman)
valgrind was most unhappy with ecore_file_app_exe_get(). like: ==8331== Invalid write of size 1 ==8331== at 0x68DE90A: ecore_file_app_exe_get (ecore_file.c:994) ==8331== Address 0x1348e58f is 0 bytes after a block of size 31 alloc'd ==8331== at 0x4C28C20: malloc (vg_replace_malloc.c:296) ==8331== Invalid write of size 1 ==8331== at 0x68DE948: ecore_file_app_exe_get (ecore_file.c:1000) ==8331== Address 0x1348e599 is 10 bytes after a block of size 31 alloc'd ==8331== at 0x4C28C20: malloc (vg_replace_malloc.c:296) etc. etc. - so i rewrote it cleanly using strbuf to save code and effort. cleaner now and ACTUALLY works correctly... and no valgrind complaints. @fix
2014-11-21ecore_file : Changed documentation of ecore_file_mksubdirskabeer khan
Summary: Corrected documentation of ecore_file_mksubdirs by replacing dirs with subdirs Signed-off-by: kabeer khan <kabeer.khan@samsung.com> Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1674
2014-11-04Ecore File: Corrected documentation of ecore_file_monitor_add APIkabeer khan
Summary: Added condition that if given path does not exist it returns NULL @fix Signed-off-by: kabeer khan <kabeer.khan@samsung.com> Reviewers: englebass, devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1640
2014-11-03Ecore File: Corrected documentation of ecore_file_monitor_add APIkabeer khan
Summary: Existing doc specifies that ecore_file_monitor_add returns NULL if path is not file. Removed this line as it works if path is either file or directory. Signed-off-by: kabeer khan <kabeer.khan@samsung.com> Reviewers: devilhorns, englebass Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1635
2014-11-03ecore-file: Fix formattingChris Michael
Summary: No functional changes, just formatting Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03ecore-file: Fix formatting.Chris Michael
Summary: No functional changes, just formatting Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-28inotify: Fix safety after read in 3 placesJean-Philippe Andre
Fixes Coverity issues: - CID 1039565 - CID 1039566
2014-10-20ecore_file: remove ecore_file_ls_iterator function from header.Pierre Le Magourou
It has no implementation in the ecore_file.c file. This has been forgotten in commit d4059c7 when moving this function to Eina library.
2014-08-08ecore_file: Check return value of chmod()Stefan Schmidt
Handle the error case here if chmod() fails. CID: 1039696
2014-06-27ecore_file: this parameter is indeed not used.Cedric BAIL
2014-01-09Revert "fix allocator sizeof operand mismatch reported by clang"Carsten Haitzler (Rasterman)
This reverts commit 955cc579d4d0b52cc71e309c35d1850424dc3cca. why? wrong. no. and it breaks actual execution/functioning. segv land
2014-01-09fix allocator sizeof operand mismatch reported by clangJihoon Kim
https://build.enlightenment.org/job/nightly_efl_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-07-1/report-QL6MiM.html#EndPath https://build.enlightenment.org/job/nightly_efl_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-07-1/report-a2l0Ci.html#EndPath https://build.enlightenment.org/job/nightly_efl_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-07-1/report-McvqNf.html#EndPath
2013-12-26efl: Unified eina critical manro to CRI.Daniel Juyung Seo
Being annoyed by different types of eina critical macros - CRI, CRIT, CRITICAL -, I concluded to unify them to one. Discussed on IRC and finally, CRI was chosen to meet the consistency with other macros - ERR, WRN, INF, DBG - in terms of the number of characters. If there is any missing bits, please let me know.
2013-12-23ecore: remove dead freeSebastian Dransfeld
Since we now free exe on goto restart, exe will always be NULL. CID 1139955
2013-12-15ecore-file - fix mem leak in ecore_file_app_exe_get() on restartCarsten Haitzler (Rasterman)
this actually fixes the issue. coverity did point it out but i fixed it incorrectly. since it was still there in the scan i now fixed it properly. fixes CID 1039279
2013-12-13ecore_file - finding exe path - if HOME is not set a leak could happenCarsten Haitzler (Rasterman)
this fixes CID 1039279
2013-12-07ecore_x: Fix buffer overrunSebastian Dransfeld
Use strncpy to prevent buffer overrun on buf, and '\0' terminate. Fixes CID 1039584
2013-12-02fix unchecked return value of stat in ecore_file_mvJihoon Kim
stat() function may fail and return an error code This fixes CID 1039697
2013-11-30ecore/ecore_file: NULL-check for input parameterOleksandr Shcherbina
Add check by NULL for input parameter 'path' in method ecore_file_mkpath Reviewers: seoz, Hermet CC: cedric Differential Revision: https://phab.enlightenment.org/D349
2013-11-25ecore_file: Print more informative message when inotify_add_watch was failed.Ryuan Choi
inotify_add_watch can be failed because of several reasons.
2013-10-15ecore_file: fix left over borking.Cedric Bail
I think I teached raster well, my job here is done !
2013-10-15ecore-file - remove ifdefs for HAVE_CULR since ecore-con "always" has itCarsten Haitzler (Rasterman)
now that it's runtime dlopen'ed etc. ecore-con "always" has url support via curl so ecore-file needs to assume that this can always work and this just use ecore-con-url anyway.
2013-08-05Check for valid fd returned from ecore_main_fd_handler_fd_get beforeChris Michael
potentially passing -1 to the read() function. Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05Don't pass negative values to close:Chris Michael
ecore_main_fd_handler_fd_get can return -1, so check return value before passing to close(). Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05strchr can return NULL, so check validity before tryint to pass NULLChris Michael
to ecore_file_cp. Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-16fix clang sizeof complaintCarsten Haitzler (Rasterman)
2013-03-10efl: use HAVE_FCNTL around call to fcntl.Cedric Bail
2013-02-17More removal of \rIvan Briano
2013-01-30Remove redundant return statement.Sanjeev BA
Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com> SVN revision: 83454
2013-01-03efl: eina_alloca.h to simplify alloca() usage.Gustavo Sverzut Barbieri
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
2012-12-24all efl object deletion functions now take NULL without crashing or erroringMike Blumenkrantz
SVN revision: 81667
2012-12-18efl: Created Ecore group and added existing Ecore groups to it.Jonas M. Gastal
SVN revision: 81293
2012-12-07efl: don't leak fd on exec.Cedric BAIL
SVN revision: 80434
2012-12-06efl/ecore_file: refactor to be more like eio in providing backends.Gustavo Sverzut Barbieri
instead of the previous mess, just define the functions with common names and call the backend that was compiled in, similar to what eio does. also do not be silent on errors, use eina_safety_checks to issue warnings. SVN revision: 80360
2012-12-06efl: common inotify checks, simplified.Gustavo Sverzut Barbieri
Another try to make inotify checks more common. This time uses AC_CHECK_HEADERS() as for others, that already define HAVE_SYS_INOTIFY_H, then uses that. I still kept AM_CONDITIONAL([HAVE_INOTIFY]) because I plan to convert ecore_file to the same, smarter, method that is used in eio (compiling the file depending on the backend. SVN revision: 80358
2012-12-03ecore: remove useless ECORE_HAVE_EET, remove old XCB code and remove ↵Vincent Torri
BUILD_ECORE_CON checks as ecore_con is always compiled anyway SVN revision: 80024
2012-12-02merge: add escape ecore, fix several bugsVincent Torri
SVN revision: 79995