git: libc: Initial implementation of open_memstream.

看板DFBSD_commit作者時間14年前 (2011/10/22 18:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1EefJMpG (DFBSD_commit)