8200178: Remove mapfiles for JDK native libraries

Reviewed-by: erikj, alanb, mchung, prr, weijun
This commit is contained in:
Magnus Ihse Bursie 2018-03-28 23:56:08 +02:00
parent 2c292c30b2
commit 89f6ccb93e
157 changed files with 559 additions and 5564 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 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
@ -223,7 +223,7 @@ pathToNTPath(JNIEnv *env, jstring path, jboolean throwFNFE) {
return pathbuf;
}
FD
JNIEXPORT FD JNICALL
winFileHandleOpen(JNIEnv *env, jstring path, int flags)
{
const DWORD access =
@ -575,7 +575,7 @@ fileDescriptorClose(JNIEnv *env, jobject this)
}
}
jlong
JNIEXPORT jlong JNICALL
handleLseek(FD fd, jlong offset, jint whence)
{
LARGE_INTEGER pos, distance;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 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
@ -50,13 +50,15 @@ jint handleWrite(FD fd, const void *buf, jint len);
jint handleAppend(FD fd, const void *buf, jint len);
void handleClose(JNIEnv *env, jobject this, jfieldID fid);
void fileDescriptorClose(JNIEnv *env, jobject this);
jlong handleLseek(FD fd, jlong offset, jint whence);
JNIEXPORT jlong JNICALL
handleLseek(FD fd, jlong offset, jint whence);
/*
* Returns an opaque handle to file named by "path". If an error occurs,
* returns -1 and an exception is pending.
*/
FD winFileHandleOpen(JNIEnv *env, jstring path, int flags);
JNIEXPORT FD JNICALL
winFileHandleOpen(JNIEnv *env, jstring path, int flags);
/*
* Macros to set/get fd from the java.io.FileDescriptor.

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 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
@ -74,7 +74,7 @@ void buildJniFunctionName(const char *sym, const char *cname,
return;
}
size_t
JNIEXPORT size_t JNICALL
getLastErrorString(char *utf8_jvmErrorMsg, size_t cbErrorMsg)
{
size_t n = 0;
@ -144,7 +144,7 @@ getLastErrorString(char *utf8_jvmErrorMsg, size_t cbErrorMsg)
return n;
}
int
JNIEXPORT int JNICALL
getErrorString(int err, char *buf, size_t len)
{
int ret = 0;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* 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
@ -35,6 +35,7 @@
#ifndef IDE_STANDALONE
#include "java.h"
#include "jni.h"
#include "jli_util.h"
#else /* IDE_STANDALONE */
// The defines we need for stand alone testing
@ -188,15 +189,18 @@ static char* next_arg(char* cmdline, char* arg, jboolean* wildcard) {
return done ? src : NULL;
}
int JLI_GetStdArgc() {
JNIEXPORT int JNICALL
JLI_GetStdArgc() {
return stdargc;
}
StdArg* JLI_GetStdArgs() {
JNIEXPORT StdArg* JNICALL
JLI_GetStdArgs() {
return stdargs;
}
void JLI_CmdToArgs(char* cmdline) {
JNIEXPORT void JNICALL
JLI_CmdToArgs(char* cmdline) {
int nargs = 0;
StdArg* argv = NULL;
jboolean wildcard = JNI_FALSE;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 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
@ -495,7 +495,7 @@ JLI_Snprintf(char* buffer, size_t size, const char* format, ...) {
return rc;
}
void
JNIEXPORT void JNICALL
JLI_ReportErrorMessage(const char* fmt, ...) {
va_list vl;
va_start(vl,fmt);
@ -524,7 +524,7 @@ JLI_ReportErrorMessage(const char* fmt, ...) {
* error message if any, its upto the calling routine to correctly
* format the separation of the messages.
*/
void
JNIEXPORT void JNICALL
JLI_ReportErrorMessageSys(const char *fmt, ...)
{
va_list vl;
@ -588,7 +588,8 @@ JLI_ReportErrorMessageSys(const char *fmt, ...)
va_end(vl);
}
void JLI_ReportExceptionDescription(JNIEnv * env) {
JNIEXPORT void JNICALL
JLI_ReportExceptionDescription(JNIEnv * env) {
if (IsJavaw()) {
/*
* This code should be replaced by code which opens a window with

View file

@ -967,7 +967,7 @@ NET_IsEqual(jbyte* caddr1, jbyte* caddr2) {
* It returns the time left from the timeout, or -1 if it expired.
*/
jint
JNIEXPORT jint JNICALL
NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout)
{
jlong prevTime = JVM_CurrentTimeMillis(env, 0);