System.c revision 355
/*
* Copyright 1994-2005 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
#include <string.h>
#include "jni.h"
#include "jni_util.h"
#include "jvm.h"
#include "java_props.h"
#include "java_lang_System.h"
/* Only register the performance-critical methods */
static JNINativeMethod methods[] = {
};
{
}
{
return JVM_IHashCode(env, x);
}
if (1) { \
} else ((void) 0)
if (1) { \
} else ((void) 0)
#ifndef VENDOR /* Third party may overwrite this. */
#define VENDOR "Sun Microsystems Inc."
#define VENDOR_URL "http://java.sun.com/"
#endif
#define JAVA_MAX_SUPPORTED_VERSION 51
#define JAVA_MAX_SUPPORTED_MINOR_VERSION 0
{
char buf[128];
"put",
"Java Platform API Specification");
if (sprops->awt_toolkit) {
}
/* os properties */
/* file system properties */
/*
* user.language
* user.country, user.variant (if user's environment specifies them)
* file.encoding
* file.encoding.pkg
*/
}
}
/* unicode_encoding specifies the default endianness */
/* !!! DO NOT call PUTPROP_ForPlatformCString 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 Sun 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
*/
/* data model */
if (sizeof(sprops) == 4) {
} else if (sizeof(sprops) == 8) {
} else {
}
sprops->data_model);
/* patch level */
/* Java2D properties */
/* 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 Sun 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
* Windows desktops.
*/
}
}
/*
* 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
* variable).
*/
{
if (fid == 0)
return;
}
{
if (fid == 0)
return;
}
{
if (fid == 0)
return;
}
{
int i;
for (i = 0; i < n; i++) {
}
}
{
int len;
return NULL;
}
if (len > 240) {
return NULL;
}
len += prefix_len;
len += suffix_len;
}