Commit Graph

148 Commits

Author SHA1 Message Date
Vincent Torri aace76a3b8 spelling
SVN revision: 40159
2009-04-18 09:19:03 +00:00
Vincent Torri b2b415ac00 * src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h:
	support of F_GETFD in fcntl() (does nothing, actually
	needed for last ecore change)



SVN revision: 39978
2009-04-11 11:12:34 +00:00
Vincent Torri adf3a95ddc * src/lib/evil_stdlib.c:
manage correctly getenv() when value is NULL.



SVN revision: 39900
2009-04-08 17:22:12 +00:00
Vincent Torri a3f6e333f9 include winsock2.h before Evil.h to avoid conflict with sys/time.h
when using Visual Studio


SVN revision: 39179
2009-02-24 17:44:59 +00:00
Vincent Torri 9d900b283a * src/lib/evil_main.c:
* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	Use high resolution timer for gettimeofday() and
	export a convenient function for ecore_time_get(),
	to save some computations.
	* src/lib/evil_pwd.c:
	Use the correct name for GetUserNameEx() according
	to the platform.



SVN revision: 39148
2009-02-22 19:20:23 +00:00
Vincent Torri a42a91cebc include io.h when using vc++ (requested for _open())
SVN revision: 39100
2009-02-19 20:03:58 +00:00
Vincent Torri d39257b550 set correctly the relative path of the extern directory,
so that it fits the one used in the tutorial.


SVN revision: 39098
2009-02-19 19:46:04 +00:00
Vincent Torri a66c46264c * src/lib/evil_stdio.c:
replace / by \ in the path passed to fopen



SVN revision: 39036
2009-02-16 08:42:41 +00:00
Vincent Torri 715f0f8758 * doc/Makefile.am:
* m4/efl_doxygen.m4:
	Missing modification of the variable DOXYGEN to
	efl_doxygen. Spotted by Albin Tonnerre (Lutin).



SVN revision: 38891
2009-02-01 20:20:29 +00:00
Vincent Torri f15f2c1c64 * m4/efl_doxygen.m4:
fix logic in efl_doxygen.m4



SVN revision: 38880
2009-02-01 06:55:53 +00:00
Vincent Torri 6a48f60e39 * src/lib/evil_fcntl.c:
fix fcntl()



SVN revision: 38766
2009-01-24 22:29:19 +00:00
Vincent Torri 7da4e5839d * src/bin/Makefile.am:
* src/bin/evil_suite.c:
	* src/bin/evil_test_dlfcn.c:
	* src/bin/evil_test_dlfcn.h:
	* src/bin/evil_test_environment.c:
	* src/bin/evil_test_environment.h:
	* src/bin/evil_test_gettimeofday.c:
	* src/bin/evil_test_gettimeofday.h:
	* src/bin/evil_test_link.c:
	* src/bin/evil_test_link.h:
	* src/bin/evil_test_mkstemp.c:
	* src/bin/evil_test_mkstemp.h:
	* src/bin/evil_test_realpath.c:
	* src/bin/evil_test_realpath.h:
	various fixes in the test suite.
	add mkstemp() and realpath tests.
	* src/lib/evil_dirent.c:
	fix opendir() when indexation search is not active.
	formatting.
	* src/lib/evil_stdlib.c:
	fir mkstemp() on both platform
	* src/lib/evil_unistd.c:
	remove useless error message.



SVN revision: 38645
2009-01-19 17:51:17 +00:00
Vincent Torri 2023d9749f update ac_attribute.m4
SVN revision: 38586
2009-01-14 08:39:46 +00:00
Carsten Haitzler fb92a519bf fix the copying license to
1. get rid of grammar mistake
2. refer to COPYING-PLAIn correctly as the filename
3. be more explicit on "shipping source" due to ambiguity (this makes it what
it was intended to be and that is GPL compatible).

this does not modify the LGPL libs... or GPL apps etc. - only those using the
original COPYING from e. author and dates at the top remain the same.



SVN revision: 38569
2009-01-13 13:00:45 +00:00
Vincent Torri c8c9bf3062 * src/lib/evil_dirent.c:
* src/lib/evil_fnmatch.c:
	* src/lib/evil_link_xp.cpp:
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdlib.c:
	* src/lib/evil_string.c:
	* src/lib/evil_unistd.c:
	* src/lib/evil_util.c:
	warnings fixes



