/***********************************************************************
* *
* 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_vmstat(){}
#else
#include "vmhdr.h"
/* Get statistics from a region.
**
** Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94.
*/
#if __STD_C
#else
#endif
{
size_t s;
Void_t *d;
if(!st) /* just checking lock state of region */
if(!vm)
{ /* getting data for malloc */
extern int _mallocstat(Vmstat_t*);
return _mallocstat(st);
#else
return -1;
#endif
}
s = 0;
}
{ while(b < endb)
}
else /* get the real size */
{ d = DATA(b);
s = PFSIZE(d);
}
}
}
}
if((s = ((char*)endb - (char*)b) - s) > 0)
}
}
}
}
}
return 0;
}
#endif