/*
* Copyright (c) 2005-2007 Proofpoint, Inc. and its suppliers.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*/
/*
** Simple test program for memstat
*/
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <strings.h>
#include <string.h>
extern char *optarg;
extern int optind;
void
char *prg;
{
}
int
int argc;
char **argv;
{
long v;
char *resource;
l = 1;
{
switch ((char) r)
{
case 'l':
break;
case 'm':
break;
case 'r':
{
optarg);
exit(1);
}
break;
case 's':
break;
default:
exit(1);
}
}
r = sm_memstat_open();
r2 = -1;
for (i = 0; i < l; i++)
{
char *mem;
if (slp > 0 && i + 1 < l && 0 == r)
{
v);
if (sz > 0)
{
/*
** Just allocate some memory to test the
** values that are returned.
** Note: this is a memory leak, but that
** doesn't matter here.
*/
}
}
}
r = sm_memstat_close();
return r;
}