>I would advise looking at SFIO (pkgsrc/devel/sfio). Thanks, worth looking at - must implement all the variations on filbuf that various stdio's use - otherwise all the macros in stdio.h would not work. I found it easier to just hook read/write/close. Anyway, I'll have a look to see whether it would help. --sjg