getmaxMALLOC.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define IMPORT_EXPORT_MALLOC_DLL   extern

Functions

IMPORT_EXPORT_MALLOC_DLL unsigned
long 
GetLargestFreeMemoryRegion (void)


Define Documentation

#define IMPORT_EXPORT_MALLOC_DLL   extern

Definition at line 15 of file getmaxMALLOC.h.


Function Documentation

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:


Generated on Sun Mar 4 15:11:36 2007 for Scilab [trunk] by  doxygen 1.5.1