< prev index next >

src/java.base/unix/native/libnio/ch/NativeThread.c

Print this page




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #include <sys/types.h>
  27 #include <string.h>
  28 #include "jni.h"
  29 #include "jni_util.h"
  30 #include "jvm.h"
  31 #include "jlong.h"
  32 #include "sun_nio_ch_NativeThread.h"
  33 #include "nio_util.h"
  34 #include <signal.h>
  35 
  36 #ifdef __linux__
  37   #include <pthread.h>
  38   /* Also defined in net/linux_close.c */
  39   #define INTERRUPT_SIGNAL (__SIGRTMAX - 2)
  40 #elif defined(_AIX)
  41   #include <pthread.h>
  42   /* Also defined in net/aix_close.c */
  43   #define INTERRUPT_SIGNAL (SIGRTMAX - 1)
  44 #elif defined(__solaris__)
  45   #include <thread.h>
  46   #define INTERRUPT_SIGNAL (SIGRTMAX - 2)
  47 #elif defined(_ALLBSD_SOURCE)
  48   #include <pthread.h>
  49   /* Also defined in net/bsd_close.c */
  50   #define INTERRUPT_SIGNAL SIGIO
  51 #else
  52   #error "missing platform-specific definition here"
  53 #endif
  54 
  55 static void
  56 nullHandler(int sig)
  57 {
  58 }
  59 




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #include <sys/types.h>
  27 #include <string.h>
  28 #include "jni.h"
  29 #include "jni_util.h"
  30 #include "jvm.h"
  31 #include "jlong.h"
  32 #include "sun_nio_ch_NativeThread.h"
  33 #include "nio_util.h"
  34 #include <signal.h>
  35 
  36 #ifdef __linux__
  37   #include <pthread.h>
  38   /* Also defined in net/linux_close.c */
  39   #define INTERRUPT_SIGNAL (SIGRTMAX - 2)
  40 #elif defined(_AIX)
  41   #include <pthread.h>
  42   /* Also defined in net/aix_close.c */
  43   #define INTERRUPT_SIGNAL (SIGRTMAX - 1)
  44 #elif defined(__solaris__)
  45   #include <thread.h>
  46   #define INTERRUPT_SIGNAL (SIGRTMAX - 2)
  47 #elif defined(_ALLBSD_SOURCE)
  48   #include <pthread.h>
  49   /* Also defined in net/bsd_close.c */
  50   #define INTERRUPT_SIGNAL SIGIO
  51 #else
  52   #error "missing platform-specific definition here"
  53 #endif
  54 
  55 static void
  56 nullHandler(int sig)
  57 {
  58 }
  59 


< prev index next >