/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
void _STUB_vmpool(){}
#else
#include "vmhdr.h"
/* Method for pool allocation.
** All elements in a pool have the same size.
** The following fields of Vmdata_t are used as:
** pool: size of a block.
** free: list of free blocks.
**
** Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94.
*/
#if __STD_C
#else
#endif
{
if(size <= 0)
}
}
}
goto done;
}
/* look thru all segments for a suitable free block */
goto has_blk;
}
for(;;) /* must extend region */
goto has_blk;
}
else goto done;
}
has_blk: /* if get here, (tp, s, seg) must be well-defined */
}
}
else
}
done:
}
#if __STD_C
#else
#endif
{
return -1L;
}
}
offset = -1L;
continue;
/* the block that has this address */
/* see if this block has been freed */
goto done;
goto done;
}
done :
return offset;
}
#if __STD_C
#else
#endif
{
if(!data)
return 0;
return -1;
}
return -1;
}
}
return 0;
}
#if __STD_C
#else
int type;
#endif
{
if(!data)
do { *d++ = 0;} while(d < ed);
}
return data;
}
if(size == 0)
}
}
}
}
return data;
}
#if __STD_C
#else
#endif
{
}
#if __STD_C
#else
static int poolcompact(vm)
#endif
{
return -1;
}
}
continue;
else s += sizeof(Head_t);
}
return 0;
}
#if __STD_C
#else
#endif
{
}
/* Public interface */
{
};
#ifdef NoF
#endif
#endif