mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8289768: Clean up unused code
Reviewed-by: dfuchs, lancea, weijun, naoto, cjplummer, alanb, michaelm, chegar
This commit is contained in:
parent
3b9059a147
commit
04c47da118
46 changed files with 29 additions and 98 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2022, 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
|
||||
|
@ -237,9 +237,9 @@ static uid_t getUID(pid_t pid) {
|
|||
* into the Info object.
|
||||
*/
|
||||
void os_getCmdlineAndUserInfo(JNIEnv *env, jobject jinfo, pid_t pid) {
|
||||
int mib[3], maxargs, nargs, i;
|
||||
int mib[3], maxargs, nargs;
|
||||
size_t size;
|
||||
char *args, *cp, *sp, *np;
|
||||
char *args, *cp;
|
||||
|
||||
// Get the UID first. This is done here because it is cheap to do it here
|
||||
// on other platforms like Linux/Solaris/AIX where the uid comes from the
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2022, 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
|
||||
|
@ -362,8 +362,6 @@ CreateExecutionEnvironment(int *pargc, char ***pargv,
|
|||
char jrepath[], jint so_jrepath,
|
||||
char jvmpath[], jint so_jvmpath,
|
||||
char jvmcfg[], jint so_jvmcfg) {
|
||||
jboolean jvmpathExists;
|
||||
|
||||
/* Compute/set the name of the executable */
|
||||
SetExecname(*pargv);
|
||||
|
||||
|
@ -547,7 +545,6 @@ GetJREPath(char *path, jint pathsize, jboolean speculative)
|
|||
jboolean
|
||||
LoadJavaVM(const char *jvmpath, InvocationFunctions *ifn)
|
||||
{
|
||||
Dl_info dlinfo;
|
||||
void *libjvm;
|
||||
|
||||
JLI_TraceLauncher("JVM path is %s\n", jvmpath);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017 SAP SE. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
|
@ -168,7 +168,6 @@ Java_sun_net_spi_DefaultProxySelector_getSystemProxies(JNIEnv *env,
|
|||
{
|
||||
CFDictionaryRef proxyDicRef = NULL;
|
||||
CFURLRef urlRef = NULL;
|
||||
bool proxyFound = false;
|
||||
jobjectArray proxyArray = NULL;
|
||||
const char *cproto;
|
||||
const char *chost;
|
||||
|
|
|
@ -147,7 +147,6 @@ Java_sun_nio_fs_BsdNativeDispatcher_fsstatEntry(JNIEnv* env, jclass this,
|
|||
char* dir;
|
||||
char* fstype;
|
||||
char* options;
|
||||
dev_t dev;
|
||||
|
||||
if (iter == NULL || iter->pos >= iter->nentries)
|
||||
return -1;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, 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
|
||||
|
@ -62,7 +62,6 @@ static const char** const_extra_jargs = NULL;
|
|||
static const char* const_progname = "java";
|
||||
static const char** const_jargs = NULL;
|
||||
static const char** const_extra_jargs = NULL;
|
||||
static const char* const_appclasspath[] = { NULL };
|
||||
#endif /* JAVA_ARGS */
|
||||
|
||||
#ifdef LAUNCHER_NAME
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2022, 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
|
||||
|
@ -191,7 +191,6 @@ JNIEXPORT void JNICALL
|
|||
Java_jdk_internal_loader_NativeLibraries_unload
|
||||
(JNIEnv *env, jclass cls, jstring name, jboolean isBuiltin, jlong address)
|
||||
{
|
||||
const char *onUnloadSymbols[] = JNI_ONUNLOAD_SYMBOLS;
|
||||
void *handle;
|
||||
JNI_OnUnload_t JNI_OnUnload;
|
||||
const char *cname;
|
||||
|
@ -254,7 +253,6 @@ Java_jdk_internal_loader_NativeLibraries_findBuiltinLib
|
|||
size_t len;
|
||||
jstring lib;
|
||||
void *ret;
|
||||
const char *onLoadSymbols[] = JNI_ONLOAD_SYMBOLS;
|
||||
|
||||
if (name == NULL) {
|
||||
JNU_ThrowInternalError(env, "NULL filename for native library");
|
||||
|
|
|
@ -966,13 +966,9 @@ SelectVersion(int argc, char **argv, char **main_class)
|
|||
{
|
||||
char *arg;
|
||||
char *operand;
|
||||
char *version = NULL;
|
||||
char *jre = NULL;
|
||||
int jarflag = 0;
|
||||
int headlessflag = 0;
|
||||
int restrict_search = -1; /* -1 implies not known */
|
||||
manifest_info info;
|
||||
char env_entry[MAXNAMELEN + 24] = ENV_ENTRY "=";
|
||||
char *splash_file_name = NULL;
|
||||
char *splash_jar_name = NULL;
|
||||
char *env_in;
|
||||
|
@ -2007,7 +2003,6 @@ ReadKnownVMs(const char *jvmCfgName, jboolean speculative)
|
|||
int vmType;
|
||||
char *tmpPtr;
|
||||
char *altVMName = NULL;
|
||||
char *serverClassVMName = NULL;
|
||||
static char *whiteSpace = " \t";
|
||||
if (JLI_IsTraceLauncher()) {
|
||||
start = CurrentTimeMicros();
|
||||
|
|
|
@ -583,7 +583,6 @@ JLI_ParseManifest(char *jarfile, manifest_info *info)
|
|||
char *name;
|
||||
char *value;
|
||||
int rc;
|
||||
char *splashscreen_name = NULL;
|
||||
|
||||
if ((fd = JLI_Open(jarfile, O_RDONLY
|
||||
#ifdef O_LARGEFILE
|
||||
|
|
|
@ -1861,7 +1861,6 @@ run_dataflow(context_type *context) {
|
|||
work_to_do = JNI_TRUE;
|
||||
#ifdef DEBUG
|
||||
if (verify_verbose) {
|
||||
int opcode = this_idata->opcode;
|
||||
jio_fprintf(stdout, "Instruction %d: ", inumber);
|
||||
print_stack(context, &this_idata->stack_info);
|
||||
print_registers(context, &this_idata->register_info);
|
||||
|
|
|
@ -1552,7 +1552,6 @@ JNIEXPORT jboolean
|
|||
ZIP_InflateFully(void *inBuf, jlong inLen, void *outBuf, jlong outLen, char **pmsg)
|
||||
{
|
||||
z_stream strm;
|
||||
int i = 0;
|
||||
memset(&strm, 0, sizeof(z_stream));
|
||||
|
||||
*pmsg = 0; /* Reset error message */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2022, 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
|
||||
|
@ -71,9 +71,6 @@ void shutItDown() {
|
|||
* - the data strings for fields in ChildStuff
|
||||
*/
|
||||
void initChildStuff (int fdin, int fdout, ChildStuff *c) {
|
||||
int n;
|
||||
int argvBytes, nargv, envvBytes, nenvv;
|
||||
int dirlen;
|
||||
char *buf;
|
||||
SpawnInfo sp;
|
||||
int bufsize, offset=0;
|
||||
|
@ -132,7 +129,6 @@ void initChildStuff (int fdin, int fdout, ChildStuff *c) {
|
|||
|
||||
int main(int argc, char *argv[]) {
|
||||
ChildStuff c;
|
||||
int t;
|
||||
struct stat buf;
|
||||
/* argv[0] contains the fd number to read all the child info */
|
||||
int r, fdin, fdout;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2022, 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
|
||||
|
@ -399,10 +399,8 @@ copyPipe(int from[2], int to[2])
|
|||
*/
|
||||
static void arraysize(const char * const *arg, int *nelems, int *nbytes)
|
||||
{
|
||||
int i, bytes, count;
|
||||
int bytes, count;
|
||||
const char * const *a = arg;
|
||||
char *p;
|
||||
int *q;
|
||||
if (arg == 0) {
|
||||
*nelems = 0;
|
||||
*nbytes = 0;
|
||||
|
@ -488,7 +486,6 @@ forkChild(ChildStuff *c) {
|
|||
static pid_t
|
||||
spawnChild(JNIEnv *env, jobject process, ChildStuff *c, const char *helperpath) {
|
||||
pid_t resultPid;
|
||||
jboolean isCopy;
|
||||
int i, offset, rval, bufsize, magic;
|
||||
char *buf, buf1[16];
|
||||
char *hlpargs[2];
|
||||
|
|
|
@ -151,7 +151,6 @@ findZoneinfoFile(char *buf, size_t size, const char *dir)
|
|||
struct dirent *dp = NULL;
|
||||
char *pathname = NULL;
|
||||
char *tz = NULL;
|
||||
int res;
|
||||
|
||||
if (strcmp(dir, ZONEINFO_DIR) == 0) {
|
||||
/* fast path for 1st iteration */
|
||||
|
|
|
@ -353,7 +353,6 @@ java_props_t *
|
|||
GetJavaProperties(JNIEnv *env)
|
||||
{
|
||||
static java_props_t sprops;
|
||||
char *v; /* tmp var */
|
||||
|
||||
if (sprops.user_dir) {
|
||||
return &sprops;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2021, 2022, 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
|
||||
|
@ -119,7 +119,6 @@ collapse(char *path)
|
|||
int nc;
|
||||
char **ix;
|
||||
int i, j;
|
||||
char *p, *q;
|
||||
|
||||
nc = collapsible(names);
|
||||
if (nc < 2) return; /* Nothing to do */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, 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
|
||||
|
@ -298,7 +298,6 @@ CreateExecutionEnvironment(int *pargc, char ***pargv,
|
|||
char jvmcfg[], jint so_jvmcfg) {
|
||||
|
||||
char * jvmtype = NULL;
|
||||
int argc = *pargc;
|
||||
char **argv = *pargv;
|
||||
|
||||
#ifdef SETENV_REQUIRED
|
||||
|
|
|
@ -159,7 +159,6 @@ FindExecName(char *program)
|
|||
|
||||
/* relative path? */
|
||||
if (JLI_StrRChr(program, FILE_SEPARATOR) != NULL) {
|
||||
char buf[PATH_MAX+2];
|
||||
return Resolve(getcwd(cwdbuf, sizeof(cwdbuf)), program);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2022, 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
|
||||
|
@ -237,7 +237,6 @@ static jobjectArray getProxyByGConf(JNIEnv *env, const char* cproto,
|
|||
}
|
||||
|
||||
if (use_proxy) {
|
||||
jstring jhost;
|
||||
char *noproxyfor;
|
||||
char *s;
|
||||
|
||||
|
|
|
@ -81,8 +81,7 @@ lookupIfLocalhost(JNIEnv *env, const char *hostname, jboolean includeV6, int cha
|
|||
jobjectArray result = NULL;
|
||||
char myhostname[NI_MAXHOST + 1];
|
||||
struct ifaddrs *ifa = NULL;
|
||||
int familyOrder = 0;
|
||||
int count = 0, i, j;
|
||||
int i, j;
|
||||
int addrs4 = 0, addrs6 = 0, numV4Loopbacks = 0, numV6Loopbacks = 0;
|
||||
jboolean includeLoopback = JNI_FALSE;
|
||||
jobject name;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, 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
|
||||
|
@ -704,7 +704,6 @@ static jobject createNetworkInterface(JNIEnv *env, netif *ifs) {
|
|||
jobjectArray addrArr;
|
||||
jobjectArray bindArr;
|
||||
jobjectArray childArr;
|
||||
netaddr *addrs;
|
||||
jint addr_index, addr_count, bind_index;
|
||||
jint child_count, child_index;
|
||||
netaddr *addrP;
|
||||
|
@ -902,7 +901,6 @@ static netif *enumInterfaces(JNIEnv *env) {
|
|||
*/
|
||||
static void freeif(netif *ifs) {
|
||||
netif *currif = ifs;
|
||||
netif *child = NULL;
|
||||
|
||||
while (currif != NULL) {
|
||||
netaddr *addrP = currif->addr;
|
||||
|
|
|
@ -680,7 +680,6 @@ int
|
|||
NET_Bind(int fd, SOCKETADDRESS *sa, int len)
|
||||
{
|
||||
int rv;
|
||||
int arg, alen;
|
||||
|
||||
#ifdef __linux__
|
||||
/*
|
||||
|
|
|
@ -62,7 +62,6 @@ Java_sun_nio_ch_NativeThread_init(JNIEnv *env, jclass cl)
|
|||
* should somehow be unified, perhaps within the VM.
|
||||
*/
|
||||
|
||||
sigset_t ss;
|
||||
struct sigaction sa, osa;
|
||||
sa.sa_handler = nullHandler;
|
||||
sa.sa_flags = 0;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, 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
|
||||
|
@ -529,7 +529,6 @@ Java_sun_nio_ch_Net_setIntOption0(JNIEnv *env, jclass clazz, jobject fdo,
|
|||
jboolean mayNeedConversion, jint level,
|
||||
jint opt, jint arg, jboolean isIPv6)
|
||||
{
|
||||
int result;
|
||||
struct linger linger;
|
||||
u_char carg;
|
||||
void *parg;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2022, 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
|
||||
|
@ -184,7 +184,6 @@ Java_sun_nio_ch_UnixDomainSockets_localAddress0(JNIEnv *env, jclass clazz, jobje
|
|||
{
|
||||
struct sockaddr_un sa;
|
||||
socklen_t sa_len = sizeof(struct sockaddr_un);
|
||||
int port;
|
||||
if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) {
|
||||
handleSocketError(env, errno);
|
||||
return NULL;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2022, 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
|
||||
|
@ -417,7 +417,6 @@ Java_java_lang_ProcessHandleImpl_00024Info_info0(JNIEnv *env,
|
|||
jobject jinfo,
|
||||
jlong jpid) {
|
||||
DWORD pid = (DWORD)jpid;
|
||||
int ret = 0;
|
||||
HANDLE handle =
|
||||
OpenProcess(THREAD_QUERY_INFORMATION | PROCESS_QUERY_LIMITED_INFORMATION,
|
||||
FALSE, pid);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, 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
|
||||
|
@ -406,7 +406,6 @@ static int getWinTimeZone(char *winZoneName)
|
|||
static char *matchJavaTZ(const char *java_home_dir, char *tzName)
|
||||
{
|
||||
int line;
|
||||
int IDmatched = 0;
|
||||
FILE *fp;
|
||||
char *javaTZName = NULL;
|
||||
char *items[TZ_NITEMS];
|
||||
|
|
|
@ -100,7 +100,6 @@ currentDirLength(const WCHAR* ps, int pathlen) {
|
|||
static int curDirLenCached = -1;
|
||||
//relative to both drive and directory
|
||||
if (curDirLenCached == -1) {
|
||||
int dirlen = -1;
|
||||
dir = _wgetcwd(NULL, MAX_PATH);
|
||||
if (dir != NULL) {
|
||||
curDirLenCached = (int)wcslen(dir);
|
||||
|
@ -180,7 +179,6 @@ pathToNTPath(JNIEnv *env, jstring path, jboolean throwFNFE) {
|
|||
(therefore allocate the sufficient memory block) before calling
|
||||
_wfullpath(), we have to get the length of "current" dir first.
|
||||
*/
|
||||
WCHAR *abpath = NULL;
|
||||
int dirlen = currentDirLength(ps, pathlen);
|
||||
if (dirlen + pathlen + 1 > max_path - 1) {
|
||||
pathbuf = prefixAbpath(ps, pathlen, dirlen + pathlen);
|
||||
|
|
|
@ -546,8 +546,6 @@ static errno_t convert_to_unicode(const char* path, const wchar_t* prefix, wchar
|
|||
*/
|
||||
static wchar_t* create_unc_path(const char* path, errno_t* err) {
|
||||
wchar_t* wpath = NULL;
|
||||
size_t converted_chars = 0;
|
||||
size_t path_len = strlen(path) + 1; /* includes the terminating NULL */
|
||||
if (path[0] == '\\' && path[1] == '\\') {
|
||||
if (path[2] == '?' && path[3] == '\\') {
|
||||
/* if it already has a \\?\ don't do the prefix */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, 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
|
||||
|
@ -834,7 +834,6 @@ JNIEXPORT jobject JNICALL Java_java_net_NetworkInterface_getByIndex0
|
|||
JNIEXPORT jboolean JNICALL Java_java_net_NetworkInterface_boundInetAddress0
|
||||
(JNIEnv *env, jclass cls, jobject iaObj)
|
||||
{
|
||||
jobject netifObj = NULL;
|
||||
DWORD i;
|
||||
|
||||
int family = getInetAddress_family(env, iaObj);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, 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
|
||||
|
@ -643,7 +643,6 @@ JNIEXPORT jint JNICALL
|
|||
Java_sun_nio_ch_Net_poll(JNIEnv* env, jclass this, jobject fdo, jint events, jlong timeout)
|
||||
{
|
||||
int rv;
|
||||
int revents = 0;
|
||||
struct timeval t;
|
||||
fd_set rd, wr, ex;
|
||||
jint fd = fdval(env, fdo);
|
||||
|
|
|
@ -683,7 +683,6 @@ Java_sun_nio_fs_WindowsNativeDispatcher_SetFileSecurity0(JNIEnv* env, jclass thi
|
|||
{
|
||||
LPCWSTR lpFileName = jlong_to_ptr(pathAddress);
|
||||
PSECURITY_DESCRIPTOR pSecurityDescriptor = jlong_to_ptr(descAddress);
|
||||
DWORD lengthNeeded = 0;
|
||||
|
||||
BOOL res = SetFileSecurityW(lpFileName,
|
||||
(SECURITY_INFORMATION)requestedInformation,
|
||||
|
@ -1256,7 +1255,6 @@ Java_sun_nio_fs_WindowsNativeDispatcher_ReadDirectoryChangesW(JNIEnv* env, jclas
|
|||
{
|
||||
BOOL res;
|
||||
BOOL subtree = (watchSubTree == JNI_TRUE) ? TRUE : FALSE;
|
||||
LPOVERLAPPED ov = (LPOVERLAPPED)jlong_to_ptr(pOverlapped);
|
||||
|
||||
res = ReadDirectoryChangesW((HANDLE)jlong_to_ptr(hDirectory),
|
||||
(LPVOID)jlong_to_ptr(bufferAddress),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue