System.c revision 3261
2362N/A * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 0N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 2362N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A/* Only register the performance-critical methods */ 0N/A/* "key" is a char type string with only ASCII character in it. 0N/A#
ifndef VENDOR /* Third party may overwrite this. */ 0N/A #
error "ERROR: No override of JAVA_SPECIFICATION_VENDOR is allowed" // user specified the base property. there's nothing to do here. /* user.xxx base property */ /* user.xxx.display property */ /* user.xxx.format property */ "Java Platform API Specification");
/* file system properties */ * user.script, user.country, user.variant (if user's environment specifies them) /* unicode_encoding specifies the default endianness */ /* !!! DO NOT call PUTPROP_ForPlatformNString before this line !!! * !!! I18n properties have not been set up yet !!! /* Printing properties */ /* Note: java.awt.printerjob is an implementation private property which * just happens to have a java.* name because it is referenced in * a java.awt class. It is the mechanism by which the implementation * finds the appropriate class in the JRE for the platform. * It is explicitly not designed to be overridden by clients as * a way of replacing the implementation class, and in any case * the mechanism by which the class is loaded is constrained to only * find and load classes that are part of the JRE. * This property may be removed if that mechanism is redesigned }
else if (
sizeof(
sprops) ==
8) {
/* Note: java.awt.graphicsenv is an implementation private property which * just happens to have a java.* name because it is referenced in * a java.awt class. It is the mechanism by which the implementation * finds the appropriate class in the JRE for the platform. * It is explicitly not designed to be overridden by clients as * a way of replacing the implementation class, and in any case * the mechanism by which the class is loaded is constrained to only * find and load classes that are part of the JRE. * This property may be removed if that mechanism is redesigned /* This is a sun. property as it is currently only set for Gnome and * unset "user.language", "user.script", "user.country", and "user.variant" * in order to tell whether the command line option "-DXXXX=YYYY" is * specified or not. They will be reset in fillI18nProps() below. /* Check the compatibility flag */ /* reconstruct i18n related properties */ * The following three functions implement setter methods for * java.lang.System.{in, out, err}. They are natively implemented * because they violate the semantics of the language (i.e. set final for (i = 0; i < n; i++) {