src/java.base/share/native/libjava/java_props.h
author gziemski
Thu, 09 May 2019 12:04:20 -0500
changeset 54795 fd08f5a976e6
parent 52970 c57f1850d44f
child 54858 bbc7c176c168
permissions -rw-r--r--
8189208: Cleanup ancient argument processing code Summary: Remove bits thread_park_blocker, post_vm_init_hook_enabled and pending_list_uses_discovered_fields Reviewed-by: hseigel, dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 21130
diff changeset
     2
 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5168
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5168
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5168
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5168
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 5168
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#ifndef _JAVA_PROPS_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#define _JAVA_PROPS_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#include <jni_util.h>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
5168
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    31
/* The preferred native type for storing text on the current OS */
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    32
#ifdef WIN32
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    33
#include <tchar.h>
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    34
typedef WCHAR nchar;
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    35
#else
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    36
typedef char nchar;
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    37
#endif
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    38
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
typedef struct {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    char *os_name;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    char *os_version;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    char *os_arch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
16041
b9d38accf302 8005545: Add System property to identify ARCH specific details such as ARM hard-float binaries
vladidan
parents: 14342
diff changeset
    44
#ifdef JDK_ARCH_ABI_PROP_NAME
b9d38accf302 8005545: Add System property to identify ARCH specific details such as ARM hard-float binaries
vladidan
parents: 14342
diff changeset
    45
    char *sun_arch_abi;
b9d38accf302 8005545: Add System property to identify ARCH specific details such as ARM hard-float binaries
vladidan
parents: 14342
diff changeset
    46
#endif
b9d38accf302 8005545: Add System property to identify ARCH specific details such as ARM hard-float binaries
vladidan
parents: 14342
diff changeset
    47
5168
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    48
    nchar *tmp_dir;
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    49
    nchar *user_dir;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    char *file_separator;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    char *path_separator;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    char *line_separator;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
5168
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    55
    nchar *user_name;
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
    56
    nchar *user_home;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
6489
9e7015635425 4700857: RFE: separating user locale and user interface locale
naoto
parents: 5506
diff changeset
    58
    char *format_language;
9e7015635425 4700857: RFE: separating user locale and user interface locale
naoto
parents: 5506
diff changeset
    59
    char *display_language;
7017
f3bfa15db005 6989111: Incorrect default locale for New Zealand
naoto
parents: 6489
diff changeset
    60
    char *format_script;
f3bfa15db005 6989111: Incorrect default locale for New Zealand
naoto
parents: 6489
diff changeset
    61
    char *display_script;
6489
9e7015635425 4700857: RFE: separating user locale and user interface locale
naoto
parents: 5506
diff changeset
    62
    char *format_country;
9e7015635425 4700857: RFE: separating user locale and user interface locale
naoto
parents: 5506
diff changeset
    63
    char *display_country;
9e7015635425 4700857: RFE: separating user locale and user interface locale
naoto
parents: 5506
diff changeset
    64
    char *format_variant;
9e7015635425 4700857: RFE: separating user locale and user interface locale
naoto
parents: 5506
diff changeset
    65
    char *display_variant;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    char *encoding;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    char *sun_jnu_encoding;
11906
dc984e35d8a6 4153167: separate between ANSI and OEM code pages on Windows
sherman
parents: 7668
diff changeset
    68
    char *sun_stdout_encoding;
dc984e35d8a6 4153167: separate between ANSI and OEM code pages on Windows
sherman
parents: 7668
diff changeset
    69
    char *sun_stderr_encoding;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    char *graphics_env;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    char *awt_toolkit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    char *unicode_encoding;     /* The default endianness of unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
                                    i.e. UnicodeBig or UnicodeLittle   */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    const char *cpu_isalist;    /* list of supported instruction sets */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    char *cpu_endian;           /* endianness of platform */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    char *data_model;           /* 32 or 64 bit data model */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    char *patch_level;          /* patches/service packs installed */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    char *desktop;              /* Desktop name. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    87
#ifdef MACOSX
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    88
    // These are for proxy-related information.
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    89
    // Note that if these platform-specific extensions get out of hand we should make a new
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    90
    // structure for them and #include it here.
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    91
    int httpProxyEnabled;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    92
    char *httpHost;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    93
    char *httpPort;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    94
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    95
    int httpsProxyEnabled;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    96
    char *httpsHost;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    97
    char *httpsPort;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    98
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
    99
    int ftpProxyEnabled;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   100
    char *ftpHost;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   101
    char *ftpPort;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   102
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   103
    int socksProxyEnabled;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   104
    char *socksHost;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   105
    char *socksPort;
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   106
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   107
    char *exceptionList;
21130
0f0b9c8f701a 8025673: [macosx] Disable X11 AWT toolkit
dholmes
parents: 16041
diff changeset
   108
25400
f35efd853e7b 8048515: Read outside array bounds in jdk/src/solaris/native/java/lang/java_props_md.c
naoto
parents: 23010
diff changeset
   109
    char *awt_headless;  /* java.awt.headless setting, if NULL (default) will not be set */
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   110
#endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 11906
diff changeset
   111
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
} java_props_t;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
java_props_t *GetJavaProperties(JNIEnv *env);
5168
41e46b5d9b15 4947220: (process)Runtime.exec() cannot invoke applications with unicode parameters(win)
sherman
parents: 2
diff changeset
   115
jstring GetStringPlatform(JNIEnv *env, nchar* str);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
#endif /* _JAVA_PROPS_H */