6866719: Rename execvpe to avoid symbol clash with glibc 2.10
authormartin
Wed, 29 Jul 2009 21:45:52 -0700
changeset 3421 e3af585364e7
parent 3420 bba8035eebfa
child 3422 72bf5182bb8b
child 3423 3dd3615c1748
6866719: Rename execvpe to avoid symbol clash with glibc 2.10 Reviewed-by: darcy
jdk/src/solaris/native/java/lang/UNIXProcess_md.c
--- a/jdk/src/solaris/native/java/lang/UNIXProcess_md.c	Wed Jul 29 14:24:19 2009 -0700
+++ b/jdk/src/solaris/native/java/lang/UNIXProcess_md.c	Wed Jul 29 21:45:52 2009 -0700
@@ -447,14 +447,16 @@
 }
 
 /**
- * execvpe should have been included in the Unix standards.
- * execvpe is identical to execvp, except that the child environment is
+ * 'execvpe' should have been included in the Unix standards,
+ * and is a GNU extension in glibc 2.10.
+ *
+ * JDK_execvpe is identical to execvp, except that the child environment is
  * specified via the 3rd argument instead of being inherited from environ.
  */
 static void
-execvpe(const char *file,
-        const char *argv[],
-        const char *const envp[])
+JDK_execvpe(const char *file,
+            const char *argv[],
+            const char *const envp[])
 {
     /* This is one of the rare times it's more portable to declare an
      * external symbol explicitly, rather than via a system header.
@@ -644,7 +646,7 @@
     if (fcntl(FAIL_FILENO, F_SETFD, FD_CLOEXEC) == -1)
         goto WhyCantJohnnyExec;
 
-    execvpe(p->argv[0], p->argv, p->envv);
+    JDK_execvpe(p->argv[0], p->argv, p->envv);
 
  WhyCantJohnnyExec:
     /* We used to go to an awful lot of trouble to predict whether the