3636
3737const char * const * parentPathv ;
3838
39- int
39+ static int
4040restartableDup2 (int fd_from , int fd_to )
4141{
4242 int err ;
@@ -50,7 +50,7 @@ closeSafely(int fd)
5050 return (fd == -1 ) ? 0 : close (fd );
5151}
5252
53- int
53+ static int
5454isAsciiDigit (char c )
5555{
5656 return c >= '0' && c <= '9' ;
@@ -65,7 +65,7 @@ isAsciiDigit(char c)
6565 #define FD_DIR "/proc/self/fd"
6666#endif
6767
68- int
68+ static int
6969closeDescriptors (void )
7070{
7171 DIR * dp ;
@@ -103,7 +103,7 @@ closeDescriptors(void)
103103 return 1 ;
104104}
105105
106- int
106+ static int
107107moveDescriptor (int fd_from , int fd_to )
108108{
109109 if (fd_from != fd_to ) {
@@ -209,7 +209,7 @@ initVectorFromBlock(const char**vector, const char* block, int count)
209209 * misfeature, but compatibility wins over sanity. The original support for
210210 * this was imported accidentally from execvp().
211211 */
212- void
212+ static void
213213execve_as_traditional_shell_script (const char * file ,
214214 const char * argv [],
215215 const char * const envp [])
@@ -232,7 +232,7 @@ execve_as_traditional_shell_script(const char *file,
232232 * Like execve(2), except that in case of ENOEXEC, FILE is assumed to
233233 * be a shell script and the system default shell is invoked to run it.
234234 */
235- void
235+ static void
236236execve_with_shell_fallback (int mode , const char * file ,
237237 const char * argv [],
238238 const char * const envp [])
@@ -256,7 +256,7 @@ execve_with_shell_fallback(int mode, const char *file,
256256 * JDK_execvpe is identical to execvp, except that the child environment is
257257 * specified via the 3rd argument instead of being inherited from environ.
258258 */
259- void
259+ static void
260260JDK_execvpe (int mode , const char * file ,
261261 const char * argv [],
262262 const char * const envp [])
0 commit comments