/***********************************************************************
* *
* 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_vmopen(){}
#else
#include "vmhdr.h"
/* Opening a new region of allocation.
** Note that because of possible exotic memory types,
** all region data must be stored within the space given
** by the discipline.
**
** Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94.
*/
/* this structure lives in the top data segment of the region */
typedef struct _vminit_s
{ union
} vd;
union
} vm;
union
} seg;
} Vminit_t;
#if __STD_C
#else
int mode; /* type of region */
#endif
{
int rv;
size = 0;
else if(rv == 0 )
{ if(addr) /* vm itself is in memory from disc->memoryf */
mode |= VM_MEMORYF;
}
else if(rv > 0) /* the data section is being restored */
goto done;
}
}
/* make sure vd->incr is properly rounded and get initial memory */
/* initialize region data */
{ int k;
for(k = S_TINY-1; k >= 0; --k)
for(k = S_CACHE; k >= 0; --k)
}
the root segment and can be freed only at closing */
/* make a data block out of the remainder */
/* make a fake header for next block in case of noncontiguous segments */
done: /* now make the region handle */
{ if(size > 0)
}
/* add to the linked list of regions */
return vm;
}
#endif