Recently, I had to implement a stream library, libstream, for one of my projects. Basically, it’s a char-FIFO implemented as a linked list storing chunks of 4k bytes each (instead of one large chunk), with wrapper functions such as read(), write() and peek().
Seemingly, there’s nothing comparable available on the net, at least not as a stand-alone library.
Hence my question: why isn’t there a common, generic, publicly available stream library for C as described above?
There is an I/O Stream library from A&T Research under Common Public License 1.0, called SFIO: A Safe/Fast I/O Library which you might want to give a look. It is downloadable here.
It is difficult to answer Why there are no generic more commonly available stream libraries in open domain because pretty much everything in the Open Source domain comes through whims and wishes of the contributors who are willing to put in the effort.