SVN revision: 38552
2009-01-12 06:03:51 +00:00
Vincent Torri c80770901d * configure.ac:
add SECURITY_WIN32 to the proprocessor on Windows XP,
	should fix the bug with security.h



SVN revision: 38334
2008-12-27 18:57:54 +00:00
Vincent Torri ac3bcc3fa9 * src/bin/evil_test_environment.c:
check returned value
	* src/bin/evil_test_memcpy.c:
	define getpagesize() for vc++
	* src/lib/evil_unistd.c:
	move inclusion of time.h after windsock2.h
	include direct.h for vc++
	use _WIN32_WCE for Windows CE compilers in evil_getcwd()
	* src/lib/Evil.h:
	* src/lib/evil_unistd.h:
	move getcwd() define from Evil.h to evil_unistd.h
	add some C99 types to Evil.h for vc++ (will be used in eina)
	* src/lib/evil_fcntl.c:
	include io.h for vc++
	* src/lib/evil_link_xp.cpp:
	use full name for symlink(). Fix symlink on Windows XP with
	the DOS prompt or the debugger of Visual Studio.
	* src/lib/evil_mman.c:
	don't include unistd.h if vc++ is used
	* src/lib/evil_stdio.h:
	formatting
	* src/lib/evil_stdlib.h:
	* src/lib/evil_stdlib.c:
	define putenv only for mingw32ce
	move the returned value of setenv()



SVN revision: 38333
2008-12-27 18:53:56 +00:00
dm 7ad6bb42fc Evil Win32 VS8 projects modified
SVN revision: 38281
2008-12-22 23:18:41 +00:00
Vincent Torri 55f7df7ef9 * src/bin/Makefile.am:
* src/bin/evil_test_gettimeofday.c:
	fix unit test; now all tests pass, finally
	* src/lib/evil_unistd.c:
	fix gettimeofday() on mingw32ce



SVN revision: 38130
2008-12-13 18:43:16 +00:00
Vincent Torri 87ededafe7 * src/bin/Makefile.am:
and don't compile test_dlfcn...



SVN revision: 38129
2008-12-13 17:19:28 +00:00
Vincent Torri 93bded8fd2 * src/bin/evil_suite.c:
do not access to undefined pointer



SVN revision: 38128
2008-12-13 17:11:31 +00:00
Vincent Torri e4978aeae2 * src/bin/test_dlfcn.c:
remove dlfcn test, is in the unit test now



SVN revision: 38127
2008-12-13 16:07:23 +00:00
Vincent Torri 826fd4ce79 * src/bin/Makefile.am:
* src/bin/evil_test_dlfcn.c:
	* src/bin/evil_test_dlfcn.h:
	add dflcn unit test
	* src/bin/evil_suite.c:
	show result of the unit tests and add dlfcn unit test
	* src/bin/evil_test_environment.c:
	remove debug
	* src/bin/evil_test_gettimeofday.c:
	debug, not working yet :/
	* src/bin/evil_test_link.c:
	* src/lib/evil_link_ce.c:
	fix link support on Windows CE



SVN revision: 38126
2008-12-13 16:04:05 +00:00
Vincent Torri 89937e8cf5 * src/lib/Evil.h:
be sure to include stdio.h before redefining the
	functions that are declared int it.



SVN revision: 38076
2008-12-10 06:15:03 +00:00
Vincent Torri 26d595d0d8 * src/bin/evil_test_gettimeofday.c:
add output
	* src/bin/evil_test_link.c:
	add a unit test for readlink()
	* src/lib/evil_link_xp.cpp:
	fix readlink() and symlink() on Windows XP



SVN revision: 38070
2008-12-09 22:27:53 +00:00
Vincent Torri 7b9b40334f * src/lib/evil_main.c:
always export evil_init() and evil_shutdown()



SVN revision: 37945
2008-12-05 22:50:24 +00:00
Vincent Torri e407285fb1 * src/bin/evil_test_gettimeofday.c:
replace evil_gettimeofday by gettimeofday
	* src/lib/evil_string.c:
	* src/lib/evil_string.h:
	add strcoll() "port" to Windows CE OS. Note it's
	just strcmp, no locale stuff is used onn that OS.



SVN revision: 37910
2008-12-03 00:36:31 +00:00
Vincent Torri e12623ee46 * src/lib/evil_main.c:
define correctly EAPI



