summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>1998-06-11 23:13:31 +0200
committerGurusamy Sarathy <gsar@cpan.org>1998-06-12 07:23:06 +0000
commiteb62e965dc0ac136da78171c1d08d2ae8b5b63dc (patch)
treec3290675407f3236276b5aee02c12756c30b76d3 /win32
parent7614df0c0f0d0458f8f9c442cd557e6387b4e40d (diff)
downloadperl-eb62e965dc0ac136da78171c1d08d2ae8b5b63dc.tar.gz
Re: execv in toke.c [PATCH]: win32 wrapper for _66
Message-ID: <35842ac5.7883075@smtp1.ibm.net> p4raw-id: //depot/perl@1126
Diffstat (limited to 'win32')
-rw-r--r--win32/makedef.pl1
-rw-r--r--win32/win32.c6
-rw-r--r--win32/win32iop.h2
3 files changed, 9 insertions, 0 deletions
diff --git a/win32/makedef.pl b/win32/makedef.pl
index 237c950585..4e317b5d15 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 a20fc61263..3a0583c0fe 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 37794f1e1b..339b7c5fb1 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