src/hotspot/share/runtime/os.cpp
changeset 49177 eebf559c9e0d
parent 49042 a04a9bee2431
child 49193 c3ec048aad63
equal deleted inserted replaced
49176:f413e471a6ab 49177:eebf559c9e0d
   101   _get_timezone(&zone);
   101   _get_timezone(&zone);
   102   return static_cast<time_t>(zone);
   102   return static_cast<time_t>(zone);
   103 #else
   103 #else
   104   return timezone;
   104   return timezone;
   105 #endif
   105 #endif
       
   106 }
       
   107 
       
   108 int os::snprintf(char* buf, size_t len, const char* fmt, ...) {
       
   109   va_list args;
       
   110   va_start(args, fmt);
       
   111   int result = os::vsnprintf(buf, len, fmt, args);
       
   112   va_end(args);
       
   113   return result;
   106 }
   114 }
   107 
   115 
   108 // Fill in buffer with current local time as an ISO-8601 string.
   116 // Fill in buffer with current local time as an ISO-8601 string.
   109 // E.g., yyyy-mm-ddThh:mm:ss-zzzz.
   117 // E.g., yyyy-mm-ddThh:mm:ss-zzzz.
   110 // Returns buffer, or NULL if it failed.
   118 // Returns buffer, or NULL if it failed.