|
|
1.1 root 1: /* bufpool.h */
2:
3: #ifndef NBPOOLS
1.1.1.2 ! root 4: #define NBPOOLS 5 /* Maximum number of pools */
1.1 root 5: #endif
6: #ifndef BPMAXB
1.1.1.2 ! root 7: #define BPMAXB 512 /* Maximum buffer length */
1.1 root 8: #endif
9: #define BPMINB 2 /* Minimum buffer length */
10: #ifndef BPMAXN
11: #define BPMAXN 100 /* Maximum buffers in any pool */
12: #endif
13: struct bpool { /* Description of a single pool */
14: int bpsize; /* size of buffers in this pool */
15: char *bpnext; /* pointer to next free buffer */
1.1.1.2 ! root 16: int bpsem; /* semaphore that counts buffers*/
1.1 root 17: }; /* currently in THIS pool */
18:
19: extern struct bpool bptab[]; /* Buffer pool table */
20: extern int nbpools; /* current number of pools */
21: #ifdef MEMMARK
22: extern MARKER bpmark;
23: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.