SVN revision: 37849
2008-11-29 10:56:20 +00:00
Vincent Torri d7092143aa * src/bin/Makefile.am:
* src/bin/evil_suite.c:
	* src/bin/evil_test_gettimeofday.c:
	* src/bin/evil_test_gettimeofday.h:
	add a small test for gettimeofday
	* src/bin/evil_test_memcpy.c:
	fix warning
	* src/lib/Evil.h:
	* src/lib/Makefile.am:
	* src/lib/evil_main.c:
	* src/lib/evil_main.h:
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	* src/lib/evil_private.h:
	add gettimeofday for Windows CE natively. It is necessary
	to initialise evil with evil_init() now, to have that
	feature.
	* src/lib/evil_stdio.c:
	* src/lib/evil_string.c:
	fix warnings



SVN revision: 37734
2008-11-21 22:57:45 +00:00
Samuel F. Baggen fafeb1044d [vtorri patch] include fnmath code for mingw users
SVN revision: 37611
2008-11-13 20:53:16 +00:00
Vincent Torri bd70ea0c86 * src/lib/evil_unistd.h:
export execvp()



SVN revision: 37596
2008-11-12 07:25:38 +00:00
Vincent Torri ad106db9fe * evil.pc.in:
remove -ldl
	* src/lib/evil_dirent.c:
	change guards
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	add some checks,
	add a function that more or less mimic fopen, but with
	native win32 api calls. This is only for the evas loader
	and saver of png files and works only for Windows CE.
	* src/lib/evil_unistd.c:
	move a free() and remove debug calls.



SVN revision: 37570
2008-11-09 19:27:13 +00:00
Vincent Torri 6a7aefef08 * src/lib/evil_stdio.c:
* src/lib/evil_stdio.h:
	overload rewind for Windows CE
	* src/lib/evil_unistd.c:
	remove debug



SVN revision: 37477
2008-11-05 17:27:20 +00:00
Vincent Torri d475a28d93 * src/lib/Evil.h:
* src/lib/evil_stdio.h:
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	overload the stat() function for native Windows CE platform.
	move pipe() and fopen() definitions to their own header files



SVN revision: 37452
2008-11-04 07:53:43 +00:00
Vincent Torri 9efc8ecf79 * configure.ac:
add a flag to know if cegcc is used or not
	* src/lib/Makefile.am:
	* src/lib/dirent.h:
	* src/lib/evil_dirent.c:
	add opendir(), closedir() and readdir() implementations
	for Windows XP and CE. Now, the evas engines are correctly
	found.
	* src/lib/fnmatch.h:
	formatting



SVN revision: 37376
2008-11-01 17:07:41 +00:00
Vincent Torri 7e2b141beb * configure.ac:
formatting
	* src/lib/dlfcn/dlfcn.c:
	* src/lib/dlfcn/dlfcn.h:
	fix dladdr declaration



SVN revision: 37370
2008-11-01 09:50:01 +00:00
Vincent Torri de996636ba * configure.ac:
use AC_CHECK_HEADERS instead of AC_CHECK_HEADERS_ONCE, because it
	leads to more trouble than it improves configure speed...
	* src/lib/Evil.h:
	use __VA_ARGS__ instead of ##args to make gcc happy.



SVN revision: 37302
2008-10-29 11:07:43 +00:00
Vincent Torri 52ea343c44 * configure.ac:
define _WIN32_WCE with the cegcc compiler too
	useless EVIL_HAVE_WINCE define
	* src/bin/evil_test_memcpy.c:
	use _WIN32_WCE insead of EVIL_HAVE_WINCE
	* src/lib/Evil.h:
	try another definition of open(). Need feedback.
	* src/lib/evil_private.h:
	* src/lib/evil_util.c:
	add private error message when GetLastMessage must be called
	* src/lib/Makefile.am:
	* src/lib/evil_link_ce.c:
	* src/lib/evil_link_xp.cpp:
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.cpp:
	move specific link code (readlink and symlink) outside
	evil_unistd to evil_link_ce.c for Windows CE and
	evil_link_xp.cpp for Windows XP. This allow the Windows CE
	code not depend on c++ code anymore and above all, not
	statically link libstdc++ on that platform.
	I need feedback on Windows XP, btw :)



