18 |
#include "FC_NAMEMANGLE.h" |
#include "FC_NAMEMANGLE.h" |
19 |
|
|
20 |
/* #define FC_NAMEMANGLE(X) X ## _ */ |
/* #define FC_NAMEMANGLE(X) X ## _ */ |
21 |
|
#ifdef HAVE_SETRLSTK |
22 |
#include <sys/time.h> |
#include <sys/time.h> |
23 |
#include <sys/resource.h> |
#include <sys/resource.h> |
24 |
#include <unistd.h> |
#include <unistd.h> |
25 |
|
#endif |
26 |
|
|
27 |
/* int main( int argc, char ** argv ) */ |
/* int main( int argc, char ** argv ) */ |
28 |
void FC_NAMEMANGLE(setrlstk) () |
void FC_NAMEMANGLE(setrlstk) () |
29 |
{ |
{ |
30 |
|
#ifdef HAVE_SETRLSTK |
31 |
struct rlimit rls; |
struct rlimit rls; |
32 |
|
|
33 |
rls.rlim_cur = RLIM_INFINITY; |
rls.rlim_cur = RLIM_INFINITY; |
34 |
rls.rlim_max = RLIM_INFINITY; |
rls.rlim_max = RLIM_INFINITY; |
35 |
setrlimit(RLIMIT_STACK, &rls); |
setrlimit(RLIMIT_STACK, &rls); |
36 |
/* system("ulimit -a"); */ |
/* system("ulimit -a"); */ |
37 |
|
#endif |
38 |
return; |
return; |
39 |
} |
} |
40 |
|
|