DragonFly BSD
DragonFly commits List (threaded) for 2011-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: libc: Initial implementation of open_memstream.


From: Venkatesh Srinivas <vsrinivas@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 11 Sep 2011 22:52:07 -0700 (PDT)

commit cfdfe49dcfb77e81b1e4734386a051b6a5a6f104
Author: Venkatesh Srinivas <me@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]