/[MITgcm]/MITgcm/eesupp/src/setrlstk.c
ViewVC logotype

Diff of /MITgcm/eesupp/src/setrlstk.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by edhill, Sun Sep 11 18:52:26 2005 UTC revision 1.2 by edhill, Tue Jun 20 03:13:54 2006 UTC
# Line 18  Line 18 
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22