Commit Graph

41 Commits

Author SHA1 Message Date
Vincent Torri 0ca69d1f2d Evil: rename variables
SVN revision: 76462
2012-09-11 15:54:23 +00:00
Vincent Torri cba9a2a11c Evil: less automake stuff, and remove warnings.
currently, distcheck fails because I remove the .la files when installing (so
actually, it's uninstall which fails). I'll fix that later.

SVN revision: 75425
2012-08-19 08:59:51 +00:00
Vincent Torri 2ead8b85c2 * configure.ac:
* src/bin/Makefile.am:
	* src/lib/Makefile.am:
	Fix compilation with mingw-w64 gcc 4.8



SVN revision: 74223
2012-07-20 09:00:48 +00:00
Vincent Torri 7797585a07 * src/bin/evil_test_gettimeofday.c:
Include sys/time.h
	* src/lib/evil_inet.c:
	EMSGSIZE and EAFNOSUPPORT could not be defined on
	some MinGW compilers.



SVN revision: 68175
2012-02-20 23:44:56 +00:00
Vincent Torri b9728980ab * AUTHORS:
* src/lib/Evil.h:
	* src/lib/Makefile.am:
	* src/lib/evil_inet.c:
	* src/lib/evil_mman.c:
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	* src/lib/evil_stdlib.c:
	* src/lib/evil_util.c:
	* src/lib/sys/mman.h:
	* src/lib/evil_printa.c (added):
	* src/lib/evil_pformatw.c (added):
	* src/lib/evil_pformat.h (added):
	* src/lib/evil_printw.c (added):
	* src/lib/evil_print.h (added):
	* src/lib/evil_macro.h (added):
	* src/lib/evil_pformata.c (added):
	Add POSIX printf family. Code taken from the MinGW-w64
	project and modified to be integrated into Evil.
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	* src/bin/evil_test_util.h (added):
	* src/bin/evil_test_print.c (added):
	* src/bin/evil_test_print.h (added):
	* src/bin/evil_test_util.c (added):
	Add util and printf unit tests
	* src/lib/evil_errno.c:
	* src/lib/errno.h (deleted):
	* src/lib/mingw32ce (added):
	* src/lib/mingw32ce/errno.h (added):
	Move errno.h for Windows CE in its own directory to
	suppress conflicts with standard errno.h when compiling
	for Windows XP.
	* src/lib/dlfcn/dlfcn.c:
	* src/lib/evil_link_ce.c:
	* src/lib/evil_main.c:
	* src/lib/evil_unistd.c:
	Define WIN32_LEAN_AND_MEAN only if it's not defined.
	* src/lib/evil_fcntl.c:
	Remove debug.
	* src/bin/evil_test_dlfcn.c:
	* src/bin/evil_test_environment.c:
	* src/bin/evil_test_gettimeofday.c:
	* src/bin/evil_test_link.c:
	* src/bin/evil_test_mkstemp.c:
	* src/bin/evil_test_pipe.c:
	* src/bin/evil_test_realpath.c:
	Remove warnings.
	* src/lib/evil_link_xp.cpp:
	Formatting.



SVN revision: 68084
2012-02-17 20:48:11 +00:00
Vincent Torri 1c6ea6ff65 * Makefile.am:
Fix EXTRA_DIST variable
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	* src/lib/evil_libgen.c:
	* src/lib/evil_util.c:
	* src/lib/evil_util.h:
	Add evil_path_is_absolute() API and use it.
	* src/bin/evil_test_dlfcn.c:
	* src/bin/evil_test_realpath.c:
	clean up.



SVN revision: 67389
2012-01-20 12:44:05 +00:00
Vincent Torri abcd670439 Evil: prepare the 1.0 release. Put (all, evil as well as 'standard' ones) the headers in $includedir/evil-vmaj
SVN revision: 61640
2011-07-24 08:51:33 +00:00
Boris Faure e6119fa4d9 remove .cvsignore files
SVN revision: 60246
2011-06-12 21:38:37 +00:00
Vincent Torri d989abb2aa * configure.ac:
move version management at the beginning
	* src/bin/evil_suite.c:
	* src/bin/evil_test_dlfcn.c:
	* src/bin/evil_test_environment.c:
	* src/bin/evil_test_gettimeofday.c:
	* src/bin/evil_test_link.c:
	* src/bin/evil_test_mkstemp.c:
	* src/bin/evil_test_pipe.c:
	* src/bin/evil_test_realpath.c:
	* src/lib/Evil.h:
	* src/lib/Makefile.am:
	* src/lib/evil_errno.c:
	* src/lib/evil_main.c:
	* src/lib/evil_main.h:
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	* src/lib/evil_util.c:
	fix warnings



SVN revision: 47669
2010-04-01 20:13:40 +00:00
Vincent Torri 367a8d9154 * remove useless pipe() test
* add missing files


SVN revision: 45737
2010-01-30 19:58:10 +00:00
Vincent Torri 65d13f2085 * src/lib/evil_fcntl.c:
verify that the data passed to fcntl() is really a socket
	and fix ioctlsocket() returned value check.
	* src/bin/Makefile.am:
	* src/bin/evil_suite.c:
	add unit test for pipe().



SVN revision: 45736
2010-01-30 19:55:45 +00:00
Vincent Torri b52d4b247f * evil_string.c : add strrstr() win32 port
* include config.h where it is not included
 * various minor formatting

SVN revision: 44228
2009-12-06 19:22:20 +00:00
Vincent Torri aace76a3b8 spelling
SVN revision: 40159
2009-04-18 09:19:03 +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 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
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 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 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 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 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 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 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 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 ffa00324c4 adding missing files
SVN revision: 36652
2008-10-14 07:58:57 +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 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 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
doursse 3b513e346e add cvsignore
SVN revision: 34722
2008-06-02 04:42:51 +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 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 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