< prev index next >

src/java.base/unix/native/libjava/childproc.h

Print this page
rev 57914 : 8238380: java.base/unix/native/libjava/childproc.c "multiple definition" link errors with GCC10
Summary: Fixed libjava/childproc.o link errors caused by GCC10 default -fno-common
Reviewed-by: alanb


 109     int nargv; /* number of argv array elements  */
 110     int argvBytes; /* total number of bytes in argv array */
 111     int nenvv; /* number of envv array elements  */
 112     int envvBytes; /* total number of bytes in envv array */
 113     int dirlen; /* length of home directory string */
 114     int nparentPathv; /* number of elements in parentPathv array */
 115     int parentPathvBytes; /* total number of bytes in parentPathv array */
 116 } SpawnInfo;
 117 
 118 /* If ChildStuff.sendAlivePing is true, child shall signal aliveness to
 119  * the parent the moment it gains consciousness, before any subsequent
 120  * pre-exec errors could happen.
 121  * This code must fit into an int and not be a valid errno value on any of
 122  * our platforms. */
 123 #define CHILD_IS_ALIVE      65535
 124 
 125 /**
 126  * The cached and split version of the JDK's effective PATH.
 127  * (We don't support putenv("PATH=...") in native code)
 128  */
 129 const char * const *parentPathv;
 130 
 131 ssize_t restartableWrite(int fd, const void *buf, size_t count);
 132 int restartableDup2(int fd_from, int fd_to);
 133 int closeSafely(int fd);
 134 int isAsciiDigit(char c);
 135 int closeDescriptors(void);
 136 int moveDescriptor(int fd_from, int fd_to);
 137 
 138 int magicNumber();
 139 ssize_t readFully(int fd, void *buf, size_t nbyte);
 140 void initVectorFromBlock(const char**vector, const char* block, int count);
 141 void execve_as_traditional_shell_script(const char *file,
 142                                         const char *argv[],
 143                                         const char *const envp[]);
 144 void execve_with_shell_fallback(int mode, const char *file,
 145                                 const char *argv[],
 146                                 const char *const envp[]);
 147 void JDK_execvpe(int mode, const char *file,
 148                  const char *argv[],
 149                  const char *const envp[]);


 109     int nargv; /* number of argv array elements  */
 110     int argvBytes; /* total number of bytes in argv array */
 111     int nenvv; /* number of envv array elements  */
 112     int envvBytes; /* total number of bytes in envv array */
 113     int dirlen; /* length of home directory string */
 114     int nparentPathv; /* number of elements in parentPathv array */
 115     int parentPathvBytes; /* total number of bytes in parentPathv array */
 116 } SpawnInfo;
 117 
 118 /* If ChildStuff.sendAlivePing is true, child shall signal aliveness to
 119  * the parent the moment it gains consciousness, before any subsequent
 120  * pre-exec errors could happen.
 121  * This code must fit into an int and not be a valid errno value on any of
 122  * our platforms. */
 123 #define CHILD_IS_ALIVE      65535
 124 
 125 /**
 126  * The cached and split version of the JDK's effective PATH.
 127  * (We don't support putenv("PATH=...") in native code)
 128  */
 129 extern const char * const *parentPathv;
 130 
 131 ssize_t restartableWrite(int fd, const void *buf, size_t count);
 132 int restartableDup2(int fd_from, int fd_to);
 133 int closeSafely(int fd);
 134 int isAsciiDigit(char c);
 135 int closeDescriptors(void);
 136 int moveDescriptor(int fd_from, int fd_to);
 137 
 138 int magicNumber();
 139 ssize_t readFully(int fd, void *buf, size_t nbyte);
 140 void initVectorFromBlock(const char**vector, const char* block, int count);
 141 void execve_as_traditional_shell_script(const char *file,
 142                                         const char *argv[],
 143                                         const char *const envp[]);
 144 void execve_with_shell_fallback(int mode, const char *file,
 145                                 const char *argv[],
 146                                 const char *const envp[]);
 147 void JDK_execvpe(int mode, const char *file,
 148                  const char *argv[],
 149                  const char *const envp[]);
< prev index next >