SVN revision: 37295
2008-10-29 08:04:52 +00:00
Vincent Torri 9a0b7ebd18 * configure.ac:
add c++ compiler checks
	remove linking against libuid.a	as it's not an import lib.
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	* src/bin/evil_test_link.c:
	* src/bin/evil_test_link.h:
	add unit test for links. Must be improved.
	* src/lib/Makefile.am:
	add unistd.cpp and uuid.c
	use -fno-exceptions when compiling c++ code
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.cpp:
	use C++ api to manage links on Windows XP. Can be considered
	as heavy but it's cleaner as the internals can change later.
	I might consider to compile Windows CE code with only C compiler
	as with mingw32ce, libstdc++ is statically linked to the
	DLL / app (legacy of mingw stuff), to reduce a bit the DLL size.
	* src/lib/evil_private.h:
	declare _evil_error_display() as C function (otherwise linker
	not happy)
	* src/lib/evil_stdlib.c:
	use RegCreateKeyEx() instead of RegOpenKeyEx in getenv().
	fix an _evil_error_display() call.
	* src/lib/evil_util.c:
	add more error messages
	* src/lib/evil_uuid.c:
	define IID_IPersistFile (for links on Windows XP)
	* src/lib/evil_unistd.h:
	fix doc



SVN revision: 37267
2008-10-28 08:59:12 +00:00
Vincent Torri 3aa052f73c display the correct function name when displaying an error
SVN revision: 37212
2008-10-27 08:39:13 +00:00
Vincent Torri bb5f1a561a * src/lib/evil_unistd.c:
* src/lib/evil_unistd.h:
	add execvp stub function for ecore_app. Does nothing,
	only here to make compilation working with mingw32ce.



SVN revision: 37102
2008-10-25 17:39:59 +00:00
Vincent Torri de07e9bad9 reviewed by: <delete if not using a buddy>
patch by: <delete if not someone else's patch>
	* src/lib/Evil.h:
	* src/lib/Makefile.am:
	* src/lib/evil_private.h:
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	* src/lib/evil_stdlib.c:
	* src/lib/evil_unistd.c:
	* src/lib/evil_util.c:



SVN revision: 37046
2008-10-24 07:32:08 +00:00
Vincent Torri ccab8e2101 missing files
SVN revision: 37041
2008-10-24 06:06:57 +00:00
Vincent Torri 44d632008b * configure.ac:
* src/lib/Makefile.am:
	store cpp flags in a variable instead of using an
	automake conditional
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	* src/bin/evil_test_memcpy.c:
	add test for getenv / setenv. More tests on it will
	come later
	* src/lib/evil_stdlib.c:
	fix getenv code and minor cleanup



SVN revision: 37004
2008-10-22 21:36:55 +00:00
Vincent Torri 0eb2aaab4d * m4/ac_attribute.m4:
use newer file from PROTO/autotools
	* src/lib/dlfcn/dlfcn.c:
	* src/lib/evil_mman.c:
	no need to define __UNUSED__ anymore with the new m4 macro
	* src/lib/Makefile.am:
	* src/lib/evil.c:
	remove useless file



SVN revision: 36921
2008-10-21 11:01:36 +00:00
Vincent Torri 3806efd337 * src/lib/Evil.h:
use getcwd() from evil_unistd.c



SVN revision: 36912
2008-10-21 08:31:13 +00:00
Vincent Torri d2b7c8f93c * src/lib/Makefile.am:
* src/lib/evil_time.c:
	add tzset implementation ofr mingw32ce (does nothing...),
	needed for embryo
	* src/lib/evil_stdio.h:
	formatting



SVN revision: 36911
2008-10-21 07:41:39 +00:00
Vincent Torri e67164459d * src/bin/evil_suite.c:
* src/bin/evil_suite.h:
	* src/bin/evil_test_memcpy.c:
	* src/bin/evil_test_memcpy.h:
	clean suite and memcpy test code



SVN revision: 36835
2008-10-20 04:42:26 +00:00
Vincent Torri 1293953743 * src/lib/errno.h:
* src/lib/evil_errno.c:
	export errno symbol.
	* src/lib/evil_string.c:
	* src/lib/evil_string.h:
	add a (slow) implementation of ffs(). Needed for eina



SVN revision: 36824
2008-10-19 19:06:19 +00:00
Vincent Torri 26e3986a81 * configure.ac:
* src/lib/Makefile.am:
	fix compilation on MinGW. Windows 2000 is
	the minimum version supported by Evil (hence
	other EFL). Goodbye Windows 98.
	* src/bin/evil_test_memcpy.c:
	re-enable small memcpy tests. It seems that memcpy
	provided by glibc and the oem driver on Ipaq
	3970 I have, have the same speed.



SVN revision: 36724
2008-10-16 17:12:59 +00:00
Vincent Torri a3f8f5f27b * Makefile.am:
add the doc subdir
	* src/lib/Makefile.am:
	add evil_fnmatch_private.h in tarballs



