From: Jan Dubois Date: Thu, 11 Jun 1998 21:13:31 +0000 (+0200) Subject: Re: execv in toke.c [PATCH]: win32 wrapper for _66 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eb62e965dc0ac136da78171c1d08d2ae8b5b63dc;p=p5sagit%2Fp5-mst-13.2.git Re: execv in toke.c [PATCH]: win32 wrapper for _66 Message-ID: <35842ac5.7883075@smtp1.ibm.net> p4raw-id: //depot/perl@1126 --- diff --git a/win32/makedef.pl b/win32/makedef.pl index 237c950..4e317b5 100644 --- a/win32/makedef.pl +++ b/win32/makedef.pl @@ -509,6 +509,7 @@ win32_mkdir win32_rmdir win32_chdir win32_flock +win32_execv win32_execvp win32_htons win32_ntohs diff --git a/win32/win32.c b/win32/win32.c index a20fc61..3a0583c 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1821,6 +1821,12 @@ win32_spawnvp(int mode, const char *cmdname, const char *const *argv) } DllExport int +win32_execv(const char *cmdname, const char *const *argv) +{ + return execv(cmdname, (char *const *)argv); +} + +DllExport int win32_execvp(const char *cmdname, const char *const *argv) { return execvp(cmdname, (char *const *)argv); diff --git a/win32/win32iop.h b/win32/win32iop.h index 37794f1..339b7c5 100644 --- a/win32/win32iop.h +++ b/win32/win32iop.h @@ -90,6 +90,7 @@ DllExport int win32_mkdir(const char *dir, int mode); DllExport int win32_rmdir(const char *dir); DllExport int win32_chdir(const char *dir); DllExport int win32_flock(int fd, int oper); +DllExport int win32_execv(const char *cmdname, const char *const *argv); DllExport int win32_execvp(const char *cmdname, const char *const *argv); DllExport void win32_perror(const char *str); DllExport void win32_setbuf(FILE *pf, char *buf); @@ -217,6 +218,7 @@ END_EXTERN_C #define rmdir win32_rmdir #define chdir win32_chdir #define flock(fd,o) win32_flock(fd,o) +#define execv win32_execv #define execvp win32_execvp #define perror win32_perror #define setbuf win32_setbuf