< prev index next >

src/jdk.hotspot.agent/share/native/libsaproc/sadis.c

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2012, 2013, 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. --- 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.
*** 62,71 **** --- 62,79 ---- #include <stdarg.h> #include <stdlib.h> #include <errno.h> #ifdef _WINDOWS + #define JVM_MAXPATHLEN _MAX_PATH + #else + #include <sys/param.h> + #define JVM_MAXPATHLEN MAXPATHLEN + #endif + + + #ifdef _WINDOWS static int getLastErrorString(char *buf, size_t len) { long errval; if ((errval = GetLastError()) != 0)
*** 110,120 **** jstring libname_s) { uintptr_t func = 0; const char *error_message = NULL; const char *jrepath = NULL; const char *libname = NULL; ! char buffer[128]; #ifdef _WINDOWS HINSTANCE hsdis_handle = (HINSTANCE) NULL; #else void* hsdis_handle = NULL; --- 118,128 ---- jstring libname_s) { uintptr_t func = 0; const char *error_message = NULL; const char *jrepath = NULL; const char *libname = NULL; ! char buffer[JVM_MAXPATHLEN]; #ifdef _WINDOWS HINSTANCE hsdis_handle = (HINSTANCE) NULL; #else void* hsdis_handle = NULL;
< prev index next >