Commit Graph

122 Commits

Author SHA1 Message Date
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 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 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