/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2012 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_vmprivate(){}
#else
#include "vmhdr.h"
/* Private code used in the vmalloc library
**
** Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94.
*/
/* Get more memory for a region */
#if __STD_C
#else
#endif
{
/* Get slightly more for administrative data */
if(s <= size) /* size was too large and we have wrapped around */
/* increase the rounding factor to reduce # of future extensions */
else /* see if we can extend the current segment */
}
if(!addr) /* create a new segment */
{
}
}
}
if(seg)
{ /* extending current segment */
else
}
}
else
}
else
}
}
}
else
{ /* creating a new segment */
/* NOTE: for Vmbest, Vmdebug and Vmprofile the region's segment list
is reversely ordered by addresses. This is so that we can easily
check for the wild block.
*/
break;
if(lastsp)
}
/* make a fake header for possible segmented memory */
/* see if the wild block is still wild */
}
}
return bp;
}
/* Truncate a segment if possible */
#if __STD_C
#else
int exact;
#endif
{
if(exact)
else /* keep truncated amount to discipline requirements */
less = _Vmpagesize;
}
if(less <= 0 ||
return 0;
return less;
}
else
{ /* unlink segment from region */
}
else
;
}
/* now delete it */
return size;
/* space reduction failed, reinsert segment */
if(last)
}
else
}
return 0;
}
}
{
if(!vm) /* some sort of global locking */
{ if(!locking) /* turn off lock */
}
{ if(!locking) /* turning off the lock */
}
else
{ if(!locking)
}
return 0;
}
/* Externally visible names but local to library */
{ _vmextend, /* _Vmextend */
_vmtruncate, /* _Vmtruncate */
0, /* _Vmpagesize */
};
#endif