git: libc: Initial implementation of open_memstream.
Venkatesh Srinivas
vsrinivas at crater.dragonflybsd.org
Sun Sep 11 22:52:27 PDT 2011
commit cfdfe49dcfb77e81b1e4734386a051b6a5a6f104
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date: Sun Sep 11 22:12:47 2011 -0700
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.
Summary of changes:
lib/libc/stdio/Makefile.inc | 2 +-
lib/libc/stdio/open_memstream.c | 158 +++++++++++++++++++++++++++++++++++++++
2 files changed, 159 insertions(+), 1 deletions(-)
create mode 100644 lib/libc/stdio/open_memstream.c
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cfdfe49dcfb77e81b1e4734386a051b6a5a6f104
--
DragonFly BSD source repository
More information about the Commits
mailing list