src/os/bsd/vm/os_bsd.cpp

changeset 3903
65906dc96aa1
parent 3900
d2a62e0f25eb
child 3961
3b01d0321dfa
equal deleted inserted replaced
3902:3f1ab0c19c30 3903:65906dc96aa1
5799 strcat(libmawtpath, new_xawtstr); 5799 strcat(libmawtpath, new_xawtstr);
5800 if (::stat(libmawtpath, &statbuf) == 0) return false; 5800 if (::stat(libmawtpath, &statbuf) == 0) return false;
5801 5801
5802 return true; 5802 return true;
5803 } 5803 }
5804
5805 // Get the default path to the core file
5806 // Returns the length of the string
5807 int os::get_core_path(char* buffer, size_t bufferSize) {
5808 int n = jio_snprintf(buffer, bufferSize, "/cores");
5809
5810 // Truncate if theoretical string was longer than bufferSize
5811 n = MIN2(n, (int)bufferSize);
5812
5813 return n;
5814 }

mercurial