SVN revision: 36705
2008-10-16 07:04:38 +00:00
Vincent Torri ffa00324c4 adding missing files
SVN revision: 36652
2008-10-14 07:58:57 +00:00
Vincent Torri d8fda87e83 * src/lib/evil_fcntl.h:
don't use it with the cegcc compiler
	* src/lib/evil_fnmatch.c:
	fix warning
	* src/lib/evil_stdlib.c:
	fix putenv and mkstemp with cegcc and mingw32ce



SVN revision: 36651
2008-10-14 06:52:09 +00:00
Vincent Torri c30004b6c9 * configure.ac:
* src/lib/Makefile.am:
	readd guards suppressed in previous commit
	* src/lib/Evil.h:
	include new header files
	* src/lib/errno.h:
	* src/lib/evil_errno.c:
	add fake errno system with mingw32ce
	* src/lib/evil_fcntl.c:
	* src/lib/evil_fcntl.h:
	fix compilation on cegcc and mingw32 (mainly does
	nothing on Windows CE)
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	add rewind and perror for mingw32ce
	* src/lib/evil_string.c:
	* src/lib/evil_string.h:
	add strerror for mingw32ce



SVN revision: 36587
2008-10-11 14:35:26 +00:00
dm 8ec181c8bc Updated Evil VS project, added test project.
SVN revision: 36583
2008-10-11 11:15:38 +00:00
Vincent Torri 1571e802d8 * configure.ac:
* src/lib/Makefile.am:
	* src/lib/evil_fnmatch.c:
	* src/lib/evil_fnmatch_list_of_states.c:
	add guards instead of not including fnmatch source
	file in Makefile.am (for mingw32ce only)
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	* src/bin/evil_test_memcpy.c:
	* src/bin/suite.c:
	* src/bin/suite.h:
	* src/bin/test_memcpy.c:
	* src/bin/test_memcpy.h:
	rename files



SVN revision: 36580
2008-10-11 07:23:55 +00:00
Vincent Torri 85ffa791af * AUTHORS:
mention Tor's contribution
	* configure.ac:
	mention m4 directory, check errno header file,
	add conditionnal when mingw32ce is used, minor
	formatting
	* m4/efl_doxygen.m4:
	fix comments
	* src/lib/Makefile.am:
	include fnmatch files only when mingw32ce is used
	* src/lib/evil_fcntl.c:
	define correctly _get_osfhandle on mingw32ce
	* src/lib/evil_pwd.c:
	fix getpwuid() when cegcc or mingw32ce are used
	* src/lib/evil_stdlib.c:
	fix mkstemp() on all Windows platform, guard errno stuff
	* src/lib/evil_stdlib.h:
	template -> __template because 'template ' is a c++ keyword.
	* src/lib/evil_unistd.c:
	guard errno stuff
	* src/lib/evil_fnmatch.c:
	* src/lib/evil_fnmatch_list_of_states.c:
	* src/lib/evil_fnmatch_private.h:
	* src/lib/fnmatch.h:
	added files
	* win32/common/fnmatch.c:
	* win32/common/fnmatch.h:
	* win32/common/fnmatch_list_of_states.c:
	* win32/common/fnmatch_private.h:
	removed files



SVN revision: 36555
2008-10-09 21:56:31 +00:00
Vincent Torri f1c6e79e64 define EFL_MPATROL flags only when mpatrol is detected
SVN revision: 36466
2008-10-05 22:18:56 +00:00
Vincent Torri 656a79f1a0 missing file
SVN revision: 36447
2008-10-05 16:00:40 +00:00
Vincent Torri 22d8fefc05 * m4:
add m4 macro for doxygen, mpatrol and __attribute__

* doc:
move Doxyfile from toplevel dir to doc/

* src/bin/Makefile.am
* src/lib/Makefile.am
* src/lib/dlfcn/Makefile.am
remove _DEPENDENCIES, add flags for mpatrol and put
defines for EAPI

* src/bin:
add memcpy for i686. Need an asm expert to modify it

* src/bin/memcpy_glibc_arm.S:
formatting

* src/bin/suite.c:
fix seg fault by increasing the size of the buffers

* src/bin/test_memcpy.c:
add a test with a bigger size for the memory to copy

* configure.ac:
reorganise a lot, use m4 macro, add mpatrol support

* Makefile.am:
add doc rule


