Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120690133
setrlstk.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 6, 08:24
Size
754 B
Mime Type
text/x-c
Expires
Tue, Jul 8, 08:24 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27221817
Attached To
R2795 mitgcm_lac_leman_abirani
setrlstk.c
View Options
/*
* $Header: /u/gcmpack/MITgcm/eesupp/src/setrlstk.c,v 1.2 2006/06/20 03:13:54 edhill Exp $
* $Name: $
//BOP
// !ROUTINE: setrlstk
// !INTERFACE:
setrlstk()
// !DESCRIPTION:
// Unlimit the size of the stack using setrlimit().
//EOP
*/
/* Here, we get the definition of the FC_NAMEMANGLE() macro. */
#include "FC_NAMEMANGLE.h"
/* #define FC_NAMEMANGLE(X) X ## _ */
#ifdef HAVE_SETRLSTK
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#endif
/* int main( int argc, char ** argv ) */
void FC_NAMEMANGLE(setrlstk) ()
{
#ifdef HAVE_SETRLSTK
struct rlimit rls;
rls.rlim_cur = RLIM_INFINITY;
rls.rlim_max = RLIM_INFINITY;
setrlimit(RLIMIT_STACK, &rls);
/* system("ulimit -a"); */
#endif
return;
}
Event Timeline
Log In to Comment