/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* 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
int local;
#endif
{
if(size <= 0)
}
goto done;
}
/* look thru all segments for a suitable free block */
goto got_blk;
}
goto got_blk;
}
else goto done;
got_blk: /* if get here, (tp, s, seg) must be well-defined */
}
}
else
}
done:
}
#if __STD_C
#else
int local;
#endif
{
long offset;
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
int local;
#endif
{
if(!data)
return 0;
return -1;
return 0;
}
#if __STD_C
#else
int type;
int local;
#endif
{
if(!data)
return data;
}
if(size == 0)
}
return data;
}
#if __STD_C
#else
int local;
#endif
{
}
#if __STD_C
#else
int local;
#endif
{
ssize_t s;
continue;
else s += sizeof(Head_t);
}
return 0;
}
#if __STD_C
#else
int local;
#endif
{
}
/* Public interface */
{
};
#ifdef NoF
#endif
#endif