there is no need/use for a flush hook. the write function serves this
purpose already. i originally created the hook for implementing mem
streams based on a mistaken reading of posix, and later realized it
wasn't useful but never removed it until now.
int waiters;
void *cookie;
off_t off;
- int (*flush)(FILE *);
+ void *dummy4;
void *mustbezero_2;
unsigned char *shend;
off_t shlim, shcnt;
f->wpos = f->wbase = f->wend = 0;
f->rpos = f->rend = 0;
- /* Hook for special behavior on flush */
- if (f->flush) f->flush(f);
-
return 0;
}
f->write = f2->write;
f->seek = f2->seek;
f->close = f2->close;
- f->flush = f2->flush;
fclose(f2);
return f;