/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1999-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> *
* *
***********************************************************************/
#include "sftest.h"
#ifdef SF_APPEND
#endif
tmain()
{
int n, fd;
Sfio_t *f;
buf[0] = 0;
terror("No pool");
terror("Setting own buffer for stdout");
terror("Purging sfstdout");
terror("Creating file");
terror("Writing to file");
terror("Seeking back to origin");
terror("Making stream");
terror("sfreserve1 returns the wrong pointer");
sfwrite(f,s,0);
int i;
}
int i;
terror("Fd %d changes status after sfsetfd %d->%d",
}
terror("sfreserve2 returns the wrong pointer");
sfwrite(f,s,0);
terror("sfsetbuf didnot returns last buffer");
terror("sfreserve3 returns the wrong value");
sfwrite(f,s,0);
texit(0);
}