< prev index next >
src/java.base/unix/native/libjli/java_md_common.c
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 176,194 ****
JLI_MemFree(tmp_path);
return result;
}
! void JLI_ReportErrorMessage(const char* fmt, ...) {
va_list vl;
va_start(vl, fmt);
vfprintf(stderr, fmt, vl);
fprintf(stderr, "\n");
va_end(vl);
}
! void JLI_ReportErrorMessageSys(const char* fmt, ...) {
va_list vl;
char *emsg;
/*
* TODO: its safer to use strerror_r but is not available on
--- 176,196 ----
JLI_MemFree(tmp_path);
return result;
}
! JNIEXPORT void JNICALL
! JLI_ReportErrorMessage(const char* fmt, ...) {
va_list vl;
va_start(vl, fmt);
vfprintf(stderr, fmt, vl);
fprintf(stderr, "\n");
va_end(vl);
}
! JNIEXPORT void JNICALL
! JLI_ReportErrorMessageSys(const char* fmt, ...) {
va_list vl;
char *emsg;
/*
* TODO: its safer to use strerror_r but is not available on
*** 203,213 ****
vfprintf(stderr, fmt, vl);
fprintf(stderr, "\n");
va_end(vl);
}
! void JLI_ReportExceptionDescription(JNIEnv * env) {
(*env)->ExceptionDescribe(env);
}
/*
* Since using the file system as a registry is a bit risky, perform
--- 205,216 ----
vfprintf(stderr, fmt, vl);
fprintf(stderr, "\n");
va_end(vl);
}
! JNIEXPORT void JNICALL
! JLI_ReportExceptionDescription(JNIEnv * env) {
(*env)->ExceptionDescribe(env);
}
/*
* Since using the file system as a registry is a bit risky, perform
*** 343,359 ****
}
}
return findBootClass(env, classname);
}
! StdArg
*JLI_GetStdArgs()
{
return NULL;
}
! int
JLI_GetStdArgc() {
return 0;
}
jobjectArray
--- 346,362 ----
}
}
return findBootClass(env, classname);
}
! JNIEXPORT StdArg JNICALL
*JLI_GetStdArgs()
{
return NULL;
}
! JNIEXPORT int JNICALL
JLI_GetStdArgc() {
return 0;
}
jobjectArray
< prev index next >