/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* 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 "sfhdr.h"
/* Invoke event handlers for a stream
**
** Written by Kiem-Phong Vo.
*/
#if __STD_C
#else
int type; /* type of event */
#endif
{
Sfio_t *f;
int n, rv;
rv = 0;
{
break;
for(n = 0; n < p->n_sf; ++n)
{ f = p->sf[n];
rv -= 1;
}
}
return rv;
}
#if __STD_C
#else
Sfio_t* f; /* stream */
int type; /* type of event */
#endif
{
SFMTXDECL(f);
if(!f)
SFMTXENTER(f, -1);
if(!SFKILLED(f) &&
!(local &&
SFMTXRETURN(f, -1);
{ SFOPEN(f,0);
SFMTXRETURN(f, rv);
SFLOCK(f,0);
}
{ /* make sure that "next" hasn't been popped */
if(d == disc)
break;
if(!d)
}
}
SFMTXRETURN(f, 0);
}