src/share/vm/runtime/os.cpp

changeset 9478
f3108e56b502
parent 9326
b5dd721bdda8
child 9572
624a0741915c
child 9614
bb44c0e88235
equal deleted inserted replaced
9477:bbd1da3f538f 9478:f3108e56b502
104 _get_timezone(&zone); 104 _get_timezone(&zone);
105 return static_cast<time_t>(zone); 105 return static_cast<time_t>(zone);
106 #else 106 #else
107 return timezone; 107 return timezone;
108 #endif 108 #endif
109 }
110
111 int os::snprintf(char* buf, size_t len, const char* fmt, ...) {
112 va_list args;
113 va_start(args, fmt);
114 int result = os::vsnprintf(buf, len, fmt, args);
115 va_end(args);
116 return result;
109 } 117 }
110 118
111 // Fill in buffer with current local time as an ISO-8601 string. 119 // Fill in buffer with current local time as an ISO-8601 string.
112 // E.g., yyyy-mm-ddThh:mm:ss-zzzz. 120 // E.g., yyyy-mm-ddThh:mm:ss-zzzz.
113 // Returns buffer, or NULL if it failed. 121 // Returns buffer, or NULL if it failed.

mercurial