src/os/solaris/vm/jvm_solaris.h

changeset 435
a61af66fc99e
child 1907
c18cbe5936b8
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/os/solaris/vm/jvm_solaris.h	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,100 @@
     1.4 +/*
     1.5 + * Copyright 1998-2005 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.
    1.11 + *
    1.12 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.14 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.15 + * version 2 for more details (a copy is included in the LICENSE file that
    1.16 + * accompanied this code).
    1.17 + *
    1.18 + * You should have received a copy of the GNU General Public License version
    1.19 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.20 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.21 + *
    1.22 + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.23 + * CA 95054 USA or visit www.sun.com if you need additional information or
    1.24 + * have any questions.
    1.25 + *
    1.26 + */
    1.27 +
    1.28 +/*
    1.29 +// HotSpot integration note:
    1.30 +//
    1.31 +// This is derived from the JDK classic file:
    1.32 +// "$JDK/src/solaris/javavm/export/jvm_md.h":15 (ver. 1.10 98/04/22)
    1.33 +// All local includes have been commented out.
    1.34 +*/
    1.35 +
    1.36 +
    1.37 +#ifndef JVM_MD_H
    1.38 +#define JVM_MD_H
    1.39 +
    1.40 +/*
    1.41 + * This file is currently collecting system-specific dregs for the
    1.42 + * JNI conversion, which should be sorted out later.
    1.43 + */
    1.44 +
    1.45 +#include <dirent.h>             /* For DIR */
    1.46 +#include <sys/param.h>          /* For MAXPATHLEN */
    1.47 +#include <unistd.h>             /* For F_OK, R_OK, W_OK */
    1.48 +#include <sys/int_types.h>      /* for intptr_t types (64 Bit cleanliness) */
    1.49 +
    1.50 +#define JNI_ONLOAD_SYMBOLS      {"JNI_OnLoad"}
    1.51 +#define JNI_ONUNLOAD_SYMBOLS    {"JNI_OnUnload"}
    1.52 +#define JVM_ONLOAD_SYMBOLS      {"JVM_OnLoad"}
    1.53 +#define AGENT_ONLOAD_SYMBOLS    {"Agent_OnLoad"}
    1.54 +#define AGENT_ONUNLOAD_SYMBOLS  {"Agent_OnUnload"}
    1.55 +#define AGENT_ONATTACH_SYMBOLS  {"Agent_OnAttach"}
    1.56 +
    1.57 +#define JNI_LIB_PREFIX "lib"
    1.58 +#define JNI_LIB_SUFFIX ".so"
    1.59 +
    1.60 +#define JVM_MAXPATHLEN MAXPATHLEN
    1.61 +
    1.62 +#define JVM_R_OK    R_OK
    1.63 +#define JVM_W_OK    W_OK
    1.64 +#define JVM_X_OK    X_OK
    1.65 +#define JVM_F_OK    F_OK
    1.66 +
    1.67 +/*
    1.68 + * File I/O
    1.69 + */
    1.70 +
    1.71 +#include <sys/types.h>
    1.72 +#include <sys/stat.h>
    1.73 +#include <fcntl.h>
    1.74 +#include <errno.h>
    1.75 +
    1.76 +/* O Flags */
    1.77 +
    1.78 +#define JVM_O_RDONLY     O_RDONLY
    1.79 +#define JVM_O_WRONLY     O_WRONLY
    1.80 +#define JVM_O_RDWR       O_RDWR
    1.81 +#define JVM_O_O_APPEND   O_APPEND
    1.82 +#define JVM_O_EXCL       O_EXCL
    1.83 +#define JVM_O_CREAT      O_CREAT
    1.84 +
    1.85 +
    1.86 +/* Signal definitions */
    1.87 +
    1.88 +#define BREAK_SIGNAL     SIGQUIT           /* Thread dumping support.    */
    1.89 +#define INTERRUPT_SIGNAL SIGUSR1           /* Interruptible I/O support. */
    1.90 +#define ASYNC_SIGNAL     SIGUSR2           /* Watcher & async err support. */
    1.91 +#define SHUTDOWN1_SIGNAL SIGHUP            /* Shutdown Hooks support.    */
    1.92 +#define SHUTDOWN2_SIGNAL SIGINT
    1.93 +#define SHUTDOWN3_SIGNAL SIGTERM
    1.94 +/* alternative signals used with -XX:+UseAltSigs (or for backward
    1.95 +   compatibility with 1.2, -Xusealtsigs) flag. Chosen to be
    1.96 +   unlikely to conflict with applications embedding the vm */
    1.97 +#define ALT_INTERRUPT_SIGNAL (SIGRTMIN + SIGRTMAX)/2 /* alternate intio signal */
    1.98 +#define ALT_ASYNC_SIGNAL     ALT_INTERRUPT_SIGNAL+1  /* alternate async signal */
    1.99 +
   1.100 +/* With 1.4.1 libjsig added versioning: used in os_solaris.cpp and jsig.c */
   1.101 +#define JSIG_VERSION_1_4_1   0x30140100
   1.102 +
   1.103 +#endif /* JVM_MD_H */

mercurial