148 |
/* From glibc, a routine that returns a copy of the malloc internal state. */ |
/* From glibc, a routine that returns a copy of the malloc internal state. */ |
149 |
extern void *malloc_get_state (); |
extern void *malloc_get_state (); |
150 |
/* From glibc, a routine that overwrites the malloc internal state. */ |
/* From glibc, a routine that overwrites the malloc internal state. */ |
151 |
extern void malloc_set_state (); |
extern int malloc_set_state (); |
152 |
/* Non-zero if the MALLOC_CHECK_ enviroment variable was set while |
/* Non-zero if the MALLOC_CHECK_ enviroment variable was set while |
153 |
dumping. Used to work around a bug in glibc's malloc. */ |
dumping. Used to work around a bug in glibc's malloc. */ |
154 |
int malloc_using_checking; |
int malloc_using_checking; |
1001 |
&& !getrlimit (RLIMIT_STACK, &rlim)) |
&& !getrlimit (RLIMIT_STACK, &rlim)) |
1002 |
{ |
{ |
1003 |
long newlim; |
long newlim; |
1004 |
extern int re_max_failures; |
extern size_t re_max_failures; |
1005 |
/* Approximate the amount regex.c needs per unit of re_max_failures. */ |
/* Approximate the amount regex.c needs per unit of re_max_failures. */ |
1006 |
int ratio = 20 * sizeof (char *); |
int ratio = 20 * sizeof (char *); |
1007 |
/* Then add 33% to cover the size of the smaller stacks that regex.c |
/* Then add 33% to cover the size of the smaller stacks that regex.c |