src/java.base/unix/native/libjli/java_md_solinux.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47216 71c04702a3d5
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
   161 
   161 
   162 /*
   162 /*
   163  * execname accessor from other parts of platform dependent logic
   163  * execname accessor from other parts of platform dependent logic
   164  */
   164  */
   165 const char *
   165 const char *
   166 GetExecName() {
   166 GetExecName(void) {
   167     return execname;
   167     return execname;
   168 }
   168 }
   169 
   169 
   170 #ifdef SETENV_REQUIRED
   170 #ifdef SETENV_REQUIRED
   171 static jboolean
   171 static jboolean
   718     } else {
   718     } else {
   719         return NULL;
   719         return NULL;
   720     }
   720     }
   721 }
   721 }
   722 
   722 
   723 void SplashFreeLibrary() {
   723 void SplashFreeLibrary(void) {
   724     if (hSplashLib) {
   724     if (hSplashLib) {
   725         dlclose(hSplashLib);
   725         dlclose(hSplashLib);
   726         hSplashLib = NULL;
   726         hSplashLib = NULL;
   727     }
   727     }
   728 }
   728 }
   775 }
   775 }
   776 
   776 
   777 /* Coarse estimation of number of digits assuming the worst case is a 64-bit pid. */
   777 /* Coarse estimation of number of digits assuming the worst case is a 64-bit pid. */
   778 #define MAX_PID_STR_SZ   20
   778 #define MAX_PID_STR_SZ   20
   779 
   779 
   780 void SetJavaLauncherPlatformProps() {
   780 void SetJavaLauncherPlatformProps(void) {
   781    /* Linux only */
   781    /* Linux only */
   782 #ifdef __linux__
   782 #ifdef __linux__
   783     const char *substr = "-Dsun.java.launcher.pid=";
   783     const char *substr = "-Dsun.java.launcher.pid=";
   784     char *pid_prop_str = (char *)JLI_MemAlloc(JLI_StrLen(substr) + MAX_PID_STR_SZ + 1);
   784     char *pid_prop_str = (char *)JLI_MemAlloc(JLI_StrLen(substr) + MAX_PID_STR_SZ + 1);
   785     sprintf(pid_prop_str, "%s%d", substr, getpid());
   785     sprintf(pid_prop_str, "%s%d", substr, getpid());
   801 {
   801 {
   802     // stubbed out for windows and *nixes.
   802     // stubbed out for windows and *nixes.
   803 }
   803 }
   804 
   804 
   805 void
   805 void
   806 RegisterThread()
   806 RegisterThread(void)
   807 {
   807 {
   808     // stubbed out for windows and *nixes.
   808     // stubbed out for windows and *nixes.
   809 }
   809 }
   810 
   810 
   811 /*
   811 /*