src/os/bsd/vm/os_bsd.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
osx-cores2 Cdiff src/os/bsd/vm/os_bsd.cpp
src/os/bsd/vm/os_bsd.cpp
Print this page
*** 5799,5803 ****
--- 5799,5814 ----
strcat(libmawtpath, new_xawtstr);
if (::stat(libmawtpath, &statbuf) == 0) return false;
return true;
}
+
+ // Get the default path to the core file
+ // Returns the length of the string
+ int os::get_core_path(char* buffer, size_t bufferSize) {
+ int n = jio_snprintf(buffer, bufferSize, "/cores");
+
+ // Truncate if theoretical string was longer than bufferSize
+ n = MIN2(n, (int)bufferSize);
+
+ return n;
+ }
src/os/bsd/vm/os_bsd.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File