* cygwin.din: Add symbols for getrlimit' and setrlimit'.

* exceptions.cc (stackdump): Avoid creating stackdump when
        `rlim_core' is 0.
        * resource.cc: New global variable `rlim_core'.
        (getrlimit): New function.
        (setrlimit): Ditto.
        include/cygwin/version.h: Bump minor API version to 32 due to
        adding `getrlimit' and `setrlimit'.
        include/sys/resource.h: Add defines, types and prototypes for
        `getrlimit' and `setrlimit'.
This commit is contained in:
Corinna Vinschen
2000-12-27 00:13:57 +00:00
parent 2803e941b3
commit 8a93913d26
6 changed files with 102 additions and 1 deletions

View File

@ -381,7 +381,12 @@ try_to_debug ()
static void
stackdump (EXCEPTION_RECORD *e, CONTEXT *in)
{
extern unsigned long rlim_core;
const char *p;
if (rlim_core == 0UL)
return;
if (myself->progname[0])
{
/* write to progname.stackdump if possible */