/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-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> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#include "sfdchdr.h"
/* A discipline to tee the output to a stream to another stream.
** This is similar to what the "tee" program does. As implemented
** this discipline only works with file streams.
**
** Written by Kiem-Phong Vo, kpv@research.att.com, 03/18/1998.
*/
/* the discipline structure for tee-ing */
typedef struct _tee_s
} Tee_t;
/* write to the teed stream. */
#if __STD_C
#else
Sfio_t* f; /* the stream being written to */
#endif
{
/* tee data if still ok */
/* do the actual write */
}
/* on close, remove the discipline */
#if __STD_C
#else
Sfio_t* f;
int type;
#endif
{
return 0;
}
#if __STD_C
#else
Sfio_t* f; /* stream to tee from */
#endif
{
return -1;
return -1;
}
return 0;
}