SVN revision: 36446
2008-10-05 15:53:22 +00:00
Vincent Torri 9b59c2205c rename memcpy_glibc.S to memcpy_glibc_arm.S
SVN revision: 36416
2008-10-03 06:29:09 +00:00
Vincent Torri be3df7fcd1 * configure.ac:
* src/bin/Makefile.am:
* src/bin/test_memcpy.c:
compile memcpy_glibc.S only if cegcc or mingw32ce is used

* src/bin/test_pipe.c:
use evil_sockets_init and evil_sockets_shutdown.

* src/lib/evil_unistd.c:
formatting


SVN revision: 36294
2008-09-28 13:32:49 +00:00
Vincent Torri b5ac42942c * mingw32ce has no locale stuff
* libmman does not exist anymore


SVN revision: 36127
2008-09-20 10:02:09 +00:00
Vincent Torri a7f00b51bc * Makefile.am:
add autogen.sh in archive distribution

* configure.ac:
remove useless defines
first support of mingw32msvc compiler

* src/lib/Evil.h:
move some macro definitions

* src/lib/Makefile.am:
add evil_(fcntl/langinfo).(c/h) and install pwd.h

* src/lib/dlfcn/dlfcn.h:
remove useless ifdef

* src/lib/evil.c:
comment all code for now. It will be deleted later

* src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h:
* src/lib/evil_langinfo.c:
* src/lib/evil_langinfo.h:
move fcntl and langinfo related code to their own files

* src/lib/evil_mman.c:
remove useless inclusion

* src/lib/evil_pwd.c:
pw var is not needed with cegcc

* src/lib/evil_stdlib.c:
fix bugs, formatting

* src/lib/evil_unistd.c:
add missing declarations and fix header files

* src/lib/evil_unistd.h:
move pid_t typedef to Evil.h

* src/lib/evil_util.c:
additional include and fix a bug in output

* src/lib/pwd.h:
use EAPI from Evil.h, define struct passwd when not using cegcc

* src/lib/sys/mman.h:
use EAPI from Evil.h

* win32/common/fnmatch.c:
* win32/common/fnmatch.h:
* win32/common/fnmatch_list_of_states.c:
* win32/vs8/evil.sln:
fix and cleanup with vc++ compilation
Based on patch by Dmitriy Mazovka


SVN revision: 35993
2008-09-15 06:56:14 +00:00
Vincent Torri 161ab7a975 Fix compilation with vc++. Based on patch by Dmitriy Mazovka
* src/lib/Evil.h:
move typedef's

* src/lib/evil.c:
remove declaration and include

* src/lib/evil_stdlib.c:
simplify mkstmp implementation
fix getenv

* src/lib/evil_unistd.c:
include correct headers for readlink and symlink


SVN revision: 35983
2008-09-14 07:07:39 +00:00
Vincent Torri 146b4a86c6 * big rework of evil: put most of functions in evil.c in their own files
* add unit test for memcpy. more will come later


SVN revision: 35979
2008-09-13 21:19:22 +00:00
Vincent Torri c3e8168c53 add RTLD_NODELETE
SVN revision: 35750
2008-08-30 08:24:35 +00:00
doursse 0bc826dd70 Add Visual Studio solution and vc projects to compile Evil with Microsoft (r) tools
For those who want to try it, please read README.txt first

Work of Dmitriy Mazovka. Thank you !


SVN revision: 35205
2008-07-24 18:18:55 +00:00
doursse 52fbecb588 * src/lib/Evil.h:
declare pid_t, ssize_t and mode_t for vc++ before flock
structure (vc++)
* src/lib/dlfcn/dlfcn.h:
include limits.h for vc++
* src/lib/evil.c: (symlink), (readlink):
use UNICODE instead of checking the OS. Use PATH_MAX instead
of MB_CUR_MAX when needed


SVN revision: 35098
2008-07-13 17:34:53 +00:00
doursse 287f9c9edf * src/lib/Evil.h:
uid_t and gid_t exist on cegcc


SVN revision: 34998
2008-07-03 09:08:59 +00:00
doursse 6aba69be2f * configure.ac:
* src/lib/Evil.h:
* src/lib/Makefile.am:
* src/lib/evil.c:
* src/lib/pwd/Makefile.am:
* src/lib/pwd/pwd.h:
add langinfo and getpwuid support
* src/lib/mman/sys/mman.h:
* src/lib/dlfcn/dlfcn.h:
fix comment


