title: Customise core-dump filename and path?
body: <p>I have an application which generates core-dump files by default. This is enabled by calling</p>
  
  <pre><code>struct rlimit core_limits;
  
  core_limits.rlim_cur=core_limits.rlim_max=RLIM_INFINITY;
  setrlimit(RLIMIT_CORE, &amp;core_limits);
  </code></pre>
  
  <p>at the very beginning of this application.</p>
  
  <p>Now is there also a possibility to modify the name and location of the file generated? So what I want to have instead of "core.[pid]" is something like "myapp_core.dmp" and to force it to always store it e.g. in the home directory of the current user?</p>
  
  <p>Thanks!</p>