< prev index next >

src/java.base/unix/native/include/jvm_md.h

Print this page

        

*** 37,46 **** --- 37,50 ---- #include <stddef.h> /* For ptrdiff_t */ #include <stdint.h> /* For uintptr_t */ #define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"} #define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"} + #define JVM_ONLOAD_SYMBOLS {"JVM_OnLoad"} + #define AGENT_ONLOAD_SYMBOLS {"Agent_OnLoad"} + #define AGENT_ONUNLOAD_SYMBOLS {"Agent_OnUnload"} + #define AGENT_ONATTACH_SYMBOLS {"Agent_OnAttach"} #define JNI_LIB_PREFIX "lib" #ifdef __APPLE__ #define JNI_LIB_SUFFIX ".dylib" #define VERSIONED_JNI_LIB_NAME(NAME, VERSION) JNI_LIB_PREFIX NAME "." VERSION JNI_LIB_SUFFIX
*** 48,58 **** #define JNI_LIB_SUFFIX ".so" #define VERSIONED_JNI_LIB_NAME(NAME, VERSION) JNI_LIB_PREFIX NAME JNI_LIB_SUFFIX "." VERSION #endif #define JNI_LIB_NAME(NAME) JNI_LIB_PREFIX NAME JNI_LIB_SUFFIX ! #define JVM_MAXPATHLEN MAXPATHLEN #define JVM_R_OK R_OK #define JVM_W_OK W_OK #define JVM_X_OK X_OK #define JVM_F_OK F_OK --- 52,66 ---- #define JNI_LIB_SUFFIX ".so" #define VERSIONED_JNI_LIB_NAME(NAME, VERSION) JNI_LIB_PREFIX NAME JNI_LIB_SUFFIX "." VERSION #endif #define JNI_LIB_NAME(NAME) JNI_LIB_PREFIX NAME JNI_LIB_SUFFIX ! // Hack: MAXPATHLEN is 4095 on some Linux and 4096 on others. This may ! // cause problems if JVM and the rest of JDK are built on different ! // Linux releases. Here we define JVM_MAXPATHLEN to be MAXPATHLEN + 1, ! // so buffers declared in VM are always >= 4096. ! #define JVM_MAXPATHLEN MAXPATHLEN + 1 #define JVM_R_OK R_OK #define JVM_W_OK W_OK #define JVM_X_OK X_OK #define JVM_F_OK F_OK
*** 65,85 **** #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <signal.h> - /* O Flags */ - - #define JVM_O_RDONLY O_RDONLY - #define JVM_O_WRONLY O_WRONLY - #define JVM_O_RDWR O_RDWR - #define JVM_O_O_APPEND O_APPEND - #define JVM_O_EXCL O_EXCL - #define JVM_O_CREAT O_CREAT - /* Signals */ #define JVM_SIGINT SIGINT #define JVM_SIGTERM SIGTERM #endif /* !_JAVASOFT_JVM_MD_H_ */ --- 73,94 ---- #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <signal.h> /* Signals */ + #include <sys/socket.h> // for socklen_t + #define JVM_SIGINT SIGINT #define JVM_SIGTERM SIGTERM + #define BREAK_SIGNAL SIGQUIT /* Thread dumping support. */ + #define ASYNC_SIGNAL SIGJVM2 /* Event-based suspend/resume support */ + #define SHUTDOWN1_SIGNAL SIGHUP /* Shutdown Hooks support. */ + #define SHUTDOWN2_SIGNAL SIGINT + #define SHUTDOWN3_SIGNAL SIGTERM + + /* With 1.4.1 libjsig added versioning: used in os_solaris.cpp and jsig.c */ + #define JSIG_VERSION_1_4_1 0x30140100 #endif /* !_JAVASOFT_JVM_MD_H_ */
< prev index next >