path: root/src/lib/ecore_file (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-20remove Evil.h when not necessary, include evil_private.h when necessaryVincent Torri3-10/+9
Test Plan: compilation Reviewers: zmike, raster, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8925
2019-03-11build: do not reply on header checking libinotify.hMarcel Hollerbach1-1/+1
but rather use the sys_bsd flag. The reason why relying on the header existance is bad, is that bsd decided to install this header, with the essential difference, that on bsd we require to link against libinotify, which makes the compilation fail. ref T7710 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D8093
2019-02-27efl.file: improve api a bitMike Blumenkrantz1-5/+5
Summary: the previous implementation/api had a number of issues: * "file" property contained both "file" and "key" values - also performed file loading operation * "load_error" property which was specific to image objects * no methods for controlling file loading/unloading this patch attempts the following changes: * split "file" property into "file" and "key" properties - also remove "key" from existing "mmap" property * remove "load_error" * directly return error codes from operations * add "load" and "unload" methods for directly controlling load state * add implicit file loading if file/mmap is set during construction * rewrite all efl.file implementations to move file loading into load() method * rewrite all usage of efl.file api based on these changes * add C extension functions to mimic previous behavior ref T7577 Reviewers: segfaultxavi, bu5hm4n, cedric Reviewed By: segfaultxavi Subscribers: vitor.sousa, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7577 Differential Revision: https://phab.enlightenment.org/D8018
2018-12-20cmake: remove!Marcel Hollerbach1-29/+0
This build was never complete and also was not maintained probebly. It is also dropped in favour of meson which is cool, merged, works & is fast. Differential Revision: https://phab.enlightenment.org/D7010
2018-10-05meson: unify system propertiesMarcel Hollerbach1-1/+1
this unifies the system types into 4 boolean flags This fixes the fact that meson changed the system string accross versions. Differential Revision: https://phab.enlightenment.org/D7144
2018-10-02here comes mesonMarcel Hollerbach1-0/+39
a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
2018-08-30docs: Fix typos and some wrong expressions in API reference doc.Myoungwoon Roy, Kim1-4/+4
Summary: I had fixed some typos and some wrong expressions in API reference doc Test Plan: N/A Reviewers: raster, zmike, Hermet, segfaultxavi Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6943
2018-05-24ecore_file: on shutdown properly set to NULL to avoid confusion when cycling ↵Cedric BAIL1-0/+1
2018-05-01ecore: move close_on_destructor to close_on_invalidate as that describe the ↵Cedric BAIL1-2/+2
behavior best. Fix all use to correctly behave on invalidate.
2018-04-10ecore_file: switch from buf to tmpstrMarcel Hollerbach1-1/+1
before c65782b15c0af7c25c5506cdf79cbbfa39604fec the acutal path has been filled into buf, with eina_file_mkstemp the string is filled into tmpstr, so that path should be chmoded instead of the template buf. Thx to MatP for the report!
2018-03-03Revert "cxx: Fix manual code after efl_app change."Carsten Haitzler (Rasterman)1-1/+1
This reverts commit 135154303bea691c6f7f9472a5dec32d9103c38d. Revert "efl: move signal events from efl.loop to efl.app" This reverts commit 3dbca39f98288580c62a43c179ac11621433ec88. Revert "efl: add test suite for efl_app" This reverts commit 3e94be5d73256a7f5c02d3a9474173226be7beff. Revert "efl: create Efl.App class, the parent of Efl.Loop" This reverts commit 28fe00b94e55575c15684959b89a614d5a579309. Go back to before efl.app because I think this should be done with superclassing here not a parent object. reasons? 1. multiple loops per single thread make no sense. so if multilpe loop objects they wont be contained in a single app object and then deleted like this. 2. the app object is not really sharable in this design so it cant be accessed from other threads 3. it makes it harder to get the main loop or app object (well 2 func calls one calling the other and more typing. it is longer to type and more work where it is not necessary, and again it can't work from other threads unless we go duplicating efl.app per thread and then what is the point of splittyign out the signal events from efl.loop then?) etc.
2018-02-26efl: create Efl.App class, the parent of Efl.LoopMike Blumenkrantz1-1/+1
2018-02-14ecore_file: modify check for wd in file monitor delYeshwanth Reddivari1-1/+1
Summary: Make checks consistent in ecore_file_monitor_backend_del. inotify_add_watch can return 0 as well on success. So, even if wd is 0, inotify_rm_watch need to be invoked. Reviewers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5770 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2018-02-02ecore-file: make monitoring truly fork-safeMike Blumenkrantz1-4/+24
add a fork reset callback and attempt to preserve existing monitors during reset @fix
2018-01-30Ecore_File: remove symlinks support on Windows (library and test)Vincent Torri2-13/+19
2018-01-18all: Simplify definition of EAPIVincent Torri1-4/+4
This will help in the transition from Autotools to Meson. This has been tested on Windows for which EFL_XXX_BUILD were first introduced.
2018-01-15ecore_file_monitor: replace EINA_LIST_FOREACH to EINA_LIST_FOREACH_SAFEWooHyun Jung1-2/+2
If ecore_file_monitor_del is called inside the file monitor callback function, eina_list found from monitor_hash would be freed. (You can check this inside eina_hash_list_remove.) Then, EINA_LIST_FOREACH makes one more for loop with invalid eina_list pointer. EINA_LIST_FOREACH_SAFE can prevent from this problem.
2018-01-02efl loop - rename ecore_main_loop_get to efl_main_loop_getCarsten Haitzler (Rasterman)1-1/+1
ecore_main_loop_get() is really a new "eo api" but it's using our old ecore_* namespace, so move to the new efl namespace.
2017-12-31Fix and simpligy windows behaviour.Andy Williams1-5/+2
Author: Vincent Torri
2017-10-13ecore_file: rename parameter for doxygenJinYong Park2-7/+7
Summary: Some parameter's name are different in annotations and statements, so it occurs doxygen warning. To fix it, rename that parameters. Test Plan: API Doxygen Revision Reviewers: raster, cedric, jpeg, myoungwoon, Jaehyun_Cho Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D5313 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-10-03ecore-file: do not emit events when an inotify watch is removedMike Blumenkrantz1-11/+3
??????????????????????????????????????????????????????????????????????????????? @fix
2017-09-22EFL For WIN32: Replace HAVE_EVIL define with _WIN32Vincent 'vtorri' Torri1-1/+1
2017-04-18ecore_file: use new API eina_file_close_on_exec.Cedric BAIL1-8/+1
2017-04-18ecore file - use eina_file_mkstmp to solve umask complaintCarsten Haitzler (Rasterman)1-8/+20
this fixes coverity CID 1039614
2017-02-27docs: Fix typos and some wrong expressionsMyoungwoon Roy, Kim1-54/+54
Covers: Ecore_Drm, Ecore_Evas, Ecore_File, Ecore_IMF, and Ecore_IMF_Evas API reference doxygen. Summary: I had fixed some typos and wrong expressions, such as capital letters, singular Etc. in Ecore_Drm, Ecore_Evas, Ecore_File, Ecore_IMF, and Ecore_IMF_Evas API reference doxygen. Test Plan: Doxygen Revision Reviewers: stefan, cedric, raster, jpeg, Jaehyun_Cho Subscribers: conr2d Differential Revision: https://phab.enlightenment.org/D4680
2017-02-02cmake: add ecore_file.Gustavo Sverzut Barbieri1-0/+29
2017-01-12ecore_file: add case to properly rename a file in WindowsIvan Furs1-0/+15
Summary: If the file with a new path was created and 'rename' wants to replace the old path to the new path. 'rename' will return: Windows 7: -1 (errno=EEXIST) (EEXIST == 17) Ubuntu: 0 **EEXIST** **Ubuntu**: The link named by new is a directory that is not an empty directory. (https://linux.die.net/man/3/rename) **Windows 7**: Files exist. An attempt has been made to create a file that already exists. For example, the _O_CREAT and _O_EXCL flags are specified in an _open call, but the named file already exists.(https://msdn.microsoft.com/en-us/library/5814770t.aspx) Test Plan: **Sample code to rename in Linux and Windows if the file with the new name already exists:** int main() { const char *_old = "old"; const char *_new = "new"; int fd1 = open(_old, O_CREAT); close(fd1); int fd2 = open(_new, O_CREAT); close(fd2); printf("rename:\t%s -> %s\n", _old, _new); int r = rename(_old, _new); if (r == 0) { printf("GOOD\n"); } else { printf("CODE ERROR:\n" ); printf(" -rename...: %d\n", r ); printf(" -errno....: %d\n", errno); } return 0; } Reviewers: raster, vtorri, jpeg, NikaWhite, reutskiy.v.v, an.kroitor, cedric Reviewed By: cedric Subscribers: artem.popov, cedric, jpeg Tags: #efl, #windows Differential Revision: https://phab.enlightenment.org/D4561 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-11-30Revert "ecore_file: use win api for delete folder"Vyacheslav Reutskiy1-4/+0
It was mistake, rmdir work correct, problem was fixed in commit 56c202614b73f0e4c34d7a5cd070fe2b24d9217f This reverts commit 5e25b8037ca8858412627d76b6fe72e9c7279021.
2016-11-23ecore_file_download: callback completion_cb with status=1.Gustavo Sverzut Barbieri1-2/+16
When download is aborted we must call completion_cb using status == 1, this was checked in the test suite.
2016-11-23ecore_file: get stat from correct fileVyacheslav Reutskiy1-1/+2
2016-11-23ecore_file: use win api for delete folderVyacheslav Reutskiy1-0/+4
The RemoveDirectory on Windows guarantee that given folder will be delete.
2016-11-23ecore_file: update docs for ecore_file_rmdirVyacheslav Reutskiy1-1/+1
2016-11-22ecore_file: restore past behavior and fix ecore_file_download tests.Cedric BAIL1-0/+6
2016-11-21ecore_file_download: use new efl_net_dialer_http.Gustavo Sverzut Barbieri1-197/+203
Greatly reduce code complexity while providing better support, at least according to @netstar efl_net_dialer_http works better than traditional ecore_con_url on BSD.
2016-10-04ecore_file/ipc: clean up documentationJee-Yong Um5-515/+509
Summary: move comment from c source to header and adjust ingroup relationship Reviewers: cedric, jpeg, Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D4328
2016-09-20ecore_file: Fix improper way of comparing in ecore_file_path_dir_exists @fixArtem Popov1-1/+1
Summary: There is wrong comparing while using strcmp function. Should be inverted. Reviewers: cedric, raster, NikaWhite Reviewed By: NikaWhite Subscribers: cedric, NikaWhite, jpeg Differential Revision: https://phab.enlightenment.org/D4291
2016-05-06ecore_file: fix memory leakJean Guyomarc'h1-0/+2
2016-04-23fix efreet/file monitor stringshare optimizationCarsten Haitzler (Rasterman)3-0/+3
fixes e4d815dc48c660a336670ec3cc67e6becbdcacfc that i just put in a few days back - it's a good idea to copy the string into your buffer to use it.. not just 0 terminate it. :)
2016-04-23efreetd - reduce memory usage by using stringshare much moreCarsten Haitzler (Rasterman)4-25/+23
lots of long paths for monitoring file paths for icons etc. are in memory for efreetd. this reduces that memory by sharing them much more. @optimization
2015-12-07Ecore_File: fix merge and simplify logic in ecore_file_file_get() on WindoWSVincent Torri1-22/+9
Summary: Ecore_File: fix merge and simplify logic in ecore_file_file_get() on WindowS Reviewers: cedric, jpeg Reviewed By: jpeg Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D3404
2015-12-01ecore_file: fix ecore_file_file_get() on WindowsVincent Torri1-1/+17
@fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-02ecore_file: Fix ecore_file_file_get function on Windows.Jaehyun Cho1-0/+10
On Windows, both backslash and slash can be used as file path separators. Therefore, it is fixed to consider backslash as a file path separator as well on Windows. @fix
2015-10-12ecore_file: remove whitespacesVincent Torri1-4/+4
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-12ecore_file: fix ecore_file management function on WindowsVincent Torri1-22/+94
On windows, stat() returns -1 if a path is finished with a \ or /, so replace all stat() calls with a function which removes the trailing slash or backslash on Windows At this stage the code duplicate many code path for avoiding potential borkage on Unix system. During 1.17 release cycle, it would be nice to refactor this piece. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-03Ecore_File: use ecore_file_mkdir()Vincent Torri1-1/+1
2015-07-03Ecore_File: better implementation of ecore_file_mkdir()Vincent Torri1-2/+1
2015-07-03Ecore_File: improve comment of ecore_file_mkdir()Vincent Torri1-3/+4
2015-05-14ecore_file: use portable environment lookup.Cedric BAIL1-1/+1
2015-05-07ecore: remove the need to order the header correctly for Windows.Cedric BAIL1-0/+3
2015-04-23ecore-file: use hash list for inotify monitor trackingMike Blumenkrantz1-8/+8
inotify reuses watches for multiple instances on the same file, so keeping a multimap here is necessary to avoid hash collision fix T2360