libc: Initial implementation of open_memstream.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 12 Sep 2011 05:12:47 +0000 (22:12 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 12 Sep 2011 05:12:47 +0000 (22:12 -0700)
commitcfdfe49dcfb77e81b1e4734386a051b6a5a6f104
tree6e31dadac9cdfbdac0fedab8492782cc5502e443
parent06cee6ba38d901952e904cbb86c1f3fa6e5d97de
libc: Initial implementation of open_memstream.

open_memstream allows wrapping a buffer via the FILE * interface; the
buffer is dynamically allocated and automatically expanding. The interface
appeared in POSIX 2008.

This implementation doesn't validate seek offsets and doesn't currently
handle SEEK_END.
lib/libc/stdio/Makefile.inc
lib/libc/stdio/open_memstream.c [new file with mode: 0644]