home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / malloc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  1.8 KB  |  51 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. #ifndef _MALLOC_H
  12. #define _MALLOC_H
  13. #ident    "@(#)sgs-head:common/head/malloc.h    1.10"
  14.  
  15. #ifndef _SIZE_T
  16. #define _SIZE_T
  17. typedef unsigned int       size_t;
  18. #endif
  19.  
  20. #define M_MXFAST    1 /* set size of blocks to be fast */
  21. #define M_NLBLKS    2 /* set number of block in a holding block */
  22. #define M_GRAIN        3 /* set allocation granularity for small blocks */
  23. #define M_KEEP        4 /* free preserves block contents until allocation */
  24. /*
  25.     structure filled by 
  26. */
  27. #ifndef _MALLINFO
  28. #define _MALLINFO
  29. struct mallinfo  {
  30.     size_t    arena;        /* total space in arena */
  31.     size_t    ordblks;    /* number of ordinary blocks */
  32.     size_t    smblks;        /* number of small blocks */
  33.     size_t    hblks;        /* number of holding blocks */
  34.     size_t    hblkhd;        /* space in holding block headers */
  35.     size_t    usmblks;    /* space in small blocks in use */
  36.     size_t    fsmblks;    /* space in free small blocks */
  37.     size_t    uordblks;    /* space in ordinary blocks in use */
  38.     size_t    fordblks;    /* space in free ordinary blocks */
  39.     size_t    keepcost;    /* (OBSOLETE) cost of enabling keep option */
  40. };    
  41. #endif
  42.  
  43. extern void    *malloc(size_t);
  44. extern void    free(void *);
  45. extern void    *realloc(void *, size_t);
  46. extern int    mallopt(int, int);    /* OBSOLETE */
  47. struct mallinfo    mallinfo(void);
  48. extern void    *calloc(size_t, size_t);
  49.  
  50. #endif /*_MALLOC_H*/
  51.