From bb5f1a561a23fe3122d61d0c60e2d1a8f94e1235 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sat, 25 Oct 2008 17:39:59 +0000 Subject: [PATCH] * 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 --- legacy/evil/ChangeLog | 7 +++++++ legacy/evil/src/lib/evil_unistd.c | 15 +++++++++++++++ legacy/evil/src/lib/evil_unistd.h | 25 +++++++++++++++++++++++++ 3 files changed, 47 insertions(+) diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog index db3050d0b7..f1a87bafaa 100644 --- a/legacy/evil/ChangeLog +++ b/legacy/evil/ChangeLog @@ -1,3 +1,10 @@ +2008-10-25 Vincent Torri + + * 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. + 2008-10-24 Vincent Torri * src/lib/Makefile.am: diff --git a/legacy/evil/src/lib/evil_unistd.c b/legacy/evil/src/lib/evil_unistd.c index ecf61d15d9..1d42713a2f 100644 --- a/legacy/evil/src/lib/evil_unistd.c +++ b/legacy/evil/src/lib/evil_unistd.c @@ -427,3 +427,18 @@ evil_pipe(int *fds) return -1; } + + +/* + * Exec related functions + * + */ + +#if defined (_WIN32_WCE) && ! defined (__CEGCC__) + +int execvp( const char *file, char *const argv[]) +{ + return 1; +} + +#endif /* _WIN32_WCE && ! __CEGCC__ */ diff --git a/legacy/evil/src/lib/evil_unistd.h b/legacy/evil/src/lib/evil_unistd.h index b1907eeaf1..fd86d06da9 100644 --- a/legacy/evil/src/lib/evil_unistd.h +++ b/legacy/evil/src/lib/evil_unistd.h @@ -177,4 +177,29 @@ EAPI void evil_sockets_shutdown(void); EAPI int evil_pipe(int *fds); +/* + * Exec related functions + * + */ + + +#if defined (_WIN32_WCE) && ! defined (__CEGCC__) + +/** + * @brief Replace the current process image with a new process image. + * + * @param file The file name of the file being executed. + * @param argv A @c NULL terminated array of strings. + * @return Always 1. + * + * This function does nothing and returns always 1. It is defined for + * ecore_app only for native Windows CE code. + * + * @ingroup Evil + */ +int execvp( const char *file, char *const argv[]); + +#endif /* _WIN32_WCE && ! __CEGCC__ */ + + #endif /* __EVIL_UNISTD_H__ */