SVN revision: 34942
2008-06-29 12:09:48 +00:00
doursse 8bd0e92e81 * src/lib/Evil.h:
add defines for vc++. Thanks to Dmitriy Mazovka


SVN revision: 34801
2008-06-11 21:34:09 +00:00
doursse ef5ef75eab * configure.ac:
* src/lib/dlfcn/dlfcn.h:
* src/lib/mman/sys/mman.h:
define EFL_EVIL_MMAN_BUILD and EFL_EVIL_DLFCN_BUILD so
that functions in Evil.h are not declared as import
* src/lib/evil.c: (setenv), (unsetenv), (realpath),
(evil_sockets_init), (evil_sockets_shutdown), (evil_pipe),
(evil_tmpdir_get), (evil_homedir_get):
rename pipe() to evil_pipe().
set tmpdir to "Temp" and homedir to "My Documents" on WinCE
* src/lib/Evil.h:
define pipe() as evil_pipe(). This allow to use our pipe()
implementation to be usedwith cegcc, as it is broken on that
platform.
move the defines at the end of the file


SVN revision: 34787
2008-06-10 07:16:53 +00:00
doursse 98a11ae8cf * src/lib/Evil.h:
add strdup define
* src/lib/evil.c: (evil_tmpdir_get), (evil_homedir_get):
include stdlib.h to define MB_CUR_MAX
On Windows CE, tmpdir and homedir are defined as "\windows"
* src/lib/mman/mman.c: (mmap), (munmap):
compile the big fat hack of mmap only on Windows CE


SVN revision: 34784
2008-06-09 18:35:49 +00:00
doursse 0fbdc23c40 * src/lib/Evil.h:
* src/lib/evil.c: (evil_last_error_get):
add evil_last_error_get() function to get
useful error string creation.
* src/lib/dlfcn/dlfcn.c: (get_last_error), (dlopen), (dlsym),
(dladdr):
use UNICODE check instead of compiler checks when needed.
use evil_last_error_get()
* src/lib/mman/mman.c: (mmap), (munmap):
file mapping does not work on Windows CE < 5.0.
if it is the case, just read the file and return
the data.
use evil_last_error_get()
* src/lib/mman/Makefile.am:
* src/lib/Makefile.am:
add libevil dependancy


SVN revision: 34775
2008-06-08 21:39:49 +00:00
doursse 2830a8186a * src/lib/Evil.h:
include windows.h instead of windef.h
undefine PATH_MATH before defining it
* src/lib/dlfcn/dlfcn.c:
remove useless header file


SVN revision: 34763
2008-06-07 06:38:54 +00:00
doursse 7dc315e9dc * src/lib/Evil.h:
add PATH_MAX macro
* src/lib/dlfcn/dlfcn.c: (get_last_error):
free correctly strings


SVN revision: 34760
2008-06-06 17:44:59 +00:00
doursse c1ea673e9a * src/lib/Evil.h:
* src/lib/evil.c: (setenv), (unsetenv):
setenv and unsetenv are already defined with cegcc


SVN revision: 34723
2008-06-02 04:53:41 +00:00
doursse 3b513e346e add cvsignore
SVN revision: 34722
2008-06-02 04:42:51 +00:00
doursse d8e6039ece Fix open, add getcwd, lstat, setenv, unsetenv and evil_homedir_get and fix typo in doc
SVN revision: 34718
2008-06-01 17:09:14 +00:00
doursse 4b4c616e37 * src/lib/dlfcn/dlfcn.c:
memory leak with cegcc
* src/lib/dlfcn/dlfcn.h:
include limits.h for MinGW users
* src/lib/mman/sys/mman.h:
add MAP_FAILED error value


SVN revision: 34717
2008-06-01 04:27:08 +00:00
doursse 9afa392297 * src/lib/dlfcn/dlfcn.h:
dli_fname ncorrectly declared. Thanks to Dmitriy Mazovka.


SVN revision: 34626
2008-05-20 06:26:59 +00:00
doursse d72b07f4aa add wrapper around GetCurrentProcessId()
SVN revision: 34536
2008-05-11 09:32:52 +00:00
doursse 638afceae2 * src/lib/dlfcn/dlfcn.c: (dladdr):
replace all the '\' by '/' in the filename found by dladdr


SVN revision: 34518
2008-05-09 23:16:42 +00:00
doursse 89fde28967 * src/lib/Evil.h:
* src/lib/evil.c: (evil_getcwd):
add getgwd-like function
* src/lib/dlfcn/dlfcn.c: (dladdr):
* src/lib/dlfcn/dlfcn.h:
add dladdr-like function. Formatting
Remove unused define
* src/lib/mman/sys/mman.h:
remove unused define


