mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7126185: Clean up lasterror handling, add os::get_last_error()
Add os::get_last_error(), replace getLastErrorString() by os::lasterror() in os_windows.cpp. Reviewed-by: kamg, dholmes
This commit is contained in:
parent
c323bcdca8
commit
5782866b28
3 changed files with 26 additions and 53 deletions
|
@ -502,6 +502,7 @@ class os: AllStatic {
|
|||
|
||||
static void print_location(outputStream* st, intptr_t x, bool verbose = false);
|
||||
static size_t lasterror(char *buf, size_t len);
|
||||
static int get_last_error();
|
||||
|
||||
// Determines whether the calling process is being debugged by a user-mode debugger.
|
||||
static bool is_debugger_attached();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue