DragonFly commits List (threaded) for 2011-05
git: libc -- Initial fmemopen support.
Author: Venkatesh Srinivas <firstname.lastname@example.org>
Date: Wed May 11 10:31:35 2011 -0700
libc -- Initial fmemopen support.
fmemopen allows wrapping a memory buffer in the FILE* interface.
fmemopen was added to POSIX 200809. This version is based around a patch
from Hiten Pandya for FreeBSD. This version does not currently support all of
POSIX's mode strings.
Summary of changes:
include/stdio.h | 1 +
lib/libc/stdio/Makefile.inc | 3 +-
lib/libc/stdio/fmemopen.c | 211 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 214 insertions(+), 1 deletions(-)
create mode 100644 lib/libc/stdio/fmemopen.c
DragonFly BSD source repository