< prev index next >

src/share/vm/runtime/os.hpp

Print this page
rev 10257 : 8149036: Add tracing for thread related events at os level
Reviewed-by:

@@ -647,10 +647,15 @@
   static const char* exception_name(int exception_code, char* buf, size_t buflen);
 
   // Returns the signal number (e.g. 11) for a given signal name (SIGSEGV).
   static int get_signal_number(const char* signal_name);
 
+  // Returns the name for a given errno (e.g. "EINVAL" for EINVAL). The returned string
+  // is a static constant and does not have to be freed, so in contrast to strerror, this
+  // function is threadsafe. For unknown errno values, "unknown" is returned.
+  static const char* errno_name(int err_no);
+
   // Returns native Java library, loads if necessary
   static void*    native_java_library();
 
   // Fills in path to jvm.dll/libjvm.so (used by the Disassembler)
   static void     jvm_path(char *buf, jint buflen);
< prev index next >