pike.git / src / acconfig.h

version» Context lines:

pike.git/src/acconfig.h:637:      /* How well is OOB TCP working?    * -1 = unknown    * 0 = doesn't seem to be working at all    * 1 = very limited functionality    * 2 = should be working as long as you are cautious    * 3 = works excellently    */   #define PIKE_OOB_WORKS -1    + /* dlmalloc has mallinfo. */ + #if defined(USE_DL_MALLOC) && !defined(HAVE_MALLINFO) + #define HAVE_MALLINFO +  + #if defined (HAVE_MALLOC_H) && defined (HAVE_STRUCT_MALLINFO) + #include <malloc.h> + #else /* HAVE_MALLOC_H && HAVE_STRUCT_MALLINFO */ +  + #ifndef MALLINFO_FIELD_TYPE + #define MALLINFO_FIELD_TYPE size_t + #endif /* MALLINFO_FIELD_TYPE */ +  + #ifdef HAVE_STDDEF_H + /* Needed for size_t. */ + #include <stddef.h> + #endif +  + /* dlmalloc definition of struct mallinfo. */ + struct mallinfo { +  MALLINFO_FIELD_TYPE arena; /* non-mmapped space allocated from system */ +  MALLINFO_FIELD_TYPE ordblks; /* number of free chunks */ +  MALLINFO_FIELD_TYPE smblks; /* always 0 */ +  MALLINFO_FIELD_TYPE hblks; /* always 0 */ +  MALLINFO_FIELD_TYPE hblkhd; /* space in mmapped regions */ +  MALLINFO_FIELD_TYPE usmblks; /* maximum total allocated space */ +  MALLINFO_FIELD_TYPE fsmblks; /* always 0 */ +  MALLINFO_FIELD_TYPE uordblks; /* total allocated space */ +  MALLINFO_FIELD_TYPE fordblks; /* total free space */ +  MALLINFO_FIELD_TYPE keepcost; /* releasable (via malloc_trim) space */ + }; +  + struct mallinfo dlmallinfo(void); +  + #endif /* HAVE_USR_INCLUDE_MALLOC_H */ +  + #endif +    #endif /* MACHINE_H */