SVN revision: 34392
2008-04-28 14:34:55 +00:00
doursse 9d4f099a78 oups, ChangeLog not saved...
SVN revision: 34375
2008-04-26 16:29:21 +00:00
doursse 6b726880d0 reviewed by: <delete if not using a buddy>
* src/lib/Evil.h:
* src/lib/Makefile.am:
* src/lib/dlfcn/Makefile.am:
* src/lib/dlfcn/dlfcn.c: (get_last_error), (dlopen), (dlsym):
* src/lib/evil.c: (evil_char_to_wchar), (evil_wchar_to_char):
* src/lib/mman/Makefile.am:
* src/lib/mman/mman.c:


SVN revision: 34374
2008-04-26 16:27:46 +00:00
doursse 21f0fdb18f * configure.ac:
* src/bin/Makefile.am:
* src/lib/Makefile.am:
* src/lib/dlfcn/Makefile.am:
* src/lib/mman/Makefile.am:
use -Wl,--enable-auto-import with cegcc
fix warning with newest autoconf
* src/lib/dlfcn/dlfcn.c: (string_to_wchar):
include wchar.h and fix warnings
* src/lib/mman/mman.c:
use relative path to include sys/mman.h


SVN revision: 34348
2008-04-22 22:53:54 +00:00
doursse 03527fe2aa * src/lib/Evil.h:
remove the stat structure and add guards
* src/lib/dlfcn/dlfcn.c:
include limits.h also for the cegcc compiler


SVN revision: 34129
2008-03-28 17:05:16 +00:00
doursse 2d25da624d * src/lib/Evil.h:
add POSIX definitions
* src/lib/evil.c:
make realpath available with cegcc. The function
just copy the file name to the resolved name with
that compiler


SVN revision: 34097
2008-03-23 14:51:22 +00:00
doursse 4da0f5fa80 define PATH_MAX for cegcc compiler
SVN revision: 34079
2008-03-22 08:35:43 +00:00
doursse 743cff2ced Fix dlopen for cegcc and minor fix and doc:
* INSTALL:
* README:
additional notes for compilations with cegcc or mingw32ce

* configure.ac:
use 'win32' instead of 'cegcc' or 'mingw'

* src/lib/dlfcn/dlfcn.c (dlopen):
cegcc does not support LOAD_WITH_ALTERED_SEARCH_PATH.
Use LoadLibrary instead of LoadLibraryEx in that case.


SVN revision: 34014
2008-03-13 17:46:53 +00:00
doursse 43ed37904a * src/lib/Evil.h:
* src/lib/evil.c:
cegcc or mingwce32 does not like relative path,
so _fullpath or other similar function do not exist
on Winodws mobile.
* src/lib/mman/mman.c:
missing #


SVN revision: 33935
2008-03-05 11:22:46 +00:00
doursse ff821bdc93 fix compilation with cegcc and minor fixing
* COPYING:
copyright update

* configure.ac:
* src/lib/Evil.h:
* src/lib/dlfcn/dlfcn.h:
* src/lib/mman/sys/mman.h:
define EFL_EVIL_BUILD in config.h for managing correctly EAPI

* src/bin/test_pipe.c:
stdio.h is needed after winsock2.h for mingw32ce

* src/lib/dlfcn/dlfcn.c (get_last_error), (dlopen), (dlsym):
* src/lib/evil.c:
fix some heafer files inclusion on cegc platform.
first step of mingw32ce support

* src/lib/mman/mman.c:
define _get_osfhandle for mingw32ce


SVN revision: 33934
2008-03-05 09:19:38 +00:00
doursse 886c1074ff * COPYING:
* COPYING-PLAIN:
* Makefile.am:
update the COPYING file


SVN revision: 33902
2008-03-03 09:27:55 +00:00
doursse f639b86ca5 minor typo
SVN revision: 33897
2008-03-02 07:03:37 +00:00
doursse 73cf6fe558 update doc, add init/shutdown functions for the socket system, add Tor Lillqvist as author and other miscellaneous fixes
SVN revision: 33870
2008-02-29 22:42:14 +00:00
doursse a5d43225dc Here is the Evil library, which provides, for the Windows platform (XP or Mobile), a set of Unix functions used in the EFL and which do not exist on that evil platform
SVN revision: 33862
2008-02-27 21:01:30 +00:00