< prev index next >
src/hotspot/os/bsd/os_bsd.inline.hpp
Print this page
rev 52814 : 8214773: Replace use of thread unsafe strtok
Reviewed-by:
@@ -32,10 +32,15 @@
#include <unistd.h>
#include <sys/socket.h>
#include <poll.h>
#include <netdb.h>
+// Use threadsafe version of strtok
+inline char* os::strtok(char *str, const char *delim, char **saveptr) {
+ return strtok_r(str, delim, saveptr);
+}
+
// File names are case-insensitive on windows only
inline int os::file_name_strncmp(const char* s1, const char* s2, size_t num) {
return strncmp(s1, s2, num);
}
< prev index next >