path: root/src/lib/evil (follow)
AgeCommit message (Collapse)Author
2017-06-12evil: Fix edc scripts compilation on windowsIvan Furs
Fixes T5410 Summary: should fix the error T5410 Reviewers: vtorri, t.naumenko, cedric, raster, an.kroitor, rimmed, NikaWhite, FurryMyad Subscribers: artem.popov, cedric, jpeg Maniphest Tasks: T5410 Differential Revision:
2017-04-03Evil: fix fcntl() with socketsVincent Torri
On Windows, fd and sockets are different. Sockets are actually HANDLES, hence _get_osfhandle() should not be used with sockets, and GetHandleInformation() and SetHandleInformation() can be used directly with sockets. This is fixed by adding a function to test if the 'fd passed to fcntl() is a socket or not.
2017-03-29evil_string: fix strndup() for non-NULL terminated strings.Gustavo Sverzut Barbieri
If the given string is not null-terminated, then strlen() will go out of boundaries, we must limit the lookup to given 'n' parameter. To do so use strnlen(), that is a strlen() bounded by a maximum size.
2017-01-17evil: include "sys/types.h" where is define off_tVyacheslav Reutskiy
2016-08-01autotools: since it has been broken for some times and nobody noticed, let's ↵Cedric BAIL
remove per directory support.
2016-06-16Evil: fix EAPI when dirent.h and mman.h are included (Windows only)Vincent Torri
Test Plan: compilatioN Reviewers: cedric, jpeg, stefan_schmidt Differential Revision:
2016-04-14evil: make it possible to build the library alone.Cedric BAIL
So I have been battling with autotools on this for a full week now, and what we want is basically impossible. A.k.a. one file definition and possibility to do a full build or just a partial build of efl. Even moving to just partial build require to land a massive patch that change everything in our build system and this is just not a road I want to take. For reference, if one day automake allow the use of any kind of variable (autoconf AC_SUBST expansion or $()) in the _SOURCES parameter, it will be possible to fix. Alternatively if they allow to build subdirectory before they do BUILT_SOURCE, it would make it possible to incrementaly move to only partial build. In the mean time, a less problematic solution is to duplicate source code.
2016-03-14Evil: the addr argument of dladdr is acually usedVincent Torri
2016-03-14Evil: cosmetic changeVincent Torri
2016-02-18Evil: remove useless definesVincent Torri
Summary: Those defines are already defined in mingw-w64 header files Test Plan: makE Reviewers: cedric, jpeg Differential Revision: Signed-off-by: Cedric BAIL <>
2016-01-18win32: Fix compilation due to recent changes in EvilVincent Torri
Summary: dlfcn.h is not available anymore on Windows, Evil provides all the necessary declarations. Reviewers: cedric, jpeg Differential Revision: @fix
2015-12-29Evil: fix compilation warningVincent Torri
getenv() requires stdlib.h
2015-12-29Evil: integrate the dlfcn code into EvilVincent Torri
This will remove some incompatibilities with other packages, especially for win-builds
2015-12-08Evil: remove useless internal functionVincent Torri
Reviewers: cedric, jpeg Reviewed By: jpeg Subscribers: jpeg Differential Revision:
2015-12-08Evil: fix infinite recursive loop in previous addition of setlocale() in EvilVincent Torri
Summary: setlocale() called itself because it was defined as a #define so remove this #define from evil_locale.h and move it in another header file To avoid future problem, move similar defines to this header file Also clean all the header file mess in Evil Reviewers: cedric Subscribers: jpeg Differential Revision:
2015-12-04Evil: remove useless codeVincent Torri
This code was used for GNU printf and al. but it is useless now
2015-12-01evil: better check of Windows 64 bitsVincent Torri
Signed-off-by: Cedric BAIL <>
2015-11-30Evil: add support for LC_MESSAGES for setlocale()Vincent Torri
LC_MESSAGES is an extension to C ANSI and does not exist on Windows. So add LC_MESSAGES API and overload setlocale() to support it @feature
2015-11-30Evil: fix warningVincent Torri
Use the USERPROFILE environment variable instead of deprecated evil_homedir_get function. Also set the shell to cmd.exe if the SHELL var is not found
2015-11-11evil: remove useless vc++ codeVincent Torri
vc++ is not supported anymore Signed-off-by: Cedric BAIL <>
2015-11-11evil: fix warnings when mingw-w64 4.* is installedVincent Torri
mingw-w64 4.* adds several macros and functions compared to the 3.* version, so make sure that Evil does not redeclare them Signed-off-by: Cedric BAIL <>
2015-11-09evil: avoid SIGSEV while using strlen functionYeshwanth Reddivari
Summary: Assertion of (fp!=NULL) should be done before passing fp to strlen funcion Reviewers: singh.amitesh, Hermet, alok25, mvsovani, vtorri Subscribers:, cedric Differential Revision: Signed-off-by: Cedric BAIL <>
2015-10-22evil: fix memory leak issue in evil moduleVivek Ellur
Summary: @Fix Signed-off-by: Vivek Ellur <> Reviewers: cedric Subscribers: cedric Differential Revision: Signed-off-by: Cedric BAIL <>
2015-10-14Evil: set EAPI correctly in pwd.hVincent Torri
2015-08-22evil: add missing sinceChunEon Park
2015-08-21Evil: fix compilation when MSVC is not available.Vincent Torri
localtime_s is not defined in msvcrt.dll but rather is defined in Microsoft libc when Visual Studio or other stuff is installed. Issue introduced in:024812c1a76286991f292c3191936778ec219ff8 Fixes T2681 @fix
2015-08-20evil: fix warnings.ChunEon Park
correct data size for 32/64 compatibility.
2015-08-20evil: fix incorrect function call.ChunEon Park
_localtime64_s() requires _time64_t as one argument but here we passes time_s. Proper api is localtime_s().
2015-07-03Evil: add a wrapper around _mkdirVincent Torri
2015-06-01evil: deprecate evil_tmpdir_get() and evil_homedir_get().Vincent Torri
Signed-off-by: Cedric BAIL <>
2015-05-07evil: fix dladdr() implementation, add 2 unit tests for evil.Vincent Torri
@fix Signed-off-by: Cedric BAIL <>
2015-05-07evil: fix mem leak in dlsym() when using UNICODEVincent Torri
@fix Signed-off-by: Cedric BAIL <>
2015-05-07evil: minor formatting in dlfcn.cVincent Torri
Signed-off-by: Cedric BAIL <>
2015-05-07evil: remove the need to order the header correctly for Windows.Cedric BAIL
2015-04-19evil: remove unused files (evil_p*) and uneeded evil_uuid.c file (managed by ↵Vincent Torri
mingw-w64) Just keeping up with latest mingw-w64.
2015-03-22evil: fix access to a file mapping objectVincent Torri
Patch from Jorge Luis Zapatta (turran), a bit modified by me @fix Signed-off-by: Cedric BAIL <>
2015-03-18Spelling fixesBryce Harrington
Summary: emmited ==> emitted resistence ==> resistance occured ==> occurred Reviewers: cedric, zmike, devilhorns Subscribers: cedric Differential Revision:
2015-03-12evil: add strndup().Michelle Legrand
Signed-off-by: Cedric BAIL <>
2015-02-24evil: fix gecos field of struct pwVincent Torri
2015-02-07evil: fix initialisation.michelle legrand
Eina_Log is not available at this point of the initialisation.
2015-02-05evil: prevent _evil_init_count from going below zero.Srivardhan Hebbar
Summary: _evil_init_count should never go below zero. This can occur, if a developer mistakenly calls evil_shutdown before calling evil_init. So fixing the code so that it never goes below zero. Reviewers: cedric Subscribers: cedric Differential Revision: Signed-off-by: Cedric BAIL <>
2015-01-30evil: get right Windows environment variables for home path.michelle legrand
@fix Signed-off-by: Cedric BAIL <>
2015-01-30evil: add windows compatible langinfo.michelle legrand
Signed-off-by: Cedric BAIL <>
2015-01-29evil: fix SEGFAULT in strcasestrAndrii Kroitor
Summary: there was an unsigned int underflow. @fix Test Plan: strcasestr("a", "bbb"); Reviewers: cedric, raster, Hermet, seoz Subscribers: cedric, reutskiy.v.v Differential Revision: Signed-off-by: Cedric BAIL <>
2015-01-28evil: fix initialisation of the socket library.Vincent Torri
@fix Signed-off-by: Cedric BAIL <>
2014-12-25evil: fix memory leak issue in evil_dirent module.vivek
Summary: Memory allocated to dir was not freed. so added code to free dir struct @fix Signed-off-by: vivek <> Reviewers: devilhorns Subscribers: cedric Differential Revision: Signed-off-by: Cedric BAIL <>
2014-12-10evil: add getpwnam() functionVincent Torri
@feature Signed-off-by: Cedric BAIL <>
2014-10-20evil: simplify implementation of localtime_rVincent Torri
2014-10-20evil: formatting.Vincent Torri
2014-09-28Evil: add strptime()Vincent Torri