aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/posix/execvp.c
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-10-22 16:40:26 +0000
committerChristopher Faylor <me@cgf.cx>2001-10-22 16:40:26 +0000
commit333d60984389f9e0173c60d6016ac36099686b59 (patch)
tree32c6ac1ae72472df13bd47122bd87b596575646f /newlib/libc/posix/execvp.c
parentc270dc2555b88173abfd962036e99f986101158a (diff)
downloadnewlib-333d60984389f9e0173c60d6016ac36099686b59.zip
newlib-333d60984389f9e0173c60d6016ac36099686b59.tar.gz
newlib-333d60984389f9e0173c60d6016ac36099686b59.tar.bz2
* libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations throughout.
* signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__. * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__. * system.c (_system_r): Ditto.
Diffstat (limited to 'newlib/libc/posix/execvp.c')
-rw-r--r--newlib/libc/posix/execvp.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/newlib/libc/posix/execvp.c b/newlib/libc/posix/execvp.c
index 1f58b8d..7074316 100644
--- a/newlib/libc/posix/execvp.c
+++ b/newlib/libc/posix/execvp.c
@@ -11,12 +11,7 @@
#include <errno.h>
#include <ctype.h>
-#ifdef __CYGWIN32__
-static char path_delim;
-#define PATH_DELIM path_delim
-#else
#define PATH_DELIM ':'
-#endif
/*
* Copy string, until c or <nul> is encountered.
@@ -52,25 +47,9 @@ _DEFUN (execvp, (file, argv),
/* If FILE contains a directory, don't search $PATH. */
if (strchr (file, '/')
-#ifdef __CYGWIN32__
- || strchr (file, '\\')
-#endif
)
return execv (file, argv);
-#ifdef __CYGWIN32__
- /* If a drive letter is passed, the path is still an absolute one.
- Technically this isn't true, but Cygwin is currently defined so
- that it is. */
- if ((isalpha (file[0]) && file[1] == ':')
- || file[0] == '\\')
- return execv (file, argv);
-#endif
-
-#ifdef __CYGWIN32__
- path_delim = cygwin_posix_path_list_p (path) ? ':' : ';';
-#endif
-
while (*path)
{
strccpy (buf, path, PATH_DELIM);