3
/* Make a stream op return immediately on interrupts.
4
** This is useful on slow streams (hence the name).
6
** Written by Glenn Fowler (03/18/1998).
10
static int slowexcept(Sfio_t* f, int type, Void_t* v, Sfdisc_t* disc)
12
static int slowexcept(f, type, v, disc)
40
int sfdcslow(Sfio_t* f)
48
if(!(disc = (Sfdisc_t*)malloc(sizeof(Sfdisc_t))) )
51
disc->readf = NIL(Sfread_f);
52
disc->writef = NIL(Sfwrite_f);
53
disc->seekf = NIL(Sfseek_f);
54
disc->exceptf = slowexcept;
56
if(sfdisc(f,disc) != disc)