"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "tcpreplay-3.3.2/src/fragroute/bget.h" of archive tcpreplay-3.3.2.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 /*
    2 
    3     Interface definitions for bget.c, the memory management package.
    4 
    5 */
    6 
    7 #ifndef _
    8 #ifdef PROTOTYPES
    9 #define  _(x)  x		      /* If compiler knows prototypes */
   10 #else
   11 #define  _(x)  ()                     /* It it doesn't */
   12 #endif /* PROTOTYPES */
   13 #endif
   14 
   15 typedef long bufsize;
   16 void	bpool	    _((void *buffer, bufsize len));
   17 void   *bget	    _((bufsize size));
   18 void   *bgetz	    _((bufsize size));
   19 void   *bgetr	    _((void *buffer, bufsize newsize));
   20 void	brel	    _((void *buf));
   21 void	bectl	    _((int (*compact)(bufsize sizereq, int sequence),
   22 		       void *(*acquire)(bufsize size),
   23 		       void (*release)(void *buf), bufsize pool_incr));
   24 void	bstats	    _((bufsize *curalloc, bufsize *totfree, bufsize *maxfree,
   25 		       long *nget, long *nrel));
   26 void	bstatse     _((bufsize *pool_incr, long *npool, long *npget,
   27 		       long *nprel, long *ndget, long *ndrel));
   28 void	bufdump     _((void *buf));
   29 void	bpoold	    _((void *pool, int dumpalloc, int dumpfree));
   30 int	bpoolv	    _((void *pool));