#include <sys/resource.h>#include "../includes/getmaxMALLOC.h"Include dependency graph for getmaxMALLOC.c:

Go to the source code of this file.
Functions | |
| IMPORT_EXPORT_MALLOC_DLL unsigned long | GetLargestFreeMemoryRegion (void) |
| IMPORT_EXPORT_MALLOC_DLL unsigned long GetLargestFreeMemoryRegion | ( | void | ) |
Definition at line 45 of file getmaxMALLOC.c.
Referenced by C2F().
00046 { 00047 struct rlimit rlim; 00048 unsigned long largestSize = 0; 00049 00050 /* HP-UX Use RLIMIT_AIO_MEM instead of RLIMIT_MEMLOCK */ 00051 #ifdef solaris 00052 getrlimit(RLIMIT_VMEM,&rlim); 00053 #else 00054 getrlimit(RLIMIT_MEMLOCK, &rlim); 00055 #endif 00056 largestSize = rlim.rlim_max; 00057 00058 return largestSize; 00059 }
Here is the caller graph for this function:

1.5.1